Initialize Tizen 2.3
[framework/multimedia/gst-plugins-ext0.10.git] / wearable / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for extension 1.0.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$1; test $as_status -eq 0 && as_status=1
367   if test "$4"; then
368     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370   fi
371   $as_echo "$as_me: error: $2" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535   # Remove one level of quotation (which was required for Make).
536   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537   ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542   # Discard the --no-reexec flag, and continue.
543   shift
544 elif test "X$1" = X--fallback-echo; then
545   # Avoid inline document here, it may be left over
546   :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548   # Yippee, $ECHO works!
549   :
550 else
551   # Restart under the correct shell.
552   exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556   # used as fallback echo
557   shift
558   cat <<_LT_EOF
559 $*
560 _LT_EOF
561   exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569   if test "X${echo_test_string+set}" != Xset; then
570     # find a string as large as possible, as long as the shell can cope with it
571     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575       then
576         break
577       fi
578     done
579   fi
580
581   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583      test "X$echo_testing_string" = "X$echo_test_string"; then
584     :
585   else
586     # The Solaris, AIX, and Digital Unix default echo programs unquote
587     # backslashes.  This makes it impossible to quote backslashes using
588     #   echo "$something" | sed 's/\\/\\\\/g'
589     #
590     # So, first we look for a working echo in the user's PATH.
591
592     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593     for dir in $PATH /usr/ucb; do
594       IFS="$lt_save_ifs"
595       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598          test "X$echo_testing_string" = "X$echo_test_string"; then
599         ECHO="$dir/echo"
600         break
601       fi
602     done
603     IFS="$lt_save_ifs"
604
605     if test "X$ECHO" = Xecho; then
606       # We didn't find a better echo, so look for alternatives.
607       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         # This shell has a builtin print -r that does the trick.
611         ECHO='print -r'
612       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613            test "X$CONFIG_SHELL" != X/bin/ksh; then
614         # If we have ksh, try running configure again with it.
615         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616         export ORIGINAL_CONFIG_SHELL
617         CONFIG_SHELL=/bin/ksh
618         export CONFIG_SHELL
619         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620       else
621         # Try using printf.
622         ECHO='printf %s\n'
623         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625            test "X$echo_testing_string" = "X$echo_test_string"; then
626           # Cool, printf works
627           :
628         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629              test "X$echo_testing_string" = 'X\t' &&
630              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631              test "X$echo_testing_string" = "X$echo_test_string"; then
632           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633           export CONFIG_SHELL
634           SHELL="$CONFIG_SHELL"
635           export SHELL
636           ECHO="$CONFIG_SHELL $0 --fallback-echo"
637         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638              test "X$echo_testing_string" = 'X\t' &&
639              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640              test "X$echo_testing_string" = "X$echo_test_string"; then
641           ECHO="$CONFIG_SHELL $0 --fallback-echo"
642         else
643           # maybe with a smaller string...
644           prev=:
645
646           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648             then
649               break
650             fi
651             prev="$cmd"
652           done
653
654           if test "$prev" != 'sed 50q "$0"'; then
655             echo_test_string=`eval $prev`
656             export echo_test_string
657             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658           else
659             # Oops.  We lost completely, so just stick with echo.
660             ECHO=echo
661           fi
662         fi
663       fi
664     fi
665   fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME='extension'
700 PACKAGE_TARNAME='extension'
701 PACKAGE_VERSION='1.0'
702 PACKAGE_STRING='extension 1.0'
703 PACKAGE_BUGREPORT=''
704 PACKAGE_URL=''
705
706 # Factoring default headers for most tests.
707 ac_includes_default="\
708 #include <stdio.h>
709 #ifdef HAVE_SYS_TYPES_H
710 # include <sys/types.h>
711 #endif
712 #ifdef HAVE_SYS_STAT_H
713 # include <sys/stat.h>
714 #endif
715 #ifdef STDC_HEADERS
716 # include <stdlib.h>
717 # include <stddef.h>
718 #else
719 # ifdef HAVE_STDLIB_H
720 #  include <stdlib.h>
721 # endif
722 #endif
723 #ifdef HAVE_STRING_H
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
725 #  include <memory.h>
726 # endif
727 # include <string.h>
728 #endif
729 #ifdef HAVE_STRINGS_H
730 # include <strings.h>
731 #endif
732 #ifdef HAVE_INTTYPES_H
733 # include <inttypes.h>
734 #endif
735 #ifdef HAVE_STDINT_H
736 # include <stdint.h>
737 #endif
738 #ifdef HAVE_UNISTD_H
739 # include <unistd.h>
740 #endif"
741
742 ac_subst_vars='am__EXEEXT_FALSE
743 am__EXEEXT_TRUE
744 LTLIBOBJS
745 LIBOBJS
746 IS_I386_FALSE
747 IS_I386_TRUE
748 GST_EXT_USE_EXT_TOGGLE_FALSE
749 GST_EXT_USE_EXT_TOGGLE_TRUE
750 DRM_SERVICE_LIBS
751 DRM_SERVICE_CFLAGS
752 GST_EXT_USE_EXT_DRMSRC_FALSE
753 GST_EXT_USE_EXT_DRMSRC_TRUE
754 CAMSRCJPEGENC_LIBS
755 CAMSRCJPEGENC_CFLAGS
756 AVSYSAUDIO_LIBS
757 AVSYSAUDIO_CFLAGS
758 GST_EXT_USE_EXT_AVSYSAUDIO_FALSE
759 GST_EXT_USE_EXT_AVSYSAUDIO_TRUE
760 AVSYSCAMERA_LIBS
761 AVSYSCAMERA_CFLAGS
762 GST_EXT_USE_EXT_AVSYSCAMERA_FALSE
763 GST_EXT_USE_EXT_AVSYSCAMERA_TRUE
764 GST_EXT_USE_EXT_EVASIMAGESINK_FALSE
765 GST_EXT_USE_EXT_EVASIMAGESINK_TRUE
766 GST_EXT_USE_EXT_AVSYSTEM_FALSE
767 GST_EXT_USE_EXT_AVSYSTEM_TRUE
768 GST_EXT_USE_EXT_ENCODEBIN_FALSE
769 GST_EXT_USE_EXT_ENCODEBIN_TRUE
770 EFL_LIBS
771 EFL_CFLAGS
772 MMTA_LIBS
773 MMTA_CFLAGS
774 GST_INTERFACES_LIBS
775 GST_INTERFACES_CFLAGS
776 GST_VIDEO_LIBS
777 GST_VIDEO_CFLAGS
778 GST_AUDIO_LIBS
779 GST_AUDIO_CFLAGS
780 GST_PLUGIN_LDFLAGS
781 plugindir
782 GSTCTRL_LIBS
783 GSTCTRL_CFLAGS
784 GSTPB_BASE_LIBS
785 GSTPB_BASE_CFLAGS
786 GST_BASE_LIBS
787 GST_BASE_CFLAGS
788 GST_MAJORMINOR
789 GST_LIBS
790 GST_CFLAGS
791 PKG_CONFIG
792 ISVOLANS_TARGET_FALSE
793 ISVOLANS_TARGET_TRUE
794 ISPROTECTOR_TARGET_FALSE
795 ISPROTECTOR_TARGET_TRUE
796 ISVOLANS_VODA_SDK_FALSE
797 ISVOLANS_VODA_SDK_TRUE
798 ISPROTECTOR_VODA_SDK_FALSE
799 ISPROTECTOR_VODA_SDK_TRUE
800 IS_VODA_SDK_FALSE
801 IS_VODA_SDK_TRUE
802 HAVE_PKGCONFIG
803 CXXCPP
804 CPP
805 OTOOL64
806 OTOOL
807 LIPO
808 NMEDIT
809 DSYMUTIL
810 lt_ECHO
811 RANLIB
812 AR
813 OBJDUMP
814 LN_S
815 NM
816 ac_ct_DUMPBIN
817 DUMPBIN
818 LD
819 FGREP
820 EGREP
821 GREP
822 SED
823 host_os
824 host_vendor
825 host_cpu
826 host
827 build_os
828 build_vendor
829 build_cpu
830 build
831 LIBTOOL
832 am__fastdepCXX_FALSE
833 am__fastdepCXX_TRUE
834 CXXDEPMODE
835 ac_ct_CXX
836 CXXFLAGS
837 CXX
838 am__fastdepCC_FALSE
839 am__fastdepCC_TRUE
840 CCDEPMODE
841 AMDEPBACKSLASH
842 AMDEP_FALSE
843 AMDEP_TRUE
844 am__quote
845 am__include
846 DEPDIR
847 OBJEXT
848 EXEEXT
849 ac_ct_CC
850 CPPFLAGS
851 LDFLAGS
852 CFLAGS
853 CC
854 ACLOCAL_AMFLAGS
855 am__untar
856 am__tar
857 AMTAR
858 am__leading_dot
859 SET_MAKE
860 AWK
861 mkdir_p
862 MKDIR_P
863 INSTALL_STRIP_PROGRAM
864 STRIP
865 install_sh
866 MAKEINFO
867 AUTOHEADER
868 AUTOMAKE
869 AUTOCONF
870 ACLOCAL
871 CYGPATH_W
872 am__isrc
873 INSTALL_DATA
874 INSTALL_SCRIPT
875 INSTALL_PROGRAM
876 MAINT
877 MAINTAINER_MODE_FALSE
878 MAINTAINER_MODE_TRUE
879 VERSION
880 PACKAGE
881 GST_PLUGIN_VERSION_NANO
882 GST_PLUGIN_VERSION_MICRO
883 GST_PLUGIN_VERSION_MINOR
884 GST_PLUGIN_VERSION_MAJOR
885 GST_PLUGIN_VERSION_RELEASE
886 GST_PLUGIN_VERSION
887 target_alias
888 host_alias
889 build_alias
890 LIBS
891 ECHO_T
892 ECHO_N
893 ECHO_C
894 DEFS
895 mandir
896 localedir
897 libdir
898 psdir
899 pdfdir
900 dvidir
901 htmldir
902 infodir
903 docdir
904 oldincludedir
905 includedir
906 localstatedir
907 sharedstatedir
908 sysconfdir
909 datadir
910 datarootdir
911 libexecdir
912 sbindir
913 bindir
914 program_transform_name
915 prefix
916 exec_prefix
917 PACKAGE_URL
918 PACKAGE_BUGREPORT
919 PACKAGE_STRING
920 PACKAGE_VERSION
921 PACKAGE_TARNAME
922 PACKAGE_NAME
923 PATH_SEPARATOR
924 SHELL'
925 ac_subst_files=''
926 ac_user_opts='
927 enable_option_checking
928 enable_maintainer_mode
929 enable_dependency_tracking
930 enable_shared
931 enable_static
932 with_pic
933 enable_fast_install
934 with_gnu_ld
935 enable_libtool_lock
936 enable_ext_encodebin
937 enable_ext_avsystem
938 enable_ext_evasimagesink
939 enable_ext_gstreamer_camera
940 enable_ext_gstreamer_audio
941 enable_ext_drmsrc
942 enable_ext_toggle
943 enable_i386
944 '
945       ac_precious_vars='build_alias
946 host_alias
947 target_alias
948 CC
949 CFLAGS
950 LDFLAGS
951 LIBS
952 CPPFLAGS
953 CXX
954 CXXFLAGS
955 CCC
956 CPP
957 CXXCPP
958 PKG_CONFIG
959 GST_CFLAGS
960 GST_LIBS
961 GST_BASE_CFLAGS
962 GST_BASE_LIBS
963 GSTPB_BASE_CFLAGS
964 GSTPB_BASE_LIBS
965 GSTCTRL_CFLAGS
966 GSTCTRL_LIBS
967 GST_AUDIO_CFLAGS
968 GST_AUDIO_LIBS
969 GST_VIDEO_CFLAGS
970 GST_VIDEO_LIBS
971 GST_INTERFACES_CFLAGS
972 GST_INTERFACES_LIBS
973 MMTA_CFLAGS
974 MMTA_LIBS
975 EFL_CFLAGS
976 EFL_LIBS
977 AVSYSCAMERA_CFLAGS
978 AVSYSCAMERA_LIBS
979 AVSYSAUDIO_CFLAGS
980 AVSYSAUDIO_LIBS
981 CAMSRCJPEGENC_CFLAGS
982 CAMSRCJPEGENC_LIBS
983 DRM_SERVICE_CFLAGS
984 DRM_SERVICE_LIBS'
985
986
987 # Initialize some variables set by options.
988 ac_init_help=
989 ac_init_version=false
990 ac_unrecognized_opts=
991 ac_unrecognized_sep=
992 # The variables have the same names as the options, with
993 # dashes changed to underlines.
994 cache_file=/dev/null
995 exec_prefix=NONE
996 no_create=
997 no_recursion=
998 prefix=NONE
999 program_prefix=NONE
1000 program_suffix=NONE
1001 program_transform_name=s,x,x,
1002 silent=
1003 site=
1004 srcdir=
1005 verbose=
1006 x_includes=NONE
1007 x_libraries=NONE
1008
1009 # Installation directory options.
1010 # These are left unexpanded so users can "make install exec_prefix=/foo"
1011 # and all the variables that are supposed to be based on exec_prefix
1012 # by default will actually change.
1013 # Use braces instead of parens because sh, perl, etc. also accept them.
1014 # (The list follows the same order as the GNU Coding Standards.)
1015 bindir='${exec_prefix}/bin'
1016 sbindir='${exec_prefix}/sbin'
1017 libexecdir='${exec_prefix}/libexec'
1018 datarootdir='${prefix}/share'
1019 datadir='${datarootdir}'
1020 sysconfdir='${prefix}/etc'
1021 sharedstatedir='${prefix}/com'
1022 localstatedir='${prefix}/var'
1023 includedir='${prefix}/include'
1024 oldincludedir='/usr/include'
1025 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1026 infodir='${datarootdir}/info'
1027 htmldir='${docdir}'
1028 dvidir='${docdir}'
1029 pdfdir='${docdir}'
1030 psdir='${docdir}'
1031 libdir='${exec_prefix}/lib'
1032 localedir='${datarootdir}/locale'
1033 mandir='${datarootdir}/man'
1034
1035 ac_prev=
1036 ac_dashdash=
1037 for ac_option
1038 do
1039   # If the previous option needs an argument, assign it.
1040   if test -n "$ac_prev"; then
1041     eval $ac_prev=\$ac_option
1042     ac_prev=
1043     continue
1044   fi
1045
1046   case $ac_option in
1047   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1048   *=)   ac_optarg= ;;
1049   *)    ac_optarg=yes ;;
1050   esac
1051
1052   # Accept the important Cygnus configure options, so we can diagnose typos.
1053
1054   case $ac_dashdash$ac_option in
1055   --)
1056     ac_dashdash=yes ;;
1057
1058   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1059     ac_prev=bindir ;;
1060   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1061     bindir=$ac_optarg ;;
1062
1063   -build | --build | --buil | --bui | --bu)
1064     ac_prev=build_alias ;;
1065   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1066     build_alias=$ac_optarg ;;
1067
1068   -cache-file | --cache-file | --cache-fil | --cache-fi \
1069   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1070     ac_prev=cache_file ;;
1071   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1072   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1073     cache_file=$ac_optarg ;;
1074
1075   --config-cache | -C)
1076     cache_file=config.cache ;;
1077
1078   -datadir | --datadir | --datadi | --datad)
1079     ac_prev=datadir ;;
1080   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1081     datadir=$ac_optarg ;;
1082
1083   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1084   | --dataroo | --dataro | --datar)
1085     ac_prev=datarootdir ;;
1086   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1087   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1088     datarootdir=$ac_optarg ;;
1089
1090   -disable-* | --disable-*)
1091     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1092     # Reject names that are not valid shell variable names.
1093     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094       as_fn_error $? "invalid feature name: $ac_useropt"
1095     ac_useropt_orig=$ac_useropt
1096     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097     case $ac_user_opts in
1098       *"
1099 "enable_$ac_useropt"
1100 "*) ;;
1101       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1102          ac_unrecognized_sep=', ';;
1103     esac
1104     eval enable_$ac_useropt=no ;;
1105
1106   -docdir | --docdir | --docdi | --doc | --do)
1107     ac_prev=docdir ;;
1108   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1109     docdir=$ac_optarg ;;
1110
1111   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1112     ac_prev=dvidir ;;
1113   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1114     dvidir=$ac_optarg ;;
1115
1116   -enable-* | --enable-*)
1117     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1118     # Reject names that are not valid shell variable names.
1119     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120       as_fn_error $? "invalid feature name: $ac_useropt"
1121     ac_useropt_orig=$ac_useropt
1122     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123     case $ac_user_opts in
1124       *"
1125 "enable_$ac_useropt"
1126 "*) ;;
1127       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1128          ac_unrecognized_sep=', ';;
1129     esac
1130     eval enable_$ac_useropt=\$ac_optarg ;;
1131
1132   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1133   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1134   | --exec | --exe | --ex)
1135     ac_prev=exec_prefix ;;
1136   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1137   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1138   | --exec=* | --exe=* | --ex=*)
1139     exec_prefix=$ac_optarg ;;
1140
1141   -gas | --gas | --ga | --g)
1142     # Obsolete; use --with-gas.
1143     with_gas=yes ;;
1144
1145   -help | --help | --hel | --he | -h)
1146     ac_init_help=long ;;
1147   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1148     ac_init_help=recursive ;;
1149   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1150     ac_init_help=short ;;
1151
1152   -host | --host | --hos | --ho)
1153     ac_prev=host_alias ;;
1154   -host=* | --host=* | --hos=* | --ho=*)
1155     host_alias=$ac_optarg ;;
1156
1157   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1158     ac_prev=htmldir ;;
1159   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1160   | --ht=*)
1161     htmldir=$ac_optarg ;;
1162
1163   -includedir | --includedir | --includedi | --included | --include \
1164   | --includ | --inclu | --incl | --inc)
1165     ac_prev=includedir ;;
1166   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1167   | --includ=* | --inclu=* | --incl=* | --inc=*)
1168     includedir=$ac_optarg ;;
1169
1170   -infodir | --infodir | --infodi | --infod | --info | --inf)
1171     ac_prev=infodir ;;
1172   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1173     infodir=$ac_optarg ;;
1174
1175   -libdir | --libdir | --libdi | --libd)
1176     ac_prev=libdir ;;
1177   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1178     libdir=$ac_optarg ;;
1179
1180   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1181   | --libexe | --libex | --libe)
1182     ac_prev=libexecdir ;;
1183   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1184   | --libexe=* | --libex=* | --libe=*)
1185     libexecdir=$ac_optarg ;;
1186
1187   -localedir | --localedir | --localedi | --localed | --locale)
1188     ac_prev=localedir ;;
1189   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1190     localedir=$ac_optarg ;;
1191
1192   -localstatedir | --localstatedir | --localstatedi | --localstated \
1193   | --localstate | --localstat | --localsta | --localst | --locals)
1194     ac_prev=localstatedir ;;
1195   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1196   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1197     localstatedir=$ac_optarg ;;
1198
1199   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1200     ac_prev=mandir ;;
1201   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1202     mandir=$ac_optarg ;;
1203
1204   -nfp | --nfp | --nf)
1205     # Obsolete; use --without-fp.
1206     with_fp=no ;;
1207
1208   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1209   | --no-cr | --no-c | -n)
1210     no_create=yes ;;
1211
1212   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1213   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1214     no_recursion=yes ;;
1215
1216   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1217   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1218   | --oldin | --oldi | --old | --ol | --o)
1219     ac_prev=oldincludedir ;;
1220   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1221   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1222   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1223     oldincludedir=$ac_optarg ;;
1224
1225   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1226     ac_prev=prefix ;;
1227   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1228     prefix=$ac_optarg ;;
1229
1230   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1231   | --program-pre | --program-pr | --program-p)
1232     ac_prev=program_prefix ;;
1233   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1234   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1235     program_prefix=$ac_optarg ;;
1236
1237   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1238   | --program-suf | --program-su | --program-s)
1239     ac_prev=program_suffix ;;
1240   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1241   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1242     program_suffix=$ac_optarg ;;
1243
1244   -program-transform-name | --program-transform-name \
1245   | --program-transform-nam | --program-transform-na \
1246   | --program-transform-n | --program-transform- \
1247   | --program-transform | --program-transfor \
1248   | --program-transfo | --program-transf \
1249   | --program-trans | --program-tran \
1250   | --progr-tra | --program-tr | --program-t)
1251     ac_prev=program_transform_name ;;
1252   -program-transform-name=* | --program-transform-name=* \
1253   | --program-transform-nam=* | --program-transform-na=* \
1254   | --program-transform-n=* | --program-transform-=* \
1255   | --program-transform=* | --program-transfor=* \
1256   | --program-transfo=* | --program-transf=* \
1257   | --program-trans=* | --program-tran=* \
1258   | --progr-tra=* | --program-tr=* | --program-t=*)
1259     program_transform_name=$ac_optarg ;;
1260
1261   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1262     ac_prev=pdfdir ;;
1263   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1264     pdfdir=$ac_optarg ;;
1265
1266   -psdir | --psdir | --psdi | --psd | --ps)
1267     ac_prev=psdir ;;
1268   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1269     psdir=$ac_optarg ;;
1270
1271   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1272   | -silent | --silent | --silen | --sile | --sil)
1273     silent=yes ;;
1274
1275   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1276     ac_prev=sbindir ;;
1277   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1278   | --sbi=* | --sb=*)
1279     sbindir=$ac_optarg ;;
1280
1281   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1282   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1283   | --sharedst | --shareds | --shared | --share | --shar \
1284   | --sha | --sh)
1285     ac_prev=sharedstatedir ;;
1286   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1287   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1288   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1289   | --sha=* | --sh=*)
1290     sharedstatedir=$ac_optarg ;;
1291
1292   -site | --site | --sit)
1293     ac_prev=site ;;
1294   -site=* | --site=* | --sit=*)
1295     site=$ac_optarg ;;
1296
1297   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1298     ac_prev=srcdir ;;
1299   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1300     srcdir=$ac_optarg ;;
1301
1302   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1303   | --syscon | --sysco | --sysc | --sys | --sy)
1304     ac_prev=sysconfdir ;;
1305   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1306   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1307     sysconfdir=$ac_optarg ;;
1308
1309   -target | --target | --targe | --targ | --tar | --ta | --t)
1310     ac_prev=target_alias ;;
1311   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1312     target_alias=$ac_optarg ;;
1313
1314   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1315     verbose=yes ;;
1316
1317   -version | --version | --versio | --versi | --vers | -V)
1318     ac_init_version=: ;;
1319
1320   -with-* | --with-*)
1321     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1322     # Reject names that are not valid shell variable names.
1323     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1324       as_fn_error $? "invalid package name: $ac_useropt"
1325     ac_useropt_orig=$ac_useropt
1326     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1327     case $ac_user_opts in
1328       *"
1329 "with_$ac_useropt"
1330 "*) ;;
1331       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1332          ac_unrecognized_sep=', ';;
1333     esac
1334     eval with_$ac_useropt=\$ac_optarg ;;
1335
1336   -without-* | --without-*)
1337     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1338     # Reject names that are not valid shell variable names.
1339     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1340       as_fn_error $? "invalid package name: $ac_useropt"
1341     ac_useropt_orig=$ac_useropt
1342     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343     case $ac_user_opts in
1344       *"
1345 "with_$ac_useropt"
1346 "*) ;;
1347       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1348          ac_unrecognized_sep=', ';;
1349     esac
1350     eval with_$ac_useropt=no ;;
1351
1352   --x)
1353     # Obsolete; use --with-x.
1354     with_x=yes ;;
1355
1356   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1357   | --x-incl | --x-inc | --x-in | --x-i)
1358     ac_prev=x_includes ;;
1359   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1360   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1361     x_includes=$ac_optarg ;;
1362
1363   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1364   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1365     ac_prev=x_libraries ;;
1366   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1367   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1368     x_libraries=$ac_optarg ;;
1369
1370   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1371 Try \`$0 --help' for more information"
1372     ;;
1373
1374   *=*)
1375     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1376     # Reject names that are not valid shell variable names.
1377     case $ac_envvar in #(
1378       '' | [0-9]* | *[!_$as_cr_alnum]* )
1379       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1380     esac
1381     eval $ac_envvar=\$ac_optarg
1382     export $ac_envvar ;;
1383
1384   *)
1385     # FIXME: should be removed in autoconf 3.0.
1386     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1387     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1389     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1390     ;;
1391
1392   esac
1393 done
1394
1395 if test -n "$ac_prev"; then
1396   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1397   as_fn_error $? "missing argument to $ac_option"
1398 fi
1399
1400 if test -n "$ac_unrecognized_opts"; then
1401   case $enable_option_checking in
1402     no) ;;
1403     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1404     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1405   esac
1406 fi
1407
1408 # Check all directory arguments for consistency.
1409 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1410                 datadir sysconfdir sharedstatedir localstatedir includedir \
1411                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1412                 libdir localedir mandir
1413 do
1414   eval ac_val=\$$ac_var
1415   # Remove trailing slashes.
1416   case $ac_val in
1417     */ )
1418       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1419       eval $ac_var=\$ac_val;;
1420   esac
1421   # Be sure to have absolute directory names.
1422   case $ac_val in
1423     [\\/$]* | ?:[\\/]* )  continue;;
1424     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1425   esac
1426   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1427 done
1428
1429 # There might be people who depend on the old broken behavior: `$host'
1430 # used to hold the argument of --host etc.
1431 # FIXME: To remove some day.
1432 build=$build_alias
1433 host=$host_alias
1434 target=$target_alias
1435
1436 # FIXME: To remove some day.
1437 if test "x$host_alias" != x; then
1438   if test "x$build_alias" = x; then
1439     cross_compiling=maybe
1440     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1441     If a cross compiler is detected then cross compile mode will be used" >&2
1442   elif test "x$build_alias" != "x$host_alias"; then
1443     cross_compiling=yes
1444   fi
1445 fi
1446
1447 ac_tool_prefix=
1448 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1449
1450 test "$silent" = yes && exec 6>/dev/null
1451
1452
1453 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1454 ac_ls_di=`ls -di .` &&
1455 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1456   as_fn_error $? "working directory cannot be determined"
1457 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1458   as_fn_error $? "pwd does not report name of working directory"
1459
1460
1461 # Find the source files, if location was not specified.
1462 if test -z "$srcdir"; then
1463   ac_srcdir_defaulted=yes
1464   # Try the directory containing this script, then the parent directory.
1465   ac_confdir=`$as_dirname -- "$as_myself" ||
1466 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1467          X"$as_myself" : 'X\(//\)[^/]' \| \
1468          X"$as_myself" : 'X\(//\)$' \| \
1469          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1470 $as_echo X"$as_myself" |
1471     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1472             s//\1/
1473             q
1474           }
1475           /^X\(\/\/\)[^/].*/{
1476             s//\1/
1477             q
1478           }
1479           /^X\(\/\/\)$/{
1480             s//\1/
1481             q
1482           }
1483           /^X\(\/\).*/{
1484             s//\1/
1485             q
1486           }
1487           s/.*/./; q'`
1488   srcdir=$ac_confdir
1489   if test ! -r "$srcdir/$ac_unique_file"; then
1490     srcdir=..
1491   fi
1492 else
1493   ac_srcdir_defaulted=no
1494 fi
1495 if test ! -r "$srcdir/$ac_unique_file"; then
1496   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1497   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1498 fi
1499 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1500 ac_abs_confdir=`(
1501         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1502         pwd)`
1503 # When building in place, set srcdir=.
1504 if test "$ac_abs_confdir" = "$ac_pwd"; then
1505   srcdir=.
1506 fi
1507 # Remove unnecessary trailing slashes from srcdir.
1508 # Double slashes in file names in object file debugging info
1509 # mess up M-x gdb in Emacs.
1510 case $srcdir in
1511 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1512 esac
1513 for ac_var in $ac_precious_vars; do
1514   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1515   eval ac_env_${ac_var}_value=\$${ac_var}
1516   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1517   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1518 done
1519
1520 #
1521 # Report the --help message.
1522 #
1523 if test "$ac_init_help" = "long"; then
1524   # Omit some internal or obsolete options to make the list less imposing.
1525   # This message is too long to be a string in the A/UX 3.1 sh.
1526   cat <<_ACEOF
1527 \`configure' configures extension 1.0 to adapt to many kinds of systems.
1528
1529 Usage: $0 [OPTION]... [VAR=VALUE]...
1530
1531 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1532 VAR=VALUE.  See below for descriptions of some of the useful variables.
1533
1534 Defaults for the options are specified in brackets.
1535
1536 Configuration:
1537   -h, --help              display this help and exit
1538       --help=short        display options specific to this package
1539       --help=recursive    display the short help of all the included packages
1540   -V, --version           display version information and exit
1541   -q, --quiet, --silent   do not print \`checking ...' messages
1542       --cache-file=FILE   cache test results in FILE [disabled]
1543   -C, --config-cache      alias for \`--cache-file=config.cache'
1544   -n, --no-create         do not create output files
1545       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1546
1547 Installation directories:
1548   --prefix=PREFIX         install architecture-independent files in PREFIX
1549                           [$ac_default_prefix]
1550   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1551                           [PREFIX]
1552
1553 By default, \`make install' will install all the files in
1554 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1555 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1556 for instance \`--prefix=\$HOME'.
1557
1558 For better control, use the options below.
1559
1560 Fine tuning of the installation directories:
1561   --bindir=DIR            user executables [EPREFIX/bin]
1562   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1563   --libexecdir=DIR        program executables [EPREFIX/libexec]
1564   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1565   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1566   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1567   --libdir=DIR            object code libraries [EPREFIX/lib]
1568   --includedir=DIR        C header files [PREFIX/include]
1569   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1570   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1571   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1572   --infodir=DIR           info documentation [DATAROOTDIR/info]
1573   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1574   --mandir=DIR            man documentation [DATAROOTDIR/man]
1575   --docdir=DIR            documentation root [DATAROOTDIR/doc/extension]
1576   --htmldir=DIR           html documentation [DOCDIR]
1577   --dvidir=DIR            dvi documentation [DOCDIR]
1578   --pdfdir=DIR            pdf documentation [DOCDIR]
1579   --psdir=DIR             ps documentation [DOCDIR]
1580 _ACEOF
1581
1582   cat <<\_ACEOF
1583
1584 Program names:
1585   --program-prefix=PREFIX            prepend PREFIX to installed program names
1586   --program-suffix=SUFFIX            append SUFFIX to installed program names
1587   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1588
1589 System types:
1590   --build=BUILD     configure for building on BUILD [guessed]
1591   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1592 _ACEOF
1593 fi
1594
1595 if test -n "$ac_init_help"; then
1596   case $ac_init_help in
1597      short | recursive ) echo "Configuration of extension 1.0:";;
1598    esac
1599   cat <<\_ACEOF
1600
1601 Optional Features:
1602   --disable-option-checking  ignore unrecognized --enable/--with options
1603   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1604   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1605   --enable-maintainer-mode  enable make rules and dependencies not useful
1606                           (and sometimes confusing) to the casual installer
1607   --disable-dependency-tracking  speeds up one-time build
1608   --enable-dependency-tracking   do not reject slow dependency extractors
1609   --enable-shared[=PKGS]  build shared libraries [default=yes]
1610   --enable-static[=PKGS]  build static libraries [default=yes]
1611   --enable-fast-install[=PKGS]
1612                           optimize for fast installation [default=yes]
1613   --disable-libtool-lock  avoid locking (might break parallel builds)
1614   --enable-ext-encodebin  using encodebin
1615   --enable-ext-avsystem   using avsystem
1616   --enable-ext-evasimagesink
1617                           using evasimagesink
1618   --enable-ext-gstreamer-camera
1619                           using gstreamer-camera
1620   --enable-ext-gstreamer-audio
1621                           using gstreamer-audio
1622   --enable-ext-drmsrc     using drmsrc
1623   --enable-ext-toggle     using toggle
1624   --enable-i386           i386 build
1625
1626 Optional Packages:
1627   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1628   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1629   --with-pic              try to use only PIC/non-PIC objects [default=use
1630                           both]
1631   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1632
1633 Some influential environment variables:
1634   CC          C compiler command
1635   CFLAGS      C compiler flags
1636   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1637               nonstandard directory <lib dir>
1638   LIBS        libraries to pass to the linker, e.g. -l<library>
1639   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1640               you have headers in a nonstandard directory <include dir>
1641   CXX         C++ compiler command
1642   CXXFLAGS    C++ compiler flags
1643   CPP         C preprocessor
1644   CXXCPP      C++ preprocessor
1645   PKG_CONFIG  path to pkg-config utility
1646   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1647   GST_LIBS    linker flags for GST, overriding pkg-config
1648   GST_BASE_CFLAGS
1649               C compiler flags for GST_BASE, overriding pkg-config
1650   GST_BASE_LIBS
1651               linker flags for GST_BASE, overriding pkg-config
1652   GSTPB_BASE_CFLAGS
1653               C compiler flags for GSTPB_BASE, overriding pkg-config
1654   GSTPB_BASE_LIBS
1655               linker flags for GSTPB_BASE, overriding pkg-config
1656   GSTCTRL_CFLAGS
1657               C compiler flags for GSTCTRL, overriding pkg-config
1658   GSTCTRL_LIBS
1659               linker flags for GSTCTRL, overriding pkg-config
1660   GST_AUDIO_CFLAGS
1661               C compiler flags for GST_AUDIO, overriding pkg-config
1662   GST_AUDIO_LIBS
1663               linker flags for GST_AUDIO, overriding pkg-config
1664   GST_VIDEO_CFLAGS
1665               C compiler flags for GST_VIDEO, overriding pkg-config
1666   GST_VIDEO_LIBS
1667               linker flags for GST_VIDEO, overriding pkg-config
1668   GST_INTERFACES_CFLAGS
1669               C compiler flags for GST_INTERFACES, overriding pkg-config
1670   GST_INTERFACES_LIBS
1671               linker flags for GST_INTERFACES, overriding pkg-config
1672   MMTA_CFLAGS C compiler flags for MMTA, overriding pkg-config
1673   MMTA_LIBS   linker flags for MMTA, overriding pkg-config
1674   EFL_CFLAGS  C compiler flags for EFL, overriding pkg-config
1675   EFL_LIBS    linker flags for EFL, overriding pkg-config
1676   AVSYSCAMERA_CFLAGS
1677               C compiler flags for AVSYSCAMERA, overriding pkg-config
1678   AVSYSCAMERA_LIBS
1679               linker flags for AVSYSCAMERA, overriding pkg-config
1680   AVSYSAUDIO_CFLAGS
1681               C compiler flags for AVSYSAUDIO, overriding pkg-config
1682   AVSYSAUDIO_LIBS
1683               linker flags for AVSYSAUDIO, overriding pkg-config
1684   CAMSRCJPEGENC_CFLAGS
1685               C compiler flags for CAMSRCJPEGENC, overriding pkg-config
1686   CAMSRCJPEGENC_LIBS
1687               linker flags for CAMSRCJPEGENC, overriding pkg-config
1688   DRM_SERVICE_CFLAGS
1689               C compiler flags for DRM_SERVICE, overriding pkg-config
1690   DRM_SERVICE_LIBS
1691               linker flags for DRM_SERVICE, overriding pkg-config
1692
1693 Use these variables to override the choices made by `configure' or to help
1694 it to find libraries and programs with nonstandard names/locations.
1695
1696 Report bugs to the package provider.
1697 _ACEOF
1698 ac_status=$?
1699 fi
1700
1701 if test "$ac_init_help" = "recursive"; then
1702   # If there are subdirs, report their specific --help.
1703   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1704     test -d "$ac_dir" ||
1705       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1706       continue
1707     ac_builddir=.
1708
1709 case "$ac_dir" in
1710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1711 *)
1712   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1713   # A ".." for each directory in $ac_dir_suffix.
1714   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1715   case $ac_top_builddir_sub in
1716   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1718   esac ;;
1719 esac
1720 ac_abs_top_builddir=$ac_pwd
1721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1722 # for backward compatibility:
1723 ac_top_builddir=$ac_top_build_prefix
1724
1725 case $srcdir in
1726   .)  # We are building in place.
1727     ac_srcdir=.
1728     ac_top_srcdir=$ac_top_builddir_sub
1729     ac_abs_top_srcdir=$ac_pwd ;;
1730   [\\/]* | ?:[\\/]* )  # Absolute name.
1731     ac_srcdir=$srcdir$ac_dir_suffix;
1732     ac_top_srcdir=$srcdir
1733     ac_abs_top_srcdir=$srcdir ;;
1734   *) # Relative name.
1735     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1736     ac_top_srcdir=$ac_top_build_prefix$srcdir
1737     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1738 esac
1739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1740
1741     cd "$ac_dir" || { ac_status=$?; continue; }
1742     # Check for guested configure.
1743     if test -f "$ac_srcdir/configure.gnu"; then
1744       echo &&
1745       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1746     elif test -f "$ac_srcdir/configure"; then
1747       echo &&
1748       $SHELL "$ac_srcdir/configure" --help=recursive
1749     else
1750       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1751     fi || ac_status=$?
1752     cd "$ac_pwd" || { ac_status=$?; break; }
1753   done
1754 fi
1755
1756 test -n "$ac_init_help" && exit $ac_status
1757 if $ac_init_version; then
1758   cat <<\_ACEOF
1759 extension configure 1.0
1760 generated by GNU Autoconf 2.67
1761
1762 Copyright (C) 2010 Free Software Foundation, Inc.
1763 This configure script is free software; the Free Software Foundation
1764 gives unlimited permission to copy, distribute and modify it.
1765 _ACEOF
1766   exit
1767 fi
1768
1769 ## ------------------------ ##
1770 ## Autoconf initialization. ##
1771 ## ------------------------ ##
1772
1773 # ac_fn_c_try_compile LINENO
1774 # --------------------------
1775 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_compile ()
1777 {
1778   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779   rm -f conftest.$ac_objext
1780   if { { ac_try="$ac_compile"
1781 case "(($ac_try" in
1782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783   *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787   (eval "$ac_compile") 2>conftest.err
1788   ac_status=$?
1789   if test -s conftest.err; then
1790     grep -v '^ *+' conftest.err >conftest.er1
1791     cat conftest.er1 >&5
1792     mv -f conftest.er1 conftest.err
1793   fi
1794   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795   test $ac_status = 0; } && {
1796          test -z "$ac_c_werror_flag" ||
1797          test ! -s conftest.err
1798        } && test -s conftest.$ac_objext; then :
1799   ac_retval=0
1800 else
1801   $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1803
1804         ac_retval=1
1805 fi
1806   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807   as_fn_set_status $ac_retval
1808
1809 } # ac_fn_c_try_compile
1810
1811 # ac_fn_cxx_try_compile LINENO
1812 # ----------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_cxx_try_compile ()
1815 {
1816   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817   rm -f conftest.$ac_objext
1818   if { { ac_try="$ac_compile"
1819 case "(($ac_try" in
1820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821   *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825   (eval "$ac_compile") 2>conftest.err
1826   ac_status=$?
1827   if test -s conftest.err; then
1828     grep -v '^ *+' conftest.err >conftest.er1
1829     cat conftest.er1 >&5
1830     mv -f conftest.er1 conftest.err
1831   fi
1832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833   test $ac_status = 0; } && {
1834          test -z "$ac_cxx_werror_flag" ||
1835          test ! -s conftest.err
1836        } && test -s conftest.$ac_objext; then :
1837   ac_retval=0
1838 else
1839   $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842         ac_retval=1
1843 fi
1844   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845   as_fn_set_status $ac_retval
1846
1847 } # ac_fn_cxx_try_compile
1848
1849 # ac_fn_c_try_link LINENO
1850 # -----------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_c_try_link ()
1853 {
1854   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855   rm -f conftest.$ac_objext conftest$ac_exeext
1856   if { { ac_try="$ac_link"
1857 case "(($ac_try" in
1858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859   *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863   (eval "$ac_link") 2>conftest.err
1864   ac_status=$?
1865   if test -s conftest.err; then
1866     grep -v '^ *+' conftest.err >conftest.er1
1867     cat conftest.er1 >&5
1868     mv -f conftest.er1 conftest.err
1869   fi
1870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871   test $ac_status = 0; } && {
1872          test -z "$ac_c_werror_flag" ||
1873          test ! -s conftest.err
1874        } && test -s conftest$ac_exeext && {
1875          test "$cross_compiling" = yes ||
1876          $as_test_x conftest$ac_exeext
1877        }; then :
1878   ac_retval=0
1879 else
1880   $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1882
1883         ac_retval=1
1884 fi
1885   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1886   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1887   # interfere with the next link command; also delete a directory that is
1888   # left behind by Apple's compiler.  We do this before executing the actions.
1889   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1890   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891   as_fn_set_status $ac_retval
1892
1893 } # ac_fn_c_try_link
1894
1895 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1896 # -------------------------------------------------------
1897 # Tests whether HEADER exists and can be compiled using the include files in
1898 # INCLUDES, setting the cache variable VAR accordingly.
1899 ac_fn_c_check_header_compile ()
1900 {
1901   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if eval "test \"\${$3+set}\"" = set; then :
1905   $as_echo_n "(cached) " >&6
1906 else
1907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h.  */
1909 $4
1910 #include <$2>
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913   eval "$3=yes"
1914 else
1915   eval "$3=no"
1916 fi
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 fi
1919 eval ac_res=\$$3
1920                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1923
1924 } # ac_fn_c_check_header_compile
1925
1926 # ac_fn_c_try_cpp LINENO
1927 # ----------------------
1928 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1929 ac_fn_c_try_cpp ()
1930 {
1931   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932   if { { ac_try="$ac_cpp conftest.$ac_ext"
1933 case "(($ac_try" in
1934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935   *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1940   ac_status=$?
1941   if test -s conftest.err; then
1942     grep -v '^ *+' conftest.err >conftest.er1
1943     cat conftest.er1 >&5
1944     mv -f conftest.er1 conftest.err
1945   fi
1946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947   test $ac_status = 0; } > conftest.i && {
1948          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1949          test ! -s conftest.err
1950        }; then :
1951   ac_retval=0
1952 else
1953   $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1955
1956     ac_retval=1
1957 fi
1958   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959   as_fn_set_status $ac_retval
1960
1961 } # ac_fn_c_try_cpp
1962
1963 # ac_fn_c_try_run LINENO
1964 # ----------------------
1965 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1966 # that executables *can* be run.
1967 ac_fn_c_try_run ()
1968 {
1969   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970   if { { ac_try="$ac_link"
1971 case "(($ac_try" in
1972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973   *) ac_try_echo=$ac_try;;
1974 esac
1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976 $as_echo "$ac_try_echo"; } >&5
1977   (eval "$ac_link") 2>&5
1978   ac_status=$?
1979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1981   { { case "(($ac_try" in
1982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983   *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987   (eval "$ac_try") 2>&5
1988   ac_status=$?
1989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990   test $ac_status = 0; }; }; then :
1991   ac_retval=0
1992 else
1993   $as_echo "$as_me: program exited with status $ac_status" >&5
1994        $as_echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1996
1997        ac_retval=$ac_status
1998 fi
1999   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2000   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2001   as_fn_set_status $ac_retval
2002
2003 } # ac_fn_c_try_run
2004
2005 # ac_fn_c_check_func LINENO FUNC VAR
2006 # ----------------------------------
2007 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2008 ac_fn_c_check_func ()
2009 {
2010   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval "test \"\${$3+set}\"" = set; then :
2014   $as_echo_n "(cached) " >&6
2015 else
2016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h.  */
2018 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2020 #define $2 innocuous_$2
2021
2022 /* System header to define __stub macros and hopefully few prototypes,
2023     which can conflict with char $2 (); below.
2024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2025     <limits.h> exists even on freestanding compilers.  */
2026
2027 #ifdef __STDC__
2028 # include <limits.h>
2029 #else
2030 # include <assert.h>
2031 #endif
2032
2033 #undef $2
2034
2035 /* Override any GCC internal prototype to avoid an error.
2036    Use char because int might match the return type of a GCC
2037    builtin and then its argument prototype would still apply.  */
2038 #ifdef __cplusplus
2039 extern "C"
2040 #endif
2041 char $2 ();
2042 /* The GNU C library defines this for functions which it implements
2043     to always fail with ENOSYS.  Some functions are actually named
2044     something starting with __ and the normal name is an alias.  */
2045 #if defined __stub_$2 || defined __stub___$2
2046 choke me
2047 #endif
2048
2049 int
2050 main ()
2051 {
2052 return $2 ();
2053   ;
2054   return 0;
2055 }
2056 _ACEOF
2057 if ac_fn_c_try_link "$LINENO"; then :
2058   eval "$3=yes"
2059 else
2060   eval "$3=no"
2061 fi
2062 rm -f core conftest.err conftest.$ac_objext \
2063     conftest$ac_exeext conftest.$ac_ext
2064 fi
2065 eval ac_res=\$$3
2066                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067 $as_echo "$ac_res" >&6; }
2068   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069
2070 } # ac_fn_c_check_func
2071
2072 # ac_fn_cxx_try_cpp LINENO
2073 # ------------------------
2074 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2075 ac_fn_cxx_try_cpp ()
2076 {
2077   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078   if { { ac_try="$ac_cpp conftest.$ac_ext"
2079 case "(($ac_try" in
2080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2081   *) ac_try_echo=$ac_try;;
2082 esac
2083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2084 $as_echo "$ac_try_echo"; } >&5
2085   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2086   ac_status=$?
2087   if test -s conftest.err; then
2088     grep -v '^ *+' conftest.err >conftest.er1
2089     cat conftest.er1 >&5
2090     mv -f conftest.er1 conftest.err
2091   fi
2092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2093   test $ac_status = 0; } > conftest.i && {
2094          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2095          test ! -s conftest.err
2096        }; then :
2097   ac_retval=0
2098 else
2099   $as_echo "$as_me: failed program was:" >&5
2100 sed 's/^/| /' conftest.$ac_ext >&5
2101
2102     ac_retval=1
2103 fi
2104   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2105   as_fn_set_status $ac_retval
2106
2107 } # ac_fn_cxx_try_cpp
2108
2109 # ac_fn_cxx_try_link LINENO
2110 # -------------------------
2111 # Try to link conftest.$ac_ext, and return whether this succeeded.
2112 ac_fn_cxx_try_link ()
2113 {
2114   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115   rm -f conftest.$ac_objext conftest$ac_exeext
2116   if { { ac_try="$ac_link"
2117 case "(($ac_try" in
2118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119   *) ac_try_echo=$ac_try;;
2120 esac
2121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2122 $as_echo "$ac_try_echo"; } >&5
2123   (eval "$ac_link") 2>conftest.err
2124   ac_status=$?
2125   if test -s conftest.err; then
2126     grep -v '^ *+' conftest.err >conftest.er1
2127     cat conftest.er1 >&5
2128     mv -f conftest.er1 conftest.err
2129   fi
2130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2131   test $ac_status = 0; } && {
2132          test -z "$ac_cxx_werror_flag" ||
2133          test ! -s conftest.err
2134        } && test -s conftest$ac_exeext && {
2135          test "$cross_compiling" = yes ||
2136          $as_test_x conftest$ac_exeext
2137        }; then :
2138   ac_retval=0
2139 else
2140   $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.$ac_ext >&5
2142
2143         ac_retval=1
2144 fi
2145   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2146   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2147   # interfere with the next link command; also delete a directory that is
2148   # left behind by Apple's compiler.  We do this before executing the actions.
2149   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2150   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2151   as_fn_set_status $ac_retval
2152
2153 } # ac_fn_cxx_try_link
2154 cat >config.log <<_ACEOF
2155 This file contains any messages produced by compilers while
2156 running configure, to aid debugging if configure makes a mistake.
2157
2158 It was created by extension $as_me 1.0, which was
2159 generated by GNU Autoconf 2.67.  Invocation command line was
2160
2161   $ $0 $@
2162
2163 _ACEOF
2164 exec 5>>config.log
2165 {
2166 cat <<_ASUNAME
2167 ## --------- ##
2168 ## Platform. ##
2169 ## --------- ##
2170
2171 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2172 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2173 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2174 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2175 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2176
2177 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2178 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2179
2180 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2181 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2182 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2183 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2184 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2185 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2186 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2187
2188 _ASUNAME
2189
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2192 do
2193   IFS=$as_save_IFS
2194   test -z "$as_dir" && as_dir=.
2195     $as_echo "PATH: $as_dir"
2196   done
2197 IFS=$as_save_IFS
2198
2199 } >&5
2200
2201 cat >&5 <<_ACEOF
2202
2203
2204 ## ----------- ##
2205 ## Core tests. ##
2206 ## ----------- ##
2207
2208 _ACEOF
2209
2210
2211 # Keep a trace of the command line.
2212 # Strip out --no-create and --no-recursion so they do not pile up.
2213 # Strip out --silent because we don't want to record it for future runs.
2214 # Also quote any args containing shell meta-characters.
2215 # Make two passes to allow for proper duplicate-argument suppression.
2216 ac_configure_args=
2217 ac_configure_args0=
2218 ac_configure_args1=
2219 ac_must_keep_next=false
2220 for ac_pass in 1 2
2221 do
2222   for ac_arg
2223   do
2224     case $ac_arg in
2225     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2226     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2227     | -silent | --silent | --silen | --sile | --sil)
2228       continue ;;
2229     *\'*)
2230       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2231     esac
2232     case $ac_pass in
2233     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2234     2)
2235       as_fn_append ac_configure_args1 " '$ac_arg'"
2236       if test $ac_must_keep_next = true; then
2237         ac_must_keep_next=false # Got value, back to normal.
2238       else
2239         case $ac_arg in
2240           *=* | --config-cache | -C | -disable-* | --disable-* \
2241           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2242           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2243           | -with-* | --with-* | -without-* | --without-* | --x)
2244             case "$ac_configure_args0 " in
2245               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2246             esac
2247             ;;
2248           -* ) ac_must_keep_next=true ;;
2249         esac
2250       fi
2251       as_fn_append ac_configure_args " '$ac_arg'"
2252       ;;
2253     esac
2254   done
2255 done
2256 { ac_configure_args0=; unset ac_configure_args0;}
2257 { ac_configure_args1=; unset ac_configure_args1;}
2258
2259 # When interrupted or exit'd, cleanup temporary files, and complete
2260 # config.log.  We remove comments because anyway the quotes in there
2261 # would cause problems or look ugly.
2262 # WARNING: Use '\'' to represent an apostrophe within the trap.
2263 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2264 trap 'exit_status=$?
2265   # Save into config.log some information that might help in debugging.
2266   {
2267     echo
2268
2269     $as_echo "## ---------------- ##
2270 ## Cache variables. ##
2271 ## ---------------- ##"
2272     echo
2273     # The following way of writing the cache mishandles newlines in values,
2274 (
2275   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2276     eval ac_val=\$$ac_var
2277     case $ac_val in #(
2278     *${as_nl}*)
2279       case $ac_var in #(
2280       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2281 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2282       esac
2283       case $ac_var in #(
2284       _ | IFS | as_nl) ;; #(
2285       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2286       *) { eval $ac_var=; unset $ac_var;} ;;
2287       esac ;;
2288     esac
2289   done
2290   (set) 2>&1 |
2291     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2292     *${as_nl}ac_space=\ *)
2293       sed -n \
2294         "s/'\''/'\''\\\\'\'''\''/g;
2295           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2296       ;; #(
2297     *)
2298       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2299       ;;
2300     esac |
2301     sort
2302 )
2303     echo
2304
2305     $as_echo "## ----------------- ##
2306 ## Output variables. ##
2307 ## ----------------- ##"
2308     echo
2309     for ac_var in $ac_subst_vars
2310     do
2311       eval ac_val=\$$ac_var
2312       case $ac_val in
2313       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2314       esac
2315       $as_echo "$ac_var='\''$ac_val'\''"
2316     done | sort
2317     echo
2318
2319     if test -n "$ac_subst_files"; then
2320       $as_echo "## ------------------- ##
2321 ## File substitutions. ##
2322 ## ------------------- ##"
2323       echo
2324       for ac_var in $ac_subst_files
2325       do
2326         eval ac_val=\$$ac_var
2327         case $ac_val in
2328         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2329         esac
2330         $as_echo "$ac_var='\''$ac_val'\''"
2331       done | sort
2332       echo
2333     fi
2334
2335     if test -s confdefs.h; then
2336       $as_echo "## ----------- ##
2337 ## confdefs.h. ##
2338 ## ----------- ##"
2339       echo
2340       cat confdefs.h
2341       echo
2342     fi
2343     test "$ac_signal" != 0 &&
2344       $as_echo "$as_me: caught signal $ac_signal"
2345     $as_echo "$as_me: exit $exit_status"
2346   } >&5
2347   rm -f core *.core core.conftest.* &&
2348     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2349     exit $exit_status
2350 ' 0
2351 for ac_signal in 1 2 13 15; do
2352   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2353 done
2354 ac_signal=0
2355
2356 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2357 rm -f -r conftest* confdefs.h
2358
2359 $as_echo "/* confdefs.h */" > confdefs.h
2360
2361 # Predefined preprocessor variables.
2362
2363 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_NAME "$PACKAGE_NAME"
2365 _ACEOF
2366
2367 cat >>confdefs.h <<_ACEOF
2368 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2369 _ACEOF
2370
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2373 _ACEOF
2374
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_STRING "$PACKAGE_STRING"
2377 _ACEOF
2378
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2381 _ACEOF
2382
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_URL "$PACKAGE_URL"
2385 _ACEOF
2386
2387
2388 # Let the site file select an alternate cache file if it wants to.
2389 # Prefer an explicitly selected file to automatically selected ones.
2390 ac_site_file1=NONE
2391 ac_site_file2=NONE
2392 if test -n "$CONFIG_SITE"; then
2393   # We do not want a PATH search for config.site.
2394   case $CONFIG_SITE in #((
2395     -*)  ac_site_file1=./$CONFIG_SITE;;
2396     */*) ac_site_file1=$CONFIG_SITE;;
2397     *)   ac_site_file1=./$CONFIG_SITE;;
2398   esac
2399 elif test "x$prefix" != xNONE; then
2400   ac_site_file1=$prefix/share/config.site
2401   ac_site_file2=$prefix/etc/config.site
2402 else
2403   ac_site_file1=$ac_default_prefix/share/config.site
2404   ac_site_file2=$ac_default_prefix/etc/config.site
2405 fi
2406 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2407 do
2408   test "x$ac_site_file" = xNONE && continue
2409   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2410     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2411 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2412     sed 's/^/| /' "$ac_site_file" >&5
2413     . "$ac_site_file" \
2414       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2416 as_fn_error $? "failed to load site script $ac_site_file
2417 See \`config.log' for more details" "$LINENO" 5 ; }
2418   fi
2419 done
2420
2421 if test -r "$cache_file"; then
2422   # Some versions of bash will fail to source /dev/null (special files
2423   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2424   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2425     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2426 $as_echo "$as_me: loading cache $cache_file" >&6;}
2427     case $cache_file in
2428       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2429       *)                      . "./$cache_file";;
2430     esac
2431   fi
2432 else
2433   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2434 $as_echo "$as_me: creating cache $cache_file" >&6;}
2435   >$cache_file
2436 fi
2437
2438 # Check that the precious variables saved in the cache have kept the same
2439 # value.
2440 ac_cache_corrupted=false
2441 for ac_var in $ac_precious_vars; do
2442   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2443   eval ac_new_set=\$ac_env_${ac_var}_set
2444   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2445   eval ac_new_val=\$ac_env_${ac_var}_value
2446   case $ac_old_set,$ac_new_set in
2447     set,)
2448       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2449 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2450       ac_cache_corrupted=: ;;
2451     ,set)
2452       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2453 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2454       ac_cache_corrupted=: ;;
2455     ,);;
2456     *)
2457       if test "x$ac_old_val" != "x$ac_new_val"; then
2458         # differences in whitespace do not lead to failure.
2459         ac_old_val_w=`echo x $ac_old_val`
2460         ac_new_val_w=`echo x $ac_new_val`
2461         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2462           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2463 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2464           ac_cache_corrupted=:
2465         else
2466           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2467 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2468           eval $ac_var=\$ac_old_val
2469         fi
2470         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2471 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2472         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2473 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2474       fi;;
2475   esac
2476   # Pass precious variables to config.status.
2477   if test "$ac_new_set" = set; then
2478     case $ac_new_val in
2479     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2480     *) ac_arg=$ac_var=$ac_new_val ;;
2481     esac
2482     case " $ac_configure_args " in
2483       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2484       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2485     esac
2486   fi
2487 done
2488 if $ac_cache_corrupted; then
2489   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2491   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2492 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2493   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2494 fi
2495 ## -------------------- ##
2496 ## Main body of script. ##
2497 ## -------------------- ##
2498
2499 ac_ext=c
2500 ac_cpp='$CPP $CPPFLAGS'
2501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2504
2505
2506
2507 GST_MAJORMINOR=0.10
2508 GST_REQUIRED=0.10.0
2509 GSTPB_REQUIRED=0.10.0
2510 EFL_REQUIRED=1.0.0
2511
2512
2513
2514   PACKAGE=gst-plugin
2515   GST_PLUGIN_VERSION_MAJOR=0
2516   GST_PLUGIN_VERSION_MINOR=10
2517   GST_PLUGIN_VERSION_MICRO=0
2518   NANO=1
2519   GST_PLUGIN_VERSION_NANO=$NANO
2520   if test "x$NANO" = "x" || test "x$NANO" = "x0";
2521   then
2522       { $as_echo "$as_me:${as_lineno-$LINENO}: configuring gst-plugin for release" >&5
2523 $as_echo "$as_me: configuring gst-plugin for release" >&6;}
2524       VERSION=0.10.0
2525       GST_PLUGIN_VERSION_RELEASE=1
2526             GST_PLUGIN_CVS="no"
2527   else
2528       { $as_echo "$as_me:${as_lineno-$LINENO}: configuring gst-plugin for development with nano $NANO" >&5
2529 $as_echo "$as_me: configuring gst-plugin for development with nano $NANO" >&6;}
2530       VERSION=0.10.0.$NANO
2531       GST_PLUGIN_VERSION_RELEASE=0.`date +%Y%m%d.%H%M%S`
2532             GST_PLUGIN_CVS="yes"
2533   fi
2534
2535   GST_PLUGIN_VERSION=$VERSION
2536
2537 cat >>confdefs.h <<_ACEOF
2538 #define GST_PLUGIN_VERSION "$GST_PLUGIN_VERSION"
2539 _ACEOF
2540
2541
2542
2543 cat >>confdefs.h <<_ACEOF
2544 #define GST_PLUGIN_VERSION_RELEASE "$GST_PLUGIN_VERSION_RELEASE"
2545 _ACEOF
2546
2547
2548
2549
2550
2551
2552
2553
2554 cat >>confdefs.h <<_ACEOF
2555 #define PACKAGE "$PACKAGE"
2556 _ACEOF
2557
2558
2559
2560 cat >>confdefs.h <<_ACEOF
2561 #define VERSION "$VERSION"
2562 _ACEOF
2563
2564
2565
2566
2567
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2569 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2570     # Check whether --enable-maintainer-mode was given.
2571 if test "${enable_maintainer_mode+set}" = set; then :
2572   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2573 else
2574   USE_MAINTAINER_MODE=no
2575 fi
2576
2577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2578 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2579    if test $USE_MAINTAINER_MODE = yes; then
2580   MAINTAINER_MODE_TRUE=
2581   MAINTAINER_MODE_FALSE='#'
2582 else
2583   MAINTAINER_MODE_TRUE='#'
2584   MAINTAINER_MODE_FALSE=
2585 fi
2586
2587   MAINT=$MAINTAINER_MODE_TRUE
2588
2589
2590
2591 #AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
2592 am__api_version='1.11'
2593
2594 ac_aux_dir=
2595 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2596   if test -f "$ac_dir/install-sh"; then
2597     ac_aux_dir=$ac_dir
2598     ac_install_sh="$ac_aux_dir/install-sh -c"
2599     break
2600   elif test -f "$ac_dir/install.sh"; then
2601     ac_aux_dir=$ac_dir
2602     ac_install_sh="$ac_aux_dir/install.sh -c"
2603     break
2604   elif test -f "$ac_dir/shtool"; then
2605     ac_aux_dir=$ac_dir
2606     ac_install_sh="$ac_aux_dir/shtool install -c"
2607     break
2608   fi
2609 done
2610 if test -z "$ac_aux_dir"; then
2611   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2612 fi
2613
2614 # These three variables are undocumented and unsupported,
2615 # and are intended to be withdrawn in a future Autoconf release.
2616 # They can cause serious problems if a builder's source tree is in a directory
2617 # whose full name contains unusual characters.
2618 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2619 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2620 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2621
2622
2623 # Find a good install program.  We prefer a C program (faster),
2624 # so one script is as good as another.  But avoid the broken or
2625 # incompatible versions:
2626 # SysV /etc/install, /usr/sbin/install
2627 # SunOS /usr/etc/install
2628 # IRIX /sbin/install
2629 # AIX /bin/install
2630 # AmigaOS /C/install, which installs bootblocks on floppy discs
2631 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2632 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2633 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2634 # OS/2's system install, which has a completely different semantic
2635 # ./install, which can be erroneously created by make from ./install.sh.
2636 # Reject install programs that cannot install multiple files.
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2638 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2639 if test -z "$INSTALL"; then
2640 if test "${ac_cv_path_install+set}" = set; then :
2641   $as_echo_n "(cached) " >&6
2642 else
2643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2645 do
2646   IFS=$as_save_IFS
2647   test -z "$as_dir" && as_dir=.
2648     # Account for people who put trailing slashes in PATH elements.
2649 case $as_dir/ in #((
2650   ./ | .// | /[cC]/* | \
2651   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2652   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2653   /usr/ucb/* ) ;;
2654   *)
2655     # OSF1 and SCO ODT 3.0 have their own names for install.
2656     # Don't use installbsd from OSF since it installs stuff as root
2657     # by default.
2658     for ac_prog in ginstall scoinst install; do
2659       for ac_exec_ext in '' $ac_executable_extensions; do
2660         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2661           if test $ac_prog = install &&
2662             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2663             # AIX install.  It has an incompatible calling convention.
2664             :
2665           elif test $ac_prog = install &&
2666             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2667             # program-specific install script used by HP pwplus--don't use.
2668             :
2669           else
2670             rm -rf conftest.one conftest.two conftest.dir
2671             echo one > conftest.one
2672             echo two > conftest.two
2673             mkdir conftest.dir
2674             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2675               test -s conftest.one && test -s conftest.two &&
2676               test -s conftest.dir/conftest.one &&
2677               test -s conftest.dir/conftest.two
2678             then
2679               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2680               break 3
2681             fi
2682           fi
2683         fi
2684       done
2685     done
2686     ;;
2687 esac
2688
2689   done
2690 IFS=$as_save_IFS
2691
2692 rm -rf conftest.one conftest.two conftest.dir
2693
2694 fi
2695   if test "${ac_cv_path_install+set}" = set; then
2696     INSTALL=$ac_cv_path_install
2697   else
2698     # As a last resort, use the slow shell script.  Don't cache a
2699     # value for INSTALL within a source directory, because that will
2700     # break other packages using the cache if that directory is
2701     # removed, or if the value is a relative name.
2702     INSTALL=$ac_install_sh
2703   fi
2704 fi
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2706 $as_echo "$INSTALL" >&6; }
2707
2708 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2709 # It thinks the first close brace ends the variable substitution.
2710 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2711
2712 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2713
2714 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2715
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2717 $as_echo_n "checking whether build environment is sane... " >&6; }
2718 # Just in case
2719 sleep 1
2720 echo timestamp > conftest.file
2721 # Reject unsafe characters in $srcdir or the absolute working directory
2722 # name.  Accept space and tab only in the latter.
2723 am_lf='
2724 '
2725 case `pwd` in
2726   *[\\\"\#\$\&\'\`$am_lf]*)
2727     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2728 esac
2729 case $srcdir in
2730   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2731     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2732 esac
2733
2734 # Do `set' in a subshell so we don't clobber the current shell's
2735 # arguments.  Must try -L first in case configure is actually a
2736 # symlink; some systems play weird games with the mod time of symlinks
2737 # (eg FreeBSD returns the mod time of the symlink's containing
2738 # directory).
2739 if (
2740    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2741    if test "$*" = "X"; then
2742       # -L didn't work.
2743       set X `ls -t "$srcdir/configure" conftest.file`
2744    fi
2745    rm -f conftest.file
2746    if test "$*" != "X $srcdir/configure conftest.file" \
2747       && test "$*" != "X conftest.file $srcdir/configure"; then
2748
2749       # If neither matched, then we have a broken ls.  This can happen
2750       # if, for instance, CONFIG_SHELL is bash and it inherits a
2751       # broken ls alias from the environment.  This has actually
2752       # happened.  Such a system could not be considered "sane".
2753       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2754 alias in your environment" "$LINENO" 5
2755    fi
2756
2757    test "$2" = conftest.file
2758    )
2759 then
2760    # Ok.
2761    :
2762 else
2763    as_fn_error $? "newly created file is older than distributed files!
2764 Check your system clock" "$LINENO" 5
2765 fi
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2767 $as_echo "yes" >&6; }
2768 test "$program_prefix" != NONE &&
2769   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2770 # Use a double $ so make ignores it.
2771 test "$program_suffix" != NONE &&
2772   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2773 # Double any \ or $.
2774 # By default was `s,x,x', remove it if useless.
2775 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2776 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2777
2778 # expand $ac_aux_dir to an absolute path
2779 am_aux_dir=`cd $ac_aux_dir && pwd`
2780
2781 if test x"${MISSING+set}" != xset; then
2782   case $am_aux_dir in
2783   *\ * | *\     *)
2784     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2785   *)
2786     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2787   esac
2788 fi
2789 # Use eval to expand $SHELL
2790 if eval "$MISSING --run true"; then
2791   am_missing_run="$MISSING --run "
2792 else
2793   am_missing_run=
2794   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2795 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2796 fi
2797
2798 if test x"${install_sh}" != xset; then
2799   case $am_aux_dir in
2800   *\ * | *\     *)
2801     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2802   *)
2803     install_sh="\${SHELL} $am_aux_dir/install-sh"
2804   esac
2805 fi
2806
2807 # Installed binaries are usually stripped using `strip' when the user
2808 # run `make install-strip'.  However `strip' might not be the right
2809 # tool to use in cross-compilation environments, therefore Automake
2810 # will honor the `STRIP' environment variable to overrule this program.
2811 if test "$cross_compiling" != no; then
2812   if test -n "$ac_tool_prefix"; then
2813   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2814 set dummy ${ac_tool_prefix}strip; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if test "${ac_cv_prog_STRIP+set}" = set; then :
2818   $as_echo_n "(cached) " >&6
2819 else
2820   if test -n "$STRIP"; then
2821   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
2827   test -z "$as_dir" && as_dir=.
2828     for ac_exec_ext in '' $ac_executable_extensions; do
2829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832     break 2
2833   fi
2834 done
2835   done
2836 IFS=$as_save_IFS
2837
2838 fi
2839 fi
2840 STRIP=$ac_cv_prog_STRIP
2841 if test -n "$STRIP"; then
2842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2843 $as_echo "$STRIP" >&6; }
2844 else
2845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2847 fi
2848
2849
2850 fi
2851 if test -z "$ac_cv_prog_STRIP"; then
2852   ac_ct_STRIP=$STRIP
2853   # Extract the first word of "strip", so it can be a program name with args.
2854 set dummy strip; ac_word=$2
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2856 $as_echo_n "checking for $ac_word... " >&6; }
2857 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2858   $as_echo_n "(cached) " >&6
2859 else
2860   if test -n "$ac_ct_STRIP"; then
2861   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866   IFS=$as_save_IFS
2867   test -z "$as_dir" && as_dir=.
2868     for ac_exec_ext in '' $ac_executable_extensions; do
2869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870     ac_cv_prog_ac_ct_STRIP="strip"
2871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2872     break 2
2873   fi
2874 done
2875   done
2876 IFS=$as_save_IFS
2877
2878 fi
2879 fi
2880 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2881 if test -n "$ac_ct_STRIP"; then
2882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2883 $as_echo "$ac_ct_STRIP" >&6; }
2884 else
2885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886 $as_echo "no" >&6; }
2887 fi
2888
2889   if test "x$ac_ct_STRIP" = x; then
2890     STRIP=":"
2891   else
2892     case $cross_compiling:$ac_tool_warned in
2893 yes:)
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2896 ac_tool_warned=yes ;;
2897 esac
2898     STRIP=$ac_ct_STRIP
2899   fi
2900 else
2901   STRIP="$ac_cv_prog_STRIP"
2902 fi
2903
2904 fi
2905 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2906
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2908 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2909 if test -z "$MKDIR_P"; then
2910   if test "${ac_cv_path_mkdir+set}" = set; then :
2911   $as_echo_n "(cached) " >&6
2912 else
2913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2915 do
2916   IFS=$as_save_IFS
2917   test -z "$as_dir" && as_dir=.
2918     for ac_prog in mkdir gmkdir; do
2919          for ac_exec_ext in '' $ac_executable_extensions; do
2920            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2921            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2922              'mkdir (GNU coreutils) '* | \
2923              'mkdir (coreutils) '* | \
2924              'mkdir (fileutils) '4.1*)
2925                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2926                break 3;;
2927            esac
2928          done
2929        done
2930   done
2931 IFS=$as_save_IFS
2932
2933 fi
2934
2935   test -d ./--version && rmdir ./--version
2936   if test "${ac_cv_path_mkdir+set}" = set; then
2937     MKDIR_P="$ac_cv_path_mkdir -p"
2938   else
2939     # As a last resort, use the slow shell script.  Don't cache a
2940     # value for MKDIR_P within a source directory, because that will
2941     # break other packages using the cache if that directory is
2942     # removed, or if the value is a relative name.
2943     MKDIR_P="$ac_install_sh -d"
2944   fi
2945 fi
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2947 $as_echo "$MKDIR_P" >&6; }
2948
2949 mkdir_p="$MKDIR_P"
2950 case $mkdir_p in
2951   [\\/$]* | ?:[\\/]*) ;;
2952   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2953 esac
2954
2955 for ac_prog in gawk mawk nawk awk
2956 do
2957   # Extract the first word of "$ac_prog", so it can be a program name with args.
2958 set dummy $ac_prog; ac_word=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if test "${ac_cv_prog_AWK+set}" = set; then :
2962   $as_echo_n "(cached) " >&6
2963 else
2964   if test -n "$AWK"; then
2965   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2969 do
2970   IFS=$as_save_IFS
2971   test -z "$as_dir" && as_dir=.
2972     for ac_exec_ext in '' $ac_executable_extensions; do
2973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974     ac_cv_prog_AWK="$ac_prog"
2975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976     break 2
2977   fi
2978 done
2979   done
2980 IFS=$as_save_IFS
2981
2982 fi
2983 fi
2984 AWK=$ac_cv_prog_AWK
2985 if test -n "$AWK"; then
2986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2987 $as_echo "$AWK" >&6; }
2988 else
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2991 fi
2992
2993
2994   test -n "$AWK" && break
2995 done
2996
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2998 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2999 set x ${MAKE-make}
3000 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3001 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3002   $as_echo_n "(cached) " >&6
3003 else
3004   cat >conftest.make <<\_ACEOF
3005 SHELL = /bin/sh
3006 all:
3007         @echo '@@@%%%=$(MAKE)=@@@%%%'
3008 _ACEOF
3009 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3010 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3011   *@@@%%%=?*=@@@%%%*)
3012     eval ac_cv_prog_make_${ac_make}_set=yes;;
3013   *)
3014     eval ac_cv_prog_make_${ac_make}_set=no;;
3015 esac
3016 rm -f conftest.make
3017 fi
3018 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3020 $as_echo "yes" >&6; }
3021   SET_MAKE=
3022 else
3023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024 $as_echo "no" >&6; }
3025   SET_MAKE="MAKE=${MAKE-make}"
3026 fi
3027
3028 rm -rf .tst 2>/dev/null
3029 mkdir .tst 2>/dev/null
3030 if test -d .tst; then
3031   am__leading_dot=.
3032 else
3033   am__leading_dot=_
3034 fi
3035 rmdir .tst 2>/dev/null
3036
3037 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3038   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3039   # is not polluted with repeated "-I."
3040   am__isrc=' -I$(srcdir)'
3041   # test to see if srcdir already configured
3042   if test -f $srcdir/config.status; then
3043     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3044   fi
3045 fi
3046
3047 # test whether we have cygpath
3048 if test -z "$CYGPATH_W"; then
3049   if (cygpath --version) >/dev/null 2>/dev/null; then
3050     CYGPATH_W='cygpath -w'
3051   else
3052     CYGPATH_W=echo
3053   fi
3054 fi
3055
3056
3057 # Define the identity of the package.
3058  PACKAGE='extension'
3059  VERSION='1.0'
3060
3061
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE "$PACKAGE"
3064 _ACEOF
3065
3066
3067 cat >>confdefs.h <<_ACEOF
3068 #define VERSION "$VERSION"
3069 _ACEOF
3070
3071 # Some tools Automake needs.
3072
3073 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3074
3075
3076 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3077
3078
3079 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3080
3081
3082 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3083
3084
3085 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3086
3087 # We need awk for the "check" target.  The system "awk" is bad on
3088 # some platforms.
3089 # Always define AMTAR for backward compatibility.
3090
3091 AMTAR=${AMTAR-"${am_missing_run}tar"}
3092
3093 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3094
3095
3096
3097
3098
3099
3100 #AC_CONFIG_MACRO_DIR([m4])
3101
3102
3103 ACLOCAL_AMFLAGS="-I m4 -I common/m4"
3104
3105
3106 ac_config_headers="$ac_config_headers config.h"
3107
3108
3109 ac_ext=c
3110 ac_cpp='$CPP $CPPFLAGS'
3111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114 if test -n "$ac_tool_prefix"; then
3115   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3116 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if test "${ac_cv_prog_CC+set}" = set; then :
3120   $as_echo_n "(cached) " >&6
3121 else
3122   if test -n "$CC"; then
3123   ac_cv_prog_CC="$CC" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128   IFS=$as_save_IFS
3129   test -z "$as_dir" && as_dir=.
3130     for ac_exec_ext in '' $ac_executable_extensions; do
3131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134     break 2
3135   fi
3136 done
3137   done
3138 IFS=$as_save_IFS
3139
3140 fi
3141 fi
3142 CC=$ac_cv_prog_CC
3143 if test -n "$CC"; then
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3145 $as_echo "$CC" >&6; }
3146 else
3147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3149 fi
3150
3151
3152 fi
3153 if test -z "$ac_cv_prog_CC"; then
3154   ac_ct_CC=$CC
3155   # Extract the first word of "gcc", so it can be a program name with args.
3156 set dummy gcc; ac_word=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3160   $as_echo_n "(cached) " >&6
3161 else
3162   if test -n "$ac_ct_CC"; then
3163   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3167 do
3168   IFS=$as_save_IFS
3169   test -z "$as_dir" && as_dir=.
3170     for ac_exec_ext in '' $ac_executable_extensions; do
3171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3172     ac_cv_prog_ac_ct_CC="gcc"
3173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174     break 2
3175   fi
3176 done
3177   done
3178 IFS=$as_save_IFS
3179
3180 fi
3181 fi
3182 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3183 if test -n "$ac_ct_CC"; then
3184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3185 $as_echo "$ac_ct_CC" >&6; }
3186 else
3187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3189 fi
3190
3191   if test "x$ac_ct_CC" = x; then
3192     CC=""
3193   else
3194     case $cross_compiling:$ac_tool_warned in
3195 yes:)
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3198 ac_tool_warned=yes ;;
3199 esac
3200     CC=$ac_ct_CC
3201   fi
3202 else
3203   CC="$ac_cv_prog_CC"
3204 fi
3205
3206 if test -z "$CC"; then
3207           if test -n "$ac_tool_prefix"; then
3208     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3209 set dummy ${ac_tool_prefix}cc; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if test "${ac_cv_prog_CC+set}" = set; then :
3213   $as_echo_n "(cached) " >&6
3214 else
3215   if test -n "$CC"; then
3216   ac_cv_prog_CC="$CC" # Let the user override the test.
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
3221   IFS=$as_save_IFS
3222   test -z "$as_dir" && as_dir=.
3223     for ac_exec_ext in '' $ac_executable_extensions; do
3224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3225     ac_cv_prog_CC="${ac_tool_prefix}cc"
3226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227     break 2
3228   fi
3229 done
3230   done
3231 IFS=$as_save_IFS
3232
3233 fi
3234 fi
3235 CC=$ac_cv_prog_CC
3236 if test -n "$CC"; then
3237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3238 $as_echo "$CC" >&6; }
3239 else
3240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3242 fi
3243
3244
3245   fi
3246 fi
3247 if test -z "$CC"; then
3248   # Extract the first word of "cc", so it can be a program name with args.
3249 set dummy cc; ac_word=$2
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251 $as_echo_n "checking for $ac_word... " >&6; }
3252 if test "${ac_cv_prog_CC+set}" = set; then :
3253   $as_echo_n "(cached) " >&6
3254 else
3255   if test -n "$CC"; then
3256   ac_cv_prog_CC="$CC" # Let the user override the test.
3257 else
3258   ac_prog_rejected=no
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262   IFS=$as_save_IFS
3263   test -z "$as_dir" && as_dir=.
3264     for ac_exec_ext in '' $ac_executable_extensions; do
3265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3267        ac_prog_rejected=yes
3268        continue
3269      fi
3270     ac_cv_prog_CC="cc"
3271     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3272     break 2
3273   fi
3274 done
3275   done
3276 IFS=$as_save_IFS
3277
3278 if test $ac_prog_rejected = yes; then
3279   # We found a bogon in the path, so make sure we never use it.
3280   set dummy $ac_cv_prog_CC
3281   shift
3282   if test $# != 0; then
3283     # We chose a different compiler from the bogus one.
3284     # However, it has the same basename, so the bogon will be chosen
3285     # first if we set CC to just the basename; use the full file name.
3286     shift
3287     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3288   fi
3289 fi
3290 fi
3291 fi
3292 CC=$ac_cv_prog_CC
3293 if test -n "$CC"; then
3294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3295 $as_echo "$CC" >&6; }
3296 else
3297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3299 fi
3300
3301
3302 fi
3303 if test -z "$CC"; then
3304   if test -n "$ac_tool_prefix"; then
3305   for ac_prog in cl.exe
3306   do
3307     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 $as_echo_n "checking for $ac_word... " >&6; }
3311 if test "${ac_cv_prog_CC+set}" = set; then :
3312   $as_echo_n "(cached) " >&6
3313 else
3314   if test -n "$CC"; then
3315   ac_cv_prog_CC="$CC" # Let the user override the test.
3316 else
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH
3319 do
3320   IFS=$as_save_IFS
3321   test -z "$as_dir" && as_dir=.
3322     for ac_exec_ext in '' $ac_executable_extensions; do
3323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3324     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326     break 2
3327   fi
3328 done
3329   done
3330 IFS=$as_save_IFS
3331
3332 fi
3333 fi
3334 CC=$ac_cv_prog_CC
3335 if test -n "$CC"; then
3336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3337 $as_echo "$CC" >&6; }
3338 else
3339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3341 fi
3342
3343
3344     test -n "$CC" && break
3345   done
3346 fi
3347 if test -z "$CC"; then
3348   ac_ct_CC=$CC
3349   for ac_prog in cl.exe
3350 do
3351   # Extract the first word of "$ac_prog", so it can be a program name with args.
3352 set dummy $ac_prog; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3356   $as_echo_n "(cached) " >&6
3357 else
3358   if test -n "$ac_ct_CC"; then
3359   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364   IFS=$as_save_IFS
3365   test -z "$as_dir" && as_dir=.
3366     for ac_exec_ext in '' $ac_executable_extensions; do
3367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3368     ac_cv_prog_ac_ct_CC="$ac_prog"
3369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370     break 2
3371   fi
3372 done
3373   done
3374 IFS=$as_save_IFS
3375
3376 fi
3377 fi
3378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3379 if test -n "$ac_ct_CC"; then
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3381 $as_echo "$ac_ct_CC" >&6; }
3382 else
3383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 fi
3386
3387
3388   test -n "$ac_ct_CC" && break
3389 done
3390
3391   if test "x$ac_ct_CC" = x; then
3392     CC=""
3393   else
3394     case $cross_compiling:$ac_tool_warned in
3395 yes:)
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3398 ac_tool_warned=yes ;;
3399 esac
3400     CC=$ac_ct_CC
3401   fi
3402 fi
3403
3404 fi
3405
3406
3407 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409 as_fn_error $? "no acceptable C compiler found in \$PATH
3410 See \`config.log' for more details" "$LINENO" 5 ; }
3411
3412 # Provide some information about the compiler.
3413 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3414 set X $ac_compile
3415 ac_compiler=$2
3416 for ac_option in --version -v -V -qversion; do
3417   { { ac_try="$ac_compiler $ac_option >&5"
3418 case "(($ac_try" in
3419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420   *) ac_try_echo=$ac_try;;
3421 esac
3422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423 $as_echo "$ac_try_echo"; } >&5
3424   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3425   ac_status=$?
3426   if test -s conftest.err; then
3427     sed '10a\
3428 ... rest of stderr output deleted ...
3429          10q' conftest.err >conftest.er1
3430     cat conftest.er1 >&5
3431   fi
3432   rm -f conftest.er1 conftest.err
3433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3434   test $ac_status = 0; }
3435 done
3436
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h.  */
3439
3440 int
3441 main ()
3442 {
3443
3444   ;
3445   return 0;
3446 }
3447 _ACEOF
3448 ac_clean_files_save=$ac_clean_files
3449 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3450 # Try to create an executable without -o first, disregard a.out.
3451 # It will help us diagnose broken compilers, and finding out an intuition
3452 # of exeext.
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3454 $as_echo_n "checking whether the C compiler works... " >&6; }
3455 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3456
3457 # The possible output files:
3458 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3459
3460 ac_rmfiles=
3461 for ac_file in $ac_files
3462 do
3463   case $ac_file in
3464     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3465     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3466   esac
3467 done
3468 rm -f $ac_rmfiles
3469
3470 if { { ac_try="$ac_link_default"
3471 case "(($ac_try" in
3472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473   *) ac_try_echo=$ac_try;;
3474 esac
3475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3476 $as_echo "$ac_try_echo"; } >&5
3477   (eval "$ac_link_default") 2>&5
3478   ac_status=$?
3479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480   test $ac_status = 0; }; then :
3481   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3482 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3483 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3484 # so that the user can short-circuit this test for compilers unknown to
3485 # Autoconf.
3486 for ac_file in $ac_files ''
3487 do
3488   test -f "$ac_file" || continue
3489   case $ac_file in
3490     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3491         ;;
3492     [ab].out )
3493         # We found the default executable, but exeext='' is most
3494         # certainly right.
3495         break;;
3496     *.* )
3497         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3498         then :; else
3499            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3500         fi
3501         # We set ac_cv_exeext here because the later test for it is not
3502         # safe: cross compilers may not add the suffix if given an `-o'
3503         # argument, so we may need to know it at that point already.
3504         # Even if this section looks crufty: it has the advantage of
3505         # actually working.
3506         break;;
3507     * )
3508         break;;
3509   esac
3510 done
3511 test "$ac_cv_exeext" = no && ac_cv_exeext=
3512
3513 else
3514   ac_file=''
3515 fi
3516 if test -z "$ac_file"; then :
3517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518 $as_echo "no" >&6; }
3519 $as_echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3521
3522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3524 as_fn_error 77 "C compiler cannot create executables
3525 See \`config.log' for more details" "$LINENO" 5 ; }
3526 else
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3528 $as_echo "yes" >&6; }
3529 fi
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3531 $as_echo_n "checking for C compiler default output file name... " >&6; }
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3533 $as_echo "$ac_file" >&6; }
3534 ac_exeext=$ac_cv_exeext
3535
3536 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3537 ac_clean_files=$ac_clean_files_save
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3539 $as_echo_n "checking for suffix of executables... " >&6; }
3540 if { { ac_try="$ac_link"
3541 case "(($ac_try" in
3542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543   *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547   (eval "$ac_link") 2>&5
3548   ac_status=$?
3549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550   test $ac_status = 0; }; then :
3551   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3552 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3553 # work properly (i.e., refer to `conftest.exe'), while it won't with
3554 # `rm'.
3555 for ac_file in conftest.exe conftest conftest.*; do
3556   test -f "$ac_file" || continue
3557   case $ac_file in
3558     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3559     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3560           break;;
3561     * ) break;;
3562   esac
3563 done
3564 else
3565   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3568 See \`config.log' for more details" "$LINENO" 5 ; }
3569 fi
3570 rm -f conftest conftest$ac_cv_exeext
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3572 $as_echo "$ac_cv_exeext" >&6; }
3573
3574 rm -f conftest.$ac_ext
3575 EXEEXT=$ac_cv_exeext
3576 ac_exeext=$EXEEXT
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h.  */
3579 #include <stdio.h>
3580 int
3581 main ()
3582 {
3583 FILE *f = fopen ("conftest.out", "w");
3584  return ferror (f) || fclose (f) != 0;
3585
3586   ;
3587   return 0;
3588 }
3589 _ACEOF
3590 ac_clean_files="$ac_clean_files conftest.out"
3591 # Check that the compiler produces executables we can run.  If not, either
3592 # the compiler is broken, or we cross compile.
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3594 $as_echo_n "checking whether we are cross compiling... " >&6; }
3595 if test "$cross_compiling" != yes; then
3596   { { ac_try="$ac_link"
3597 case "(($ac_try" in
3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599   *) ac_try_echo=$ac_try;;
3600 esac
3601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3602 $as_echo "$ac_try_echo"; } >&5
3603   (eval "$ac_link") 2>&5
3604   ac_status=$?
3605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3606   test $ac_status = 0; }
3607   if { ac_try='./conftest$ac_cv_exeext'
3608   { { case "(($ac_try" in
3609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610   *) ac_try_echo=$ac_try;;
3611 esac
3612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3613 $as_echo "$ac_try_echo"; } >&5
3614   (eval "$ac_try") 2>&5
3615   ac_status=$?
3616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617   test $ac_status = 0; }; }; then
3618     cross_compiling=no
3619   else
3620     if test "$cross_compiling" = maybe; then
3621         cross_compiling=yes
3622     else
3623         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625 as_fn_error $? "cannot run C compiled programs.
3626 If you meant to cross compile, use \`--host'.
3627 See \`config.log' for more details" "$LINENO" 5 ; }
3628     fi
3629   fi
3630 fi
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3632 $as_echo "$cross_compiling" >&6; }
3633
3634 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3635 ac_clean_files=$ac_clean_files_save
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3637 $as_echo_n "checking for suffix of object files... " >&6; }
3638 if test "${ac_cv_objext+set}" = set; then :
3639   $as_echo_n "(cached) " >&6
3640 else
3641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h.  */
3643
3644 int
3645 main ()
3646 {
3647
3648   ;
3649   return 0;
3650 }
3651 _ACEOF
3652 rm -f conftest.o conftest.obj
3653 if { { ac_try="$ac_compile"
3654 case "(($ac_try" in
3655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656   *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 $as_echo "$ac_try_echo"; } >&5
3660   (eval "$ac_compile") 2>&5
3661   ac_status=$?
3662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663   test $ac_status = 0; }; then :
3664   for ac_file in conftest.o conftest.obj conftest.*; do
3665   test -f "$ac_file" || continue;
3666   case $ac_file in
3667     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3668     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3669        break;;
3670   esac
3671 done
3672 else
3673   $as_echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3675
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error $? "cannot compute suffix of object files: cannot compile
3679 See \`config.log' for more details" "$LINENO" 5 ; }
3680 fi
3681 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3682 fi
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3684 $as_echo "$ac_cv_objext" >&6; }
3685 OBJEXT=$ac_cv_objext
3686 ac_objext=$OBJEXT
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3688 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3689 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3690   $as_echo_n "(cached) " >&6
3691 else
3692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h.  */
3694
3695 int
3696 main ()
3697 {
3698 #ifndef __GNUC__
3699        choke me
3700 #endif
3701
3702   ;
3703   return 0;
3704 }
3705 _ACEOF
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707   ac_compiler_gnu=yes
3708 else
3709   ac_compiler_gnu=no
3710 fi
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3713
3714 fi
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3716 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3717 if test $ac_compiler_gnu = yes; then
3718   GCC=yes
3719 else
3720   GCC=
3721 fi
3722 ac_test_CFLAGS=${CFLAGS+set}
3723 ac_save_CFLAGS=$CFLAGS
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3725 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3726 if test "${ac_cv_prog_cc_g+set}" = set; then :
3727   $as_echo_n "(cached) " >&6
3728 else
3729   ac_save_c_werror_flag=$ac_c_werror_flag
3730    ac_c_werror_flag=yes
3731    ac_cv_prog_cc_g=no
3732    CFLAGS="-g"
3733    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h.  */
3735
3736 int
3737 main ()
3738 {
3739
3740   ;
3741   return 0;
3742 }
3743 _ACEOF
3744 if ac_fn_c_try_compile "$LINENO"; then :
3745   ac_cv_prog_cc_g=yes
3746 else
3747   CFLAGS=""
3748       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h.  */
3750
3751 int
3752 main ()
3753 {
3754
3755   ;
3756   return 0;
3757 }
3758 _ACEOF
3759 if ac_fn_c_try_compile "$LINENO"; then :
3760
3761 else
3762   ac_c_werror_flag=$ac_save_c_werror_flag
3763          CFLAGS="-g"
3764          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h.  */
3766
3767 int
3768 main ()
3769 {
3770
3771   ;
3772   return 0;
3773 }
3774 _ACEOF
3775 if ac_fn_c_try_compile "$LINENO"; then :
3776   ac_cv_prog_cc_g=yes
3777 fi
3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779 fi
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781 fi
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783    ac_c_werror_flag=$ac_save_c_werror_flag
3784 fi
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3786 $as_echo "$ac_cv_prog_cc_g" >&6; }
3787 if test "$ac_test_CFLAGS" = set; then
3788   CFLAGS=$ac_save_CFLAGS
3789 elif test $ac_cv_prog_cc_g = yes; then
3790   if test "$GCC" = yes; then
3791     CFLAGS="-g -O2"
3792   else
3793     CFLAGS="-g"
3794   fi
3795 else
3796   if test "$GCC" = yes; then
3797     CFLAGS="-O2"
3798   else
3799     CFLAGS=
3800   fi
3801 fi
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3803 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3804 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3805   $as_echo_n "(cached) " >&6
3806 else
3807   ac_cv_prog_cc_c89=no
3808 ac_save_CC=$CC
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h.  */
3811 #include <stdarg.h>
3812 #include <stdio.h>
3813 #include <sys/types.h>
3814 #include <sys/stat.h>
3815 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3816 struct buf { int x; };
3817 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3818 static char *e (p, i)
3819      char **p;
3820      int i;
3821 {
3822   return p[i];
3823 }
3824 static char *f (char * (*g) (char **, int), char **p, ...)
3825 {
3826   char *s;
3827   va_list v;
3828   va_start (v,p);
3829   s = g (p, va_arg (v,int));
3830   va_end (v);
3831   return s;
3832 }
3833
3834 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3835    function prototypes and stuff, but not '\xHH' hex character constants.
3836    These don't provoke an error unfortunately, instead are silently treated
3837    as 'x'.  The following induces an error, until -std is added to get
3838    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3839    array size at least.  It's necessary to write '\x00'==0 to get something
3840    that's true only with -std.  */
3841 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3842
3843 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3844    inside strings and character constants.  */
3845 #define FOO(x) 'x'
3846 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3847
3848 int test (int i, double x);
3849 struct s1 {int (*f) (int a);};
3850 struct s2 {int (*f) (double a);};
3851 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3852 int argc;
3853 char **argv;
3854 int
3855 main ()
3856 {
3857 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3858   ;
3859   return 0;
3860 }
3861 _ACEOF
3862 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3863         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3864 do
3865   CC="$ac_save_CC $ac_arg"
3866   if ac_fn_c_try_compile "$LINENO"; then :
3867   ac_cv_prog_cc_c89=$ac_arg
3868 fi
3869 rm -f core conftest.err conftest.$ac_objext
3870   test "x$ac_cv_prog_cc_c89" != "xno" && break
3871 done
3872 rm -f conftest.$ac_ext
3873 CC=$ac_save_CC
3874
3875 fi
3876 # AC_CACHE_VAL
3877 case "x$ac_cv_prog_cc_c89" in
3878   x)
3879     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3880 $as_echo "none needed" >&6; } ;;
3881   xno)
3882     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3883 $as_echo "unsupported" >&6; } ;;
3884   *)
3885     CC="$CC $ac_cv_prog_cc_c89"
3886     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3887 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3888 esac
3889 if test "x$ac_cv_prog_cc_c89" != xno; then :
3890
3891 fi
3892
3893 ac_ext=c
3894 ac_cpp='$CPP $CPPFLAGS'
3895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898 DEPDIR="${am__leading_dot}deps"
3899
3900 ac_config_commands="$ac_config_commands depfiles"
3901
3902
3903 am_make=${MAKE-make}
3904 cat > confinc << 'END'
3905 am__doit:
3906         @echo this is the am__doit target
3907 .PHONY: am__doit
3908 END
3909 # If we don't find an include directive, just comment out the code.
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3911 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3912 am__include="#"
3913 am__quote=
3914 _am_result=none
3915 # First try GNU make style include.
3916 echo "include confinc" > confmf
3917 # Ignore all kinds of additional output from `make'.
3918 case `$am_make -s -f confmf 2> /dev/null` in #(
3919 *the\ am__doit\ target*)
3920   am__include=include
3921   am__quote=
3922   _am_result=GNU
3923   ;;
3924 esac
3925 # Now try BSD make style include.
3926 if test "$am__include" = "#"; then
3927    echo '.include "confinc"' > confmf
3928    case `$am_make -s -f confmf 2> /dev/null` in #(
3929    *the\ am__doit\ target*)
3930      am__include=.include
3931      am__quote="\""
3932      _am_result=BSD
3933      ;;
3934    esac
3935 fi
3936
3937
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3939 $as_echo "$_am_result" >&6; }
3940 rm -f confinc confmf
3941
3942 # Check whether --enable-dependency-tracking was given.
3943 if test "${enable_dependency_tracking+set}" = set; then :
3944   enableval=$enable_dependency_tracking;
3945 fi
3946
3947 if test "x$enable_dependency_tracking" != xno; then
3948   am_depcomp="$ac_aux_dir/depcomp"
3949   AMDEPBACKSLASH='\'
3950 fi
3951  if test "x$enable_dependency_tracking" != xno; then
3952   AMDEP_TRUE=
3953   AMDEP_FALSE='#'
3954 else
3955   AMDEP_TRUE='#'
3956   AMDEP_FALSE=
3957 fi
3958
3959
3960
3961 depcc="$CC"   am_compiler_list=
3962
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3964 $as_echo_n "checking dependency style of $depcc... " >&6; }
3965 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3966   $as_echo_n "(cached) " >&6
3967 else
3968   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3969   # We make a subdir and do the tests there.  Otherwise we can end up
3970   # making bogus files that we don't know about and never remove.  For
3971   # instance it was reported that on HP-UX the gcc test will end up
3972   # making a dummy file named `D' -- because `-MD' means `put the output
3973   # in D'.
3974   mkdir conftest.dir
3975   # Copy depcomp to subdir because otherwise we won't find it if we're
3976   # using a relative directory.
3977   cp "$am_depcomp" conftest.dir
3978   cd conftest.dir
3979   # We will build objects and dependencies in a subdirectory because
3980   # it helps to detect inapplicable dependency modes.  For instance
3981   # both Tru64's cc and ICC support -MD to output dependencies as a
3982   # side effect of compilation, but ICC will put the dependencies in
3983   # the current directory while Tru64 will put them in the object
3984   # directory.
3985   mkdir sub
3986
3987   am_cv_CC_dependencies_compiler_type=none
3988   if test "$am_compiler_list" = ""; then
3989      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3990   fi
3991   am__universal=false
3992   case " $depcc " in #(
3993      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3994      esac
3995
3996   for depmode in $am_compiler_list; do
3997     # Setup a source with many dependencies, because some compilers
3998     # like to wrap large dependency lists on column 80 (with \), and
3999     # we should not choose a depcomp mode which is confused by this.
4000     #
4001     # We need to recreate these files for each test, as the compiler may
4002     # overwrite some of them when testing with obscure command lines.
4003     # This happens at least with the AIX C compiler.
4004     : > sub/conftest.c
4005     for i in 1 2 3 4 5 6; do
4006       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4007       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4008       # Solaris 8's {/usr,}/bin/sh.
4009       touch sub/conftst$i.h
4010     done
4011     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4012
4013     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4014     # mode.  It turns out that the SunPro C++ compiler does not properly
4015     # handle `-M -o', and we need to detect this.  Also, some Intel
4016     # versions had trouble with output in subdirs
4017     am__obj=sub/conftest.${OBJEXT-o}
4018     am__minus_obj="-o $am__obj"
4019     case $depmode in
4020     gcc)
4021       # This depmode causes a compiler race in universal mode.
4022       test "$am__universal" = false || continue
4023       ;;
4024     nosideeffect)
4025       # after this tag, mechanisms are not by side-effect, so they'll
4026       # only be used when explicitly requested
4027       if test "x$enable_dependency_tracking" = xyes; then
4028         continue
4029       else
4030         break
4031       fi
4032       ;;
4033     msvisualcpp | msvcmsys)
4034       # This compiler won't grok `-c -o', but also, the minuso test has
4035       # not run yet.  These depmodes are late enough in the game, and
4036       # so weak that their functioning should not be impacted.
4037       am__obj=conftest.${OBJEXT-o}
4038       am__minus_obj=
4039       ;;
4040     none) break ;;
4041     esac
4042     if depmode=$depmode \
4043        source=sub/conftest.c object=$am__obj \
4044        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4045        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4046          >/dev/null 2>conftest.err &&
4047        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4048        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4049        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4050        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4051       # icc doesn't choke on unknown options, it will just issue warnings
4052       # or remarks (even with -Werror).  So we grep stderr for any message
4053       # that says an option was ignored or not supported.
4054       # When given -MP, icc 7.0 and 7.1 complain thusly:
4055       #   icc: Command line warning: ignoring option '-M'; no argument required
4056       # The diagnosis changed in icc 8.0:
4057       #   icc: Command line remark: option '-MP' not supported
4058       if (grep 'ignoring option' conftest.err ||
4059           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4060         am_cv_CC_dependencies_compiler_type=$depmode
4061         break
4062       fi
4063     fi
4064   done
4065
4066   cd ..
4067   rm -rf conftest.dir
4068 else
4069   am_cv_CC_dependencies_compiler_type=none
4070 fi
4071
4072 fi
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4074 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4075 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4076
4077  if
4078   test "x$enable_dependency_tracking" != xno \
4079   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4080   am__fastdepCC_TRUE=
4081   am__fastdepCC_FALSE='#'
4082 else
4083   am__fastdepCC_TRUE='#'
4084   am__fastdepCC_FALSE=
4085 fi
4086
4087
4088 ac_ext=cpp
4089 ac_cpp='$CXXCPP $CPPFLAGS'
4090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4093 if test -z "$CXX"; then
4094   if test -n "$CCC"; then
4095     CXX=$CCC
4096   else
4097     if test -n "$ac_tool_prefix"; then
4098   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4099   do
4100     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4101 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4103 $as_echo_n "checking for $ac_word... " >&6; }
4104 if test "${ac_cv_prog_CXX+set}" = set; then :
4105   $as_echo_n "(cached) " >&6
4106 else
4107   if test -n "$CXX"; then
4108   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4109 else
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH
4112 do
4113   IFS=$as_save_IFS
4114   test -z "$as_dir" && as_dir=.
4115     for ac_exec_ext in '' $ac_executable_extensions; do
4116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4117     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4119     break 2
4120   fi
4121 done
4122   done
4123 IFS=$as_save_IFS
4124
4125 fi
4126 fi
4127 CXX=$ac_cv_prog_CXX
4128 if test -n "$CXX"; then
4129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4130 $as_echo "$CXX" >&6; }
4131 else
4132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 $as_echo "no" >&6; }
4134 fi
4135
4136
4137     test -n "$CXX" && break
4138   done
4139 fi
4140 if test -z "$CXX"; then
4141   ac_ct_CXX=$CXX
4142   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4143 do
4144   # Extract the first word of "$ac_prog", so it can be a program name with args.
4145 set dummy $ac_prog; ac_word=$2
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4147 $as_echo_n "checking for $ac_word... " >&6; }
4148 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4149   $as_echo_n "(cached) " >&6
4150 else
4151   if test -n "$ac_ct_CXX"; then
4152   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4156 do
4157   IFS=$as_save_IFS
4158   test -z "$as_dir" && as_dir=.
4159     for ac_exec_ext in '' $ac_executable_extensions; do
4160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4161     ac_cv_prog_ac_ct_CXX="$ac_prog"
4162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4163     break 2
4164   fi
4165 done
4166   done
4167 IFS=$as_save_IFS
4168
4169 fi
4170 fi
4171 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4172 if test -n "$ac_ct_CXX"; then
4173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4174 $as_echo "$ac_ct_CXX" >&6; }
4175 else
4176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4177 $as_echo "no" >&6; }
4178 fi
4179
4180
4181   test -n "$ac_ct_CXX" && break
4182 done
4183
4184   if test "x$ac_ct_CXX" = x; then
4185     CXX="g++"
4186   else
4187     case $cross_compiling:$ac_tool_warned in
4188 yes:)
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4191 ac_tool_warned=yes ;;
4192 esac
4193     CXX=$ac_ct_CXX
4194   fi
4195 fi
4196
4197   fi
4198 fi
4199 # Provide some information about the compiler.
4200 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4201 set X $ac_compile
4202 ac_compiler=$2
4203 for ac_option in --version -v -V -qversion; do
4204   { { ac_try="$ac_compiler $ac_option >&5"
4205 case "(($ac_try" in
4206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207   *) ac_try_echo=$ac_try;;
4208 esac
4209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4210 $as_echo "$ac_try_echo"; } >&5
4211   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4212   ac_status=$?
4213   if test -s conftest.err; then
4214     sed '10a\
4215 ... rest of stderr output deleted ...
4216          10q' conftest.err >conftest.er1
4217     cat conftest.er1 >&5
4218   fi
4219   rm -f conftest.er1 conftest.err
4220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4221   test $ac_status = 0; }
4222 done
4223
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4225 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4226 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4227   $as_echo_n "(cached) " >&6
4228 else
4229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h.  */
4231
4232 int
4233 main ()
4234 {
4235 #ifndef __GNUC__
4236        choke me
4237 #endif
4238
4239   ;
4240   return 0;
4241 }
4242 _ACEOF
4243 if ac_fn_cxx_try_compile "$LINENO"; then :
4244   ac_compiler_gnu=yes
4245 else
4246   ac_compiler_gnu=no
4247 fi
4248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4250
4251 fi
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4253 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4254 if test $ac_compiler_gnu = yes; then
4255   GXX=yes
4256 else
4257   GXX=
4258 fi
4259 ac_test_CXXFLAGS=${CXXFLAGS+set}
4260 ac_save_CXXFLAGS=$CXXFLAGS
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4262 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4263 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4264   $as_echo_n "(cached) " >&6
4265 else
4266   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4267    ac_cxx_werror_flag=yes
4268    ac_cv_prog_cxx_g=no
4269    CXXFLAGS="-g"
4270    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h.  */
4272
4273 int
4274 main ()
4275 {
4276
4277   ;
4278   return 0;
4279 }
4280 _ACEOF
4281 if ac_fn_cxx_try_compile "$LINENO"; then :
4282   ac_cv_prog_cxx_g=yes
4283 else
4284   CXXFLAGS=""
4285       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h.  */
4287
4288 int
4289 main ()
4290 {
4291
4292   ;
4293   return 0;
4294 }
4295 _ACEOF
4296 if ac_fn_cxx_try_compile "$LINENO"; then :
4297
4298 else
4299   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4300          CXXFLAGS="-g"
4301          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h.  */
4303
4304 int
4305 main ()
4306 {
4307
4308   ;
4309   return 0;
4310 }
4311 _ACEOF
4312 if ac_fn_cxx_try_compile "$LINENO"; then :
4313   ac_cv_prog_cxx_g=yes
4314 fi
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 fi
4317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4318 fi
4319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4321 fi
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4323 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4324 if test "$ac_test_CXXFLAGS" = set; then
4325   CXXFLAGS=$ac_save_CXXFLAGS
4326 elif test $ac_cv_prog_cxx_g = yes; then
4327   if test "$GXX" = yes; then
4328     CXXFLAGS="-g -O2"
4329   else
4330     CXXFLAGS="-g"
4331   fi
4332 else
4333   if test "$GXX" = yes; then
4334     CXXFLAGS="-O2"
4335   else
4336     CXXFLAGS=
4337   fi
4338 fi
4339 ac_ext=c
4340 ac_cpp='$CPP $CPPFLAGS'
4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344
4345 depcc="$CXX"  am_compiler_list=
4346
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4348 $as_echo_n "checking dependency style of $depcc... " >&6; }
4349 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4350   $as_echo_n "(cached) " >&6
4351 else
4352   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4353   # We make a subdir and do the tests there.  Otherwise we can end up
4354   # making bogus files that we don't know about and never remove.  For
4355   # instance it was reported that on HP-UX the gcc test will end up
4356   # making a dummy file named `D' -- because `-MD' means `put the output
4357   # in D'.
4358   mkdir conftest.dir
4359   # Copy depcomp to subdir because otherwise we won't find it if we're
4360   # using a relative directory.
4361   cp "$am_depcomp" conftest.dir
4362   cd conftest.dir
4363   # We will build objects and dependencies in a subdirectory because
4364   # it helps to detect inapplicable dependency modes.  For instance
4365   # both Tru64's cc and ICC support -MD to output dependencies as a
4366   # side effect of compilation, but ICC will put the dependencies in
4367   # the current directory while Tru64 will put them in the object
4368   # directory.
4369   mkdir sub
4370
4371   am_cv_CXX_dependencies_compiler_type=none
4372   if test "$am_compiler_list" = ""; then
4373      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4374   fi
4375   am__universal=false
4376   case " $depcc " in #(
4377      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4378      esac
4379
4380   for depmode in $am_compiler_list; do
4381     # Setup a source with many dependencies, because some compilers
4382     # like to wrap large dependency lists on column 80 (with \), and
4383     # we should not choose a depcomp mode which is confused by this.
4384     #
4385     # We need to recreate these files for each test, as the compiler may
4386     # overwrite some of them when testing with obscure command lines.
4387     # This happens at least with the AIX C compiler.
4388     : > sub/conftest.c
4389     for i in 1 2 3 4 5 6; do
4390       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4391       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4392       # Solaris 8's {/usr,}/bin/sh.
4393       touch sub/conftst$i.h
4394     done
4395     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4396
4397     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4398     # mode.  It turns out that the SunPro C++ compiler does not properly
4399     # handle `-M -o', and we need to detect this.  Also, some Intel
4400     # versions had trouble with output in subdirs
4401     am__obj=sub/conftest.${OBJEXT-o}
4402     am__minus_obj="-o $am__obj"
4403     case $depmode in
4404     gcc)
4405       # This depmode causes a compiler race in universal mode.
4406       test "$am__universal" = false || continue
4407       ;;
4408     nosideeffect)
4409       # after this tag, mechanisms are not by side-effect, so they'll
4410       # only be used when explicitly requested
4411       if test "x$enable_dependency_tracking" = xyes; then
4412         continue
4413       else
4414         break
4415       fi
4416       ;;
4417     msvisualcpp | msvcmsys)
4418       # This compiler won't grok `-c -o', but also, the minuso test has
4419       # not run yet.  These depmodes are late enough in the game, and
4420       # so weak that their functioning should not be impacted.
4421       am__obj=conftest.${OBJEXT-o}
4422       am__minus_obj=
4423       ;;
4424     none) break ;;
4425     esac
4426     if depmode=$depmode \
4427        source=sub/conftest.c object=$am__obj \
4428        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4429        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4430          >/dev/null 2>conftest.err &&
4431        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4432        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4433        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4434        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4435       # icc doesn't choke on unknown options, it will just issue warnings
4436       # or remarks (even with -Werror).  So we grep stderr for any message
4437       # that says an option was ignored or not supported.
4438       # When given -MP, icc 7.0 and 7.1 complain thusly:
4439       #   icc: Command line warning: ignoring option '-M'; no argument required
4440       # The diagnosis changed in icc 8.0:
4441       #   icc: Command line remark: option '-MP' not supported
4442       if (grep 'ignoring option' conftest.err ||
4443           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4444         am_cv_CXX_dependencies_compiler_type=$depmode
4445         break
4446       fi
4447     fi
4448   done
4449
4450   cd ..
4451   rm -rf conftest.dir
4452 else
4453   am_cv_CXX_dependencies_compiler_type=none
4454 fi
4455
4456 fi
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4458 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4459 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4460
4461  if
4462   test "x$enable_dependency_tracking" != xno \
4463   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4464   am__fastdepCXX_TRUE=
4465   am__fastdepCXX_FALSE='#'
4466 else
4467   am__fastdepCXX_TRUE='#'
4468   am__fastdepCXX_FALSE=
4469 fi
4470
4471
4472 case `pwd` in
4473   *\ * | *\     *)
4474     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4475 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4476 esac
4477
4478
4479
4480 macro_version='2.2.6b'
4481 macro_revision='1.3017'
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495 ltmain="$ac_aux_dir/ltmain.sh"
4496
4497 # Make sure we can run config.sub.
4498 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4499   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4500
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4502 $as_echo_n "checking build system type... " >&6; }
4503 if test "${ac_cv_build+set}" = set; then :
4504   $as_echo_n "(cached) " >&6
4505 else
4506   ac_build_alias=$build_alias
4507 test "x$ac_build_alias" = x &&
4508   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4509 test "x$ac_build_alias" = x &&
4510   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4511 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4512   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4513
4514 fi
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4516 $as_echo "$ac_cv_build" >&6; }
4517 case $ac_cv_build in
4518 *-*-*) ;;
4519 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
4520 esac
4521 build=$ac_cv_build
4522 ac_save_IFS=$IFS; IFS='-'
4523 set x $ac_cv_build
4524 shift
4525 build_cpu=$1
4526 build_vendor=$2
4527 shift; shift
4528 # Remember, the first character of IFS is used to create $*,
4529 # except with old shells:
4530 build_os=$*
4531 IFS=$ac_save_IFS
4532 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4533
4534
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4536 $as_echo_n "checking host system type... " >&6; }
4537 if test "${ac_cv_host+set}" = set; then :
4538   $as_echo_n "(cached) " >&6
4539 else
4540   if test "x$host_alias" = x; then
4541   ac_cv_host=$ac_cv_build
4542 else
4543   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4544     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4545 fi
4546
4547 fi
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4549 $as_echo "$ac_cv_host" >&6; }
4550 case $ac_cv_host in
4551 *-*-*) ;;
4552 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
4553 esac
4554 host=$ac_cv_host
4555 ac_save_IFS=$IFS; IFS='-'
4556 set x $ac_cv_host
4557 shift
4558 host_cpu=$1
4559 host_vendor=$2
4560 shift; shift
4561 # Remember, the first character of IFS is used to create $*,
4562 # except with old shells:
4563 host_os=$*
4564 IFS=$ac_save_IFS
4565 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4566
4567
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4569 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4570 if test "${ac_cv_path_SED+set}" = set; then :
4571   $as_echo_n "(cached) " >&6
4572 else
4573             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4574      for ac_i in 1 2 3 4 5 6 7; do
4575        ac_script="$ac_script$as_nl$ac_script"
4576      done
4577      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4578      { ac_script=; unset ac_script;}
4579      if test -z "$SED"; then
4580   ac_path_SED_found=false
4581   # Loop through the user's path and test for each of PROGNAME-LIST
4582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4584 do
4585   IFS=$as_save_IFS
4586   test -z "$as_dir" && as_dir=.
4587     for ac_prog in sed gsed; do
4588     for ac_exec_ext in '' $ac_executable_extensions; do
4589       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4590       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4591 # Check for GNU ac_path_SED and select it if it is found.
4592   # Check for GNU $ac_path_SED
4593 case `"$ac_path_SED" --version 2>&1` in
4594 *GNU*)
4595   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4596 *)
4597   ac_count=0
4598   $as_echo_n 0123456789 >"conftest.in"
4599   while :
4600   do
4601     cat "conftest.in" "conftest.in" >"conftest.tmp"
4602     mv "conftest.tmp" "conftest.in"
4603     cp "conftest.in" "conftest.nl"
4604     $as_echo '' >> "conftest.nl"
4605     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4606     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4607     as_fn_arith $ac_count + 1 && ac_count=$as_val
4608     if test $ac_count -gt ${ac_path_SED_max-0}; then
4609       # Best one so far, save it but keep looking for a better one
4610       ac_cv_path_SED="$ac_path_SED"
4611       ac_path_SED_max=$ac_count
4612     fi
4613     # 10*(2^10) chars as input seems more than enough
4614     test $ac_count -gt 10 && break
4615   done
4616   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4617 esac
4618
4619       $ac_path_SED_found && break 3
4620     done
4621   done
4622   done
4623 IFS=$as_save_IFS
4624   if test -z "$ac_cv_path_SED"; then
4625     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4626   fi
4627 else
4628   ac_cv_path_SED=$SED
4629 fi
4630
4631 fi
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4633 $as_echo "$ac_cv_path_SED" >&6; }
4634  SED="$ac_cv_path_SED"
4635   rm -f conftest.sed
4636
4637 test -z "$SED" && SED=sed
4638 Xsed="$SED -e 1s/^X//"
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4651 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4652 if test "${ac_cv_path_GREP+set}" = set; then :
4653   $as_echo_n "(cached) " >&6
4654 else
4655   if test -z "$GREP"; then
4656   ac_path_GREP_found=false
4657   # Loop through the user's path and test for each of PROGNAME-LIST
4658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4660 do
4661   IFS=$as_save_IFS
4662   test -z "$as_dir" && as_dir=.
4663     for ac_prog in grep ggrep; do
4664     for ac_exec_ext in '' $ac_executable_extensions; do
4665       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4666       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4667 # Check for GNU ac_path_GREP and select it if it is found.
4668   # Check for GNU $ac_path_GREP
4669 case `"$ac_path_GREP" --version 2>&1` in
4670 *GNU*)
4671   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4672 *)
4673   ac_count=0
4674   $as_echo_n 0123456789 >"conftest.in"
4675   while :
4676   do
4677     cat "conftest.in" "conftest.in" >"conftest.tmp"
4678     mv "conftest.tmp" "conftest.in"
4679     cp "conftest.in" "conftest.nl"
4680     $as_echo 'GREP' >> "conftest.nl"
4681     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4682     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4683     as_fn_arith $ac_count + 1 && ac_count=$as_val
4684     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4685       # Best one so far, save it but keep looking for a better one
4686       ac_cv_path_GREP="$ac_path_GREP"
4687       ac_path_GREP_max=$ac_count
4688     fi
4689     # 10*(2^10) chars as input seems more than enough
4690     test $ac_count -gt 10 && break
4691   done
4692   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4693 esac
4694
4695       $ac_path_GREP_found && break 3
4696     done
4697   done
4698   done
4699 IFS=$as_save_IFS
4700   if test -z "$ac_cv_path_GREP"; then
4701     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4702   fi
4703 else
4704   ac_cv_path_GREP=$GREP
4705 fi
4706
4707 fi
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4709 $as_echo "$ac_cv_path_GREP" >&6; }
4710  GREP="$ac_cv_path_GREP"
4711
4712
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4714 $as_echo_n "checking for egrep... " >&6; }
4715 if test "${ac_cv_path_EGREP+set}" = set; then :
4716   $as_echo_n "(cached) " >&6
4717 else
4718   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4719    then ac_cv_path_EGREP="$GREP -E"
4720    else
4721      if test -z "$EGREP"; then
4722   ac_path_EGREP_found=false
4723   # Loop through the user's path and test for each of PROGNAME-LIST
4724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4726 do
4727   IFS=$as_save_IFS
4728   test -z "$as_dir" && as_dir=.
4729     for ac_prog in egrep; do
4730     for ac_exec_ext in '' $ac_executable_extensions; do
4731       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4732       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4733 # Check for GNU ac_path_EGREP and select it if it is found.
4734   # Check for GNU $ac_path_EGREP
4735 case `"$ac_path_EGREP" --version 2>&1` in
4736 *GNU*)
4737   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4738 *)
4739   ac_count=0
4740   $as_echo_n 0123456789 >"conftest.in"
4741   while :
4742   do
4743     cat "conftest.in" "conftest.in" >"conftest.tmp"
4744     mv "conftest.tmp" "conftest.in"
4745     cp "conftest.in" "conftest.nl"
4746     $as_echo 'EGREP' >> "conftest.nl"
4747     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4748     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4749     as_fn_arith $ac_count + 1 && ac_count=$as_val
4750     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4751       # Best one so far, save it but keep looking for a better one
4752       ac_cv_path_EGREP="$ac_path_EGREP"
4753       ac_path_EGREP_max=$ac_count
4754     fi
4755     # 10*(2^10) chars as input seems more than enough
4756     test $ac_count -gt 10 && break
4757   done
4758   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4759 esac
4760
4761       $ac_path_EGREP_found && break 3
4762     done
4763   done
4764   done
4765 IFS=$as_save_IFS
4766   if test -z "$ac_cv_path_EGREP"; then
4767     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4768   fi
4769 else
4770   ac_cv_path_EGREP=$EGREP
4771 fi
4772
4773    fi
4774 fi
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4776 $as_echo "$ac_cv_path_EGREP" >&6; }
4777  EGREP="$ac_cv_path_EGREP"
4778
4779
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4781 $as_echo_n "checking for fgrep... " >&6; }
4782 if test "${ac_cv_path_FGREP+set}" = set; then :
4783   $as_echo_n "(cached) " >&6
4784 else
4785   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4786    then ac_cv_path_FGREP="$GREP -F"
4787    else
4788      if test -z "$FGREP"; then
4789   ac_path_FGREP_found=false
4790   # Loop through the user's path and test for each of PROGNAME-LIST
4791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4793 do
4794   IFS=$as_save_IFS
4795   test -z "$as_dir" && as_dir=.
4796     for ac_prog in fgrep; do
4797     for ac_exec_ext in '' $ac_executable_extensions; do
4798       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4799       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4800 # Check for GNU ac_path_FGREP and select it if it is found.
4801   # Check for GNU $ac_path_FGREP
4802 case `"$ac_path_FGREP" --version 2>&1` in
4803 *GNU*)
4804   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4805 *)
4806   ac_count=0
4807   $as_echo_n 0123456789 >"conftest.in"
4808   while :
4809   do
4810     cat "conftest.in" "conftest.in" >"conftest.tmp"
4811     mv "conftest.tmp" "conftest.in"
4812     cp "conftest.in" "conftest.nl"
4813     $as_echo 'FGREP' >> "conftest.nl"
4814     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4815     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4816     as_fn_arith $ac_count + 1 && ac_count=$as_val
4817     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4818       # Best one so far, save it but keep looking for a better one
4819       ac_cv_path_FGREP="$ac_path_FGREP"
4820       ac_path_FGREP_max=$ac_count
4821     fi
4822     # 10*(2^10) chars as input seems more than enough
4823     test $ac_count -gt 10 && break
4824   done
4825   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4826 esac
4827
4828       $ac_path_FGREP_found && break 3
4829     done
4830   done
4831   done
4832 IFS=$as_save_IFS
4833   if test -z "$ac_cv_path_FGREP"; then
4834     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4835   fi
4836 else
4837   ac_cv_path_FGREP=$FGREP
4838 fi
4839
4840    fi
4841 fi
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4843 $as_echo "$ac_cv_path_FGREP" >&6; }
4844  FGREP="$ac_cv_path_FGREP"
4845
4846
4847 test -z "$GREP" && GREP=grep
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867 # Check whether --with-gnu-ld was given.
4868 if test "${with_gnu_ld+set}" = set; then :
4869   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4870 else
4871   with_gnu_ld=no
4872 fi
4873
4874 ac_prog=ld
4875 if test "$GCC" = yes; then
4876   # Check if gcc -print-prog-name=ld gives a path.
4877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4878 $as_echo_n "checking for ld used by $CC... " >&6; }
4879   case $host in
4880   *-*-mingw*)
4881     # gcc leaves a trailing carriage return which upsets mingw
4882     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4883   *)
4884     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4885   esac
4886   case $ac_prog in
4887     # Accept absolute paths.
4888     [\\/]* | ?:[\\/]*)
4889       re_direlt='/[^/][^/]*/\.\./'
4890       # Canonicalize the pathname of ld
4891       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4892       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4893         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4894       done
4895       test -z "$LD" && LD="$ac_prog"
4896       ;;
4897   "")
4898     # If it fails, then pretend we aren't using GCC.
4899     ac_prog=ld
4900     ;;
4901   *)
4902     # If it is relative, then search for the first ld in PATH.
4903     with_gnu_ld=unknown
4904     ;;
4905   esac
4906 elif test "$with_gnu_ld" = yes; then
4907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4908 $as_echo_n "checking for GNU ld... " >&6; }
4909 else
4910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4911 $as_echo_n "checking for non-GNU ld... " >&6; }
4912 fi
4913 if test "${lt_cv_path_LD+set}" = set; then :
4914   $as_echo_n "(cached) " >&6
4915 else
4916   if test -z "$LD"; then
4917   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4918   for ac_dir in $PATH; do
4919     IFS="$lt_save_ifs"
4920     test -z "$ac_dir" && ac_dir=.
4921     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4922       lt_cv_path_LD="$ac_dir/$ac_prog"
4923       # Check to see if the program is GNU ld.  I'd rather use --version,
4924       # but apparently some variants of GNU ld only accept -v.
4925       # Break only if it was the GNU/non-GNU ld that we prefer.
4926       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4927       *GNU* | *'with BFD'*)
4928         test "$with_gnu_ld" != no && break
4929         ;;
4930       *)
4931         test "$with_gnu_ld" != yes && break
4932         ;;
4933       esac
4934     fi
4935   done
4936   IFS="$lt_save_ifs"
4937 else
4938   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4939 fi
4940 fi
4941
4942 LD="$lt_cv_path_LD"
4943 if test -n "$LD"; then
4944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4945 $as_echo "$LD" >&6; }
4946 else
4947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4948 $as_echo "no" >&6; }
4949 fi
4950 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4952 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4953 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4954   $as_echo_n "(cached) " >&6
4955 else
4956   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4957 case `$LD -v 2>&1 </dev/null` in
4958 *GNU* | *'with BFD'*)
4959   lt_cv_prog_gnu_ld=yes
4960   ;;
4961 *)
4962   lt_cv_prog_gnu_ld=no
4963   ;;
4964 esac
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4967 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4968 with_gnu_ld=$lt_cv_prog_gnu_ld
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4979 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4980 if test "${lt_cv_path_NM+set}" = set; then :
4981   $as_echo_n "(cached) " >&6
4982 else
4983   if test -n "$NM"; then
4984   # Let the user override the test.
4985   lt_cv_path_NM="$NM"
4986 else
4987   lt_nm_to_check="${ac_tool_prefix}nm"
4988   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4989     lt_nm_to_check="$lt_nm_to_check nm"
4990   fi
4991   for lt_tmp_nm in $lt_nm_to_check; do
4992     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4993     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4994       IFS="$lt_save_ifs"
4995       test -z "$ac_dir" && ac_dir=.
4996       tmp_nm="$ac_dir/$lt_tmp_nm"
4997       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4998         # Check to see if the nm accepts a BSD-compat flag.
4999         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5000         #   nm: unknown option "B" ignored
5001         # Tru64's nm complains that /dev/null is an invalid object file
5002         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5003         */dev/null* | *'Invalid file or object type'*)
5004           lt_cv_path_NM="$tmp_nm -B"
5005           break
5006           ;;
5007         *)
5008           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5009           */dev/null*)
5010             lt_cv_path_NM="$tmp_nm -p"
5011             break
5012             ;;
5013           *)
5014             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5015             continue # so that we can try to find one that supports BSD flags
5016             ;;
5017           esac
5018           ;;
5019         esac
5020       fi
5021     done
5022     IFS="$lt_save_ifs"
5023   done
5024   : ${lt_cv_path_NM=no}
5025 fi
5026 fi
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5028 $as_echo "$lt_cv_path_NM" >&6; }
5029 if test "$lt_cv_path_NM" != "no"; then
5030   NM="$lt_cv_path_NM"
5031 else
5032   # Didn't find any BSD compatible name lister, look for dumpbin.
5033   if test -n "$ac_tool_prefix"; then
5034   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5035   do
5036     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5037 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039 $as_echo_n "checking for $ac_word... " >&6; }
5040 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5041   $as_echo_n "(cached) " >&6
5042 else
5043   if test -n "$DUMPBIN"; then
5044   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5048 do
5049   IFS=$as_save_IFS
5050   test -z "$as_dir" && as_dir=.
5051     for ac_exec_ext in '' $ac_executable_extensions; do
5052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055     break 2
5056   fi
5057 done
5058   done
5059 IFS=$as_save_IFS
5060
5061 fi
5062 fi
5063 DUMPBIN=$ac_cv_prog_DUMPBIN
5064 if test -n "$DUMPBIN"; then
5065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5066 $as_echo "$DUMPBIN" >&6; }
5067 else
5068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069 $as_echo "no" >&6; }
5070 fi
5071
5072
5073     test -n "$DUMPBIN" && break
5074   done
5075 fi
5076 if test -z "$DUMPBIN"; then
5077   ac_ct_DUMPBIN=$DUMPBIN
5078   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5079 do
5080   # Extract the first word of "$ac_prog", so it can be a program name with args.
5081 set dummy $ac_prog; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5085   $as_echo_n "(cached) " >&6
5086 else
5087   if test -n "$ac_ct_DUMPBIN"; then
5088   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5092 do
5093   IFS=$as_save_IFS
5094   test -z "$as_dir" && as_dir=.
5095     for ac_exec_ext in '' $ac_executable_extensions; do
5096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099     break 2
5100   fi
5101 done
5102   done
5103 IFS=$as_save_IFS
5104
5105 fi
5106 fi
5107 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5108 if test -n "$ac_ct_DUMPBIN"; then
5109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5110 $as_echo "$ac_ct_DUMPBIN" >&6; }
5111 else
5112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5114 fi
5115
5116
5117   test -n "$ac_ct_DUMPBIN" && break
5118 done
5119
5120   if test "x$ac_ct_DUMPBIN" = x; then
5121     DUMPBIN=":"
5122   else
5123     case $cross_compiling:$ac_tool_warned in
5124 yes:)
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5127 ac_tool_warned=yes ;;
5128 esac
5129     DUMPBIN=$ac_ct_DUMPBIN
5130   fi
5131 fi
5132
5133
5134   if test "$DUMPBIN" != ":"; then
5135     NM="$DUMPBIN"
5136   fi
5137 fi
5138 test -z "$NM" && NM=nm
5139
5140
5141
5142
5143
5144
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5146 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5147 if test "${lt_cv_nm_interface+set}" = set; then :
5148   $as_echo_n "(cached) " >&6
5149 else
5150   lt_cv_nm_interface="BSD nm"
5151   echo "int some_variable = 0;" > conftest.$ac_ext
5152   (eval echo "\"\$as_me:5152: $ac_compile\"" >&5)
5153   (eval "$ac_compile" 2>conftest.err)
5154   cat conftest.err >&5
5155   (eval echo "\"\$as_me:5155: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5156   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5157   cat conftest.err >&5
5158   (eval echo "\"\$as_me:5158: output\"" >&5)
5159   cat conftest.out >&5
5160   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5161     lt_cv_nm_interface="MS dumpbin"
5162   fi
5163   rm -f conftest*
5164 fi
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5166 $as_echo "$lt_cv_nm_interface" >&6; }
5167
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5169 $as_echo_n "checking whether ln -s works... " >&6; }
5170 LN_S=$as_ln_s
5171 if test "$LN_S" = "ln -s"; then
5172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5173 $as_echo "yes" >&6; }
5174 else
5175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5176 $as_echo "no, using $LN_S" >&6; }
5177 fi
5178
5179 # find the maximum length of command line arguments
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5181 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5182 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5183   $as_echo_n "(cached) " >&6
5184 else
5185     i=0
5186   teststring="ABCD"
5187
5188   case $build_os in
5189   msdosdjgpp*)
5190     # On DJGPP, this test can blow up pretty badly due to problems in libc
5191     # (any single argument exceeding 2000 bytes causes a buffer overrun
5192     # during glob expansion).  Even if it were fixed, the result of this
5193     # check would be larger than it should be.
5194     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5195     ;;
5196
5197   gnu*)
5198     # Under GNU Hurd, this test is not required because there is
5199     # no limit to the length of command line arguments.
5200     # Libtool will interpret -1 as no limit whatsoever
5201     lt_cv_sys_max_cmd_len=-1;
5202     ;;
5203
5204   cygwin* | mingw* | cegcc*)
5205     # On Win9x/ME, this test blows up -- it succeeds, but takes
5206     # about 5 minutes as the teststring grows exponentially.
5207     # Worse, since 9x/ME are not pre-emptively multitasking,
5208     # you end up with a "frozen" computer, even though with patience
5209     # the test eventually succeeds (with a max line length of 256k).
5210     # Instead, let's just punt: use the minimum linelength reported by
5211     # all of the supported platforms: 8192 (on NT/2K/XP).
5212     lt_cv_sys_max_cmd_len=8192;
5213     ;;
5214
5215   amigaos*)
5216     # On AmigaOS with pdksh, this test takes hours, literally.
5217     # So we just punt and use a minimum line length of 8192.
5218     lt_cv_sys_max_cmd_len=8192;
5219     ;;
5220
5221   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5222     # This has been around since 386BSD, at least.  Likely further.
5223     if test -x /sbin/sysctl; then
5224       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5225     elif test -x /usr/sbin/sysctl; then
5226       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5227     else
5228       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5229     fi
5230     # And add a safety zone
5231     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5232     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5233     ;;
5234
5235   interix*)
5236     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5237     lt_cv_sys_max_cmd_len=196608
5238     ;;
5239
5240   osf*)
5241     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5242     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5243     # nice to cause kernel panics so lets avoid the loop below.
5244     # First set a reasonable default.
5245     lt_cv_sys_max_cmd_len=16384
5246     #
5247     if test -x /sbin/sysconfig; then
5248       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5249         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5250       esac
5251     fi
5252     ;;
5253   sco3.2v5*)
5254     lt_cv_sys_max_cmd_len=102400
5255     ;;
5256   sysv5* | sco5v6* | sysv4.2uw2*)
5257     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5258     if test -n "$kargmax"; then
5259       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5260     else
5261       lt_cv_sys_max_cmd_len=32768
5262     fi
5263     ;;
5264   *)
5265     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5266     if test -n "$lt_cv_sys_max_cmd_len"; then
5267       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5268       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5269     else
5270       # Make teststring a little bigger before we do anything with it.
5271       # a 1K string should be a reasonable start.
5272       for i in 1 2 3 4 5 6 7 8 ; do
5273         teststring=$teststring$teststring
5274       done
5275       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5276       # If test is not a shell built-in, we'll probably end up computing a
5277       # maximum length that is only half of the actual maximum length, but
5278       # we can't tell.
5279       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5280                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5281               test $i != 17 # 1/2 MB should be enough
5282       do
5283         i=`expr $i + 1`
5284         teststring=$teststring$teststring
5285       done
5286       # Only check the string length outside the loop.
5287       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5288       teststring=
5289       # Add a significant safety factor because C++ compilers can tack on
5290       # massive amounts of additional arguments before passing them to the
5291       # linker.  It appears as though 1/2 is a usable value.
5292       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5293     fi
5294     ;;
5295   esac
5296
5297 fi
5298
5299 if test -n $lt_cv_sys_max_cmd_len ; then
5300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5301 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5302 else
5303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5304 $as_echo "none" >&6; }
5305 fi
5306 max_cmd_len=$lt_cv_sys_max_cmd_len
5307
5308
5309
5310
5311
5312
5313 : ${CP="cp -f"}
5314 : ${MV="mv -f"}
5315 : ${RM="rm -f"}
5316
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5318 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5319 # Try some XSI features
5320 xsi_shell=no
5321 ( _lt_dummy="a/b/c"
5322   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5323       = c,a/b,, \
5324     && eval 'test $(( 1 + 1 )) -eq 2 \
5325     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5326   && xsi_shell=yes
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5328 $as_echo "$xsi_shell" >&6; }
5329
5330
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5332 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5333 lt_shell_append=no
5334 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5335     >/dev/null 2>&1 \
5336   && lt_shell_append=yes
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5338 $as_echo "$lt_shell_append" >&6; }
5339
5340
5341 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5342   lt_unset=unset
5343 else
5344   lt_unset=false
5345 fi
5346
5347
5348
5349
5350
5351 # test EBCDIC or ASCII
5352 case `echo X|tr X '\101'` in
5353  A) # ASCII based system
5354     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5355   lt_SP2NL='tr \040 \012'
5356   lt_NL2SP='tr \015\012 \040\040'
5357   ;;
5358  *) # EBCDIC based system
5359   lt_SP2NL='tr \100 \n'
5360   lt_NL2SP='tr \r\n \100\100'
5361   ;;
5362 esac
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5373 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5374 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5375   $as_echo_n "(cached) " >&6
5376 else
5377   lt_cv_ld_reload_flag='-r'
5378 fi
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5380 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5381 reload_flag=$lt_cv_ld_reload_flag
5382 case $reload_flag in
5383 "" | " "*) ;;
5384 *) reload_flag=" $reload_flag" ;;
5385 esac
5386 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5387 case $host_os in
5388   darwin*)
5389     if test "$GCC" = yes; then
5390       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5391     else
5392       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5393     fi
5394     ;;
5395 esac
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405 if test -n "$ac_tool_prefix"; then
5406   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5407 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409 $as_echo_n "checking for $ac_word... " >&6; }
5410 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5411   $as_echo_n "(cached) " >&6
5412 else
5413   if test -n "$OBJDUMP"; then
5414   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5415 else
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5418 do
5419   IFS=$as_save_IFS
5420   test -z "$as_dir" && as_dir=.
5421     for ac_exec_ext in '' $ac_executable_extensions; do
5422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5423     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425     break 2
5426   fi
5427 done
5428   done
5429 IFS=$as_save_IFS
5430
5431 fi
5432 fi
5433 OBJDUMP=$ac_cv_prog_OBJDUMP
5434 if test -n "$OBJDUMP"; then
5435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5436 $as_echo "$OBJDUMP" >&6; }
5437 else
5438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5440 fi
5441
5442
5443 fi
5444 if test -z "$ac_cv_prog_OBJDUMP"; then
5445   ac_ct_OBJDUMP=$OBJDUMP
5446   # Extract the first word of "objdump", so it can be a program name with args.
5447 set dummy objdump; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5451   $as_echo_n "(cached) " >&6
5452 else
5453   if test -n "$ac_ct_OBJDUMP"; then
5454   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5458 do
5459   IFS=$as_save_IFS
5460   test -z "$as_dir" && as_dir=.
5461     for ac_exec_ext in '' $ac_executable_extensions; do
5462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465     break 2
5466   fi
5467 done
5468   done
5469 IFS=$as_save_IFS
5470
5471 fi
5472 fi
5473 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5474 if test -n "$ac_ct_OBJDUMP"; then
5475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5476 $as_echo "$ac_ct_OBJDUMP" >&6; }
5477 else
5478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5480 fi
5481
5482   if test "x$ac_ct_OBJDUMP" = x; then
5483     OBJDUMP="false"
5484   else
5485     case $cross_compiling:$ac_tool_warned in
5486 yes:)
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5489 ac_tool_warned=yes ;;
5490 esac
5491     OBJDUMP=$ac_ct_OBJDUMP
5492   fi
5493 else
5494   OBJDUMP="$ac_cv_prog_OBJDUMP"
5495 fi
5496
5497 test -z "$OBJDUMP" && OBJDUMP=objdump
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5508 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5509 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5510   $as_echo_n "(cached) " >&6
5511 else
5512   lt_cv_file_magic_cmd='$MAGIC_CMD'
5513 lt_cv_file_magic_test_file=
5514 lt_cv_deplibs_check_method='unknown'
5515 # Need to set the preceding variable on all platforms that support
5516 # interlibrary dependencies.
5517 # 'none' -- dependencies not supported.
5518 # `unknown' -- same as none, but documents that we really don't know.
5519 # 'pass_all' -- all dependencies passed with no checks.
5520 # 'test_compile' -- check by making test program.
5521 # 'file_magic [[regex]]' -- check by looking for files in library path
5522 # which responds to the $file_magic_cmd with a given extended regex.
5523 # If you have `file' or equivalent on your system and you're not sure
5524 # whether `pass_all' will *always* work, you probably want this one.
5525
5526 case $host_os in
5527 aix[4-9]*)
5528   lt_cv_deplibs_check_method=pass_all
5529   ;;
5530
5531 beos*)
5532   lt_cv_deplibs_check_method=pass_all
5533   ;;
5534
5535 bsdi[45]*)
5536   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5537   lt_cv_file_magic_cmd='/usr/bin/file -L'
5538   lt_cv_file_magic_test_file=/shlib/libc.so
5539   ;;
5540
5541 cygwin*)
5542   # func_win32_libid is a shell function defined in ltmain.sh
5543   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5544   lt_cv_file_magic_cmd='func_win32_libid'
5545   ;;
5546
5547 mingw* | pw32*)
5548   # Base MSYS/MinGW do not provide the 'file' command needed by
5549   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5550   # unless we find 'file', for example because we are cross-compiling.
5551   if ( file / ) >/dev/null 2>&1; then
5552     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5553     lt_cv_file_magic_cmd='func_win32_libid'
5554   else
5555     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5556     lt_cv_file_magic_cmd='$OBJDUMP -f'
5557   fi
5558   ;;
5559
5560 cegcc)
5561   # use the weaker test based on 'objdump'. See mingw*.
5562   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5563   lt_cv_file_magic_cmd='$OBJDUMP -f'
5564   ;;
5565
5566 darwin* | rhapsody*)
5567   lt_cv_deplibs_check_method=pass_all
5568   ;;
5569
5570 freebsd* | dragonfly*)
5571   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5572     case $host_cpu in
5573     i*86 )
5574       # Not sure whether the presence of OpenBSD here was a mistake.
5575       # Let's accept both of them until this is cleared up.
5576       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5577       lt_cv_file_magic_cmd=/usr/bin/file
5578       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5579       ;;
5580     esac
5581   else
5582     lt_cv_deplibs_check_method=pass_all
5583   fi
5584   ;;
5585
5586 gnu*)
5587   lt_cv_deplibs_check_method=pass_all
5588   ;;
5589
5590 hpux10.20* | hpux11*)
5591   lt_cv_file_magic_cmd=/usr/bin/file
5592   case $host_cpu in
5593   ia64*)
5594     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5595     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5596     ;;
5597   hppa*64*)
5598     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5599     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5600     ;;
5601   *)
5602     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5603     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5604     ;;
5605   esac
5606   ;;
5607
5608 interix[3-9]*)
5609   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5610   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5611   ;;
5612
5613 irix5* | irix6* | nonstopux*)
5614   case $LD in
5615   *-32|*"-32 ") libmagic=32-bit;;
5616   *-n32|*"-n32 ") libmagic=N32;;
5617   *-64|*"-64 ") libmagic=64-bit;;
5618   *) libmagic=never-match;;
5619   esac
5620   lt_cv_deplibs_check_method=pass_all
5621   ;;
5622
5623 # This must be Linux ELF.
5624 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5625   lt_cv_deplibs_check_method=pass_all
5626   ;;
5627
5628 netbsd* | netbsdelf*-gnu)
5629   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5630     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5631   else
5632     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5633   fi
5634   ;;
5635
5636 newos6*)
5637   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5638   lt_cv_file_magic_cmd=/usr/bin/file
5639   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5640   ;;
5641
5642 *nto* | *qnx*)
5643   lt_cv_deplibs_check_method=pass_all
5644   ;;
5645
5646 openbsd*)
5647   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5648     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5649   else
5650     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5651   fi
5652   ;;
5653
5654 osf3* | osf4* | osf5*)
5655   lt_cv_deplibs_check_method=pass_all
5656   ;;
5657
5658 rdos*)
5659   lt_cv_deplibs_check_method=pass_all
5660   ;;
5661
5662 solaris*)
5663   lt_cv_deplibs_check_method=pass_all
5664   ;;
5665
5666 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5667   lt_cv_deplibs_check_method=pass_all
5668   ;;
5669
5670 sysv4 | sysv4.3*)
5671   case $host_vendor in
5672   motorola)
5673     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]'
5674     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5675     ;;
5676   ncr)
5677     lt_cv_deplibs_check_method=pass_all
5678     ;;
5679   sequent)
5680     lt_cv_file_magic_cmd='/bin/file'
5681     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5682     ;;
5683   sni)
5684     lt_cv_file_magic_cmd='/bin/file'
5685     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5686     lt_cv_file_magic_test_file=/lib/libc.so
5687     ;;
5688   siemens)
5689     lt_cv_deplibs_check_method=pass_all
5690     ;;
5691   pc)
5692     lt_cv_deplibs_check_method=pass_all
5693     ;;
5694   esac
5695   ;;
5696
5697 tpf*)
5698   lt_cv_deplibs_check_method=pass_all
5699   ;;
5700 esac
5701
5702 fi
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5704 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5705 file_magic_cmd=$lt_cv_file_magic_cmd
5706 deplibs_check_method=$lt_cv_deplibs_check_method
5707 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720 if test -n "$ac_tool_prefix"; then
5721   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5722 set dummy ${ac_tool_prefix}ar; ac_word=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if test "${ac_cv_prog_AR+set}" = set; then :
5726   $as_echo_n "(cached) " >&6
5727 else
5728   if test -n "$AR"; then
5729   ac_cv_prog_AR="$AR" # Let the user override the test.
5730 else
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5733 do
5734   IFS=$as_save_IFS
5735   test -z "$as_dir" && as_dir=.
5736     for ac_exec_ext in '' $ac_executable_extensions; do
5737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5738     ac_cv_prog_AR="${ac_tool_prefix}ar"
5739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740     break 2
5741   fi
5742 done
5743   done
5744 IFS=$as_save_IFS
5745
5746 fi
5747 fi
5748 AR=$ac_cv_prog_AR
5749 if test -n "$AR"; then
5750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5751 $as_echo "$AR" >&6; }
5752 else
5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 $as_echo "no" >&6; }
5755 fi
5756
5757
5758 fi
5759 if test -z "$ac_cv_prog_AR"; then
5760   ac_ct_AR=$AR
5761   # Extract the first word of "ar", so it can be a program name with args.
5762 set dummy ar; ac_word=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5766   $as_echo_n "(cached) " >&6
5767 else
5768   if test -n "$ac_ct_AR"; then
5769   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5770 else
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH
5773 do
5774   IFS=$as_save_IFS
5775   test -z "$as_dir" && as_dir=.
5776     for ac_exec_ext in '' $ac_executable_extensions; do
5777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5778     ac_cv_prog_ac_ct_AR="ar"
5779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780     break 2
5781   fi
5782 done
5783   done
5784 IFS=$as_save_IFS
5785
5786 fi
5787 fi
5788 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5789 if test -n "$ac_ct_AR"; then
5790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5791 $as_echo "$ac_ct_AR" >&6; }
5792 else
5793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794 $as_echo "no" >&6; }
5795 fi
5796
5797   if test "x$ac_ct_AR" = x; then
5798     AR="false"
5799   else
5800     case $cross_compiling:$ac_tool_warned in
5801 yes:)
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5804 ac_tool_warned=yes ;;
5805 esac
5806     AR=$ac_ct_AR
5807   fi
5808 else
5809   AR="$ac_cv_prog_AR"
5810 fi
5811
5812 test -z "$AR" && AR=ar
5813 test -z "$AR_FLAGS" && AR_FLAGS=cru
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825 if test -n "$ac_tool_prefix"; then
5826   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5827 set dummy ${ac_tool_prefix}strip; ac_word=$2
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 $as_echo_n "checking for $ac_word... " >&6; }
5830 if test "${ac_cv_prog_STRIP+set}" = set; then :
5831   $as_echo_n "(cached) " >&6
5832 else
5833   if test -n "$STRIP"; then
5834   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5835 else
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5838 do
5839   IFS=$as_save_IFS
5840   test -z "$as_dir" && as_dir=.
5841     for ac_exec_ext in '' $ac_executable_extensions; do
5842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5843     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845     break 2
5846   fi
5847 done
5848   done
5849 IFS=$as_save_IFS
5850
5851 fi
5852 fi
5853 STRIP=$ac_cv_prog_STRIP
5854 if test -n "$STRIP"; then
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5856 $as_echo "$STRIP" >&6; }
5857 else
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5860 fi
5861
5862
5863 fi
5864 if test -z "$ac_cv_prog_STRIP"; then
5865   ac_ct_STRIP=$STRIP
5866   # Extract the first word of "strip", so it can be a program name with args.
5867 set dummy strip; ac_word=$2
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5869 $as_echo_n "checking for $ac_word... " >&6; }
5870 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5871   $as_echo_n "(cached) " >&6
5872 else
5873   if test -n "$ac_ct_STRIP"; then
5874   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879   IFS=$as_save_IFS
5880   test -z "$as_dir" && as_dir=.
5881     for ac_exec_ext in '' $ac_executable_extensions; do
5882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5883     ac_cv_prog_ac_ct_STRIP="strip"
5884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885     break 2
5886   fi
5887 done
5888   done
5889 IFS=$as_save_IFS
5890
5891 fi
5892 fi
5893 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5894 if test -n "$ac_ct_STRIP"; then
5895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5896 $as_echo "$ac_ct_STRIP" >&6; }
5897 else
5898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899 $as_echo "no" >&6; }
5900 fi
5901
5902   if test "x$ac_ct_STRIP" = x; then
5903     STRIP=":"
5904   else
5905     case $cross_compiling:$ac_tool_warned in
5906 yes:)
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5909 ac_tool_warned=yes ;;
5910 esac
5911     STRIP=$ac_ct_STRIP
5912   fi
5913 else
5914   STRIP="$ac_cv_prog_STRIP"
5915 fi
5916
5917 test -z "$STRIP" && STRIP=:
5918
5919
5920
5921
5922
5923
5924 if test -n "$ac_tool_prefix"; then
5925   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5926 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5930   $as_echo_n "(cached) " >&6
5931 else
5932   if test -n "$RANLIB"; then
5933   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938   IFS=$as_save_IFS
5939   test -z "$as_dir" && as_dir=.
5940     for ac_exec_ext in '' $ac_executable_extensions; do
5941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944     break 2
5945   fi
5946 done
5947   done
5948 IFS=$as_save_IFS
5949
5950 fi
5951 fi
5952 RANLIB=$ac_cv_prog_RANLIB
5953 if test -n "$RANLIB"; then
5954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5955 $as_echo "$RANLIB" >&6; }
5956 else
5957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5959 fi
5960
5961
5962 fi
5963 if test -z "$ac_cv_prog_RANLIB"; then
5964   ac_ct_RANLIB=$RANLIB
5965   # Extract the first word of "ranlib", so it can be a program name with args.
5966 set dummy ranlib; ac_word=$2
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968 $as_echo_n "checking for $ac_word... " >&6; }
5969 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5970   $as_echo_n "(cached) " >&6
5971 else
5972   if test -n "$ac_ct_RANLIB"; then
5973   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5974 else
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978   IFS=$as_save_IFS
5979   test -z "$as_dir" && as_dir=.
5980     for ac_exec_ext in '' $ac_executable_extensions; do
5981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5982     ac_cv_prog_ac_ct_RANLIB="ranlib"
5983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984     break 2
5985   fi
5986 done
5987   done
5988 IFS=$as_save_IFS
5989
5990 fi
5991 fi
5992 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5993 if test -n "$ac_ct_RANLIB"; then
5994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5995 $as_echo "$ac_ct_RANLIB" >&6; }
5996 else
5997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998 $as_echo "no" >&6; }
5999 fi
6000
6001   if test "x$ac_ct_RANLIB" = x; then
6002     RANLIB=":"
6003   else
6004     case $cross_compiling:$ac_tool_warned in
6005 yes:)
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6008 ac_tool_warned=yes ;;
6009 esac
6010     RANLIB=$ac_ct_RANLIB
6011   fi
6012 else
6013   RANLIB="$ac_cv_prog_RANLIB"
6014 fi
6015
6016 test -z "$RANLIB" && RANLIB=:
6017
6018
6019
6020
6021
6022
6023 # Determine commands to create old-style static archives.
6024 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6025 old_postinstall_cmds='chmod 644 $oldlib'
6026 old_postuninstall_cmds=
6027
6028 if test -n "$RANLIB"; then
6029   case $host_os in
6030   openbsd*)
6031     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6032     ;;
6033   *)
6034     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6035     ;;
6036   esac
6037   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6038 fi
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073 # If no C compiler was specified, use CC.
6074 LTCC=${LTCC-"$CC"}
6075
6076 # If no C compiler flags were specified, use CFLAGS.
6077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6078
6079 # Allow CC to be a program name with arguments.
6080 compiler=$CC
6081
6082
6083 # Check for command to grab the raw symbol name followed by C symbol from nm.
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6085 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6086 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6087   $as_echo_n "(cached) " >&6
6088 else
6089
6090 # These are sane defaults that work on at least a few old systems.
6091 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6092
6093 # Character class describing NM global symbol codes.
6094 symcode='[BCDEGRST]'
6095
6096 # Regexp to match symbols that can be accessed directly from C.
6097 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6098
6099 # Define system-specific variables.
6100 case $host_os in
6101 aix*)
6102   symcode='[BCDT]'
6103   ;;
6104 cygwin* | mingw* | pw32* | cegcc*)
6105   symcode='[ABCDGISTW]'
6106   ;;
6107 hpux*)
6108   if test "$host_cpu" = ia64; then
6109     symcode='[ABCDEGRST]'
6110   fi
6111   ;;
6112 irix* | nonstopux*)
6113   symcode='[BCDEGRST]'
6114   ;;
6115 osf*)
6116   symcode='[BCDEGQRST]'
6117   ;;
6118 solaris*)
6119   symcode='[BDRT]'
6120   ;;
6121 sco3.2v5*)
6122   symcode='[DT]'
6123   ;;
6124 sysv4.2uw2*)
6125   symcode='[DT]'
6126   ;;
6127 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6128   symcode='[ABDT]'
6129   ;;
6130 sysv4)
6131   symcode='[DFNSTU]'
6132   ;;
6133 esac
6134
6135 # If we're using GNU nm, then use its standard symbol codes.
6136 case `$NM -V 2>&1` in
6137 *GNU* | *'with BFD'*)
6138   symcode='[ABCDGIRSTW]' ;;
6139 esac
6140
6141 # Transform an extracted symbol line into a proper C declaration.
6142 # Some systems (esp. on ia64) link data and code symbols differently,
6143 # so use this general approach.
6144 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6145
6146 # Transform an extracted symbol line into symbol name and symbol address
6147 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6148 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'"
6149
6150 # Handle CRLF in mingw tool chain
6151 opt_cr=
6152 case $build_os in
6153 mingw*)
6154   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6155   ;;
6156 esac
6157
6158 # Try without a prefix underscore, then with it.
6159 for ac_symprfx in "" "_"; do
6160
6161   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6162   symxfrm="\\1 $ac_symprfx\\2 \\2"
6163
6164   # Write the raw and C identifiers.
6165   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6166     # Fake it for dumpbin and say T for any non-static function
6167     # and D for any global variable.
6168     # Also find C++ and __fastcall symbols from MSVC++,
6169     # which start with @ or ?.
6170     lt_cv_sys_global_symbol_pipe="$AWK '"\
6171 "     {last_section=section; section=\$ 3};"\
6172 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6173 "     \$ 0!~/External *\|/{next};"\
6174 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6175 "     {if(hide[section]) next};"\
6176 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6177 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6178 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6179 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6180 "     ' prfx=^$ac_symprfx"
6181   else
6182     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6183   fi
6184
6185   # Check to see that the pipe works correctly.
6186   pipe_works=no
6187
6188   rm -f conftest*
6189   cat > conftest.$ac_ext <<_LT_EOF
6190 #ifdef __cplusplus
6191 extern "C" {
6192 #endif
6193 char nm_test_var;
6194 void nm_test_func(void);
6195 void nm_test_func(void){}
6196 #ifdef __cplusplus
6197 }
6198 #endif
6199 int main(){nm_test_var='a';nm_test_func();return(0);}
6200 _LT_EOF
6201
6202   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6203   (eval $ac_compile) 2>&5
6204   ac_status=$?
6205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6206   test $ac_status = 0; }; then
6207     # Now try to grab the symbols.
6208     nlist=conftest.nm
6209     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6210   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6211   ac_status=$?
6212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6213   test $ac_status = 0; } && test -s "$nlist"; then
6214       # Try sorting and uniquifying the output.
6215       if sort "$nlist" | uniq > "$nlist"T; then
6216         mv -f "$nlist"T "$nlist"
6217       else
6218         rm -f "$nlist"T
6219       fi
6220
6221       # Make sure that we snagged all the symbols we need.
6222       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6223         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6224           cat <<_LT_EOF > conftest.$ac_ext
6225 #ifdef __cplusplus
6226 extern "C" {
6227 #endif
6228
6229 _LT_EOF
6230           # Now generate the symbol file.
6231           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6232
6233           cat <<_LT_EOF >> conftest.$ac_ext
6234
6235 /* The mapping between symbol names and symbols.  */
6236 const struct {
6237   const char *name;
6238   void       *address;
6239 }
6240 lt__PROGRAM__LTX_preloaded_symbols[] =
6241 {
6242   { "@PROGRAM@", (void *) 0 },
6243 _LT_EOF
6244           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6245           cat <<\_LT_EOF >> conftest.$ac_ext
6246   {0, (void *) 0}
6247 };
6248
6249 /* This works around a problem in FreeBSD linker */
6250 #ifdef FREEBSD_WORKAROUND
6251 static const void *lt_preloaded_setup() {
6252   return lt__PROGRAM__LTX_preloaded_symbols;
6253 }
6254 #endif
6255
6256 #ifdef __cplusplus
6257 }
6258 #endif
6259 _LT_EOF
6260           # Now try linking the two files.
6261           mv conftest.$ac_objext conftstm.$ac_objext
6262           lt_save_LIBS="$LIBS"
6263           lt_save_CFLAGS="$CFLAGS"
6264           LIBS="conftstm.$ac_objext"
6265           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6266           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6267   (eval $ac_link) 2>&5
6268   ac_status=$?
6269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6270   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6271             pipe_works=yes
6272           fi
6273           LIBS="$lt_save_LIBS"
6274           CFLAGS="$lt_save_CFLAGS"
6275         else
6276           echo "cannot find nm_test_func in $nlist" >&5
6277         fi
6278       else
6279         echo "cannot find nm_test_var in $nlist" >&5
6280       fi
6281     else
6282       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6283     fi
6284   else
6285     echo "$progname: failed program was:" >&5
6286     cat conftest.$ac_ext >&5
6287   fi
6288   rm -rf conftest* conftst*
6289
6290   # Do not use the global_symbol_pipe unless it works.
6291   if test "$pipe_works" = yes; then
6292     break
6293   else
6294     lt_cv_sys_global_symbol_pipe=
6295   fi
6296 done
6297
6298 fi
6299
6300 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6301   lt_cv_sys_global_symbol_to_cdecl=
6302 fi
6303 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6305 $as_echo "failed" >&6; }
6306 else
6307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6308 $as_echo "ok" >&6; }
6309 fi
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333 # Check whether --enable-libtool-lock was given.
6334 if test "${enable_libtool_lock+set}" = set; then :
6335   enableval=$enable_libtool_lock;
6336 fi
6337
6338 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6339
6340 # Some flags need to be propagated to the compiler or linker for good
6341 # libtool support.
6342 case $host in
6343 ia64-*-hpux*)
6344   # Find out which ABI we are using.
6345   echo 'int i;' > conftest.$ac_ext
6346   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6347   (eval $ac_compile) 2>&5
6348   ac_status=$?
6349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6350   test $ac_status = 0; }; then
6351     case `/usr/bin/file conftest.$ac_objext` in
6352       *ELF-32*)
6353         HPUX_IA64_MODE="32"
6354         ;;
6355       *ELF-64*)
6356         HPUX_IA64_MODE="64"
6357         ;;
6358     esac
6359   fi
6360   rm -rf conftest*
6361   ;;
6362 *-*-irix6*)
6363   # Find out which ABI we are using.
6364   echo '#line 6364 "configure"' > conftest.$ac_ext
6365   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6366   (eval $ac_compile) 2>&5
6367   ac_status=$?
6368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6369   test $ac_status = 0; }; then
6370     if test "$lt_cv_prog_gnu_ld" = yes; then
6371       case `/usr/bin/file conftest.$ac_objext` in
6372         *32-bit*)
6373           LD="${LD-ld} -melf32bsmip"
6374           ;;
6375         *N32*)
6376           LD="${LD-ld} -melf32bmipn32"
6377           ;;
6378         *64-bit*)
6379           LD="${LD-ld} -melf64bmip"
6380         ;;
6381       esac
6382     else
6383       case `/usr/bin/file conftest.$ac_objext` in
6384         *32-bit*)
6385           LD="${LD-ld} -32"
6386           ;;
6387         *N32*)
6388           LD="${LD-ld} -n32"
6389           ;;
6390         *64-bit*)
6391           LD="${LD-ld} -64"
6392           ;;
6393       esac
6394     fi
6395   fi
6396   rm -rf conftest*
6397   ;;
6398
6399 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6400 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6401   # Find out which ABI we are using.
6402   echo 'int i;' > conftest.$ac_ext
6403   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6404   (eval $ac_compile) 2>&5
6405   ac_status=$?
6406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407   test $ac_status = 0; }; then
6408     case `/usr/bin/file conftest.o` in
6409       *32-bit*)
6410         case $host in
6411           x86_64-*kfreebsd*-gnu)
6412             LD="${LD-ld} -m elf_i386_fbsd"
6413             ;;
6414           x86_64-*linux*)
6415             LD="${LD-ld} -m elf_i386"
6416             ;;
6417           ppc64-*linux*|powerpc64-*linux*)
6418             LD="${LD-ld} -m elf32ppclinux"
6419             ;;
6420           s390x-*linux*)
6421             LD="${LD-ld} -m elf_s390"
6422             ;;
6423           sparc64-*linux*)
6424             LD="${LD-ld} -m elf32_sparc"
6425             ;;
6426         esac
6427         ;;
6428       *64-bit*)
6429         case $host in
6430           x86_64-*kfreebsd*-gnu)
6431             LD="${LD-ld} -m elf_x86_64_fbsd"
6432             ;;
6433           x86_64-*linux*)
6434             LD="${LD-ld} -m elf_x86_64"
6435             ;;
6436           ppc*-*linux*|powerpc*-*linux*)
6437             LD="${LD-ld} -m elf64ppc"
6438             ;;
6439           s390*-*linux*|s390*-*tpf*)
6440             LD="${LD-ld} -m elf64_s390"
6441             ;;
6442           sparc*-*linux*)
6443             LD="${LD-ld} -m elf64_sparc"
6444             ;;
6445         esac
6446         ;;
6447     esac
6448   fi
6449   rm -rf conftest*
6450   ;;
6451
6452 *-*-sco3.2v5*)
6453   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6454   SAVE_CFLAGS="$CFLAGS"
6455   CFLAGS="$CFLAGS -belf"
6456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6457 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6458 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6459   $as_echo_n "(cached) " >&6
6460 else
6461   ac_ext=c
6462 ac_cpp='$CPP $CPPFLAGS'
6463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6466
6467      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h.  */
6469
6470 int
6471 main ()
6472 {
6473
6474   ;
6475   return 0;
6476 }
6477 _ACEOF
6478 if ac_fn_c_try_link "$LINENO"; then :
6479   lt_cv_cc_needs_belf=yes
6480 else
6481   lt_cv_cc_needs_belf=no
6482 fi
6483 rm -f core conftest.err conftest.$ac_objext \
6484     conftest$ac_exeext conftest.$ac_ext
6485      ac_ext=c
6486 ac_cpp='$CPP $CPPFLAGS'
6487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6490
6491 fi
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6493 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6494   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6495     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6496     CFLAGS="$SAVE_CFLAGS"
6497   fi
6498   ;;
6499 sparc*-*solaris*)
6500   # Find out which ABI we are using.
6501   echo 'int i;' > conftest.$ac_ext
6502   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6503   (eval $ac_compile) 2>&5
6504   ac_status=$?
6505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6506   test $ac_status = 0; }; then
6507     case `/usr/bin/file conftest.o` in
6508     *64-bit*)
6509       case $lt_cv_prog_gnu_ld in
6510       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6511       *)
6512         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6513           LD="${LD-ld} -64"
6514         fi
6515         ;;
6516       esac
6517       ;;
6518     esac
6519   fi
6520   rm -rf conftest*
6521   ;;
6522 esac
6523
6524 need_locks="$enable_libtool_lock"
6525
6526
6527   case $host_os in
6528     rhapsody* | darwin*)
6529     if test -n "$ac_tool_prefix"; then
6530   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6535   $as_echo_n "(cached) " >&6
6536 else
6537   if test -n "$DSYMUTIL"; then
6538   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543   IFS=$as_save_IFS
6544   test -z "$as_dir" && as_dir=.
6545     for ac_exec_ext in '' $ac_executable_extensions; do
6546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549     break 2
6550   fi
6551 done
6552   done
6553 IFS=$as_save_IFS
6554
6555 fi
6556 fi
6557 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6558 if test -n "$DSYMUTIL"; then
6559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6560 $as_echo "$DSYMUTIL" >&6; }
6561 else
6562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6564 fi
6565
6566
6567 fi
6568 if test -z "$ac_cv_prog_DSYMUTIL"; then
6569   ac_ct_DSYMUTIL=$DSYMUTIL
6570   # Extract the first word of "dsymutil", so it can be a program name with args.
6571 set dummy dsymutil; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6575   $as_echo_n "(cached) " >&6
6576 else
6577   if test -n "$ac_ct_DSYMUTIL"; then
6578   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585     for ac_exec_ext in '' $ac_executable_extensions; do
6586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592   done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6598 if test -n "$ac_ct_DSYMUTIL"; then
6599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6600 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6601 else
6602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6605
6606   if test "x$ac_ct_DSYMUTIL" = x; then
6607     DSYMUTIL=":"
6608   else
6609     case $cross_compiling:$ac_tool_warned in
6610 yes:)
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613 ac_tool_warned=yes ;;
6614 esac
6615     DSYMUTIL=$ac_ct_DSYMUTIL
6616   fi
6617 else
6618   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6619 fi
6620
6621     if test -n "$ac_tool_prefix"; then
6622   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625 $as_echo_n "checking for $ac_word... " >&6; }
6626 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6627   $as_echo_n "(cached) " >&6
6628 else
6629   if test -n "$NMEDIT"; then
6630   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635   IFS=$as_save_IFS
6636   test -z "$as_dir" && as_dir=.
6637     for ac_exec_ext in '' $ac_executable_extensions; do
6638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641     break 2
6642   fi
6643 done
6644   done
6645 IFS=$as_save_IFS
6646
6647 fi
6648 fi
6649 NMEDIT=$ac_cv_prog_NMEDIT
6650 if test -n "$NMEDIT"; then
6651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6652 $as_echo "$NMEDIT" >&6; }
6653 else
6654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6656 fi
6657
6658
6659 fi
6660 if test -z "$ac_cv_prog_NMEDIT"; then
6661   ac_ct_NMEDIT=$NMEDIT
6662   # Extract the first word of "nmedit", so it can be a program name with args.
6663 set dummy nmedit; 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 test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6667   $as_echo_n "(cached) " >&6
6668 else
6669   if test -n "$ac_ct_NMEDIT"; then
6670   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # 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_ac_ct_NMEDIT="nmedit"
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 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6690 if test -n "$ac_ct_NMEDIT"; then
6691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6692 $as_echo "$ac_ct_NMEDIT" >&6; }
6693 else
6694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6696 fi
6697
6698   if test "x$ac_ct_NMEDIT" = x; then
6699     NMEDIT=":"
6700   else
6701     case $cross_compiling:$ac_tool_warned in
6702 yes:)
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6705 ac_tool_warned=yes ;;
6706 esac
6707     NMEDIT=$ac_ct_NMEDIT
6708   fi
6709 else
6710   NMEDIT="$ac_cv_prog_NMEDIT"
6711 fi
6712
6713     if test -n "$ac_tool_prefix"; then
6714   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6715 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if test "${ac_cv_prog_LIPO+set}" = set; then :
6719   $as_echo_n "(cached) " >&6
6720 else
6721   if test -n "$LIPO"; then
6722   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6723 else
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727   IFS=$as_save_IFS
6728   test -z "$as_dir" && as_dir=.
6729     for ac_exec_ext in '' $ac_executable_extensions; do
6730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733     break 2
6734   fi
6735 done
6736   done
6737 IFS=$as_save_IFS
6738
6739 fi
6740 fi
6741 LIPO=$ac_cv_prog_LIPO
6742 if test -n "$LIPO"; then
6743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6744 $as_echo "$LIPO" >&6; }
6745 else
6746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6748 fi
6749
6750
6751 fi
6752 if test -z "$ac_cv_prog_LIPO"; then
6753   ac_ct_LIPO=$LIPO
6754   # Extract the first word of "lipo", so it can be a program name with args.
6755 set dummy lipo; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6759   $as_echo_n "(cached) " >&6
6760 else
6761   if test -n "$ac_ct_LIPO"; then
6762   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767   IFS=$as_save_IFS
6768   test -z "$as_dir" && as_dir=.
6769     for ac_exec_ext in '' $ac_executable_extensions; do
6770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771     ac_cv_prog_ac_ct_LIPO="lipo"
6772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773     break 2
6774   fi
6775 done
6776   done
6777 IFS=$as_save_IFS
6778
6779 fi
6780 fi
6781 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6782 if test -n "$ac_ct_LIPO"; then
6783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6784 $as_echo "$ac_ct_LIPO" >&6; }
6785 else
6786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6788 fi
6789
6790   if test "x$ac_ct_LIPO" = x; then
6791     LIPO=":"
6792   else
6793     case $cross_compiling:$ac_tool_warned in
6794 yes:)
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797 ac_tool_warned=yes ;;
6798 esac
6799     LIPO=$ac_ct_LIPO
6800   fi
6801 else
6802   LIPO="$ac_cv_prog_LIPO"
6803 fi
6804
6805     if test -n "$ac_tool_prefix"; then
6806   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6807 set dummy ${ac_tool_prefix}otool; ac_word=$2
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 $as_echo_n "checking for $ac_word... " >&6; }
6810 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6811   $as_echo_n "(cached) " >&6
6812 else
6813   if test -n "$OTOOL"; then
6814   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819   IFS=$as_save_IFS
6820   test -z "$as_dir" && as_dir=.
6821     for ac_exec_ext in '' $ac_executable_extensions; do
6822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825     break 2
6826   fi
6827 done
6828   done
6829 IFS=$as_save_IFS
6830
6831 fi
6832 fi
6833 OTOOL=$ac_cv_prog_OTOOL
6834 if test -n "$OTOOL"; then
6835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6836 $as_echo "$OTOOL" >&6; }
6837 else
6838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6840 fi
6841
6842
6843 fi
6844 if test -z "$ac_cv_prog_OTOOL"; then
6845   ac_ct_OTOOL=$OTOOL
6846   # Extract the first word of "otool", so it can be a program name with args.
6847 set dummy otool; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6851   $as_echo_n "(cached) " >&6
6852 else
6853   if test -n "$ac_ct_OTOOL"; then
6854   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859   IFS=$as_save_IFS
6860   test -z "$as_dir" && as_dir=.
6861     for ac_exec_ext in '' $ac_executable_extensions; do
6862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863     ac_cv_prog_ac_ct_OTOOL="otool"
6864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865     break 2
6866   fi
6867 done
6868   done
6869 IFS=$as_save_IFS
6870
6871 fi
6872 fi
6873 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6874 if test -n "$ac_ct_OTOOL"; then
6875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6876 $as_echo "$ac_ct_OTOOL" >&6; }
6877 else
6878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6880 fi
6881
6882   if test "x$ac_ct_OTOOL" = x; then
6883     OTOOL=":"
6884   else
6885     case $cross_compiling:$ac_tool_warned in
6886 yes:)
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6889 ac_tool_warned=yes ;;
6890 esac
6891     OTOOL=$ac_ct_OTOOL
6892   fi
6893 else
6894   OTOOL="$ac_cv_prog_OTOOL"
6895 fi
6896
6897     if test -n "$ac_tool_prefix"; then
6898   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6899 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901 $as_echo_n "checking for $ac_word... " >&6; }
6902 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6903   $as_echo_n "(cached) " >&6
6904 else
6905   if test -n "$OTOOL64"; then
6906   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6907 else
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH
6910 do
6911   IFS=$as_save_IFS
6912   test -z "$as_dir" && as_dir=.
6913     for ac_exec_ext in '' $ac_executable_extensions; do
6914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6915     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917     break 2
6918   fi
6919 done
6920   done
6921 IFS=$as_save_IFS
6922
6923 fi
6924 fi
6925 OTOOL64=$ac_cv_prog_OTOOL64
6926 if test -n "$OTOOL64"; then
6927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6928 $as_echo "$OTOOL64" >&6; }
6929 else
6930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6931 $as_echo "no" >&6; }
6932 fi
6933
6934
6935 fi
6936 if test -z "$ac_cv_prog_OTOOL64"; then
6937   ac_ct_OTOOL64=$OTOOL64
6938   # Extract the first word of "otool64", so it can be a program name with args.
6939 set dummy otool64; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6943   $as_echo_n "(cached) " >&6
6944 else
6945   if test -n "$ac_ct_OTOOL64"; then
6946   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951   IFS=$as_save_IFS
6952   test -z "$as_dir" && as_dir=.
6953     for ac_exec_ext in '' $ac_executable_extensions; do
6954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6955     ac_cv_prog_ac_ct_OTOOL64="otool64"
6956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957     break 2
6958   fi
6959 done
6960   done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6966 if test -n "$ac_ct_OTOOL64"; then
6967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6968 $as_echo "$ac_ct_OTOOL64" >&6; }
6969 else
6970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6972 fi
6973
6974   if test "x$ac_ct_OTOOL64" = x; then
6975     OTOOL64=":"
6976   else
6977     case $cross_compiling:$ac_tool_warned in
6978 yes:)
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6981 ac_tool_warned=yes ;;
6982 esac
6983     OTOOL64=$ac_ct_OTOOL64
6984   fi
6985 else
6986   OTOOL64="$ac_cv_prog_OTOOL64"
6987 fi
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7016 $as_echo_n "checking for -single_module linker flag... " >&6; }
7017 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7018   $as_echo_n "(cached) " >&6
7019 else
7020   lt_cv_apple_cc_single_mod=no
7021       if test -z "${LT_MULTI_MODULE}"; then
7022         # By default we will add the -single_module flag. You can override
7023         # by either setting the environment variable LT_MULTI_MODULE
7024         # non-empty at configure time, or by adding -multi_module to the
7025         # link flags.
7026         rm -rf libconftest.dylib*
7027         echo "int foo(void){return 1;}" > conftest.c
7028         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7029 -dynamiclib -Wl,-single_module conftest.c" >&5
7030         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7031           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7032         _lt_result=$?
7033         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7034           lt_cv_apple_cc_single_mod=yes
7035         else
7036           cat conftest.err >&5
7037         fi
7038         rm -rf libconftest.dylib*
7039         rm -f conftest.*
7040       fi
7041 fi
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7043 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7045 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7046 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7047   $as_echo_n "(cached) " >&6
7048 else
7049   lt_cv_ld_exported_symbols_list=no
7050       save_LDFLAGS=$LDFLAGS
7051       echo "_main" > conftest.sym
7052       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7053       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h.  */
7055
7056 int
7057 main ()
7058 {
7059
7060   ;
7061   return 0;
7062 }
7063 _ACEOF
7064 if ac_fn_c_try_link "$LINENO"; then :
7065   lt_cv_ld_exported_symbols_list=yes
7066 else
7067   lt_cv_ld_exported_symbols_list=no
7068 fi
7069 rm -f core conftest.err conftest.$ac_objext \
7070     conftest$ac_exeext conftest.$ac_ext
7071         LDFLAGS="$save_LDFLAGS"
7072
7073 fi
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7075 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7076     case $host_os in
7077     rhapsody* | darwin1.[012])
7078       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7079     darwin1.*)
7080       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7081     darwin*) # darwin 5.x on
7082       # if running on 10.5 or later, the deployment target defaults
7083       # to the OS version, if on x86, and 10.4, the deployment
7084       # target defaults to 10.4. Don't you love it?
7085       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7086         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7087           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7088         10.[012]*)
7089           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7090         10.*)
7091           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7092       esac
7093     ;;
7094   esac
7095     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7096       _lt_dar_single_mod='$single_module'
7097     fi
7098     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7099       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7100     else
7101       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7102     fi
7103     if test "$DSYMUTIL" != ":"; then
7104       _lt_dsymutil='~$DSYMUTIL $lib || :'
7105     else
7106       _lt_dsymutil=
7107     fi
7108     ;;
7109   esac
7110
7111 ac_ext=c
7112 ac_cpp='$CPP $CPPFLAGS'
7113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7117 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7118 # On Suns, sometimes $CPP names a directory.
7119 if test -n "$CPP" && test -d "$CPP"; then
7120   CPP=
7121 fi
7122 if test -z "$CPP"; then
7123   if test "${ac_cv_prog_CPP+set}" = set; then :
7124   $as_echo_n "(cached) " >&6
7125 else
7126       # Double quotes because CPP needs to be expanded
7127     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7128     do
7129       ac_preproc_ok=false
7130 for ac_c_preproc_warn_flag in '' yes
7131 do
7132   # Use a header file that comes with gcc, so configuring glibc
7133   # with a fresh cross-compiler works.
7134   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7135   # <limits.h> exists even on freestanding compilers.
7136   # On the NeXT, cc -E runs the code through the compiler's parser,
7137   # not just through cpp. "Syntax error" is here to catch this case.
7138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h.  */
7140 #ifdef __STDC__
7141 # include <limits.h>
7142 #else
7143 # include <assert.h>
7144 #endif
7145                      Syntax error
7146 _ACEOF
7147 if ac_fn_c_try_cpp "$LINENO"; then :
7148
7149 else
7150   # Broken: fails on valid input.
7151 continue
7152 fi
7153 rm -f conftest.err conftest.i conftest.$ac_ext
7154
7155   # OK, works on sane cases.  Now check whether nonexistent headers
7156   # can be detected and how.
7157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h.  */
7159 #include <ac_nonexistent.h>
7160 _ACEOF
7161 if ac_fn_c_try_cpp "$LINENO"; then :
7162   # Broken: success on invalid input.
7163 continue
7164 else
7165   # Passes both tests.
7166 ac_preproc_ok=:
7167 break
7168 fi
7169 rm -f conftest.err conftest.i conftest.$ac_ext
7170
7171 done
7172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7173 rm -f conftest.i conftest.err conftest.$ac_ext
7174 if $ac_preproc_ok; then :
7175   break
7176 fi
7177
7178     done
7179     ac_cv_prog_CPP=$CPP
7180
7181 fi
7182   CPP=$ac_cv_prog_CPP
7183 else
7184   ac_cv_prog_CPP=$CPP
7185 fi
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7187 $as_echo "$CPP" >&6; }
7188 ac_preproc_ok=false
7189 for ac_c_preproc_warn_flag in '' yes
7190 do
7191   # Use a header file that comes with gcc, so configuring glibc
7192   # with a fresh cross-compiler works.
7193   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7194   # <limits.h> exists even on freestanding compilers.
7195   # On the NeXT, cc -E runs the code through the compiler's parser,
7196   # not just through cpp. "Syntax error" is here to catch this case.
7197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h.  */
7199 #ifdef __STDC__
7200 # include <limits.h>
7201 #else
7202 # include <assert.h>
7203 #endif
7204                      Syntax error
7205 _ACEOF
7206 if ac_fn_c_try_cpp "$LINENO"; then :
7207
7208 else
7209   # Broken: fails on valid input.
7210 continue
7211 fi
7212 rm -f conftest.err conftest.i conftest.$ac_ext
7213
7214   # OK, works on sane cases.  Now check whether nonexistent headers
7215   # can be detected and how.
7216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h.  */
7218 #include <ac_nonexistent.h>
7219 _ACEOF
7220 if ac_fn_c_try_cpp "$LINENO"; then :
7221   # Broken: success on invalid input.
7222 continue
7223 else
7224   # Passes both tests.
7225 ac_preproc_ok=:
7226 break
7227 fi
7228 rm -f conftest.err conftest.i conftest.$ac_ext
7229
7230 done
7231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7232 rm -f conftest.i conftest.err conftest.$ac_ext
7233 if $ac_preproc_ok; then :
7234
7235 else
7236   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7238 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7239 See \`config.log' for more details" "$LINENO" 5 ; }
7240 fi
7241
7242 ac_ext=c
7243 ac_cpp='$CPP $CPPFLAGS'
7244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7247
7248
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7250 $as_echo_n "checking for ANSI C header files... " >&6; }
7251 if test "${ac_cv_header_stdc+set}" = set; then :
7252   $as_echo_n "(cached) " >&6
7253 else
7254   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h.  */
7256 #include <stdlib.h>
7257 #include <stdarg.h>
7258 #include <string.h>
7259 #include <float.h>
7260
7261 int
7262 main ()
7263 {
7264
7265   ;
7266   return 0;
7267 }
7268 _ACEOF
7269 if ac_fn_c_try_compile "$LINENO"; then :
7270   ac_cv_header_stdc=yes
7271 else
7272   ac_cv_header_stdc=no
7273 fi
7274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7275
7276 if test $ac_cv_header_stdc = yes; then
7277   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279 /* end confdefs.h.  */
7280 #include <string.h>
7281
7282 _ACEOF
7283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7284   $EGREP "memchr" >/dev/null 2>&1; then :
7285
7286 else
7287   ac_cv_header_stdc=no
7288 fi
7289 rm -f conftest*
7290
7291 fi
7292
7293 if test $ac_cv_header_stdc = yes; then
7294   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296 /* end confdefs.h.  */
7297 #include <stdlib.h>
7298
7299 _ACEOF
7300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7301   $EGREP "free" >/dev/null 2>&1; then :
7302
7303 else
7304   ac_cv_header_stdc=no
7305 fi
7306 rm -f conftest*
7307
7308 fi
7309
7310 if test $ac_cv_header_stdc = yes; then
7311   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7312   if test "$cross_compiling" = yes; then :
7313   :
7314 else
7315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h.  */
7317 #include <ctype.h>
7318 #include <stdlib.h>
7319 #if ((' ' & 0x0FF) == 0x020)
7320 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7321 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7322 #else
7323 # define ISLOWER(c) \
7324                    (('a' <= (c) && (c) <= 'i') \
7325                      || ('j' <= (c) && (c) <= 'r') \
7326                      || ('s' <= (c) && (c) <= 'z'))
7327 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7328 #endif
7329
7330 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7331 int
7332 main ()
7333 {
7334   int i;
7335   for (i = 0; i < 256; i++)
7336     if (XOR (islower (i), ISLOWER (i))
7337         || toupper (i) != TOUPPER (i))
7338       return 2;
7339   return 0;
7340 }
7341 _ACEOF
7342 if ac_fn_c_try_run "$LINENO"; then :
7343
7344 else
7345   ac_cv_header_stdc=no
7346 fi
7347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7348   conftest.$ac_objext conftest.beam conftest.$ac_ext
7349 fi
7350
7351 fi
7352 fi
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7354 $as_echo "$ac_cv_header_stdc" >&6; }
7355 if test $ac_cv_header_stdc = yes; then
7356
7357 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7358
7359 fi
7360
7361 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7362 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7363                   inttypes.h stdint.h unistd.h
7364 do :
7365   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7366 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7367 "
7368 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7369   cat >>confdefs.h <<_ACEOF
7370 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7371 _ACEOF
7372
7373 fi
7374
7375 done
7376
7377
7378 for ac_header in dlfcn.h
7379 do :
7380   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7381 "
7382 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7383   cat >>confdefs.h <<_ACEOF
7384 #define HAVE_DLFCN_H 1
7385 _ACEOF
7386
7387 fi
7388
7389 done
7390
7391
7392
7393 ac_ext=cpp
7394 ac_cpp='$CXXCPP $CPPFLAGS'
7395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7398 if test -z "$CXX"; then
7399   if test -n "$CCC"; then
7400     CXX=$CCC
7401   else
7402     if test -n "$ac_tool_prefix"; then
7403   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7404   do
7405     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7406 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408 $as_echo_n "checking for $ac_word... " >&6; }
7409 if test "${ac_cv_prog_CXX+set}" = set; then :
7410   $as_echo_n "(cached) " >&6
7411 else
7412   if test -n "$CXX"; then
7413   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7414 else
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 for as_dir in $PATH
7417 do
7418   IFS=$as_save_IFS
7419   test -z "$as_dir" && as_dir=.
7420     for ac_exec_ext in '' $ac_executable_extensions; do
7421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7422     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7424     break 2
7425   fi
7426 done
7427   done
7428 IFS=$as_save_IFS
7429
7430 fi
7431 fi
7432 CXX=$ac_cv_prog_CXX
7433 if test -n "$CXX"; then
7434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7435 $as_echo "$CXX" >&6; }
7436 else
7437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }
7439 fi
7440
7441
7442     test -n "$CXX" && break
7443   done
7444 fi
7445 if test -z "$CXX"; then
7446   ac_ct_CXX=$CXX
7447   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7448 do
7449   # Extract the first word of "$ac_prog", so it can be a program name with args.
7450 set dummy $ac_prog; ac_word=$2
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452 $as_echo_n "checking for $ac_word... " >&6; }
7453 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7454   $as_echo_n "(cached) " >&6
7455 else
7456   if test -n "$ac_ct_CXX"; then
7457   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7458 else
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462   IFS=$as_save_IFS
7463   test -z "$as_dir" && as_dir=.
7464     for ac_exec_ext in '' $ac_executable_extensions; do
7465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7466     ac_cv_prog_ac_ct_CXX="$ac_prog"
7467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468     break 2
7469   fi
7470 done
7471   done
7472 IFS=$as_save_IFS
7473
7474 fi
7475 fi
7476 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7477 if test -n "$ac_ct_CXX"; then
7478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7479 $as_echo "$ac_ct_CXX" >&6; }
7480 else
7481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482 $as_echo "no" >&6; }
7483 fi
7484
7485
7486   test -n "$ac_ct_CXX" && break
7487 done
7488
7489   if test "x$ac_ct_CXX" = x; then
7490     CXX="g++"
7491   else
7492     case $cross_compiling:$ac_tool_warned in
7493 yes:)
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7496 ac_tool_warned=yes ;;
7497 esac
7498     CXX=$ac_ct_CXX
7499   fi
7500 fi
7501
7502   fi
7503 fi
7504 # Provide some information about the compiler.
7505 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7506 set X $ac_compile
7507 ac_compiler=$2
7508 for ac_option in --version -v -V -qversion; do
7509   { { ac_try="$ac_compiler $ac_option >&5"
7510 case "(($ac_try" in
7511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7512   *) ac_try_echo=$ac_try;;
7513 esac
7514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7515 $as_echo "$ac_try_echo"; } >&5
7516   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7517   ac_status=$?
7518   if test -s conftest.err; then
7519     sed '10a\
7520 ... rest of stderr output deleted ...
7521          10q' conftest.err >conftest.er1
7522     cat conftest.er1 >&5
7523   fi
7524   rm -f conftest.er1 conftest.err
7525   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7526   test $ac_status = 0; }
7527 done
7528
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7530 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7531 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7532   $as_echo_n "(cached) " >&6
7533 else
7534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h.  */
7536
7537 int
7538 main ()
7539 {
7540 #ifndef __GNUC__
7541        choke me
7542 #endif
7543
7544   ;
7545   return 0;
7546 }
7547 _ACEOF
7548 if ac_fn_cxx_try_compile "$LINENO"; then :
7549   ac_compiler_gnu=yes
7550 else
7551   ac_compiler_gnu=no
7552 fi
7553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7554 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7555
7556 fi
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7558 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7559 if test $ac_compiler_gnu = yes; then
7560   GXX=yes
7561 else
7562   GXX=
7563 fi
7564 ac_test_CXXFLAGS=${CXXFLAGS+set}
7565 ac_save_CXXFLAGS=$CXXFLAGS
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7567 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7568 if test "${ac_cv_prog_cxx_g+set}" = set; then :
7569   $as_echo_n "(cached) " >&6
7570 else
7571   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7572    ac_cxx_werror_flag=yes
7573    ac_cv_prog_cxx_g=no
7574    CXXFLAGS="-g"
7575    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576 /* end confdefs.h.  */
7577
7578 int
7579 main ()
7580 {
7581
7582   ;
7583   return 0;
7584 }
7585 _ACEOF
7586 if ac_fn_cxx_try_compile "$LINENO"; then :
7587   ac_cv_prog_cxx_g=yes
7588 else
7589   CXXFLAGS=""
7590       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h.  */
7592
7593 int
7594 main ()
7595 {
7596
7597   ;
7598   return 0;
7599 }
7600 _ACEOF
7601 if ac_fn_cxx_try_compile "$LINENO"; then :
7602
7603 else
7604   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7605          CXXFLAGS="-g"
7606          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607 /* end confdefs.h.  */
7608
7609 int
7610 main ()
7611 {
7612
7613   ;
7614   return 0;
7615 }
7616 _ACEOF
7617 if ac_fn_cxx_try_compile "$LINENO"; then :
7618   ac_cv_prog_cxx_g=yes
7619 fi
7620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7621 fi
7622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7623 fi
7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7626 fi
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7628 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7629 if test "$ac_test_CXXFLAGS" = set; then
7630   CXXFLAGS=$ac_save_CXXFLAGS
7631 elif test $ac_cv_prog_cxx_g = yes; then
7632   if test "$GXX" = yes; then
7633     CXXFLAGS="-g -O2"
7634   else
7635     CXXFLAGS="-g"
7636   fi
7637 else
7638   if test "$GXX" = yes; then
7639     CXXFLAGS="-O2"
7640   else
7641     CXXFLAGS=
7642   fi
7643 fi
7644 ac_ext=c
7645 ac_cpp='$CPP $CPPFLAGS'
7646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7649
7650 depcc="$CXX"  am_compiler_list=
7651
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7653 $as_echo_n "checking dependency style of $depcc... " >&6; }
7654 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7655   $as_echo_n "(cached) " >&6
7656 else
7657   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7658   # We make a subdir and do the tests there.  Otherwise we can end up
7659   # making bogus files that we don't know about and never remove.  For
7660   # instance it was reported that on HP-UX the gcc test will end up
7661   # making a dummy file named `D' -- because `-MD' means `put the output
7662   # in D'.
7663   mkdir conftest.dir
7664   # Copy depcomp to subdir because otherwise we won't find it if we're
7665   # using a relative directory.
7666   cp "$am_depcomp" conftest.dir
7667   cd conftest.dir
7668   # We will build objects and dependencies in a subdirectory because
7669   # it helps to detect inapplicable dependency modes.  For instance
7670   # both Tru64's cc and ICC support -MD to output dependencies as a
7671   # side effect of compilation, but ICC will put the dependencies in
7672   # the current directory while Tru64 will put them in the object
7673   # directory.
7674   mkdir sub
7675
7676   am_cv_CXX_dependencies_compiler_type=none
7677   if test "$am_compiler_list" = ""; then
7678      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7679   fi
7680   am__universal=false
7681   case " $depcc " in #(
7682      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7683      esac
7684
7685   for depmode in $am_compiler_list; do
7686     # Setup a source with many dependencies, because some compilers
7687     # like to wrap large dependency lists on column 80 (with \), and
7688     # we should not choose a depcomp mode which is confused by this.
7689     #
7690     # We need to recreate these files for each test, as the compiler may
7691     # overwrite some of them when testing with obscure command lines.
7692     # This happens at least with the AIX C compiler.
7693     : > sub/conftest.c
7694     for i in 1 2 3 4 5 6; do
7695       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7696       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7697       # Solaris 8's {/usr,}/bin/sh.
7698       touch sub/conftst$i.h
7699     done
7700     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7701
7702     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7703     # mode.  It turns out that the SunPro C++ compiler does not properly
7704     # handle `-M -o', and we need to detect this.  Also, some Intel
7705     # versions had trouble with output in subdirs
7706     am__obj=sub/conftest.${OBJEXT-o}
7707     am__minus_obj="-o $am__obj"
7708     case $depmode in
7709     gcc)
7710       # This depmode causes a compiler race in universal mode.
7711       test "$am__universal" = false || continue
7712       ;;
7713     nosideeffect)
7714       # after this tag, mechanisms are not by side-effect, so they'll
7715       # only be used when explicitly requested
7716       if test "x$enable_dependency_tracking" = xyes; then
7717         continue
7718       else
7719         break
7720       fi
7721       ;;
7722     msvisualcpp | msvcmsys)
7723       # This compiler won't grok `-c -o', but also, the minuso test has
7724       # not run yet.  These depmodes are late enough in the game, and
7725       # so weak that their functioning should not be impacted.
7726       am__obj=conftest.${OBJEXT-o}
7727       am__minus_obj=
7728       ;;
7729     none) break ;;
7730     esac
7731     if depmode=$depmode \
7732        source=sub/conftest.c object=$am__obj \
7733        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7734        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7735          >/dev/null 2>conftest.err &&
7736        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7737        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7738        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7739        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7740       # icc doesn't choke on unknown options, it will just issue warnings
7741       # or remarks (even with -Werror).  So we grep stderr for any message
7742       # that says an option was ignored or not supported.
7743       # When given -MP, icc 7.0 and 7.1 complain thusly:
7744       #   icc: Command line warning: ignoring option '-M'; no argument required
7745       # The diagnosis changed in icc 8.0:
7746       #   icc: Command line remark: option '-MP' not supported
7747       if (grep 'ignoring option' conftest.err ||
7748           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7749         am_cv_CXX_dependencies_compiler_type=$depmode
7750         break
7751       fi
7752     fi
7753   done
7754
7755   cd ..
7756   rm -rf conftest.dir
7757 else
7758   am_cv_CXX_dependencies_compiler_type=none
7759 fi
7760
7761 fi
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7763 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7764 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7765
7766  if
7767   test "x$enable_dependency_tracking" != xno \
7768   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7769   am__fastdepCXX_TRUE=
7770   am__fastdepCXX_FALSE='#'
7771 else
7772   am__fastdepCXX_TRUE='#'
7773   am__fastdepCXX_FALSE=
7774 fi
7775
7776
7777 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7778     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7779     (test "X$CXX" != "Xg++"))) ; then
7780   ac_ext=cpp
7781 ac_cpp='$CXXCPP $CPPFLAGS'
7782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7786 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7787 if test -z "$CXXCPP"; then
7788   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7789   $as_echo_n "(cached) " >&6
7790 else
7791       # Double quotes because CXXCPP needs to be expanded
7792     for CXXCPP in "$CXX -E" "/lib/cpp"
7793     do
7794       ac_preproc_ok=false
7795 for ac_cxx_preproc_warn_flag in '' yes
7796 do
7797   # Use a header file that comes with gcc, so configuring glibc
7798   # with a fresh cross-compiler works.
7799   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7800   # <limits.h> exists even on freestanding compilers.
7801   # On the NeXT, cc -E runs the code through the compiler's parser,
7802   # not just through cpp. "Syntax error" is here to catch this case.
7803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h.  */
7805 #ifdef __STDC__
7806 # include <limits.h>
7807 #else
7808 # include <assert.h>
7809 #endif
7810                      Syntax error
7811 _ACEOF
7812 if ac_fn_cxx_try_cpp "$LINENO"; then :
7813
7814 else
7815   # Broken: fails on valid input.
7816 continue
7817 fi
7818 rm -f conftest.err conftest.i conftest.$ac_ext
7819
7820   # OK, works on sane cases.  Now check whether nonexistent headers
7821   # can be detected and how.
7822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823 /* end confdefs.h.  */
7824 #include <ac_nonexistent.h>
7825 _ACEOF
7826 if ac_fn_cxx_try_cpp "$LINENO"; then :
7827   # Broken: success on invalid input.
7828 continue
7829 else
7830   # Passes both tests.
7831 ac_preproc_ok=:
7832 break
7833 fi
7834 rm -f conftest.err conftest.i conftest.$ac_ext
7835
7836 done
7837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7838 rm -f conftest.i conftest.err conftest.$ac_ext
7839 if $ac_preproc_ok; then :
7840   break
7841 fi
7842
7843     done
7844     ac_cv_prog_CXXCPP=$CXXCPP
7845
7846 fi
7847   CXXCPP=$ac_cv_prog_CXXCPP
7848 else
7849   ac_cv_prog_CXXCPP=$CXXCPP
7850 fi
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7852 $as_echo "$CXXCPP" >&6; }
7853 ac_preproc_ok=false
7854 for ac_cxx_preproc_warn_flag in '' yes
7855 do
7856   # Use a header file that comes with gcc, so configuring glibc
7857   # with a fresh cross-compiler works.
7858   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7859   # <limits.h> exists even on freestanding compilers.
7860   # On the NeXT, cc -E runs the code through the compiler's parser,
7861   # not just through cpp. "Syntax error" is here to catch this case.
7862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h.  */
7864 #ifdef __STDC__
7865 # include <limits.h>
7866 #else
7867 # include <assert.h>
7868 #endif
7869                      Syntax error
7870 _ACEOF
7871 if ac_fn_cxx_try_cpp "$LINENO"; then :
7872
7873 else
7874   # Broken: fails on valid input.
7875 continue
7876 fi
7877 rm -f conftest.err conftest.i conftest.$ac_ext
7878
7879   # OK, works on sane cases.  Now check whether nonexistent headers
7880   # can be detected and how.
7881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h.  */
7883 #include <ac_nonexistent.h>
7884 _ACEOF
7885 if ac_fn_cxx_try_cpp "$LINENO"; then :
7886   # Broken: success on invalid input.
7887 continue
7888 else
7889   # Passes both tests.
7890 ac_preproc_ok=:
7891 break
7892 fi
7893 rm -f conftest.err conftest.i conftest.$ac_ext
7894
7895 done
7896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7897 rm -f conftest.i conftest.err conftest.$ac_ext
7898 if $ac_preproc_ok; then :
7899
7900 else
7901   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7903 _lt_caught_CXX_error=yes; }
7904 fi
7905
7906 ac_ext=c
7907 ac_cpp='$CPP $CPPFLAGS'
7908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7911
7912 else
7913   _lt_caught_CXX_error=yes
7914 fi
7915
7916
7917
7918
7919
7920 # Set options
7921
7922
7923
7924         enable_dlopen=no
7925
7926
7927   enable_win32_dll=no
7928
7929
7930             # Check whether --enable-shared was given.
7931 if test "${enable_shared+set}" = set; then :
7932   enableval=$enable_shared; p=${PACKAGE-default}
7933     case $enableval in
7934     yes) enable_shared=yes ;;
7935     no) enable_shared=no ;;
7936     *)
7937       enable_shared=no
7938       # Look at the argument we got.  We use all the common list separators.
7939       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7940       for pkg in $enableval; do
7941         IFS="$lt_save_ifs"
7942         if test "X$pkg" = "X$p"; then
7943           enable_shared=yes
7944         fi
7945       done
7946       IFS="$lt_save_ifs"
7947       ;;
7948     esac
7949 else
7950   enable_shared=yes
7951 fi
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961   # Check whether --enable-static was given.
7962 if test "${enable_static+set}" = set; then :
7963   enableval=$enable_static; p=${PACKAGE-default}
7964     case $enableval in
7965     yes) enable_static=yes ;;
7966     no) enable_static=no ;;
7967     *)
7968      enable_static=no
7969       # Look at the argument we got.  We use all the common list separators.
7970       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7971       for pkg in $enableval; do
7972         IFS="$lt_save_ifs"
7973         if test "X$pkg" = "X$p"; then
7974           enable_static=yes
7975         fi
7976       done
7977       IFS="$lt_save_ifs"
7978       ;;
7979     esac
7980 else
7981   enable_static=yes
7982 fi
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993 # Check whether --with-pic was given.
7994 if test "${with_pic+set}" = set; then :
7995   withval=$with_pic; pic_mode="$withval"
7996 else
7997   pic_mode=default
7998 fi
7999
8000
8001 test -z "$pic_mode" && pic_mode=default
8002
8003
8004
8005
8006
8007
8008
8009   # Check whether --enable-fast-install was given.
8010 if test "${enable_fast_install+set}" = set; then :
8011   enableval=$enable_fast_install; p=${PACKAGE-default}
8012     case $enableval in
8013     yes) enable_fast_install=yes ;;
8014     no) enable_fast_install=no ;;
8015     *)
8016       enable_fast_install=no
8017       # Look at the argument we got.  We use all the common list separators.
8018       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8019       for pkg in $enableval; do
8020         IFS="$lt_save_ifs"
8021         if test "X$pkg" = "X$p"; then
8022           enable_fast_install=yes
8023         fi
8024       done
8025       IFS="$lt_save_ifs"
8026       ;;
8027     esac
8028 else
8029   enable_fast_install=yes
8030 fi
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042 # This can be used to rebuild libtool when needed
8043 LIBTOOL_DEPS="$ltmain"
8044
8045 # Always use our own libtool.
8046 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072 test -z "$LN_S" && LN_S="ln -s"
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087 if test -n "${ZSH_VERSION+set}" ; then
8088    setopt NO_GLOB_SUBST
8089 fi
8090
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8092 $as_echo_n "checking for objdir... " >&6; }
8093 if test "${lt_cv_objdir+set}" = set; then :
8094   $as_echo_n "(cached) " >&6
8095 else
8096   rm -f .libs 2>/dev/null
8097 mkdir .libs 2>/dev/null
8098 if test -d .libs; then
8099   lt_cv_objdir=.libs
8100 else
8101   # MS-DOS does not allow filenames that begin with a dot.
8102   lt_cv_objdir=_libs
8103 fi
8104 rmdir .libs 2>/dev/null
8105 fi
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8107 $as_echo "$lt_cv_objdir" >&6; }
8108 objdir=$lt_cv_objdir
8109
8110
8111
8112
8113
8114 cat >>confdefs.h <<_ACEOF
8115 #define LT_OBJDIR "$lt_cv_objdir/"
8116 _ACEOF
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134 case $host_os in
8135 aix3*)
8136   # AIX sometimes has problems with the GCC collect2 program.  For some
8137   # reason, if we set the COLLECT_NAMES environment variable, the problems
8138   # vanish in a puff of smoke.
8139   if test "X${COLLECT_NAMES+set}" != Xset; then
8140     COLLECT_NAMES=
8141     export COLLECT_NAMES
8142   fi
8143   ;;
8144 esac
8145
8146 # Sed substitution that helps us do robust quoting.  It backslashifies
8147 # metacharacters that are still active within double-quoted strings.
8148 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8149
8150 # Same as above, but do not quote variable references.
8151 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8152
8153 # Sed substitution to delay expansion of an escaped shell variable in a
8154 # double_quote_subst'ed string.
8155 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8156
8157 # Sed substitution to delay expansion of an escaped single quote.
8158 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8159
8160 # Sed substitution to avoid accidental globbing in evaled expressions
8161 no_glob_subst='s/\*/\\\*/g'
8162
8163 # Global variables:
8164 ofile=libtool
8165 can_build_shared=yes
8166
8167 # All known linkers require a `.a' archive for static linking (except MSVC,
8168 # which needs '.lib').
8169 libext=a
8170
8171 with_gnu_ld="$lt_cv_prog_gnu_ld"
8172
8173 old_CC="$CC"
8174 old_CFLAGS="$CFLAGS"
8175
8176 # Set sane defaults for various variables
8177 test -z "$CC" && CC=cc
8178 test -z "$LTCC" && LTCC=$CC
8179 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8180 test -z "$LD" && LD=ld
8181 test -z "$ac_objext" && ac_objext=o
8182
8183 for cc_temp in $compiler""; do
8184   case $cc_temp in
8185     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8186     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8187     \-*) ;;
8188     *) break;;
8189   esac
8190 done
8191 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8192
8193
8194 # Only perform the check for file, if the check method requires it
8195 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8196 case $deplibs_check_method in
8197 file_magic*)
8198   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8199     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8200 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8201 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8202   $as_echo_n "(cached) " >&6
8203 else
8204   case $MAGIC_CMD in
8205 [\\/*] |  ?:[\\/]*)
8206   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8207   ;;
8208 *)
8209   lt_save_MAGIC_CMD="$MAGIC_CMD"
8210   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8211   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8212   for ac_dir in $ac_dummy; do
8213     IFS="$lt_save_ifs"
8214     test -z "$ac_dir" && ac_dir=.
8215     if test -f $ac_dir/${ac_tool_prefix}file; then
8216       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8217       if test -n "$file_magic_test_file"; then
8218         case $deplibs_check_method in
8219         "file_magic "*)
8220           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8221           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8222           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8223             $EGREP "$file_magic_regex" > /dev/null; then
8224             :
8225           else
8226             cat <<_LT_EOF 1>&2
8227
8228 *** Warning: the command libtool uses to detect shared libraries,
8229 *** $file_magic_cmd, produces output that libtool cannot recognize.
8230 *** The result is that libtool may fail to recognize shared libraries
8231 *** as such.  This will affect the creation of libtool libraries that
8232 *** depend on shared libraries, but programs linked with such libtool
8233 *** libraries will work regardless of this problem.  Nevertheless, you
8234 *** may want to report the problem to your system manager and/or to
8235 *** bug-libtool@gnu.org
8236
8237 _LT_EOF
8238           fi ;;
8239         esac
8240       fi
8241       break
8242     fi
8243   done
8244   IFS="$lt_save_ifs"
8245   MAGIC_CMD="$lt_save_MAGIC_CMD"
8246   ;;
8247 esac
8248 fi
8249
8250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8251 if test -n "$MAGIC_CMD"; then
8252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8253 $as_echo "$MAGIC_CMD" >&6; }
8254 else
8255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8257 fi
8258
8259
8260
8261
8262
8263 if test -z "$lt_cv_path_MAGIC_CMD"; then
8264   if test -n "$ac_tool_prefix"; then
8265     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8266 $as_echo_n "checking for file... " >&6; }
8267 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8268   $as_echo_n "(cached) " >&6
8269 else
8270   case $MAGIC_CMD in
8271 [\\/*] |  ?:[\\/]*)
8272   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8273   ;;
8274 *)
8275   lt_save_MAGIC_CMD="$MAGIC_CMD"
8276   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8277   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8278   for ac_dir in $ac_dummy; do
8279     IFS="$lt_save_ifs"
8280     test -z "$ac_dir" && ac_dir=.
8281     if test -f $ac_dir/file; then
8282       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8283       if test -n "$file_magic_test_file"; then
8284         case $deplibs_check_method in
8285         "file_magic "*)
8286           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8287           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8288           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8289             $EGREP "$file_magic_regex" > /dev/null; then
8290             :
8291           else
8292             cat <<_LT_EOF 1>&2
8293
8294 *** Warning: the command libtool uses to detect shared libraries,
8295 *** $file_magic_cmd, produces output that libtool cannot recognize.
8296 *** The result is that libtool may fail to recognize shared libraries
8297 *** as such.  This will affect the creation of libtool libraries that
8298 *** depend on shared libraries, but programs linked with such libtool
8299 *** libraries will work regardless of this problem.  Nevertheless, you
8300 *** may want to report the problem to your system manager and/or to
8301 *** bug-libtool@gnu.org
8302
8303 _LT_EOF
8304           fi ;;
8305         esac
8306       fi
8307       break
8308     fi
8309   done
8310   IFS="$lt_save_ifs"
8311   MAGIC_CMD="$lt_save_MAGIC_CMD"
8312   ;;
8313 esac
8314 fi
8315
8316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8317 if test -n "$MAGIC_CMD"; then
8318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8319 $as_echo "$MAGIC_CMD" >&6; }
8320 else
8321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8323 fi
8324
8325
8326   else
8327     MAGIC_CMD=:
8328   fi
8329 fi
8330
8331   fi
8332   ;;
8333 esac
8334
8335 # Use C for the default configuration in the libtool script
8336
8337 lt_save_CC="$CC"
8338 ac_ext=c
8339 ac_cpp='$CPP $CPPFLAGS'
8340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8343
8344
8345 # Source file extension for C test sources.
8346 ac_ext=c
8347
8348 # Object file extension for compiled C test sources.
8349 objext=o
8350 objext=$objext
8351
8352 # Code to be used in simple compile tests
8353 lt_simple_compile_test_code="int some_variable = 0;"
8354
8355 # Code to be used in simple link tests
8356 lt_simple_link_test_code='int main(){return(0);}'
8357
8358
8359
8360
8361
8362
8363
8364 # If no C compiler was specified, use CC.
8365 LTCC=${LTCC-"$CC"}
8366
8367 # If no C compiler flags were specified, use CFLAGS.
8368 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8369
8370 # Allow CC to be a program name with arguments.
8371 compiler=$CC
8372
8373 # Save the default compiler, since it gets overwritten when the other
8374 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8375 compiler_DEFAULT=$CC
8376
8377 # save warnings/boilerplate of simple test code
8378 ac_outfile=conftest.$ac_objext
8379 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8380 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8381 _lt_compiler_boilerplate=`cat conftest.err`
8382 $RM conftest*
8383
8384 ac_outfile=conftest.$ac_objext
8385 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8386 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8387 _lt_linker_boilerplate=`cat conftest.err`
8388 $RM -r conftest*
8389
8390
8391 ## CAVEAT EMPTOR:
8392 ## There is no encapsulation within the following macros, do not change
8393 ## the running order or otherwise move them around unless you know exactly
8394 ## what you are doing...
8395 if test -n "$compiler"; then
8396
8397 lt_prog_compiler_no_builtin_flag=
8398
8399 if test "$GCC" = yes; then
8400   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8401
8402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8403 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8404 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8405   $as_echo_n "(cached) " >&6
8406 else
8407   lt_cv_prog_compiler_rtti_exceptions=no
8408    ac_outfile=conftest.$ac_objext
8409    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8410    lt_compiler_flag="-fno-rtti -fno-exceptions"
8411    # Insert the option either (1) after the last *FLAGS variable, or
8412    # (2) before a word containing "conftest.", or (3) at the end.
8413    # Note that $ac_compile itself does not contain backslashes and begins
8414    # with a dollar sign (not a hyphen), so the echo should work correctly.
8415    # The option is referenced via a variable to avoid confusing sed.
8416    lt_compile=`echo "$ac_compile" | $SED \
8417    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8418    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8419    -e 's:$: $lt_compiler_flag:'`
8420    (eval echo "\"\$as_me:8420: $lt_compile\"" >&5)
8421    (eval "$lt_compile" 2>conftest.err)
8422    ac_status=$?
8423    cat conftest.err >&5
8424    echo "$as_me:8424: \$? = $ac_status" >&5
8425    if (exit $ac_status) && test -s "$ac_outfile"; then
8426      # The compiler can only warn and ignore the option if not recognized
8427      # So say no if there are warnings other than the usual output.
8428      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8429      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8430      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8431        lt_cv_prog_compiler_rtti_exceptions=yes
8432      fi
8433    fi
8434    $RM conftest*
8435
8436 fi
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8438 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8439
8440 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8441     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8442 else
8443     :
8444 fi
8445
8446 fi
8447
8448
8449
8450
8451
8452
8453   lt_prog_compiler_wl=
8454 lt_prog_compiler_pic=
8455 lt_prog_compiler_static=
8456
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8458 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8459
8460   if test "$GCC" = yes; then
8461     lt_prog_compiler_wl='-Wl,'
8462     lt_prog_compiler_static='-static'
8463
8464     case $host_os in
8465       aix*)
8466       # All AIX code is PIC.
8467       if test "$host_cpu" = ia64; then
8468         # AIX 5 now supports IA64 processor
8469         lt_prog_compiler_static='-Bstatic'
8470       fi
8471       ;;
8472
8473     amigaos*)
8474       case $host_cpu in
8475       powerpc)
8476             # see comment about AmigaOS4 .so support
8477             lt_prog_compiler_pic='-fPIC'
8478         ;;
8479       m68k)
8480             # FIXME: we need at least 68020 code to build shared libraries, but
8481             # adding the `-m68020' flag to GCC prevents building anything better,
8482             # like `-m68040'.
8483             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8484         ;;
8485       esac
8486       ;;
8487
8488     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8489       # PIC is the default for these OSes.
8490       ;;
8491
8492     mingw* | cygwin* | pw32* | os2* | cegcc*)
8493       # This hack is so that the source file can tell whether it is being
8494       # built for inclusion in a dll (and should export symbols for example).
8495       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8496       # (--disable-auto-import) libraries
8497       lt_prog_compiler_pic='-DDLL_EXPORT'
8498       ;;
8499
8500     darwin* | rhapsody*)
8501       # PIC is the default on this platform
8502       # Common symbols not allowed in MH_DYLIB files
8503       lt_prog_compiler_pic='-fno-common'
8504       ;;
8505
8506     hpux*)
8507       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8508       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8509       # sets the default TLS model and affects inlining.
8510       case $host_cpu in
8511       hppa*64*)
8512         # +Z the default
8513         ;;
8514       *)
8515         lt_prog_compiler_pic='-fPIC'
8516         ;;
8517       esac
8518       ;;
8519
8520     interix[3-9]*)
8521       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8522       # Instead, we relocate shared libraries at runtime.
8523       ;;
8524
8525     msdosdjgpp*)
8526       # Just because we use GCC doesn't mean we suddenly get shared libraries
8527       # on systems that don't support them.
8528       lt_prog_compiler_can_build_shared=no
8529       enable_shared=no
8530       ;;
8531
8532     *nto* | *qnx*)
8533       # QNX uses GNU C++, but need to define -shared option too, otherwise
8534       # it will coredump.
8535       lt_prog_compiler_pic='-fPIC -shared'
8536       ;;
8537
8538     sysv4*MP*)
8539       if test -d /usr/nec; then
8540         lt_prog_compiler_pic=-Kconform_pic
8541       fi
8542       ;;
8543
8544     *)
8545       lt_prog_compiler_pic='-fPIC'
8546       ;;
8547     esac
8548   else
8549     # PORTME Check for flag to pass linker flags through the system compiler.
8550     case $host_os in
8551     aix*)
8552       lt_prog_compiler_wl='-Wl,'
8553       if test "$host_cpu" = ia64; then
8554         # AIX 5 now supports IA64 processor
8555         lt_prog_compiler_static='-Bstatic'
8556       else
8557         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8558       fi
8559       ;;
8560
8561     mingw* | cygwin* | pw32* | os2* | cegcc*)
8562       # This hack is so that the source file can tell whether it is being
8563       # built for inclusion in a dll (and should export symbols for example).
8564       lt_prog_compiler_pic='-DDLL_EXPORT'
8565       ;;
8566
8567     hpux9* | hpux10* | hpux11*)
8568       lt_prog_compiler_wl='-Wl,'
8569       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8570       # not for PA HP-UX.
8571       case $host_cpu in
8572       hppa*64*|ia64*)
8573         # +Z the default
8574         ;;
8575       *)
8576         lt_prog_compiler_pic='+Z'
8577         ;;
8578       esac
8579       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8580       lt_prog_compiler_static='${wl}-a ${wl}archive'
8581       ;;
8582
8583     irix5* | irix6* | nonstopux*)
8584       lt_prog_compiler_wl='-Wl,'
8585       # PIC (with -KPIC) is the default.
8586       lt_prog_compiler_static='-non_shared'
8587       ;;
8588
8589     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8590       case $cc_basename in
8591       # old Intel for x86_64 which still supported -KPIC.
8592       ecc*)
8593         lt_prog_compiler_wl='-Wl,'
8594         lt_prog_compiler_pic='-KPIC'
8595         lt_prog_compiler_static='-static'
8596         ;;
8597       # icc used to be incompatible with GCC.
8598       # ICC 10 doesn't accept -KPIC any more.
8599       icc* | ifort*)
8600         lt_prog_compiler_wl='-Wl,'
8601         lt_prog_compiler_pic='-fPIC'
8602         lt_prog_compiler_static='-static'
8603         ;;
8604       # Lahey Fortran 8.1.
8605       lf95*)
8606         lt_prog_compiler_wl='-Wl,'
8607         lt_prog_compiler_pic='--shared'
8608         lt_prog_compiler_static='--static'
8609         ;;
8610       pgcc* | pgf77* | pgf90* | pgf95*)
8611         # Portland Group compilers (*not* the Pentium gcc compiler,
8612         # which looks to be a dead project)
8613         lt_prog_compiler_wl='-Wl,'
8614         lt_prog_compiler_pic='-fpic'
8615         lt_prog_compiler_static='-Bstatic'
8616         ;;
8617       ccc*)
8618         lt_prog_compiler_wl='-Wl,'
8619         # All Alpha code is PIC.
8620         lt_prog_compiler_static='-non_shared'
8621         ;;
8622       xl*)
8623         # IBM XL C 8.0/Fortran 10.1 on PPC
8624         lt_prog_compiler_wl='-Wl,'
8625         lt_prog_compiler_pic='-qpic'
8626         lt_prog_compiler_static='-qstaticlink'
8627         ;;
8628       *)
8629         case `$CC -V 2>&1 | sed 5q` in
8630         *Sun\ C*)
8631           # Sun C 5.9
8632           lt_prog_compiler_pic='-KPIC'
8633           lt_prog_compiler_static='-Bstatic'
8634           lt_prog_compiler_wl='-Wl,'
8635           ;;
8636         *Sun\ F*)
8637           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8638           lt_prog_compiler_pic='-KPIC'
8639           lt_prog_compiler_static='-Bstatic'
8640           lt_prog_compiler_wl=''
8641           ;;
8642         esac
8643         ;;
8644       esac
8645       ;;
8646
8647     newsos6)
8648       lt_prog_compiler_pic='-KPIC'
8649       lt_prog_compiler_static='-Bstatic'
8650       ;;
8651
8652     *nto* | *qnx*)
8653       # QNX uses GNU C++, but need to define -shared option too, otherwise
8654       # it will coredump.
8655       lt_prog_compiler_pic='-fPIC -shared'
8656       ;;
8657
8658     osf3* | osf4* | osf5*)
8659       lt_prog_compiler_wl='-Wl,'
8660       # All OSF/1 code is PIC.
8661       lt_prog_compiler_static='-non_shared'
8662       ;;
8663
8664     rdos*)
8665       lt_prog_compiler_static='-non_shared'
8666       ;;
8667
8668     solaris*)
8669       lt_prog_compiler_pic='-KPIC'
8670       lt_prog_compiler_static='-Bstatic'
8671       case $cc_basename in
8672       f77* | f90* | f95*)
8673         lt_prog_compiler_wl='-Qoption ld ';;
8674       *)
8675         lt_prog_compiler_wl='-Wl,';;
8676       esac
8677       ;;
8678
8679     sunos4*)
8680       lt_prog_compiler_wl='-Qoption ld '
8681       lt_prog_compiler_pic='-PIC'
8682       lt_prog_compiler_static='-Bstatic'
8683       ;;
8684
8685     sysv4 | sysv4.2uw2* | sysv4.3*)
8686       lt_prog_compiler_wl='-Wl,'
8687       lt_prog_compiler_pic='-KPIC'
8688       lt_prog_compiler_static='-Bstatic'
8689       ;;
8690
8691     sysv4*MP*)
8692       if test -d /usr/nec ;then
8693         lt_prog_compiler_pic='-Kconform_pic'
8694         lt_prog_compiler_static='-Bstatic'
8695       fi
8696       ;;
8697
8698     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8699       lt_prog_compiler_wl='-Wl,'
8700       lt_prog_compiler_pic='-KPIC'
8701       lt_prog_compiler_static='-Bstatic'
8702       ;;
8703
8704     unicos*)
8705       lt_prog_compiler_wl='-Wl,'
8706       lt_prog_compiler_can_build_shared=no
8707       ;;
8708
8709     uts4*)
8710       lt_prog_compiler_pic='-pic'
8711       lt_prog_compiler_static='-Bstatic'
8712       ;;
8713
8714     *)
8715       lt_prog_compiler_can_build_shared=no
8716       ;;
8717     esac
8718   fi
8719
8720 case $host_os in
8721   # For platforms which do not support PIC, -DPIC is meaningless:
8722   *djgpp*)
8723     lt_prog_compiler_pic=
8724     ;;
8725   *)
8726     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8727     ;;
8728 esac
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8730 $as_echo "$lt_prog_compiler_pic" >&6; }
8731
8732
8733
8734
8735
8736
8737 #
8738 # Check to make sure the PIC flag actually works.
8739 #
8740 if test -n "$lt_prog_compiler_pic"; then
8741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8742 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8743 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8744   $as_echo_n "(cached) " >&6
8745 else
8746   lt_cv_prog_compiler_pic_works=no
8747    ac_outfile=conftest.$ac_objext
8748    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8749    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8750    # Insert the option either (1) after the last *FLAGS variable, or
8751    # (2) before a word containing "conftest.", or (3) at the end.
8752    # Note that $ac_compile itself does not contain backslashes and begins
8753    # with a dollar sign (not a hyphen), so the echo should work correctly.
8754    # The option is referenced via a variable to avoid confusing sed.
8755    lt_compile=`echo "$ac_compile" | $SED \
8756    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8757    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8758    -e 's:$: $lt_compiler_flag:'`
8759    (eval echo "\"\$as_me:8759: $lt_compile\"" >&5)
8760    (eval "$lt_compile" 2>conftest.err)
8761    ac_status=$?
8762    cat conftest.err >&5
8763    echo "$as_me:8763: \$? = $ac_status" >&5
8764    if (exit $ac_status) && test -s "$ac_outfile"; then
8765      # The compiler can only warn and ignore the option if not recognized
8766      # So say no if there are warnings other than the usual output.
8767      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8768      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8769      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8770        lt_cv_prog_compiler_pic_works=yes
8771      fi
8772    fi
8773    $RM conftest*
8774
8775 fi
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8777 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8778
8779 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8780     case $lt_prog_compiler_pic in
8781      "" | " "*) ;;
8782      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8783      esac
8784 else
8785     lt_prog_compiler_pic=
8786      lt_prog_compiler_can_build_shared=no
8787 fi
8788
8789 fi
8790
8791
8792
8793
8794
8795
8796 #
8797 # Check to make sure the static flag actually works.
8798 #
8799 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8801 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8802 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8803   $as_echo_n "(cached) " >&6
8804 else
8805   lt_cv_prog_compiler_static_works=no
8806    save_LDFLAGS="$LDFLAGS"
8807    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8808    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8809    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8810      # The linker can only warn and ignore the option if not recognized
8811      # So say no if there are warnings
8812      if test -s conftest.err; then
8813        # Append any errors to the config.log.
8814        cat conftest.err 1>&5
8815        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8816        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8817        if diff conftest.exp conftest.er2 >/dev/null; then
8818          lt_cv_prog_compiler_static_works=yes
8819        fi
8820      else
8821        lt_cv_prog_compiler_static_works=yes
8822      fi
8823    fi
8824    $RM -r conftest*
8825    LDFLAGS="$save_LDFLAGS"
8826
8827 fi
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8829 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8830
8831 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8832     :
8833 else
8834     lt_prog_compiler_static=
8835 fi
8836
8837
8838
8839
8840
8841
8842
8843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8844 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8845 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8846   $as_echo_n "(cached) " >&6
8847 else
8848   lt_cv_prog_compiler_c_o=no
8849    $RM -r conftest 2>/dev/null
8850    mkdir conftest
8851    cd conftest
8852    mkdir out
8853    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8854
8855    lt_compiler_flag="-o out/conftest2.$ac_objext"
8856    # Insert the option either (1) after the last *FLAGS variable, or
8857    # (2) before a word containing "conftest.", or (3) at the end.
8858    # Note that $ac_compile itself does not contain backslashes and begins
8859    # with a dollar sign (not a hyphen), so the echo should work correctly.
8860    lt_compile=`echo "$ac_compile" | $SED \
8861    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8862    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8863    -e 's:$: $lt_compiler_flag:'`
8864    (eval echo "\"\$as_me:8864: $lt_compile\"" >&5)
8865    (eval "$lt_compile" 2>out/conftest.err)
8866    ac_status=$?
8867    cat out/conftest.err >&5
8868    echo "$as_me:8868: \$? = $ac_status" >&5
8869    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8870    then
8871      # The compiler can only warn and ignore the option if not recognized
8872      # So say no if there are warnings
8873      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8874      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8875      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8876        lt_cv_prog_compiler_c_o=yes
8877      fi
8878    fi
8879    chmod u+w . 2>&5
8880    $RM conftest*
8881    # SGI C++ compiler will create directory out/ii_files/ for
8882    # template instantiation
8883    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8884    $RM out/* && rmdir out
8885    cd ..
8886    $RM -r conftest
8887    $RM conftest*
8888
8889 fi
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8891 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8892
8893
8894
8895
8896
8897
8898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8899 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8900 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8901   $as_echo_n "(cached) " >&6
8902 else
8903   lt_cv_prog_compiler_c_o=no
8904    $RM -r conftest 2>/dev/null
8905    mkdir conftest
8906    cd conftest
8907    mkdir out
8908    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8909
8910    lt_compiler_flag="-o out/conftest2.$ac_objext"
8911    # Insert the option either (1) after the last *FLAGS variable, or
8912    # (2) before a word containing "conftest.", or (3) at the end.
8913    # Note that $ac_compile itself does not contain backslashes and begins
8914    # with a dollar sign (not a hyphen), so the echo should work correctly.
8915    lt_compile=`echo "$ac_compile" | $SED \
8916    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8917    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8918    -e 's:$: $lt_compiler_flag:'`
8919    (eval echo "\"\$as_me:8919: $lt_compile\"" >&5)
8920    (eval "$lt_compile" 2>out/conftest.err)
8921    ac_status=$?
8922    cat out/conftest.err >&5
8923    echo "$as_me:8923: \$? = $ac_status" >&5
8924    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8925    then
8926      # The compiler can only warn and ignore the option if not recognized
8927      # So say no if there are warnings
8928      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8929      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8930      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8931        lt_cv_prog_compiler_c_o=yes
8932      fi
8933    fi
8934    chmod u+w . 2>&5
8935    $RM conftest*
8936    # SGI C++ compiler will create directory out/ii_files/ for
8937    # template instantiation
8938    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8939    $RM out/* && rmdir out
8940    cd ..
8941    $RM -r conftest
8942    $RM conftest*
8943
8944 fi
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8946 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8947
8948
8949
8950
8951 hard_links="nottested"
8952 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8953   # do not overwrite the value of need_locks provided by the user
8954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8955 $as_echo_n "checking if we can lock with hard links... " >&6; }
8956   hard_links=yes
8957   $RM conftest*
8958   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8959   touch conftest.a
8960   ln conftest.a conftest.b 2>&5 || hard_links=no
8961   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8963 $as_echo "$hard_links" >&6; }
8964   if test "$hard_links" = no; then
8965     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8966 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8967     need_locks=warn
8968   fi
8969 else
8970   need_locks=no
8971 fi
8972
8973
8974
8975
8976
8977
8978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8979 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8980
8981   runpath_var=
8982   allow_undefined_flag=
8983   always_export_symbols=no
8984   archive_cmds=
8985   archive_expsym_cmds=
8986   compiler_needs_object=no
8987   enable_shared_with_static_runtimes=no
8988   export_dynamic_flag_spec=
8989   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8990   hardcode_automatic=no
8991   hardcode_direct=no
8992   hardcode_direct_absolute=no
8993   hardcode_libdir_flag_spec=
8994   hardcode_libdir_flag_spec_ld=
8995   hardcode_libdir_separator=
8996   hardcode_minus_L=no
8997   hardcode_shlibpath_var=unsupported
8998   inherit_rpath=no
8999   link_all_deplibs=unknown
9000   module_cmds=
9001   module_expsym_cmds=
9002   old_archive_from_new_cmds=
9003   old_archive_from_expsyms_cmds=
9004   thread_safe_flag_spec=
9005   whole_archive_flag_spec=
9006   # include_expsyms should be a list of space-separated symbols to be *always*
9007   # included in the symbol list
9008   include_expsyms=
9009   # exclude_expsyms can be an extended regexp of symbols to exclude
9010   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9011   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9012   # as well as any symbol that contains `d'.
9013   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9014   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9015   # platforms (ab)use it in PIC code, but their linkers get confused if
9016   # the symbol is explicitly referenced.  Since portable code cannot
9017   # rely on this symbol name, it's probably fine to never include it in
9018   # preloaded symbol tables.
9019   # Exclude shared library initialization/finalization symbols.
9020   extract_expsyms_cmds=
9021
9022   case $host_os in
9023   cygwin* | mingw* | pw32* | cegcc*)
9024     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9025     # When not using gcc, we currently assume that we are using
9026     # Microsoft Visual C++.
9027     if test "$GCC" != yes; then
9028       with_gnu_ld=no
9029     fi
9030     ;;
9031   interix*)
9032     # we just hope/assume this is gcc and not c89 (= MSVC++)
9033     with_gnu_ld=yes
9034     ;;
9035   openbsd*)
9036     with_gnu_ld=no
9037     ;;
9038   linux* | k*bsd*-gnu)
9039     link_all_deplibs=no
9040     ;;
9041   esac
9042
9043   ld_shlibs=yes
9044   if test "$with_gnu_ld" = yes; then
9045     # If archive_cmds runs LD, not CC, wlarc should be empty
9046     wlarc='${wl}'
9047
9048     # Set some defaults for GNU ld with shared library support. These
9049     # are reset later if shared libraries are not supported. Putting them
9050     # here allows them to be overridden if necessary.
9051     runpath_var=LD_RUN_PATH
9052     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9053     export_dynamic_flag_spec='${wl}--export-dynamic'
9054     # ancient GNU ld didn't support --whole-archive et. al.
9055     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9056       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9057     else
9058       whole_archive_flag_spec=
9059     fi
9060     supports_anon_versioning=no
9061     case `$LD -v 2>&1` in
9062       *GNU\ gold*) supports_anon_versioning=yes ;;
9063       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9064       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9065       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9066       *\ 2.11.*) ;; # other 2.11 versions
9067       *) supports_anon_versioning=yes ;;
9068     esac
9069
9070     # See if GNU ld supports shared libraries.
9071     case $host_os in
9072     aix[3-9]*)
9073       # On AIX/PPC, the GNU linker is very broken
9074       if test "$host_cpu" != ia64; then
9075         ld_shlibs=no
9076         cat <<_LT_EOF 1>&2
9077
9078 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9079 *** to be unable to reliably create shared libraries on AIX.
9080 *** Therefore, libtool is disabling shared libraries support.  If you
9081 *** really care for shared libraries, you may want to modify your PATH
9082 *** so that a non-GNU linker is found, and then restart.
9083
9084 _LT_EOF
9085       fi
9086       ;;
9087
9088     amigaos*)
9089       case $host_cpu in
9090       powerpc)
9091             # see comment about AmigaOS4 .so support
9092             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9093             archive_expsym_cmds=''
9094         ;;
9095       m68k)
9096             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)'
9097             hardcode_libdir_flag_spec='-L$libdir'
9098             hardcode_minus_L=yes
9099         ;;
9100       esac
9101       ;;
9102
9103     beos*)
9104       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9105         allow_undefined_flag=unsupported
9106         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9107         # support --undefined.  This deserves some investigation.  FIXME
9108         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9109       else
9110         ld_shlibs=no
9111       fi
9112       ;;
9113
9114     cygwin* | mingw* | pw32* | cegcc*)
9115       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9116       # as there is no search path for DLLs.
9117       hardcode_libdir_flag_spec='-L$libdir'
9118       allow_undefined_flag=unsupported
9119       always_export_symbols=no
9120       enable_shared_with_static_runtimes=yes
9121       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9122
9123       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9124         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9125         # If the export-symbols file already is a .def file (1st line
9126         # is EXPORTS), use it as is; otherwise, prepend...
9127         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9128           cp $export_symbols $output_objdir/$soname.def;
9129         else
9130           echo EXPORTS > $output_objdir/$soname.def;
9131           cat $export_symbols >> $output_objdir/$soname.def;
9132         fi~
9133         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9134       else
9135         ld_shlibs=no
9136       fi
9137       ;;
9138
9139     interix[3-9]*)
9140       hardcode_direct=no
9141       hardcode_shlibpath_var=no
9142       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9143       export_dynamic_flag_spec='${wl}-E'
9144       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9145       # Instead, shared libraries are loaded at an image base (0x10000000 by
9146       # default) and relocated if they conflict, which is a slow very memory
9147       # consuming and fragmenting process.  To avoid this, we pick a random,
9148       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9149       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9150       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9151       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'
9152       ;;
9153
9154     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9155       tmp_diet=no
9156       if test "$host_os" = linux-dietlibc; then
9157         case $cc_basename in
9158           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9159         esac
9160       fi
9161       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9162          && test "$tmp_diet" = no
9163       then
9164         tmp_addflag=
9165         tmp_sharedflag='-shared'
9166         case $cc_basename,$host_cpu in
9167         pgcc*)                          # Portland Group C compiler
9168           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9169           tmp_addflag=' $pic_flag'
9170           ;;
9171         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9172           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9173           tmp_addflag=' $pic_flag -Mnomain' ;;
9174         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9175           tmp_addflag=' -i_dynamic' ;;
9176         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9177           tmp_addflag=' -i_dynamic -nofor_main' ;;
9178         ifc* | ifort*)                  # Intel Fortran compiler
9179           tmp_addflag=' -nofor_main' ;;
9180         lf95*)                          # Lahey Fortran 8.1
9181           whole_archive_flag_spec=
9182           tmp_sharedflag='--shared' ;;
9183         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9184           tmp_sharedflag='-qmkshrobj'
9185           tmp_addflag= ;;
9186         esac
9187         case `$CC -V 2>&1 | sed 5q` in
9188         *Sun\ C*)                       # Sun C 5.9
9189           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9190           compiler_needs_object=yes
9191           tmp_sharedflag='-G' ;;
9192         *Sun\ F*)                       # Sun Fortran 8.3
9193           tmp_sharedflag='-G' ;;
9194         esac
9195         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9196
9197         if test "x$supports_anon_versioning" = xyes; then
9198           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9199             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9200             echo "local: *; };" >> $output_objdir/$libname.ver~
9201             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9202         fi
9203
9204         case $cc_basename in
9205         xlf*)
9206           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9207           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9208           hardcode_libdir_flag_spec=
9209           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9210           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9211           if test "x$supports_anon_versioning" = xyes; then
9212             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9213               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9214               echo "local: *; };" >> $output_objdir/$libname.ver~
9215               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9216           fi
9217           ;;
9218         esac
9219       else
9220         ld_shlibs=no
9221       fi
9222       ;;
9223
9224     netbsd* | netbsdelf*-gnu)
9225       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9226         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9227         wlarc=
9228       else
9229         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9230         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9231       fi
9232       ;;
9233
9234     solaris*)
9235       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9236         ld_shlibs=no
9237         cat <<_LT_EOF 1>&2
9238
9239 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9240 *** create shared libraries on Solaris systems.  Therefore, libtool
9241 *** is disabling shared libraries support.  We urge you to upgrade GNU
9242 *** binutils to release 2.9.1 or newer.  Another option is to modify
9243 *** your PATH or compiler configuration so that the native linker is
9244 *** used, and then restart.
9245
9246 _LT_EOF
9247       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9248         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9249         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9250       else
9251         ld_shlibs=no
9252       fi
9253       ;;
9254
9255     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9256       case `$LD -v 2>&1` in
9257         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9258         ld_shlibs=no
9259         cat <<_LT_EOF 1>&2
9260
9261 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9262 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9263 *** is disabling shared libraries support.  We urge you to upgrade GNU
9264 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9265 *** your PATH or compiler configuration so that the native linker is
9266 *** used, and then restart.
9267
9268 _LT_EOF
9269         ;;
9270         *)
9271           # For security reasons, it is highly recommended that you always
9272           # use absolute paths for naming shared libraries, and exclude the
9273           # DT_RUNPATH tag from executables and libraries.  But doing so
9274           # requires that you compile everything twice, which is a pain.
9275           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9276             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9277             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9278             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9279           else
9280             ld_shlibs=no
9281           fi
9282         ;;
9283       esac
9284       ;;
9285
9286     sunos4*)
9287       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9288       wlarc=
9289       hardcode_direct=yes
9290       hardcode_shlibpath_var=no
9291       ;;
9292
9293     *)
9294       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9295         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9296         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9297       else
9298         ld_shlibs=no
9299       fi
9300       ;;
9301     esac
9302
9303     if test "$ld_shlibs" = no; then
9304       runpath_var=
9305       hardcode_libdir_flag_spec=
9306       export_dynamic_flag_spec=
9307       whole_archive_flag_spec=
9308     fi
9309   else
9310     # PORTME fill in a description of your system's linker (not GNU ld)
9311     case $host_os in
9312     aix3*)
9313       allow_undefined_flag=unsupported
9314       always_export_symbols=yes
9315       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'
9316       # Note: this linker hardcodes the directories in LIBPATH if there
9317       # are no directories specified by -L.
9318       hardcode_minus_L=yes
9319       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9320         # Neither direct hardcoding nor static linking is supported with a
9321         # broken collect2.
9322         hardcode_direct=unsupported
9323       fi
9324       ;;
9325
9326     aix[4-9]*)
9327       if test "$host_cpu" = ia64; then
9328         # On IA64, the linker does run time linking by default, so we don't
9329         # have to do anything special.
9330         aix_use_runtimelinking=no
9331         exp_sym_flag='-Bexport'
9332         no_entry_flag=""
9333       else
9334         # If we're using GNU nm, then we don't want the "-C" option.
9335         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9336         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9337           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9338         else
9339           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'
9340         fi
9341         aix_use_runtimelinking=no
9342
9343         # Test if we are trying to use run time linking or normal
9344         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9345         # need to do runtime linking.
9346         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9347           for ld_flag in $LDFLAGS; do
9348           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9349             aix_use_runtimelinking=yes
9350             break
9351           fi
9352           done
9353           ;;
9354         esac
9355
9356         exp_sym_flag='-bexport'
9357         no_entry_flag='-bnoentry'
9358       fi
9359
9360       # When large executables or shared objects are built, AIX ld can
9361       # have problems creating the table of contents.  If linking a library
9362       # or program results in "error TOC overflow" add -mminimal-toc to
9363       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9364       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9365
9366       archive_cmds=''
9367       hardcode_direct=yes
9368       hardcode_direct_absolute=yes
9369       hardcode_libdir_separator=':'
9370       link_all_deplibs=yes
9371       file_list_spec='${wl}-f,'
9372
9373       if test "$GCC" = yes; then
9374         case $host_os in aix4.[012]|aix4.[012].*)
9375         # We only want to do this on AIX 4.2 and lower, the check
9376         # below for broken collect2 doesn't work under 4.3+
9377           collect2name=`${CC} -print-prog-name=collect2`
9378           if test -f "$collect2name" &&
9379            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9380           then
9381           # We have reworked collect2
9382           :
9383           else
9384           # We have old collect2
9385           hardcode_direct=unsupported
9386           # It fails to find uninstalled libraries when the uninstalled
9387           # path is not listed in the libpath.  Setting hardcode_minus_L
9388           # to unsupported forces relinking
9389           hardcode_minus_L=yes
9390           hardcode_libdir_flag_spec='-L$libdir'
9391           hardcode_libdir_separator=
9392           fi
9393           ;;
9394         esac
9395         shared_flag='-shared'
9396         if test "$aix_use_runtimelinking" = yes; then
9397           shared_flag="$shared_flag "'${wl}-G'
9398         fi
9399         link_all_deplibs=no
9400       else
9401         # not using gcc
9402         if test "$host_cpu" = ia64; then
9403         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9404         # chokes on -Wl,-G. The following line is correct:
9405           shared_flag='-G'
9406         else
9407           if test "$aix_use_runtimelinking" = yes; then
9408             shared_flag='${wl}-G'
9409           else
9410             shared_flag='${wl}-bM:SRE'
9411           fi
9412         fi
9413       fi
9414
9415       export_dynamic_flag_spec='${wl}-bexpall'
9416       # It seems that -bexpall does not export symbols beginning with
9417       # underscore (_), so it is better to generate a list of symbols to export.
9418       always_export_symbols=yes
9419       if test "$aix_use_runtimelinking" = yes; then
9420         # Warning - without using the other runtime loading flags (-brtl),
9421         # -berok will link without error, but may produce a broken library.
9422         allow_undefined_flag='-berok'
9423         # Determine the default libpath from the value encoded in an
9424         # empty executable.
9425         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h.  */
9427
9428 int
9429 main ()
9430 {
9431
9432   ;
9433   return 0;
9434 }
9435 _ACEOF
9436 if ac_fn_c_try_link "$LINENO"; then :
9437
9438 lt_aix_libpath_sed='
9439     /Import File Strings/,/^$/ {
9440         /^0/ {
9441             s/^0  *\(.*\)$/\1/
9442             p
9443         }
9444     }'
9445 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9446 # Check for a 64-bit object if we didn't find anything.
9447 if test -z "$aix_libpath"; then
9448   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9449 fi
9450 fi
9451 rm -f core conftest.err conftest.$ac_objext \
9452     conftest$ac_exeext conftest.$ac_ext
9453 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9454
9455         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9456         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9457       else
9458         if test "$host_cpu" = ia64; then
9459           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9460           allow_undefined_flag="-z nodefs"
9461           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"
9462         else
9463          # Determine the default libpath from the value encoded in an
9464          # empty executable.
9465          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9466 /* end confdefs.h.  */
9467
9468 int
9469 main ()
9470 {
9471
9472   ;
9473   return 0;
9474 }
9475 _ACEOF
9476 if ac_fn_c_try_link "$LINENO"; then :
9477
9478 lt_aix_libpath_sed='
9479     /Import File Strings/,/^$/ {
9480         /^0/ {
9481             s/^0  *\(.*\)$/\1/
9482             p
9483         }
9484     }'
9485 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9486 # Check for a 64-bit object if we didn't find anything.
9487 if test -z "$aix_libpath"; then
9488   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9489 fi
9490 fi
9491 rm -f core conftest.err conftest.$ac_objext \
9492     conftest$ac_exeext conftest.$ac_ext
9493 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9494
9495          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9496           # Warning - without using the other run time loading flags,
9497           # -berok will link without error, but may produce a broken library.
9498           no_undefined_flag=' ${wl}-bernotok'
9499           allow_undefined_flag=' ${wl}-berok'
9500           # Exported symbols can be pulled into shared objects from archives
9501           whole_archive_flag_spec='$convenience'
9502           archive_cmds_need_lc=yes
9503           # This is similar to how AIX traditionally builds its shared libraries.
9504           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'
9505         fi
9506       fi
9507       ;;
9508
9509     amigaos*)
9510       case $host_cpu in
9511       powerpc)
9512             # see comment about AmigaOS4 .so support
9513             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9514             archive_expsym_cmds=''
9515         ;;
9516       m68k)
9517             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)'
9518             hardcode_libdir_flag_spec='-L$libdir'
9519             hardcode_minus_L=yes
9520         ;;
9521       esac
9522       ;;
9523
9524     bsdi[45]*)
9525       export_dynamic_flag_spec=-rdynamic
9526       ;;
9527
9528     cygwin* | mingw* | pw32* | cegcc*)
9529       # When not using gcc, we currently assume that we are using
9530       # Microsoft Visual C++.
9531       # hardcode_libdir_flag_spec is actually meaningless, as there is
9532       # no search path for DLLs.
9533       hardcode_libdir_flag_spec=' '
9534       allow_undefined_flag=unsupported
9535       # Tell ltmain to make .lib files, not .a files.
9536       libext=lib
9537       # Tell ltmain to make .dll files, not .so files.
9538       shrext_cmds=".dll"
9539       # FIXME: Setting linknames here is a bad hack.
9540       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9541       # The linker will automatically build a .lib file if we build a DLL.
9542       old_archive_from_new_cmds='true'
9543       # FIXME: Should let the user specify the lib program.
9544       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9545       fix_srcfile_path='`cygpath -w "$srcfile"`'
9546       enable_shared_with_static_runtimes=yes
9547       ;;
9548
9549     darwin* | rhapsody*)
9550
9551
9552   archive_cmds_need_lc=no
9553   hardcode_direct=no
9554   hardcode_automatic=yes
9555   hardcode_shlibpath_var=unsupported
9556   whole_archive_flag_spec=''
9557   link_all_deplibs=yes
9558   allow_undefined_flag="$_lt_dar_allow_undefined"
9559   case $cc_basename in
9560      ifort*) _lt_dar_can_shared=yes ;;
9561      *) _lt_dar_can_shared=$GCC ;;
9562   esac
9563   if test "$_lt_dar_can_shared" = "yes"; then
9564     output_verbose_link_cmd=echo
9565     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9566     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9567     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}"
9568     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}"
9569
9570   else
9571   ld_shlibs=no
9572   fi
9573
9574       ;;
9575
9576     dgux*)
9577       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9578       hardcode_libdir_flag_spec='-L$libdir'
9579       hardcode_shlibpath_var=no
9580       ;;
9581
9582     freebsd1*)
9583       ld_shlibs=no
9584       ;;
9585
9586     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9587     # support.  Future versions do this automatically, but an explicit c++rt0.o
9588     # does not break anything, and helps significantly (at the cost of a little
9589     # extra space).
9590     freebsd2.2*)
9591       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9592       hardcode_libdir_flag_spec='-R$libdir'
9593       hardcode_direct=yes
9594       hardcode_shlibpath_var=no
9595       ;;
9596
9597     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9598     freebsd2*)
9599       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9600       hardcode_direct=yes
9601       hardcode_minus_L=yes
9602       hardcode_shlibpath_var=no
9603       ;;
9604
9605     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9606     freebsd* | dragonfly*)
9607       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9608       hardcode_libdir_flag_spec='-R$libdir'
9609       hardcode_direct=yes
9610       hardcode_shlibpath_var=no
9611       ;;
9612
9613     hpux9*)
9614       if test "$GCC" = yes; then
9615         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9616       else
9617         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'
9618       fi
9619       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9620       hardcode_libdir_separator=:
9621       hardcode_direct=yes
9622
9623       # hardcode_minus_L: Not really in the search PATH,
9624       # but as the default location of the library.
9625       hardcode_minus_L=yes
9626       export_dynamic_flag_spec='${wl}-E'
9627       ;;
9628
9629     hpux10*)
9630       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9631         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9632       else
9633         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9634       fi
9635       if test "$with_gnu_ld" = no; then
9636         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9637         hardcode_libdir_flag_spec_ld='+b $libdir'
9638         hardcode_libdir_separator=:
9639         hardcode_direct=yes
9640         hardcode_direct_absolute=yes
9641         export_dynamic_flag_spec='${wl}-E'
9642         # hardcode_minus_L: Not really in the search PATH,
9643         # but as the default location of the library.
9644         hardcode_minus_L=yes
9645       fi
9646       ;;
9647
9648     hpux11*)
9649       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9650         case $host_cpu in
9651         hppa*64*)
9652           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9653           ;;
9654         ia64*)
9655           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9656           ;;
9657         *)
9658           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9659           ;;
9660         esac
9661       else
9662         case $host_cpu in
9663         hppa*64*)
9664           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9665           ;;
9666         ia64*)
9667           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9668           ;;
9669         *)
9670           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9671           ;;
9672         esac
9673       fi
9674       if test "$with_gnu_ld" = no; then
9675         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9676         hardcode_libdir_separator=:
9677
9678         case $host_cpu in
9679         hppa*64*|ia64*)
9680           hardcode_direct=no
9681           hardcode_shlibpath_var=no
9682           ;;
9683         *)
9684           hardcode_direct=yes
9685           hardcode_direct_absolute=yes
9686           export_dynamic_flag_spec='${wl}-E'
9687
9688           # hardcode_minus_L: Not really in the search PATH,
9689           # but as the default location of the library.
9690           hardcode_minus_L=yes
9691           ;;
9692         esac
9693       fi
9694       ;;
9695
9696     irix5* | irix6* | nonstopux*)
9697       if test "$GCC" = yes; then
9698         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9699         # Try to use the -exported_symbol ld option, if it does not
9700         # work, assume that -exports_file does not work either and
9701         # implicitly export all symbols.
9702         save_LDFLAGS="$LDFLAGS"
9703         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9704         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h.  */
9706 int foo(void) {}
9707 _ACEOF
9708 if ac_fn_c_try_link "$LINENO"; then :
9709   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9710
9711 fi
9712 rm -f core conftest.err conftest.$ac_objext \
9713     conftest$ac_exeext conftest.$ac_ext
9714         LDFLAGS="$save_LDFLAGS"
9715       else
9716         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9717         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9718       fi
9719       archive_cmds_need_lc='no'
9720       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9721       hardcode_libdir_separator=:
9722       inherit_rpath=yes
9723       link_all_deplibs=yes
9724       ;;
9725
9726     netbsd* | netbsdelf*-gnu)
9727       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9728         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9729       else
9730         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9731       fi
9732       hardcode_libdir_flag_spec='-R$libdir'
9733       hardcode_direct=yes
9734       hardcode_shlibpath_var=no
9735       ;;
9736
9737     newsos6)
9738       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9739       hardcode_direct=yes
9740       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9741       hardcode_libdir_separator=:
9742       hardcode_shlibpath_var=no
9743       ;;
9744
9745     *nto* | *qnx*)
9746       ;;
9747
9748     openbsd*)
9749       if test -f /usr/libexec/ld.so; then
9750         hardcode_direct=yes
9751         hardcode_shlibpath_var=no
9752         hardcode_direct_absolute=yes
9753         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9754           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9755           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9756           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9757           export_dynamic_flag_spec='${wl}-E'
9758         else
9759           case $host_os in
9760            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9761              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9762              hardcode_libdir_flag_spec='-R$libdir'
9763              ;;
9764            *)
9765              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9766              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9767              ;;
9768           esac
9769         fi
9770       else
9771         ld_shlibs=no
9772       fi
9773       ;;
9774
9775     os2*)
9776       hardcode_libdir_flag_spec='-L$libdir'
9777       hardcode_minus_L=yes
9778       allow_undefined_flag=unsupported
9779       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'
9780       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9781       ;;
9782
9783     osf3*)
9784       if test "$GCC" = yes; then
9785         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9786         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9787       else
9788         allow_undefined_flag=' -expect_unresolved \*'
9789         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9790       fi
9791       archive_cmds_need_lc='no'
9792       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9793       hardcode_libdir_separator=:
9794       ;;
9795
9796     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9797       if test "$GCC" = yes; then
9798         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9799         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9800         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9801       else
9802         allow_undefined_flag=' -expect_unresolved \*'
9803         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9804         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~
9805         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9806
9807         # Both c and cxx compiler support -rpath directly
9808         hardcode_libdir_flag_spec='-rpath $libdir'
9809       fi
9810       archive_cmds_need_lc='no'
9811       hardcode_libdir_separator=:
9812       ;;
9813
9814     solaris*)
9815       no_undefined_flag=' -z defs'
9816       if test "$GCC" = yes; then
9817         wlarc='${wl}'
9818         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9819         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9820           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9821       else
9822         case `$CC -V 2>&1` in
9823         *"Compilers 5.0"*)
9824           wlarc=''
9825           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9826           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9827           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9828           ;;
9829         *)
9830           wlarc='${wl}'
9831           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9832           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9833           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9834           ;;
9835         esac
9836       fi
9837       hardcode_libdir_flag_spec='-R$libdir'
9838       hardcode_shlibpath_var=no
9839       case $host_os in
9840       solaris2.[0-5] | solaris2.[0-5].*) ;;
9841       *)
9842         # The compiler driver will combine and reorder linker options,
9843         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9844         # but is careful enough not to reorder.
9845         # Supported since Solaris 2.6 (maybe 2.5.1?)
9846         if test "$GCC" = yes; then
9847           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9848         else
9849           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9850         fi
9851         ;;
9852       esac
9853       link_all_deplibs=yes
9854       ;;
9855
9856     sunos4*)
9857       if test "x$host_vendor" = xsequent; then
9858         # Use $CC to link under sequent, because it throws in some extra .o
9859         # files that make .init and .fini sections work.
9860         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9861       else
9862         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9863       fi
9864       hardcode_libdir_flag_spec='-L$libdir'
9865       hardcode_direct=yes
9866       hardcode_minus_L=yes
9867       hardcode_shlibpath_var=no
9868       ;;
9869
9870     sysv4)
9871       case $host_vendor in
9872         sni)
9873           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9874           hardcode_direct=yes # is this really true???
9875         ;;
9876         siemens)
9877           ## LD is ld it makes a PLAMLIB
9878           ## CC just makes a GrossModule.
9879           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9880           reload_cmds='$CC -r -o $output$reload_objs'
9881           hardcode_direct=no
9882         ;;
9883         motorola)
9884           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9885           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9886         ;;
9887       esac
9888       runpath_var='LD_RUN_PATH'
9889       hardcode_shlibpath_var=no
9890       ;;
9891
9892     sysv4.3*)
9893       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9894       hardcode_shlibpath_var=no
9895       export_dynamic_flag_spec='-Bexport'
9896       ;;
9897
9898     sysv4*MP*)
9899       if test -d /usr/nec; then
9900         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9901         hardcode_shlibpath_var=no
9902         runpath_var=LD_RUN_PATH
9903         hardcode_runpath_var=yes
9904         ld_shlibs=yes
9905       fi
9906       ;;
9907
9908     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9909       no_undefined_flag='${wl}-z,text'
9910       archive_cmds_need_lc=no
9911       hardcode_shlibpath_var=no
9912       runpath_var='LD_RUN_PATH'
9913
9914       if test "$GCC" = yes; then
9915         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9916         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9917       else
9918         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9919         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9920       fi
9921       ;;
9922
9923     sysv5* | sco3.2v5* | sco5v6*)
9924       # Note: We can NOT use -z defs as we might desire, because we do not
9925       # link with -lc, and that would cause any symbols used from libc to
9926       # always be unresolved, which means just about no library would
9927       # ever link correctly.  If we're not using GNU ld we use -z text
9928       # though, which does catch some bad symbols but isn't as heavy-handed
9929       # as -z defs.
9930       no_undefined_flag='${wl}-z,text'
9931       allow_undefined_flag='${wl}-z,nodefs'
9932       archive_cmds_need_lc=no
9933       hardcode_shlibpath_var=no
9934       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9935       hardcode_libdir_separator=':'
9936       link_all_deplibs=yes
9937       export_dynamic_flag_spec='${wl}-Bexport'
9938       runpath_var='LD_RUN_PATH'
9939
9940       if test "$GCC" = yes; then
9941         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9942         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9943       else
9944         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9945         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9946       fi
9947       ;;
9948
9949     uts4*)
9950       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9951       hardcode_libdir_flag_spec='-L$libdir'
9952       hardcode_shlibpath_var=no
9953       ;;
9954
9955     *)
9956       ld_shlibs=no
9957       ;;
9958     esac
9959
9960     if test x$host_vendor = xsni; then
9961       case $host in
9962       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9963         export_dynamic_flag_spec='${wl}-Blargedynsym'
9964         ;;
9965       esac
9966     fi
9967   fi
9968
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9970 $as_echo "$ld_shlibs" >&6; }
9971 test "$ld_shlibs" = no && can_build_shared=no
9972
9973 with_gnu_ld=$with_gnu_ld
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989 #
9990 # Do we need to explicitly link libc?
9991 #
9992 case "x$archive_cmds_need_lc" in
9993 x|xyes)
9994   # Assume -lc should be added
9995   archive_cmds_need_lc=yes
9996
9997   if test "$enable_shared" = yes && test "$GCC" = yes; then
9998     case $archive_cmds in
9999     *'~'*)
10000       # FIXME: we may have to deal with multi-command sequences.
10001       ;;
10002     '$CC '*)
10003       # Test whether the compiler implicitly links with -lc since on some
10004       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10005       # to ld, don't add -lc before -lgcc.
10006       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10007 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10008       $RM conftest*
10009       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10010
10011       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10012   (eval $ac_compile) 2>&5
10013   ac_status=$?
10014   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10015   test $ac_status = 0; } 2>conftest.err; then
10016         soname=conftest
10017         lib=conftest
10018         libobjs=conftest.$ac_objext
10019         deplibs=
10020         wl=$lt_prog_compiler_wl
10021         pic_flag=$lt_prog_compiler_pic
10022         compiler_flags=-v
10023         linker_flags=-v
10024         verstring=
10025         output_objdir=.
10026         libname=conftest
10027         lt_save_allow_undefined_flag=$allow_undefined_flag
10028         allow_undefined_flag=
10029         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10030   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10031   ac_status=$?
10032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10033   test $ac_status = 0; }
10034         then
10035           archive_cmds_need_lc=no
10036         else
10037           archive_cmds_need_lc=yes
10038         fi
10039         allow_undefined_flag=$lt_save_allow_undefined_flag
10040       else
10041         cat conftest.err 1>&5
10042       fi
10043       $RM conftest*
10044       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10045 $as_echo "$archive_cmds_need_lc" >&6; }
10046       ;;
10047     esac
10048   fi
10049   ;;
10050 esac
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10209 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10210
10211 if test "$GCC" = yes; then
10212   case $host_os in
10213     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10214     *) lt_awk_arg="/^libraries:/" ;;
10215   esac
10216   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10217   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10218     # if the path contains ";" then we assume it to be the separator
10219     # otherwise default to the standard path separator (i.e. ":") - it is
10220     # assumed that no part of a normal pathname contains ";" but that should
10221     # okay in the real world where ";" in dirpaths is itself problematic.
10222     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10223   else
10224     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10225   fi
10226   # Ok, now we have the path, separated by spaces, we can step through it
10227   # and add multilib dir if necessary.
10228   lt_tmp_lt_search_path_spec=
10229   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10230   for lt_sys_path in $lt_search_path_spec; do
10231     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10232       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10233     else
10234       test -d "$lt_sys_path" && \
10235         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10236     fi
10237   done
10238   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10239 BEGIN {RS=" "; FS="/|\n";} {
10240   lt_foo="";
10241   lt_count=0;
10242   for (lt_i = NF; lt_i > 0; lt_i--) {
10243     if ($lt_i != "" && $lt_i != ".") {
10244       if ($lt_i == "..") {
10245         lt_count++;
10246       } else {
10247         if (lt_count == 0) {
10248           lt_foo="/" $lt_i lt_foo;
10249         } else {
10250           lt_count--;
10251         }
10252       }
10253     }
10254   }
10255   if (lt_foo != "") { lt_freq[lt_foo]++; }
10256   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10257 }'`
10258   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10259 else
10260   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10261 fi
10262 library_names_spec=
10263 libname_spec='lib$name'
10264 soname_spec=
10265 shrext_cmds=".so"
10266 postinstall_cmds=
10267 postuninstall_cmds=
10268 finish_cmds=
10269 finish_eval=
10270 shlibpath_var=
10271 shlibpath_overrides_runpath=unknown
10272 version_type=none
10273 dynamic_linker="$host_os ld.so"
10274 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10275 need_lib_prefix=unknown
10276 hardcode_into_libs=no
10277
10278 # when you set need_version to no, make sure it does not cause -set_version
10279 # flags to be left without arguments
10280 need_version=unknown
10281
10282 case $host_os in
10283 aix3*)
10284   version_type=linux
10285   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10286   shlibpath_var=LIBPATH
10287
10288   # AIX 3 has no versioning support, so we append a major version to the name.
10289   soname_spec='${libname}${release}${shared_ext}$major'
10290   ;;
10291
10292 aix[4-9]*)
10293   version_type=linux
10294   need_lib_prefix=no
10295   need_version=no
10296   hardcode_into_libs=yes
10297   if test "$host_cpu" = ia64; then
10298     # AIX 5 supports IA64
10299     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10300     shlibpath_var=LD_LIBRARY_PATH
10301   else
10302     # With GCC up to 2.95.x, collect2 would create an import file
10303     # for dependence libraries.  The import file would start with
10304     # the line `#! .'.  This would cause the generated library to
10305     # depend on `.', always an invalid library.  This was fixed in
10306     # development snapshots of GCC prior to 3.0.
10307     case $host_os in
10308       aix4 | aix4.[01] | aix4.[01].*)
10309       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10310            echo ' yes '
10311            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10312         :
10313       else
10314         can_build_shared=no
10315       fi
10316       ;;
10317     esac
10318     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10319     # soname into executable. Probably we can add versioning support to
10320     # collect2, so additional links can be useful in future.
10321     if test "$aix_use_runtimelinking" = yes; then
10322       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10323       # instead of lib<name>.a to let people know that these are not
10324       # typical AIX shared libraries.
10325       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326     else
10327       # We preserve .a as extension for shared libraries through AIX4.2
10328       # and later when we are not doing run time linking.
10329       library_names_spec='${libname}${release}.a $libname.a'
10330       soname_spec='${libname}${release}${shared_ext}$major'
10331     fi
10332     shlibpath_var=LIBPATH
10333   fi
10334   ;;
10335
10336 amigaos*)
10337   case $host_cpu in
10338   powerpc)
10339     # Since July 2007 AmigaOS4 officially supports .so libraries.
10340     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10341     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342     ;;
10343   m68k)
10344     library_names_spec='$libname.ixlibrary $libname.a'
10345     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10346     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10347     ;;
10348   esac
10349   ;;
10350
10351 beos*)
10352   library_names_spec='${libname}${shared_ext}'
10353   dynamic_linker="$host_os ld.so"
10354   shlibpath_var=LIBRARY_PATH
10355   ;;
10356
10357 bsdi[45]*)
10358   version_type=linux
10359   need_version=no
10360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361   soname_spec='${libname}${release}${shared_ext}$major'
10362   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10363   shlibpath_var=LD_LIBRARY_PATH
10364   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10365   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10366   # the default ld.so.conf also contains /usr/contrib/lib and
10367   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10368   # libtool to hard-code these into programs
10369   ;;
10370
10371 cygwin* | mingw* | pw32* | cegcc*)
10372   version_type=windows
10373   shrext_cmds=".dll"
10374   need_version=no
10375   need_lib_prefix=no
10376
10377   case $GCC,$host_os in
10378   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10379     library_names_spec='$libname.dll.a'
10380     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10381     postinstall_cmds='base_file=`basename \${file}`~
10382       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10383       dldir=$destdir/`dirname \$dlpath`~
10384       test -d \$dldir || mkdir -p \$dldir~
10385       $install_prog $dir/$dlname \$dldir/$dlname~
10386       chmod a+x \$dldir/$dlname~
10387       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10388         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10389       fi'
10390     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10391       dlpath=$dir/\$dldll~
10392        $RM \$dlpath'
10393     shlibpath_overrides_runpath=yes
10394
10395     case $host_os in
10396     cygwin*)
10397       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10398       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10399       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10400       ;;
10401     mingw* | cegcc*)
10402       # MinGW DLLs use traditional 'lib' prefix
10403       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10404       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10405       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10406         # It is most probably a Windows format PATH printed by
10407         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10408         # path with ; separators, and with drive letters. We can handle the
10409         # drive letters (cygwin fileutils understands them), so leave them,
10410         # especially as we might pass files found there to a mingw objdump,
10411         # which wouldn't understand a cygwinified path. Ahh.
10412         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10413       else
10414         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10415       fi
10416       ;;
10417     pw32*)
10418       # pw32 DLLs use 'pw' prefix rather than 'lib'
10419       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10420       ;;
10421     esac
10422     ;;
10423
10424   *)
10425     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10426     ;;
10427   esac
10428   dynamic_linker='Win32 ld.exe'
10429   # FIXME: first we should search . and the directory the executable is in
10430   shlibpath_var=PATH
10431   ;;
10432
10433 darwin* | rhapsody*)
10434   dynamic_linker="$host_os dyld"
10435   version_type=darwin
10436   need_lib_prefix=no
10437   need_version=no
10438   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10439   soname_spec='${libname}${release}${major}$shared_ext'
10440   shlibpath_overrides_runpath=yes
10441   shlibpath_var=DYLD_LIBRARY_PATH
10442   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10443
10444   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10445   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10446   ;;
10447
10448 dgux*)
10449   version_type=linux
10450   need_lib_prefix=no
10451   need_version=no
10452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10453   soname_spec='${libname}${release}${shared_ext}$major'
10454   shlibpath_var=LD_LIBRARY_PATH
10455   ;;
10456
10457 freebsd1*)
10458   dynamic_linker=no
10459   ;;
10460
10461 freebsd* | dragonfly*)
10462   # DragonFly does not have aout.  When/if they implement a new
10463   # versioning mechanism, adjust this.
10464   if test -x /usr/bin/objformat; then
10465     objformat=`/usr/bin/objformat`
10466   else
10467     case $host_os in
10468     freebsd[123]*) objformat=aout ;;
10469     *) objformat=elf ;;
10470     esac
10471   fi
10472   version_type=freebsd-$objformat
10473   case $version_type in
10474     freebsd-elf*)
10475       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10476       need_version=no
10477       need_lib_prefix=no
10478       ;;
10479     freebsd-*)
10480       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10481       need_version=yes
10482       ;;
10483   esac
10484   shlibpath_var=LD_LIBRARY_PATH
10485   case $host_os in
10486   freebsd2*)
10487     shlibpath_overrides_runpath=yes
10488     ;;
10489   freebsd3.[01]* | freebsdelf3.[01]*)
10490     shlibpath_overrides_runpath=yes
10491     hardcode_into_libs=yes
10492     ;;
10493   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10494   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10495     shlibpath_overrides_runpath=no
10496     hardcode_into_libs=yes
10497     ;;
10498   *) # from 4.6 on, and DragonFly
10499     shlibpath_overrides_runpath=yes
10500     hardcode_into_libs=yes
10501     ;;
10502   esac
10503   ;;
10504
10505 gnu*)
10506   version_type=linux
10507   need_lib_prefix=no
10508   need_version=no
10509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10510   soname_spec='${libname}${release}${shared_ext}$major'
10511   shlibpath_var=LD_LIBRARY_PATH
10512   hardcode_into_libs=yes
10513   ;;
10514
10515 hpux9* | hpux10* | hpux11*)
10516   # Give a soname corresponding to the major version so that dld.sl refuses to
10517   # link against other versions.
10518   version_type=sunos
10519   need_lib_prefix=no
10520   need_version=no
10521   case $host_cpu in
10522   ia64*)
10523     shrext_cmds='.so'
10524     hardcode_into_libs=yes
10525     dynamic_linker="$host_os dld.so"
10526     shlibpath_var=LD_LIBRARY_PATH
10527     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10528     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10529     soname_spec='${libname}${release}${shared_ext}$major'
10530     if test "X$HPUX_IA64_MODE" = X32; then
10531       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10532     else
10533       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10534     fi
10535     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10536     ;;
10537   hppa*64*)
10538     shrext_cmds='.sl'
10539     hardcode_into_libs=yes
10540     dynamic_linker="$host_os dld.sl"
10541     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10542     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10543     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544     soname_spec='${libname}${release}${shared_ext}$major'
10545     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10546     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10547     ;;
10548   *)
10549     shrext_cmds='.sl'
10550     dynamic_linker="$host_os dld.sl"
10551     shlibpath_var=SHLIB_PATH
10552     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10553     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10554     soname_spec='${libname}${release}${shared_ext}$major'
10555     ;;
10556   esac
10557   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10558   postinstall_cmds='chmod 555 $lib'
10559   ;;
10560
10561 interix[3-9]*)
10562   version_type=linux
10563   need_lib_prefix=no
10564   need_version=no
10565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10566   soname_spec='${libname}${release}${shared_ext}$major'
10567   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10568   shlibpath_var=LD_LIBRARY_PATH
10569   shlibpath_overrides_runpath=no
10570   hardcode_into_libs=yes
10571   ;;
10572
10573 irix5* | irix6* | nonstopux*)
10574   case $host_os in
10575     nonstopux*) version_type=nonstopux ;;
10576     *)
10577         if test "$lt_cv_prog_gnu_ld" = yes; then
10578                 version_type=linux
10579         else
10580                 version_type=irix
10581         fi ;;
10582   esac
10583   need_lib_prefix=no
10584   need_version=no
10585   soname_spec='${libname}${release}${shared_ext}$major'
10586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10587   case $host_os in
10588   irix5* | nonstopux*)
10589     libsuff= shlibsuff=
10590     ;;
10591   *)
10592     case $LD in # libtool.m4 will add one of these switches to LD
10593     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10594       libsuff= shlibsuff= libmagic=32-bit;;
10595     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10596       libsuff=32 shlibsuff=N32 libmagic=N32;;
10597     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10598       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10599     *) libsuff= shlibsuff= libmagic=never-match;;
10600     esac
10601     ;;
10602   esac
10603   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10604   shlibpath_overrides_runpath=no
10605   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10606   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10607   hardcode_into_libs=yes
10608   ;;
10609
10610 # No shared lib support for Linux oldld, aout, or coff.
10611 linux*oldld* | linux*aout* | linux*coff*)
10612   dynamic_linker=no
10613   ;;
10614
10615 # This must be Linux ELF.
10616 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10617   version_type=linux
10618   need_lib_prefix=no
10619   need_version=no
10620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10621   soname_spec='${libname}${release}${shared_ext}$major'
10622   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10623   shlibpath_var=LD_LIBRARY_PATH
10624   shlibpath_overrides_runpath=no
10625   # Some binutils ld are patched to set DT_RUNPATH
10626   save_LDFLAGS=$LDFLAGS
10627   save_libdir=$libdir
10628   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10629        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h.  */
10632
10633 int
10634 main ()
10635 {
10636
10637   ;
10638   return 0;
10639 }
10640 _ACEOF
10641 if ac_fn_c_try_link "$LINENO"; then :
10642   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10643   shlibpath_overrides_runpath=yes
10644 fi
10645 fi
10646 rm -f core conftest.err conftest.$ac_objext \
10647     conftest$ac_exeext conftest.$ac_ext
10648   LDFLAGS=$save_LDFLAGS
10649   libdir=$save_libdir
10650
10651   # This implies no fast_install, which is unacceptable.
10652   # Some rework will be needed to allow for fast_install
10653   # before this can be enabled.
10654   hardcode_into_libs=yes
10655
10656   # Append ld.so.conf contents to the search path
10657   if test -f /etc/ld.so.conf; then
10658     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;/^$/d' | tr '\n' ' '`
10659     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10660   fi
10661
10662   # We used to test for /lib/ld.so.1 and disable shared libraries on
10663   # powerpc, because MkLinux only supported shared libraries with the
10664   # GNU dynamic linker.  Since this was broken with cross compilers,
10665   # most powerpc-linux boxes support dynamic linking these days and
10666   # people can always --disable-shared, the test was removed, and we
10667   # assume the GNU/Linux dynamic linker is in use.
10668   dynamic_linker='GNU/Linux ld.so'
10669   ;;
10670
10671 netbsdelf*-gnu)
10672   version_type=linux
10673   need_lib_prefix=no
10674   need_version=no
10675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10676   soname_spec='${libname}${release}${shared_ext}$major'
10677   shlibpath_var=LD_LIBRARY_PATH
10678   shlibpath_overrides_runpath=no
10679   hardcode_into_libs=yes
10680   dynamic_linker='NetBSD ld.elf_so'
10681   ;;
10682
10683 netbsd*)
10684   version_type=sunos
10685   need_lib_prefix=no
10686   need_version=no
10687   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10688     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10689     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10690     dynamic_linker='NetBSD (a.out) ld.so'
10691   else
10692     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10693     soname_spec='${libname}${release}${shared_ext}$major'
10694     dynamic_linker='NetBSD ld.elf_so'
10695   fi
10696   shlibpath_var=LD_LIBRARY_PATH
10697   shlibpath_overrides_runpath=yes
10698   hardcode_into_libs=yes
10699   ;;
10700
10701 newsos6)
10702   version_type=linux
10703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10704   shlibpath_var=LD_LIBRARY_PATH
10705   shlibpath_overrides_runpath=yes
10706   ;;
10707
10708 *nto* | *qnx*)
10709   version_type=qnx
10710   need_lib_prefix=no
10711   need_version=no
10712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10713   soname_spec='${libname}${release}${shared_ext}$major'
10714   shlibpath_var=LD_LIBRARY_PATH
10715   shlibpath_overrides_runpath=no
10716   hardcode_into_libs=yes
10717   dynamic_linker='ldqnx.so'
10718   ;;
10719
10720 openbsd*)
10721   version_type=sunos
10722   sys_lib_dlsearch_path_spec="/usr/lib"
10723   need_lib_prefix=no
10724   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10725   case $host_os in
10726     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10727     *)                          need_version=no  ;;
10728   esac
10729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10730   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10731   shlibpath_var=LD_LIBRARY_PATH
10732   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10733     case $host_os in
10734       openbsd2.[89] | openbsd2.[89].*)
10735         shlibpath_overrides_runpath=no
10736         ;;
10737       *)
10738         shlibpath_overrides_runpath=yes
10739         ;;
10740       esac
10741   else
10742     shlibpath_overrides_runpath=yes
10743   fi
10744   ;;
10745
10746 os2*)
10747   libname_spec='$name'
10748   shrext_cmds=".dll"
10749   need_lib_prefix=no
10750   library_names_spec='$libname${shared_ext} $libname.a'
10751   dynamic_linker='OS/2 ld.exe'
10752   shlibpath_var=LIBPATH
10753   ;;
10754
10755 osf3* | osf4* | osf5*)
10756   version_type=osf
10757   need_lib_prefix=no
10758   need_version=no
10759   soname_spec='${libname}${release}${shared_ext}$major'
10760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10761   shlibpath_var=LD_LIBRARY_PATH
10762   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10763   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10764   ;;
10765
10766 rdos*)
10767   dynamic_linker=no
10768   ;;
10769
10770 solaris*)
10771   version_type=linux
10772   need_lib_prefix=no
10773   need_version=no
10774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775   soname_spec='${libname}${release}${shared_ext}$major'
10776   shlibpath_var=LD_LIBRARY_PATH
10777   shlibpath_overrides_runpath=yes
10778   hardcode_into_libs=yes
10779   # ldd complains unless libraries are executable
10780   postinstall_cmds='chmod +x $lib'
10781   ;;
10782
10783 sunos4*)
10784   version_type=sunos
10785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10786   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10787   shlibpath_var=LD_LIBRARY_PATH
10788   shlibpath_overrides_runpath=yes
10789   if test "$with_gnu_ld" = yes; then
10790     need_lib_prefix=no
10791   fi
10792   need_version=yes
10793   ;;
10794
10795 sysv4 | sysv4.3*)
10796   version_type=linux
10797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798   soname_spec='${libname}${release}${shared_ext}$major'
10799   shlibpath_var=LD_LIBRARY_PATH
10800   case $host_vendor in
10801     sni)
10802       shlibpath_overrides_runpath=no
10803       need_lib_prefix=no
10804       runpath_var=LD_RUN_PATH
10805       ;;
10806     siemens)
10807       need_lib_prefix=no
10808       ;;
10809     motorola)
10810       need_lib_prefix=no
10811       need_version=no
10812       shlibpath_overrides_runpath=no
10813       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10814       ;;
10815   esac
10816   ;;
10817
10818 sysv4*MP*)
10819   if test -d /usr/nec ;then
10820     version_type=linux
10821     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10822     soname_spec='$libname${shared_ext}.$major'
10823     shlibpath_var=LD_LIBRARY_PATH
10824   fi
10825   ;;
10826
10827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10828   version_type=freebsd-elf
10829   need_lib_prefix=no
10830   need_version=no
10831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10832   soname_spec='${libname}${release}${shared_ext}$major'
10833   shlibpath_var=LD_LIBRARY_PATH
10834   shlibpath_overrides_runpath=yes
10835   hardcode_into_libs=yes
10836   if test "$with_gnu_ld" = yes; then
10837     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10838   else
10839     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10840     case $host_os in
10841       sco3.2v5*)
10842         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10843         ;;
10844     esac
10845   fi
10846   sys_lib_dlsearch_path_spec='/usr/lib'
10847   ;;
10848
10849 tpf*)
10850   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10851   version_type=linux
10852   need_lib_prefix=no
10853   need_version=no
10854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10855   shlibpath_var=LD_LIBRARY_PATH
10856   shlibpath_overrides_runpath=no
10857   hardcode_into_libs=yes
10858   ;;
10859
10860 uts4*)
10861   version_type=linux
10862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10863   soname_spec='${libname}${release}${shared_ext}$major'
10864   shlibpath_var=LD_LIBRARY_PATH
10865   ;;
10866
10867 *)
10868   dynamic_linker=no
10869   ;;
10870 esac
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10872 $as_echo "$dynamic_linker" >&6; }
10873 test "$dynamic_linker" = no && can_build_shared=no
10874
10875 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10876 if test "$GCC" = yes; then
10877   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10878 fi
10879
10880 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10881   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10882 fi
10883 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10884   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10885 fi
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
10967
10968
10969
10970
10971
10972
10973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10974 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10975 hardcode_action=
10976 if test -n "$hardcode_libdir_flag_spec" ||
10977    test -n "$runpath_var" ||
10978    test "X$hardcode_automatic" = "Xyes" ; then
10979
10980   # We can hardcode non-existent directories.
10981   if test "$hardcode_direct" != no &&
10982      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10983      # have to relink, otherwise we might link with an installed library
10984      # when we should be linking with a yet-to-be-installed one
10985      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10986      test "$hardcode_minus_L" != no; then
10987     # Linking always hardcodes the temporary library directory.
10988     hardcode_action=relink
10989   else
10990     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10991     hardcode_action=immediate
10992   fi
10993 else
10994   # We cannot hardcode anything, or else we can only hardcode existing
10995   # directories.
10996   hardcode_action=unsupported
10997 fi
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10999 $as_echo "$hardcode_action" >&6; }
11000
11001 if test "$hardcode_action" = relink ||
11002    test "$inherit_rpath" = yes; then
11003   # Fast installation is not supported
11004   enable_fast_install=no
11005 elif test "$shlibpath_overrides_runpath" = yes ||
11006      test "$enable_shared" = no; then
11007   # Fast installation is not necessary
11008   enable_fast_install=needless
11009 fi
11010
11011
11012
11013
11014
11015
11016   if test "x$enable_dlopen" != xyes; then
11017   enable_dlopen=unknown
11018   enable_dlopen_self=unknown
11019   enable_dlopen_self_static=unknown
11020 else
11021   lt_cv_dlopen=no
11022   lt_cv_dlopen_libs=
11023
11024   case $host_os in
11025   beos*)
11026     lt_cv_dlopen="load_add_on"
11027     lt_cv_dlopen_libs=
11028     lt_cv_dlopen_self=yes
11029     ;;
11030
11031   mingw* | pw32* | cegcc*)
11032     lt_cv_dlopen="LoadLibrary"
11033     lt_cv_dlopen_libs=
11034     ;;
11035
11036   cygwin*)
11037     lt_cv_dlopen="dlopen"
11038     lt_cv_dlopen_libs=
11039     ;;
11040
11041   darwin*)
11042   # if libdl is installed we need to link against it
11043     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11044 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11045 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11046   $as_echo_n "(cached) " >&6
11047 else
11048   ac_check_lib_save_LIBS=$LIBS
11049 LIBS="-ldl  $LIBS"
11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051 /* end confdefs.h.  */
11052
11053 /* Override any GCC internal prototype to avoid an error.
11054    Use char because int might match the return type of a GCC
11055    builtin and then its argument prototype would still apply.  */
11056 #ifdef __cplusplus
11057 extern "C"
11058 #endif
11059 char dlopen ();
11060 int
11061 main ()
11062 {
11063 return dlopen ();
11064   ;
11065   return 0;
11066 }
11067 _ACEOF
11068 if ac_fn_c_try_link "$LINENO"; then :
11069   ac_cv_lib_dl_dlopen=yes
11070 else
11071   ac_cv_lib_dl_dlopen=no
11072 fi
11073 rm -f core conftest.err conftest.$ac_objext \
11074     conftest$ac_exeext conftest.$ac_ext
11075 LIBS=$ac_check_lib_save_LIBS
11076 fi
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11078 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11079 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11080   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11081 else
11082
11083     lt_cv_dlopen="dyld"
11084     lt_cv_dlopen_libs=
11085     lt_cv_dlopen_self=yes
11086
11087 fi
11088
11089     ;;
11090
11091   *)
11092     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11093 if test "x$ac_cv_func_shl_load" = x""yes; then :
11094   lt_cv_dlopen="shl_load"
11095 else
11096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11097 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11098 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11099   $as_echo_n "(cached) " >&6
11100 else
11101   ac_check_lib_save_LIBS=$LIBS
11102 LIBS="-ldld  $LIBS"
11103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11104 /* end confdefs.h.  */
11105
11106 /* Override any GCC internal prototype to avoid an error.
11107    Use char because int might match the return type of a GCC
11108    builtin and then its argument prototype would still apply.  */
11109 #ifdef __cplusplus
11110 extern "C"
11111 #endif
11112 char shl_load ();
11113 int
11114 main ()
11115 {
11116 return shl_load ();
11117   ;
11118   return 0;
11119 }
11120 _ACEOF
11121 if ac_fn_c_try_link "$LINENO"; then :
11122   ac_cv_lib_dld_shl_load=yes
11123 else
11124   ac_cv_lib_dld_shl_load=no
11125 fi
11126 rm -f core conftest.err conftest.$ac_objext \
11127     conftest$ac_exeext conftest.$ac_ext
11128 LIBS=$ac_check_lib_save_LIBS
11129 fi
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11131 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11132 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11133   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11134 else
11135   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11136 if test "x$ac_cv_func_dlopen" = x""yes; then :
11137   lt_cv_dlopen="dlopen"
11138 else
11139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11140 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11141 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11142   $as_echo_n "(cached) " >&6
11143 else
11144   ac_check_lib_save_LIBS=$LIBS
11145 LIBS="-ldl  $LIBS"
11146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h.  */
11148
11149 /* Override any GCC internal prototype to avoid an error.
11150    Use char because int might match the return type of a GCC
11151    builtin and then its argument prototype would still apply.  */
11152 #ifdef __cplusplus
11153 extern "C"
11154 #endif
11155 char dlopen ();
11156 int
11157 main ()
11158 {
11159 return dlopen ();
11160   ;
11161   return 0;
11162 }
11163 _ACEOF
11164 if ac_fn_c_try_link "$LINENO"; then :
11165   ac_cv_lib_dl_dlopen=yes
11166 else
11167   ac_cv_lib_dl_dlopen=no
11168 fi
11169 rm -f core conftest.err conftest.$ac_objext \
11170     conftest$ac_exeext conftest.$ac_ext
11171 LIBS=$ac_check_lib_save_LIBS
11172 fi
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11174 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11175 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11176   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11177 else
11178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11179 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11180 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11181   $as_echo_n "(cached) " >&6
11182 else
11183   ac_check_lib_save_LIBS=$LIBS
11184 LIBS="-lsvld  $LIBS"
11185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11186 /* end confdefs.h.  */
11187
11188 /* Override any GCC internal prototype to avoid an error.
11189    Use char because int might match the return type of a GCC
11190    builtin and then its argument prototype would still apply.  */
11191 #ifdef __cplusplus
11192 extern "C"
11193 #endif
11194 char dlopen ();
11195 int
11196 main ()
11197 {
11198 return dlopen ();
11199   ;
11200   return 0;
11201 }
11202 _ACEOF
11203 if ac_fn_c_try_link "$LINENO"; then :
11204   ac_cv_lib_svld_dlopen=yes
11205 else
11206   ac_cv_lib_svld_dlopen=no
11207 fi
11208 rm -f core conftest.err conftest.$ac_objext \
11209     conftest$ac_exeext conftest.$ac_ext
11210 LIBS=$ac_check_lib_save_LIBS
11211 fi
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11213 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11214 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11215   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11216 else
11217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11218 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11219 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11220   $as_echo_n "(cached) " >&6
11221 else
11222   ac_check_lib_save_LIBS=$LIBS
11223 LIBS="-ldld  $LIBS"
11224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h.  */
11226
11227 /* Override any GCC internal prototype to avoid an error.
11228    Use char because int might match the return type of a GCC
11229    builtin and then its argument prototype would still apply.  */
11230 #ifdef __cplusplus
11231 extern "C"
11232 #endif
11233 char dld_link ();
11234 int
11235 main ()
11236 {
11237 return dld_link ();
11238   ;
11239   return 0;
11240 }
11241 _ACEOF
11242 if ac_fn_c_try_link "$LINENO"; then :
11243   ac_cv_lib_dld_dld_link=yes
11244 else
11245   ac_cv_lib_dld_dld_link=no
11246 fi
11247 rm -f core conftest.err conftest.$ac_objext \
11248     conftest$ac_exeext conftest.$ac_ext
11249 LIBS=$ac_check_lib_save_LIBS
11250 fi
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11252 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11253 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11254   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11255 fi
11256
11257
11258 fi
11259
11260
11261 fi
11262
11263
11264 fi
11265
11266
11267 fi
11268
11269
11270 fi
11271
11272     ;;
11273   esac
11274
11275   if test "x$lt_cv_dlopen" != xno; then
11276     enable_dlopen=yes
11277   else
11278     enable_dlopen=no
11279   fi
11280
11281   case $lt_cv_dlopen in
11282   dlopen)
11283     save_CPPFLAGS="$CPPFLAGS"
11284     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11285
11286     save_LDFLAGS="$LDFLAGS"
11287     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11288
11289     save_LIBS="$LIBS"
11290     LIBS="$lt_cv_dlopen_libs $LIBS"
11291
11292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11293 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11294 if test "${lt_cv_dlopen_self+set}" = set; then :
11295   $as_echo_n "(cached) " >&6
11296 else
11297           if test "$cross_compiling" = yes; then :
11298   lt_cv_dlopen_self=cross
11299 else
11300   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11301   lt_status=$lt_dlunknown
11302   cat > conftest.$ac_ext <<_LT_EOF
11303 #line 11303 "configure"
11304 #include "confdefs.h"
11305
11306 #if HAVE_DLFCN_H
11307 #include <dlfcn.h>
11308 #endif
11309
11310 #include <stdio.h>
11311
11312 #ifdef RTLD_GLOBAL
11313 #  define LT_DLGLOBAL           RTLD_GLOBAL
11314 #else
11315 #  ifdef DL_GLOBAL
11316 #    define LT_DLGLOBAL         DL_GLOBAL
11317 #  else
11318 #    define LT_DLGLOBAL         0
11319 #  endif
11320 #endif
11321
11322 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11323    find out it does not work in some platform. */
11324 #ifndef LT_DLLAZY_OR_NOW
11325 #  ifdef RTLD_LAZY
11326 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11327 #  else
11328 #    ifdef DL_LAZY
11329 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11330 #    else
11331 #      ifdef RTLD_NOW
11332 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11333 #      else
11334 #        ifdef DL_NOW
11335 #          define LT_DLLAZY_OR_NOW      DL_NOW
11336 #        else
11337 #          define LT_DLLAZY_OR_NOW      0
11338 #        endif
11339 #      endif
11340 #    endif
11341 #  endif
11342 #endif
11343
11344 void fnord() { int i=42;}
11345 int main ()
11346 {
11347   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11348   int status = $lt_dlunknown;
11349
11350   if (self)
11351     {
11352       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11353       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11354       /* dlclose (self); */
11355     }
11356   else
11357     puts (dlerror ());
11358
11359   return status;
11360 }
11361 _LT_EOF
11362   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11363   (eval $ac_link) 2>&5
11364   ac_status=$?
11365   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11366   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11367     (./conftest; exit; ) >&5 2>/dev/null
11368     lt_status=$?
11369     case x$lt_status in
11370       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11371       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11372       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11373     esac
11374   else :
11375     # compilation failed
11376     lt_cv_dlopen_self=no
11377   fi
11378 fi
11379 rm -fr conftest*
11380
11381
11382 fi
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11384 $as_echo "$lt_cv_dlopen_self" >&6; }
11385
11386     if test "x$lt_cv_dlopen_self" = xyes; then
11387       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11388       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11389 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11390 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11391   $as_echo_n "(cached) " >&6
11392 else
11393           if test "$cross_compiling" = yes; then :
11394   lt_cv_dlopen_self_static=cross
11395 else
11396   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11397   lt_status=$lt_dlunknown
11398   cat > conftest.$ac_ext <<_LT_EOF
11399 #line 11399 "configure"
11400 #include "confdefs.h"
11401
11402 #if HAVE_DLFCN_H
11403 #include <dlfcn.h>
11404 #endif
11405
11406 #include <stdio.h>
11407
11408 #ifdef RTLD_GLOBAL
11409 #  define LT_DLGLOBAL           RTLD_GLOBAL
11410 #else
11411 #  ifdef DL_GLOBAL
11412 #    define LT_DLGLOBAL         DL_GLOBAL
11413 #  else
11414 #    define LT_DLGLOBAL         0
11415 #  endif
11416 #endif
11417
11418 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11419    find out it does not work in some platform. */
11420 #ifndef LT_DLLAZY_OR_NOW
11421 #  ifdef RTLD_LAZY
11422 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11423 #  else
11424 #    ifdef DL_LAZY
11425 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11426 #    else
11427 #      ifdef RTLD_NOW
11428 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11429 #      else
11430 #        ifdef DL_NOW
11431 #          define LT_DLLAZY_OR_NOW      DL_NOW
11432 #        else
11433 #          define LT_DLLAZY_OR_NOW      0
11434 #        endif
11435 #      endif
11436 #    endif
11437 #  endif
11438 #endif
11439
11440 void fnord() { int i=42;}
11441 int main ()
11442 {
11443   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11444   int status = $lt_dlunknown;
11445
11446   if (self)
11447     {
11448       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11449       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11450       /* dlclose (self); */
11451     }
11452   else
11453     puts (dlerror ());
11454
11455   return status;
11456 }
11457 _LT_EOF
11458   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11459   (eval $ac_link) 2>&5
11460   ac_status=$?
11461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11462   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11463     (./conftest; exit; ) >&5 2>/dev/null
11464     lt_status=$?
11465     case x$lt_status in
11466       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11467       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11468       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11469     esac
11470   else :
11471     # compilation failed
11472     lt_cv_dlopen_self_static=no
11473   fi
11474 fi
11475 rm -fr conftest*
11476
11477
11478 fi
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11480 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11481     fi
11482
11483     CPPFLAGS="$save_CPPFLAGS"
11484     LDFLAGS="$save_LDFLAGS"
11485     LIBS="$save_LIBS"
11486     ;;
11487   esac
11488
11489   case $lt_cv_dlopen_self in
11490   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11491   *) enable_dlopen_self=unknown ;;
11492   esac
11493
11494   case $lt_cv_dlopen_self_static in
11495   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11496   *) enable_dlopen_self_static=unknown ;;
11497   esac
11498 fi
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516 striplib=
11517 old_striplib=
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11519 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11520 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11521   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11522   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11524 $as_echo "yes" >&6; }
11525 else
11526 # FIXME - insert some real tests, host_os isn't really good enough
11527   case $host_os in
11528   darwin*)
11529     if test -n "$STRIP" ; then
11530       striplib="$STRIP -x"
11531       old_striplib="$STRIP -S"
11532       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11533 $as_echo "yes" >&6; }
11534     else
11535       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11537     fi
11538     ;;
11539   *)
11540     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541 $as_echo "no" >&6; }
11542     ;;
11543   esac
11544 fi
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557   # Report which library types will actually be built
11558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11559 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11561 $as_echo "$can_build_shared" >&6; }
11562
11563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11564 $as_echo_n "checking whether to build shared libraries... " >&6; }
11565   test "$can_build_shared" = "no" && enable_shared=no
11566
11567   # On AIX, shared libraries and static libraries use the same namespace, and
11568   # are all built from PIC.
11569   case $host_os in
11570   aix3*)
11571     test "$enable_shared" = yes && enable_static=no
11572     if test -n "$RANLIB"; then
11573       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11574       postinstall_cmds='$RANLIB $lib'
11575     fi
11576     ;;
11577
11578   aix[4-9]*)
11579     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11580       test "$enable_shared" = yes && enable_static=no
11581     fi
11582     ;;
11583   esac
11584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11585 $as_echo "$enable_shared" >&6; }
11586
11587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11588 $as_echo_n "checking whether to build static libraries... " >&6; }
11589   # Make sure either enable_shared or enable_static is yes.
11590   test "$enable_shared" = yes || enable_static=yes
11591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11592 $as_echo "$enable_static" >&6; }
11593
11594
11595
11596
11597 fi
11598 ac_ext=c
11599 ac_cpp='$CPP $CPPFLAGS'
11600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11603
11604 CC="$lt_save_CC"
11605
11606
11607 ac_ext=cpp
11608 ac_cpp='$CXXCPP $CPPFLAGS'
11609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11612
11613 archive_cmds_need_lc_CXX=no
11614 allow_undefined_flag_CXX=
11615 always_export_symbols_CXX=no
11616 archive_expsym_cmds_CXX=
11617 compiler_needs_object_CXX=no
11618 export_dynamic_flag_spec_CXX=
11619 hardcode_direct_CXX=no
11620 hardcode_direct_absolute_CXX=no
11621 hardcode_libdir_flag_spec_CXX=
11622 hardcode_libdir_flag_spec_ld_CXX=
11623 hardcode_libdir_separator_CXX=
11624 hardcode_minus_L_CXX=no
11625 hardcode_shlibpath_var_CXX=unsupported
11626 hardcode_automatic_CXX=no
11627 inherit_rpath_CXX=no
11628 module_cmds_CXX=
11629 module_expsym_cmds_CXX=
11630 link_all_deplibs_CXX=unknown
11631 old_archive_cmds_CXX=$old_archive_cmds
11632 no_undefined_flag_CXX=
11633 whole_archive_flag_spec_CXX=
11634 enable_shared_with_static_runtimes_CXX=no
11635
11636 # Source file extension for C++ test sources.
11637 ac_ext=cpp
11638
11639 # Object file extension for compiled C++ test sources.
11640 objext=o
11641 objext_CXX=$objext
11642
11643 # No sense in running all these tests if we already determined that
11644 # the CXX compiler isn't working.  Some variables (like enable_shared)
11645 # are currently assumed to apply to all compilers on this platform,
11646 # and will be corrupted by setting them based on a non-working compiler.
11647 if test "$_lt_caught_CXX_error" != yes; then
11648   # Code to be used in simple compile tests
11649   lt_simple_compile_test_code="int some_variable = 0;"
11650
11651   # Code to be used in simple link tests
11652   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11653
11654   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11655
11656
11657
11658
11659
11660
11661 # If no C compiler was specified, use CC.
11662 LTCC=${LTCC-"$CC"}
11663
11664 # If no C compiler flags were specified, use CFLAGS.
11665 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11666
11667 # Allow CC to be a program name with arguments.
11668 compiler=$CC
11669
11670
11671   # save warnings/boilerplate of simple test code
11672   ac_outfile=conftest.$ac_objext
11673 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11674 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11675 _lt_compiler_boilerplate=`cat conftest.err`
11676 $RM conftest*
11677
11678   ac_outfile=conftest.$ac_objext
11679 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11680 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11681 _lt_linker_boilerplate=`cat conftest.err`
11682 $RM -r conftest*
11683
11684
11685   # Allow CC to be a program name with arguments.
11686   lt_save_CC=$CC
11687   lt_save_LD=$LD
11688   lt_save_GCC=$GCC
11689   GCC=$GXX
11690   lt_save_with_gnu_ld=$with_gnu_ld
11691   lt_save_path_LD=$lt_cv_path_LD
11692   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11693     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11694   else
11695     $as_unset lt_cv_prog_gnu_ld
11696   fi
11697   if test -n "${lt_cv_path_LDCXX+set}"; then
11698     lt_cv_path_LD=$lt_cv_path_LDCXX
11699   else
11700     $as_unset lt_cv_path_LD
11701   fi
11702   test -z "${LDCXX+set}" || LD=$LDCXX
11703   CC=${CXX-"c++"}
11704   compiler=$CC
11705   compiler_CXX=$CC
11706   for cc_temp in $compiler""; do
11707   case $cc_temp in
11708     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11709     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11710     \-*) ;;
11711     *) break;;
11712   esac
11713 done
11714 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11715
11716
11717   if test -n "$compiler"; then
11718     # We don't want -fno-exception when compiling C++ code, so set the
11719     # no_builtin_flag separately
11720     if test "$GXX" = yes; then
11721       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11722     else
11723       lt_prog_compiler_no_builtin_flag_CXX=
11724     fi
11725
11726     if test "$GXX" = yes; then
11727       # Set up default GNU C++ configuration
11728
11729
11730
11731 # Check whether --with-gnu-ld was given.
11732 if test "${with_gnu_ld+set}" = set; then :
11733   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11734 else
11735   with_gnu_ld=no
11736 fi
11737
11738 ac_prog=ld
11739 if test "$GCC" = yes; then
11740   # Check if gcc -print-prog-name=ld gives a path.
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11742 $as_echo_n "checking for ld used by $CC... " >&6; }
11743   case $host in
11744   *-*-mingw*)
11745     # gcc leaves a trailing carriage return which upsets mingw
11746     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11747   *)
11748     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11749   esac
11750   case $ac_prog in
11751     # Accept absolute paths.
11752     [\\/]* | ?:[\\/]*)
11753       re_direlt='/[^/][^/]*/\.\./'
11754       # Canonicalize the pathname of ld
11755       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11756       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11757         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11758       done
11759       test -z "$LD" && LD="$ac_prog"
11760       ;;
11761   "")
11762     # If it fails, then pretend we aren't using GCC.
11763     ac_prog=ld
11764     ;;
11765   *)
11766     # If it is relative, then search for the first ld in PATH.
11767     with_gnu_ld=unknown
11768     ;;
11769   esac
11770 elif test "$with_gnu_ld" = yes; then
11771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11772 $as_echo_n "checking for GNU ld... " >&6; }
11773 else
11774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11775 $as_echo_n "checking for non-GNU ld... " >&6; }
11776 fi
11777 if test "${lt_cv_path_LD+set}" = set; then :
11778   $as_echo_n "(cached) " >&6
11779 else
11780   if test -z "$LD"; then
11781   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11782   for ac_dir in $PATH; do
11783     IFS="$lt_save_ifs"
11784     test -z "$ac_dir" && ac_dir=.
11785     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11786       lt_cv_path_LD="$ac_dir/$ac_prog"
11787       # Check to see if the program is GNU ld.  I'd rather use --version,
11788       # but apparently some variants of GNU ld only accept -v.
11789       # Break only if it was the GNU/non-GNU ld that we prefer.
11790       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11791       *GNU* | *'with BFD'*)
11792         test "$with_gnu_ld" != no && break
11793         ;;
11794       *)
11795         test "$with_gnu_ld" != yes && break
11796         ;;
11797       esac
11798     fi
11799   done
11800   IFS="$lt_save_ifs"
11801 else
11802   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11803 fi
11804 fi
11805
11806 LD="$lt_cv_path_LD"
11807 if test -n "$LD"; then
11808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11809 $as_echo "$LD" >&6; }
11810 else
11811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812 $as_echo "no" >&6; }
11813 fi
11814 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11816 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11817 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11818   $as_echo_n "(cached) " >&6
11819 else
11820   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11821 case `$LD -v 2>&1 </dev/null` in
11822 *GNU* | *'with BFD'*)
11823   lt_cv_prog_gnu_ld=yes
11824   ;;
11825 *)
11826   lt_cv_prog_gnu_ld=no
11827   ;;
11828 esac
11829 fi
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11831 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11832 with_gnu_ld=$lt_cv_prog_gnu_ld
11833
11834
11835
11836
11837
11838
11839
11840       # Check if GNU C++ uses GNU ld as the underlying linker, since the
11841       # archiving commands below assume that GNU ld is being used.
11842       if test "$with_gnu_ld" = yes; then
11843         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11844         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11845
11846         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11847         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11848
11849         # If archive_cmds runs LD, not CC, wlarc should be empty
11850         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11851         #     investigate it a little bit more. (MM)
11852         wlarc='${wl}'
11853
11854         # ancient GNU ld didn't support --whole-archive et. al.
11855         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11856           $GREP 'no-whole-archive' > /dev/null; then
11857           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11858         else
11859           whole_archive_flag_spec_CXX=
11860         fi
11861       else
11862         with_gnu_ld=no
11863         wlarc=
11864
11865         # A generic and very simple default shared library creation
11866         # command for GNU C++ for the case where it uses the native
11867         # linker, instead of GNU ld.  If possible, this setting should
11868         # overridden to take advantage of the native linker features on
11869         # the platform it is being used on.
11870         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11871       fi
11872
11873       # Commands to make compiler produce verbose output that lists
11874       # what "hidden" libraries, object files and flags are used when
11875       # linking a shared library.
11876       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11877
11878     else
11879       GXX=no
11880       with_gnu_ld=no
11881       wlarc=
11882     fi
11883
11884     # PORTME: fill in a description of your system's C++ link characteristics
11885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11886 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11887     ld_shlibs_CXX=yes
11888     case $host_os in
11889       aix3*)
11890         # FIXME: insert proper C++ library support
11891         ld_shlibs_CXX=no
11892         ;;
11893       aix[4-9]*)
11894         if test "$host_cpu" = ia64; then
11895           # On IA64, the linker does run time linking by default, so we don't
11896           # have to do anything special.
11897           aix_use_runtimelinking=no
11898           exp_sym_flag='-Bexport'
11899           no_entry_flag=""
11900         else
11901           aix_use_runtimelinking=no
11902
11903           # Test if we are trying to use run time linking or normal
11904           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11905           # need to do runtime linking.
11906           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11907             for ld_flag in $LDFLAGS; do
11908               case $ld_flag in
11909               *-brtl*)
11910                 aix_use_runtimelinking=yes
11911                 break
11912                 ;;
11913               esac
11914             done
11915             ;;
11916           esac
11917
11918           exp_sym_flag='-bexport'
11919           no_entry_flag='-bnoentry'
11920         fi
11921
11922         # When large executables or shared objects are built, AIX ld can
11923         # have problems creating the table of contents.  If linking a library
11924         # or program results in "error TOC overflow" add -mminimal-toc to
11925         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11926         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11927
11928         archive_cmds_CXX=''
11929         hardcode_direct_CXX=yes
11930         hardcode_direct_absolute_CXX=yes
11931         hardcode_libdir_separator_CXX=':'
11932         link_all_deplibs_CXX=yes
11933         file_list_spec_CXX='${wl}-f,'
11934
11935         if test "$GXX" = yes; then
11936           case $host_os in aix4.[012]|aix4.[012].*)
11937           # We only want to do this on AIX 4.2 and lower, the check
11938           # below for broken collect2 doesn't work under 4.3+
11939           collect2name=`${CC} -print-prog-name=collect2`
11940           if test -f "$collect2name" &&
11941              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11942           then
11943             # We have reworked collect2
11944             :
11945           else
11946             # We have old collect2
11947             hardcode_direct_CXX=unsupported
11948             # It fails to find uninstalled libraries when the uninstalled
11949             # path is not listed in the libpath.  Setting hardcode_minus_L
11950             # to unsupported forces relinking
11951             hardcode_minus_L_CXX=yes
11952             hardcode_libdir_flag_spec_CXX='-L$libdir'
11953             hardcode_libdir_separator_CXX=
11954           fi
11955           esac
11956           shared_flag='-shared'
11957           if test "$aix_use_runtimelinking" = yes; then
11958             shared_flag="$shared_flag "'${wl}-G'
11959           fi
11960         else
11961           # not using gcc
11962           if test "$host_cpu" = ia64; then
11963           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11964           # chokes on -Wl,-G. The following line is correct:
11965           shared_flag='-G'
11966           else
11967             if test "$aix_use_runtimelinking" = yes; then
11968               shared_flag='${wl}-G'
11969             else
11970               shared_flag='${wl}-bM:SRE'
11971             fi
11972           fi
11973         fi
11974
11975         export_dynamic_flag_spec_CXX='${wl}-bexpall'
11976         # It seems that -bexpall does not export symbols beginning with
11977         # underscore (_), so it is better to generate a list of symbols to
11978         # export.
11979         always_export_symbols_CXX=yes
11980         if test "$aix_use_runtimelinking" = yes; then
11981           # Warning - without using the other runtime loading flags (-brtl),
11982           # -berok will link without error, but may produce a broken library.
11983           allow_undefined_flag_CXX='-berok'
11984           # Determine the default libpath from the value encoded in an empty
11985           # executable.
11986           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987 /* end confdefs.h.  */
11988
11989 int
11990 main ()
11991 {
11992
11993   ;
11994   return 0;
11995 }
11996 _ACEOF
11997 if ac_fn_cxx_try_link "$LINENO"; then :
11998
11999 lt_aix_libpath_sed='
12000     /Import File Strings/,/^$/ {
12001         /^0/ {
12002             s/^0  *\(.*\)$/\1/
12003             p
12004         }
12005     }'
12006 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12007 # Check for a 64-bit object if we didn't find anything.
12008 if test -z "$aix_libpath"; then
12009   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12010 fi
12011 fi
12012 rm -f core conftest.err conftest.$ac_objext \
12013     conftest$ac_exeext conftest.$ac_ext
12014 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12015
12016           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12017
12018           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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12019         else
12020           if test "$host_cpu" = ia64; then
12021             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12022             allow_undefined_flag_CXX="-z nodefs"
12023             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"
12024           else
12025             # Determine the default libpath from the value encoded in an
12026             # empty executable.
12027             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028 /* end confdefs.h.  */
12029
12030 int
12031 main ()
12032 {
12033
12034   ;
12035   return 0;
12036 }
12037 _ACEOF
12038 if ac_fn_cxx_try_link "$LINENO"; then :
12039
12040 lt_aix_libpath_sed='
12041     /Import File Strings/,/^$/ {
12042         /^0/ {
12043             s/^0  *\(.*\)$/\1/
12044             p
12045         }
12046     }'
12047 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12048 # Check for a 64-bit object if we didn't find anything.
12049 if test -z "$aix_libpath"; then
12050   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12051 fi
12052 fi
12053 rm -f core conftest.err conftest.$ac_objext \
12054     conftest$ac_exeext conftest.$ac_ext
12055 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12056
12057             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12058             # Warning - without using the other run time loading flags,
12059             # -berok will link without error, but may produce a broken library.
12060             no_undefined_flag_CXX=' ${wl}-bernotok'
12061             allow_undefined_flag_CXX=' ${wl}-berok'
12062             # Exported symbols can be pulled into shared objects from archives
12063             whole_archive_flag_spec_CXX='$convenience'
12064             archive_cmds_need_lc_CXX=yes
12065             # This is similar to how AIX traditionally builds its shared
12066             # libraries.
12067             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'
12068           fi
12069         fi
12070         ;;
12071
12072       beos*)
12073         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12074           allow_undefined_flag_CXX=unsupported
12075           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12076           # support --undefined.  This deserves some investigation.  FIXME
12077           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12078         else
12079           ld_shlibs_CXX=no
12080         fi
12081         ;;
12082
12083       chorus*)
12084         case $cc_basename in
12085           *)
12086           # FIXME: insert proper C++ library support
12087           ld_shlibs_CXX=no
12088           ;;
12089         esac
12090         ;;
12091
12092       cygwin* | mingw* | pw32* | cegcc*)
12093         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12094         # as there is no search path for DLLs.
12095         hardcode_libdir_flag_spec_CXX='-L$libdir'
12096         allow_undefined_flag_CXX=unsupported
12097         always_export_symbols_CXX=no
12098         enable_shared_with_static_runtimes_CXX=yes
12099
12100         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12101           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'
12102           # If the export-symbols file already is a .def file (1st line
12103           # is EXPORTS), use it as is; otherwise, prepend...
12104           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12105             cp $export_symbols $output_objdir/$soname.def;
12106           else
12107             echo EXPORTS > $output_objdir/$soname.def;
12108             cat $export_symbols >> $output_objdir/$soname.def;
12109           fi~
12110           $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'
12111         else
12112           ld_shlibs_CXX=no
12113         fi
12114         ;;
12115       darwin* | rhapsody*)
12116
12117
12118   archive_cmds_need_lc_CXX=no
12119   hardcode_direct_CXX=no
12120   hardcode_automatic_CXX=yes
12121   hardcode_shlibpath_var_CXX=unsupported
12122   whole_archive_flag_spec_CXX=''
12123   link_all_deplibs_CXX=yes
12124   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12125   case $cc_basename in
12126      ifort*) _lt_dar_can_shared=yes ;;
12127      *) _lt_dar_can_shared=$GCC ;;
12128   esac
12129   if test "$_lt_dar_can_shared" = "yes"; then
12130     output_verbose_link_cmd=echo
12131     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}"
12132     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12133     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}"
12134     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}"
12135        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12136       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}"
12137       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}"
12138     fi
12139
12140   else
12141   ld_shlibs_CXX=no
12142   fi
12143
12144         ;;
12145
12146       dgux*)
12147         case $cc_basename in
12148           ec++*)
12149             # FIXME: insert proper C++ library support
12150             ld_shlibs_CXX=no
12151             ;;
12152           ghcx*)
12153             # Green Hills C++ Compiler
12154             # FIXME: insert proper C++ library support
12155             ld_shlibs_CXX=no
12156             ;;
12157           *)
12158             # FIXME: insert proper C++ library support
12159             ld_shlibs_CXX=no
12160             ;;
12161         esac
12162         ;;
12163
12164       freebsd[12]*)
12165         # C++ shared libraries reported to be fairly broken before
12166         # switch to ELF
12167         ld_shlibs_CXX=no
12168         ;;
12169
12170       freebsd-elf*)
12171         archive_cmds_need_lc_CXX=no
12172         ;;
12173
12174       freebsd* | dragonfly*)
12175         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12176         # conventions
12177         ld_shlibs_CXX=yes
12178         ;;
12179
12180       gnu*)
12181         ;;
12182
12183       hpux9*)
12184         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12185         hardcode_libdir_separator_CXX=:
12186         export_dynamic_flag_spec_CXX='${wl}-E'
12187         hardcode_direct_CXX=yes
12188         hardcode_minus_L_CXX=yes # Not in the search PATH,
12189                                              # but as the default
12190                                              # location of the library.
12191
12192         case $cc_basename in
12193           CC*)
12194             # FIXME: insert proper C++ library support
12195             ld_shlibs_CXX=no
12196             ;;
12197           aCC*)
12198             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'
12199             # Commands to make compiler produce verbose output that lists
12200             # what "hidden" libraries, object files and flags are used when
12201             # linking a shared library.
12202             #
12203             # There doesn't appear to be a way to prevent this compiler from
12204             # explicitly linking system object files so we need to strip them
12205             # from the output so that they don't get included in the library
12206             # dependencies.
12207             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; $ECHO "X$list" | $Xsed'
12208             ;;
12209           *)
12210             if test "$GXX" = yes; then
12211               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
12212             else
12213               # FIXME: insert proper C++ library support
12214               ld_shlibs_CXX=no
12215             fi
12216             ;;
12217         esac
12218         ;;
12219
12220       hpux10*|hpux11*)
12221         if test $with_gnu_ld = no; then
12222           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12223           hardcode_libdir_separator_CXX=:
12224
12225           case $host_cpu in
12226             hppa*64*|ia64*)
12227               ;;
12228             *)
12229               export_dynamic_flag_spec_CXX='${wl}-E'
12230               ;;
12231           esac
12232         fi
12233         case $host_cpu in
12234           hppa*64*|ia64*)
12235             hardcode_direct_CXX=no
12236             hardcode_shlibpath_var_CXX=no
12237             ;;
12238           *)
12239             hardcode_direct_CXX=yes
12240             hardcode_direct_absolute_CXX=yes
12241             hardcode_minus_L_CXX=yes # Not in the search PATH,
12242                                                  # but as the default
12243                                                  # location of the library.
12244             ;;
12245         esac
12246
12247         case $cc_basename in
12248           CC*)
12249             # FIXME: insert proper C++ library support
12250             ld_shlibs_CXX=no
12251             ;;
12252           aCC*)
12253             case $host_cpu in
12254               hppa*64*)
12255                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12256                 ;;
12257               ia64*)
12258                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12259                 ;;
12260               *)
12261                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12262                 ;;
12263             esac
12264             # Commands to make compiler produce verbose output that lists
12265             # what "hidden" libraries, object files and flags are used when
12266             # linking a shared library.
12267             #
12268             # There doesn't appear to be a way to prevent this compiler from
12269             # explicitly linking system object files so we need to strip them
12270             # from the output so that they don't get included in the library
12271             # dependencies.
12272             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; $ECHO "X$list" | $Xsed'
12273             ;;
12274           *)
12275             if test "$GXX" = yes; then
12276               if test $with_gnu_ld = no; then
12277                 case $host_cpu in
12278                   hppa*64*)
12279                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12280                     ;;
12281                   ia64*)
12282                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12283                     ;;
12284                   *)
12285                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12286                     ;;
12287                 esac
12288               fi
12289             else
12290               # FIXME: insert proper C++ library support
12291               ld_shlibs_CXX=no
12292             fi
12293             ;;
12294         esac
12295         ;;
12296
12297       interix[3-9]*)
12298         hardcode_direct_CXX=no
12299         hardcode_shlibpath_var_CXX=no
12300         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12301         export_dynamic_flag_spec_CXX='${wl}-E'
12302         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12303         # Instead, shared libraries are loaded at an image base (0x10000000 by
12304         # default) and relocated if they conflict, which is a slow very memory
12305         # consuming and fragmenting process.  To avoid this, we pick a random,
12306         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12307         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12308         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'
12309         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'
12310         ;;
12311       irix5* | irix6*)
12312         case $cc_basename in
12313           CC*)
12314             # SGI C++
12315             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12316
12317             # Archives containing C++ object files must be created using
12318             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12319             # necessary to make sure instantiated templates are included
12320             # in the archive.
12321             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12322             ;;
12323           *)
12324             if test "$GXX" = yes; then
12325               if test "$with_gnu_ld" = no; then
12326                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12327               else
12328                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12329               fi
12330             fi
12331             link_all_deplibs_CXX=yes
12332             ;;
12333         esac
12334         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12335         hardcode_libdir_separator_CXX=:
12336         inherit_rpath_CXX=yes
12337         ;;
12338
12339       linux* | k*bsd*-gnu | kopensolaris*-gnu)
12340         case $cc_basename in
12341           KCC*)
12342             # Kuck and Associates, Inc. (KAI) C++ Compiler
12343
12344             # KCC will only create a shared library if the output file
12345             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12346             # to its proper name (with version) after linking.
12347             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'
12348             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'
12349             # Commands to make compiler produce verbose output that lists
12350             # what "hidden" libraries, object files and flags are used when
12351             # linking a shared library.
12352             #
12353             # There doesn't appear to be a way to prevent this compiler from
12354             # explicitly linking system object files so we need to strip them
12355             # from the output so that they don't get included in the library
12356             # dependencies.
12357             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; $ECHO "X$list" | $Xsed'
12358
12359             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12360             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12361
12362             # Archives containing C++ object files must be created using
12363             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12364             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12365             ;;
12366           icpc* | ecpc* )
12367             # Intel C++
12368             with_gnu_ld=yes
12369             # version 8.0 and above of icpc choke on multiply defined symbols
12370             # if we add $predep_objects and $postdep_objects, however 7.1 and
12371             # earlier do not add the objects themselves.
12372             case `$CC -V 2>&1` in
12373               *"Version 7."*)
12374                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12375                 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'
12376                 ;;
12377               *)  # Version 8.0 or newer
12378                 tmp_idyn=
12379                 case $host_cpu in
12380                   ia64*) tmp_idyn=' -i_dynamic';;
12381                 esac
12382                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12383                 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'
12384                 ;;
12385             esac
12386             archive_cmds_need_lc_CXX=no
12387             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12388             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12389             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12390             ;;
12391           pgCC* | pgcpp*)
12392             # Portland Group C++ compiler
12393             case `$CC -V` in
12394             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12395               prelink_cmds_CXX='tpldir=Template.dir~
12396                 rm -rf $tpldir~
12397                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12398                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12399               old_archive_cmds_CXX='tpldir=Template.dir~
12400                 rm -rf $tpldir~
12401                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12402                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12403                 $RANLIB $oldlib'
12404               archive_cmds_CXX='tpldir=Template.dir~
12405                 rm -rf $tpldir~
12406                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12407                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12408               archive_expsym_cmds_CXX='tpldir=Template.dir~
12409                 rm -rf $tpldir~
12410                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12411                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12412               ;;
12413             *) # Version 6 will use weak symbols
12414               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12415               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'
12416               ;;
12417             esac
12418
12419             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12420             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12421             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12422             ;;
12423           cxx*)
12424             # Compaq C++
12425             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12426             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'
12427
12428             runpath_var=LD_RUN_PATH
12429             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12430             hardcode_libdir_separator_CXX=:
12431
12432             # Commands to make compiler produce verbose output that lists
12433             # what "hidden" libraries, object files and flags are used when
12434             # linking a shared library.
12435             #
12436             # There doesn't appear to be a way to prevent this compiler from
12437             # explicitly linking system object files so we need to strip them
12438             # from the output so that they don't get included in the library
12439             # dependencies.
12440             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12441             ;;
12442           xl*)
12443             # IBM XL 8.0 on PPC, with GNU ld
12444             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12445             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12446             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12447             if test "x$supports_anon_versioning" = xyes; then
12448               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12449                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12450                 echo "local: *; };" >> $output_objdir/$libname.ver~
12451                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12452             fi
12453             ;;
12454           *)
12455             case `$CC -V 2>&1 | sed 5q` in
12456             *Sun\ C*)
12457               # Sun C++ 5.9
12458               no_undefined_flag_CXX=' -zdefs'
12459               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12460               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'
12461               hardcode_libdir_flag_spec_CXX='-R$libdir'
12462               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12463               compiler_needs_object_CXX=yes
12464
12465               # Not sure whether something based on
12466               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12467               # would be better.
12468               output_verbose_link_cmd='echo'
12469
12470               # Archives containing C++ object files must be created using
12471               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12472               # necessary to make sure instantiated templates are included
12473               # in the archive.
12474               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12475               ;;
12476             esac
12477             ;;
12478         esac
12479         ;;
12480
12481       lynxos*)
12482         # FIXME: insert proper C++ library support
12483         ld_shlibs_CXX=no
12484         ;;
12485
12486       m88k*)
12487         # FIXME: insert proper C++ library support
12488         ld_shlibs_CXX=no
12489         ;;
12490
12491       mvs*)
12492         case $cc_basename in
12493           cxx*)
12494             # FIXME: insert proper C++ library support
12495             ld_shlibs_CXX=no
12496             ;;
12497           *)
12498             # FIXME: insert proper C++ library support
12499             ld_shlibs_CXX=no
12500             ;;
12501         esac
12502         ;;
12503
12504       netbsd*)
12505         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12506           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12507           wlarc=
12508           hardcode_libdir_flag_spec_CXX='-R$libdir'
12509           hardcode_direct_CXX=yes
12510           hardcode_shlibpath_var_CXX=no
12511         fi
12512         # Workaround some broken pre-1.5 toolchains
12513         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12514         ;;
12515
12516       *nto* | *qnx*)
12517         ld_shlibs_CXX=yes
12518         ;;
12519
12520       openbsd2*)
12521         # C++ shared libraries are fairly broken
12522         ld_shlibs_CXX=no
12523         ;;
12524
12525       openbsd*)
12526         if test -f /usr/libexec/ld.so; then
12527           hardcode_direct_CXX=yes
12528           hardcode_shlibpath_var_CXX=no
12529           hardcode_direct_absolute_CXX=yes
12530           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12531           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12532           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12533             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12534             export_dynamic_flag_spec_CXX='${wl}-E'
12535             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12536           fi
12537           output_verbose_link_cmd=echo
12538         else
12539           ld_shlibs_CXX=no
12540         fi
12541         ;;
12542
12543       osf3* | osf4* | osf5*)
12544         case $cc_basename in
12545           KCC*)
12546             # Kuck and Associates, Inc. (KAI) C++ Compiler
12547
12548             # KCC will only create a shared library if the output file
12549             # ends with ".so" (or ".sl" for HP-UX), so rename the library
12550             # to its proper name (with version) after linking.
12551             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'
12552
12553             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12554             hardcode_libdir_separator_CXX=:
12555
12556             # Archives containing C++ object files must be created using
12557             # the KAI C++ compiler.
12558             case $host in
12559               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12560               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12561             esac
12562             ;;
12563           RCC*)
12564             # Rational C++ 2.4.1
12565             # FIXME: insert proper C++ library support
12566             ld_shlibs_CXX=no
12567             ;;
12568           cxx*)
12569             case $host in
12570               osf3*)
12571                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12572                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12573                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12574                 ;;
12575               *)
12576                 allow_undefined_flag_CXX=' -expect_unresolved \*'
12577                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12578                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12579                   echo "-hidden">> $lib.exp~
12580                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12581                   $RM $lib.exp'
12582                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12583                 ;;
12584             esac
12585
12586             hardcode_libdir_separator_CXX=:
12587
12588             # Commands to make compiler produce verbose output that lists
12589             # what "hidden" libraries, object files and flags are used when
12590             # linking a shared library.
12591             #
12592             # There doesn't appear to be a way to prevent this compiler from
12593             # explicitly linking system object files so we need to strip them
12594             # from the output so that they don't get included in the library
12595             # dependencies.
12596             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12597             ;;
12598           *)
12599             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12600               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12601               case $host in
12602                 osf3*)
12603                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12604                   ;;
12605                 *)
12606                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12607                   ;;
12608               esac
12609
12610               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12611               hardcode_libdir_separator_CXX=:
12612
12613               # Commands to make compiler produce verbose output that lists
12614               # what "hidden" libraries, object files and flags are used when
12615               # linking a shared library.
12616               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12617
12618             else
12619               # FIXME: insert proper C++ library support
12620               ld_shlibs_CXX=no
12621             fi
12622             ;;
12623         esac
12624         ;;
12625
12626       psos*)
12627         # FIXME: insert proper C++ library support
12628         ld_shlibs_CXX=no
12629         ;;
12630
12631       sunos4*)
12632         case $cc_basename in
12633           CC*)
12634             # Sun C++ 4.x
12635             # FIXME: insert proper C++ library support
12636             ld_shlibs_CXX=no
12637             ;;
12638           lcc*)
12639             # Lucid
12640             # FIXME: insert proper C++ library support
12641             ld_shlibs_CXX=no
12642             ;;
12643           *)
12644             # FIXME: insert proper C++ library support
12645             ld_shlibs_CXX=no
12646             ;;
12647         esac
12648         ;;
12649
12650       solaris*)
12651         case $cc_basename in
12652           CC*)
12653             # Sun C++ 4.2, 5.x and Centerline C++
12654             archive_cmds_need_lc_CXX=yes
12655             no_undefined_flag_CXX=' -zdefs'
12656             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12657             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12658               $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'
12659
12660             hardcode_libdir_flag_spec_CXX='-R$libdir'
12661             hardcode_shlibpath_var_CXX=no
12662             case $host_os in
12663               solaris2.[0-5] | solaris2.[0-5].*) ;;
12664               *)
12665                 # The compiler driver will combine and reorder linker options,
12666                 # but understands `-z linker_flag'.
12667                 # Supported since Solaris 2.6 (maybe 2.5.1?)
12668                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12669                 ;;
12670             esac
12671             link_all_deplibs_CXX=yes
12672
12673             output_verbose_link_cmd='echo'
12674
12675             # Archives containing C++ object files must be created using
12676             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12677             # necessary to make sure instantiated templates are included
12678             # in the archive.
12679             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12680             ;;
12681           gcx*)
12682             # Green Hills C++ Compiler
12683             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12684
12685             # The C++ compiler must be used to create the archive.
12686             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12687             ;;
12688           *)
12689             # GNU C++ compiler with Solaris linker
12690             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12691               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12692               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12693                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12694                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12695                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12696
12697                 # Commands to make compiler produce verbose output that lists
12698                 # what "hidden" libraries, object files and flags are used when
12699                 # linking a shared library.
12700                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12701               else
12702                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12703                 # platform.
12704                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12705                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12706                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12707
12708                 # Commands to make compiler produce verbose output that lists
12709                 # what "hidden" libraries, object files and flags are used when
12710                 # linking a shared library.
12711                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12712               fi
12713
12714               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12715               case $host_os in
12716                 solaris2.[0-5] | solaris2.[0-5].*) ;;
12717                 *)
12718                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12719                   ;;
12720               esac
12721             fi
12722             ;;
12723         esac
12724         ;;
12725
12726     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12727       no_undefined_flag_CXX='${wl}-z,text'
12728       archive_cmds_need_lc_CXX=no
12729       hardcode_shlibpath_var_CXX=no
12730       runpath_var='LD_RUN_PATH'
12731
12732       case $cc_basename in
12733         CC*)
12734           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12735           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12736           ;;
12737         *)
12738           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12739           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12740           ;;
12741       esac
12742       ;;
12743
12744       sysv5* | sco3.2v5* | sco5v6*)
12745         # Note: We can NOT use -z defs as we might desire, because we do not
12746         # link with -lc, and that would cause any symbols used from libc to
12747         # always be unresolved, which means just about no library would
12748         # ever link correctly.  If we're not using GNU ld we use -z text
12749         # though, which does catch some bad symbols but isn't as heavy-handed
12750         # as -z defs.
12751         no_undefined_flag_CXX='${wl}-z,text'
12752         allow_undefined_flag_CXX='${wl}-z,nodefs'
12753         archive_cmds_need_lc_CXX=no
12754         hardcode_shlibpath_var_CXX=no
12755         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12756         hardcode_libdir_separator_CXX=':'
12757         link_all_deplibs_CXX=yes
12758         export_dynamic_flag_spec_CXX='${wl}-Bexport'
12759         runpath_var='LD_RUN_PATH'
12760
12761         case $cc_basename in
12762           CC*)
12763             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12764             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12765             ;;
12766           *)
12767             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12768             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12769             ;;
12770         esac
12771       ;;
12772
12773       tandem*)
12774         case $cc_basename in
12775           NCC*)
12776             # NonStop-UX NCC 3.20
12777             # FIXME: insert proper C++ library support
12778             ld_shlibs_CXX=no
12779             ;;
12780           *)
12781             # FIXME: insert proper C++ library support
12782             ld_shlibs_CXX=no
12783             ;;
12784         esac
12785         ;;
12786
12787       vxworks*)
12788         # FIXME: insert proper C++ library support
12789         ld_shlibs_CXX=no
12790         ;;
12791
12792       *)
12793         # FIXME: insert proper C++ library support
12794         ld_shlibs_CXX=no
12795         ;;
12796     esac
12797
12798     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12799 $as_echo "$ld_shlibs_CXX" >&6; }
12800     test "$ld_shlibs_CXX" = no && can_build_shared=no
12801
12802     GCC_CXX="$GXX"
12803     LD_CXX="$LD"
12804
12805     ## CAVEAT EMPTOR:
12806     ## There is no encapsulation within the following macros, do not change
12807     ## the running order or otherwise move them around unless you know exactly
12808     ## what you are doing...
12809     # Dependencies to place before and after the object being linked:
12810 predep_objects_CXX=
12811 postdep_objects_CXX=
12812 predeps_CXX=
12813 postdeps_CXX=
12814 compiler_lib_search_path_CXX=
12815
12816 cat > conftest.$ac_ext <<_LT_EOF
12817 class Foo
12818 {
12819 public:
12820   Foo (void) { a = 0; }
12821 private:
12822   int a;
12823 };
12824 _LT_EOF
12825
12826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12827   (eval $ac_compile) 2>&5
12828   ac_status=$?
12829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12830   test $ac_status = 0; }; then
12831   # Parse the compiler output and extract the necessary
12832   # objects, libraries and library flags.
12833
12834   # Sentinel used to keep track of whether or not we are before
12835   # the conftest object file.
12836   pre_test_object_deps_done=no
12837
12838   for p in `eval "$output_verbose_link_cmd"`; do
12839     case $p in
12840
12841     -L* | -R* | -l*)
12842        # Some compilers place space between "-{L,R}" and the path.
12843        # Remove the space.
12844        if test $p = "-L" ||
12845           test $p = "-R"; then
12846          prev=$p
12847          continue
12848        else
12849          prev=
12850        fi
12851
12852        if test "$pre_test_object_deps_done" = no; then
12853          case $p in
12854          -L* | -R*)
12855            # Internal compiler library paths should come after those
12856            # provided the user.  The postdeps already come after the
12857            # user supplied libs so there is no need to process them.
12858            if test -z "$compiler_lib_search_path_CXX"; then
12859              compiler_lib_search_path_CXX="${prev}${p}"
12860            else
12861              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12862            fi
12863            ;;
12864          # The "-l" case would never come before the object being
12865          # linked, so don't bother handling this case.
12866          esac
12867        else
12868          if test -z "$postdeps_CXX"; then
12869            postdeps_CXX="${prev}${p}"
12870          else
12871            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12872          fi
12873        fi
12874        ;;
12875
12876     *.$objext)
12877        # This assumes that the test object file only shows up
12878        # once in the compiler output.
12879        if test "$p" = "conftest.$objext"; then
12880          pre_test_object_deps_done=yes
12881          continue
12882        fi
12883
12884        if test "$pre_test_object_deps_done" = no; then
12885          if test -z "$predep_objects_CXX"; then
12886            predep_objects_CXX="$p"
12887          else
12888            predep_objects_CXX="$predep_objects_CXX $p"
12889          fi
12890        else
12891          if test -z "$postdep_objects_CXX"; then
12892            postdep_objects_CXX="$p"
12893          else
12894            postdep_objects_CXX="$postdep_objects_CXX $p"
12895          fi
12896        fi
12897        ;;
12898
12899     *) ;; # Ignore the rest.
12900
12901     esac
12902   done
12903
12904   # Clean up.
12905   rm -f a.out a.exe
12906 else
12907   echo "libtool.m4: error: problem compiling CXX test program"
12908 fi
12909
12910 $RM -f confest.$objext
12911
12912 # PORTME: override above test on systems where it is broken
12913 case $host_os in
12914 interix[3-9]*)
12915   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12916   # hack all around it, let's just trust "g++" to DTRT.
12917   predep_objects_CXX=
12918   postdep_objects_CXX=
12919   postdeps_CXX=
12920   ;;
12921
12922 linux*)
12923   case `$CC -V 2>&1 | sed 5q` in
12924   *Sun\ C*)
12925     # Sun C++ 5.9
12926
12927     # The more standards-conforming stlport4 library is
12928     # incompatible with the Cstd library. Avoid specifying
12929     # it if it's in CXXFLAGS. Ignore libCrun as
12930     # -library=stlport4 depends on it.
12931     case " $CXX $CXXFLAGS " in
12932     *" -library=stlport4 "*)
12933       solaris_use_stlport4=yes
12934       ;;
12935     esac
12936
12937     if test "$solaris_use_stlport4" != yes; then
12938       postdeps_CXX='-library=Cstd -library=Crun'
12939     fi
12940     ;;
12941   esac
12942   ;;
12943
12944 solaris*)
12945   case $cc_basename in
12946   CC*)
12947     # The more standards-conforming stlport4 library is
12948     # incompatible with the Cstd library. Avoid specifying
12949     # it if it's in CXXFLAGS. Ignore libCrun as
12950     # -library=stlport4 depends on it.
12951     case " $CXX $CXXFLAGS " in
12952     *" -library=stlport4 "*)
12953       solaris_use_stlport4=yes
12954       ;;
12955     esac
12956
12957     # Adding this requires a known-good setup of shared libraries for
12958     # Sun compiler versions before 5.6, else PIC objects from an old
12959     # archive will be linked into the output, leading to subtle bugs.
12960     if test "$solaris_use_stlport4" != yes; then
12961       postdeps_CXX='-library=Cstd -library=Crun'
12962     fi
12963     ;;
12964   esac
12965   ;;
12966 esac
12967
12968
12969 case " $postdeps_CXX " in
12970 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12971 esac
12972  compiler_lib_search_dirs_CXX=
12973 if test -n "${compiler_lib_search_path_CXX}"; then
12974  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12975 fi
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007     lt_prog_compiler_wl_CXX=
13008 lt_prog_compiler_pic_CXX=
13009 lt_prog_compiler_static_CXX=
13010
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13012 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13013
13014   # C++ specific cases for pic, static, wl, etc.
13015   if test "$GXX" = yes; then
13016     lt_prog_compiler_wl_CXX='-Wl,'
13017     lt_prog_compiler_static_CXX='-static'
13018
13019     case $host_os in
13020     aix*)
13021       # All AIX code is PIC.
13022       if test "$host_cpu" = ia64; then
13023         # AIX 5 now supports IA64 processor
13024         lt_prog_compiler_static_CXX='-Bstatic'
13025       fi
13026       ;;
13027
13028     amigaos*)
13029       case $host_cpu in
13030       powerpc)
13031             # see comment about AmigaOS4 .so support
13032             lt_prog_compiler_pic_CXX='-fPIC'
13033         ;;
13034       m68k)
13035             # FIXME: we need at least 68020 code to build shared libraries, but
13036             # adding the `-m68020' flag to GCC prevents building anything better,
13037             # like `-m68040'.
13038             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13039         ;;
13040       esac
13041       ;;
13042
13043     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13044       # PIC is the default for these OSes.
13045       ;;
13046     mingw* | cygwin* | os2* | pw32* | cegcc*)
13047       # This hack is so that the source file can tell whether it is being
13048       # built for inclusion in a dll (and should export symbols for example).
13049       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13050       # (--disable-auto-import) libraries
13051       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13052       ;;
13053     darwin* | rhapsody*)
13054       # PIC is the default on this platform
13055       # Common symbols not allowed in MH_DYLIB files
13056       lt_prog_compiler_pic_CXX='-fno-common'
13057       ;;
13058     *djgpp*)
13059       # DJGPP does not support shared libraries at all
13060       lt_prog_compiler_pic_CXX=
13061       ;;
13062     interix[3-9]*)
13063       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13064       # Instead, we relocate shared libraries at runtime.
13065       ;;
13066     sysv4*MP*)
13067       if test -d /usr/nec; then
13068         lt_prog_compiler_pic_CXX=-Kconform_pic
13069       fi
13070       ;;
13071     hpux*)
13072       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13073       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13074       # sets the default TLS model and affects inlining.
13075       case $host_cpu in
13076       hppa*64*)
13077         ;;
13078       *)
13079         lt_prog_compiler_pic_CXX='-fPIC'
13080         ;;
13081       esac
13082       ;;
13083     *qnx* | *nto*)
13084       # QNX uses GNU C++, but need to define -shared option too, otherwise
13085       # it will coredump.
13086       lt_prog_compiler_pic_CXX='-fPIC -shared'
13087       ;;
13088     *)
13089       lt_prog_compiler_pic_CXX='-fPIC'
13090       ;;
13091     esac
13092   else
13093     case $host_os in
13094       aix[4-9]*)
13095         # All AIX code is PIC.
13096         if test "$host_cpu" = ia64; then
13097           # AIX 5 now supports IA64 processor
13098           lt_prog_compiler_static_CXX='-Bstatic'
13099         else
13100           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13101         fi
13102         ;;
13103       chorus*)
13104         case $cc_basename in
13105         cxch68*)
13106           # Green Hills C++ Compiler
13107           # _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"
13108           ;;
13109         esac
13110         ;;
13111       dgux*)
13112         case $cc_basename in
13113           ec++*)
13114             lt_prog_compiler_pic_CXX='-KPIC'
13115             ;;
13116           ghcx*)
13117             # Green Hills C++ Compiler
13118             lt_prog_compiler_pic_CXX='-pic'
13119             ;;
13120           *)
13121             ;;
13122         esac
13123         ;;
13124       freebsd* | dragonfly*)
13125         # FreeBSD uses GNU C++
13126         ;;
13127       hpux9* | hpux10* | hpux11*)
13128         case $cc_basename in
13129           CC*)
13130             lt_prog_compiler_wl_CXX='-Wl,'
13131             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13132             if test "$host_cpu" != ia64; then
13133               lt_prog_compiler_pic_CXX='+Z'
13134             fi
13135             ;;
13136           aCC*)
13137             lt_prog_compiler_wl_CXX='-Wl,'
13138             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13139             case $host_cpu in
13140             hppa*64*|ia64*)
13141               # +Z the default
13142               ;;
13143             *)
13144               lt_prog_compiler_pic_CXX='+Z'
13145               ;;
13146             esac
13147             ;;
13148           *)
13149             ;;
13150         esac
13151         ;;
13152       interix*)
13153         # This is c89, which is MS Visual C++ (no shared libs)
13154         # Anyone wants to do a port?
13155         ;;
13156       irix5* | irix6* | nonstopux*)
13157         case $cc_basename in
13158           CC*)
13159             lt_prog_compiler_wl_CXX='-Wl,'
13160             lt_prog_compiler_static_CXX='-non_shared'
13161             # CC pic flag -KPIC is the default.
13162             ;;
13163           *)
13164             ;;
13165         esac
13166         ;;
13167       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13168         case $cc_basename in
13169           KCC*)
13170             # KAI C++ Compiler
13171             lt_prog_compiler_wl_CXX='--backend -Wl,'
13172             lt_prog_compiler_pic_CXX='-fPIC'
13173             ;;
13174           ecpc* )
13175             # old Intel C++ for x86_64 which still supported -KPIC.
13176             lt_prog_compiler_wl_CXX='-Wl,'
13177             lt_prog_compiler_pic_CXX='-KPIC'
13178             lt_prog_compiler_static_CXX='-static'
13179             ;;
13180           icpc* )
13181             # Intel C++, used to be incompatible with GCC.
13182             # ICC 10 doesn't accept -KPIC any more.
13183             lt_prog_compiler_wl_CXX='-Wl,'
13184             lt_prog_compiler_pic_CXX='-fPIC'
13185             lt_prog_compiler_static_CXX='-static'
13186             ;;
13187           pgCC* | pgcpp*)
13188             # Portland Group C++ compiler
13189             lt_prog_compiler_wl_CXX='-Wl,'
13190             lt_prog_compiler_pic_CXX='-fpic'
13191             lt_prog_compiler_static_CXX='-Bstatic'
13192             ;;
13193           cxx*)
13194             # Compaq C++
13195             # Make sure the PIC flag is empty.  It appears that all Alpha
13196             # Linux and Compaq Tru64 Unix objects are PIC.
13197             lt_prog_compiler_pic_CXX=
13198             lt_prog_compiler_static_CXX='-non_shared'
13199             ;;
13200           xlc* | xlC*)
13201             # IBM XL 8.0 on PPC
13202             lt_prog_compiler_wl_CXX='-Wl,'
13203             lt_prog_compiler_pic_CXX='-qpic'
13204             lt_prog_compiler_static_CXX='-qstaticlink'
13205             ;;
13206           *)
13207             case `$CC -V 2>&1 | sed 5q` in
13208             *Sun\ C*)
13209               # Sun C++ 5.9
13210               lt_prog_compiler_pic_CXX='-KPIC'
13211               lt_prog_compiler_static_CXX='-Bstatic'
13212               lt_prog_compiler_wl_CXX='-Qoption ld '
13213               ;;
13214             esac
13215             ;;
13216         esac
13217         ;;
13218       lynxos*)
13219         ;;
13220       m88k*)
13221         ;;
13222       mvs*)
13223         case $cc_basename in
13224           cxx*)
13225             lt_prog_compiler_pic_CXX='-W c,exportall'
13226             ;;
13227           *)
13228             ;;
13229         esac
13230         ;;
13231       netbsd* | netbsdelf*-gnu)
13232         ;;
13233       *qnx* | *nto*)
13234         # QNX uses GNU C++, but need to define -shared option too, otherwise
13235         # it will coredump.
13236         lt_prog_compiler_pic_CXX='-fPIC -shared'
13237         ;;
13238       osf3* | osf4* | osf5*)
13239         case $cc_basename in
13240           KCC*)
13241             lt_prog_compiler_wl_CXX='--backend -Wl,'
13242             ;;
13243           RCC*)
13244             # Rational C++ 2.4.1
13245             lt_prog_compiler_pic_CXX='-pic'
13246             ;;
13247           cxx*)
13248             # Digital/Compaq C++
13249             lt_prog_compiler_wl_CXX='-Wl,'
13250             # Make sure the PIC flag is empty.  It appears that all Alpha
13251             # Linux and Compaq Tru64 Unix objects are PIC.
13252             lt_prog_compiler_pic_CXX=
13253             lt_prog_compiler_static_CXX='-non_shared'
13254             ;;
13255           *)
13256             ;;
13257         esac
13258         ;;
13259       psos*)
13260         ;;
13261       solaris*)
13262         case $cc_basename in
13263           CC*)
13264             # Sun C++ 4.2, 5.x and Centerline C++
13265             lt_prog_compiler_pic_CXX='-KPIC'
13266             lt_prog_compiler_static_CXX='-Bstatic'
13267             lt_prog_compiler_wl_CXX='-Qoption ld '
13268             ;;
13269           gcx*)
13270             # Green Hills C++ Compiler
13271             lt_prog_compiler_pic_CXX='-PIC'
13272             ;;
13273           *)
13274             ;;
13275         esac
13276         ;;
13277       sunos4*)
13278         case $cc_basename in
13279           CC*)
13280             # Sun C++ 4.x
13281             lt_prog_compiler_pic_CXX='-pic'
13282             lt_prog_compiler_static_CXX='-Bstatic'
13283             ;;
13284           lcc*)
13285             # Lucid
13286             lt_prog_compiler_pic_CXX='-pic'
13287             ;;
13288           *)
13289             ;;
13290         esac
13291         ;;
13292       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13293         case $cc_basename in
13294           CC*)
13295             lt_prog_compiler_wl_CXX='-Wl,'
13296             lt_prog_compiler_pic_CXX='-KPIC'
13297             lt_prog_compiler_static_CXX='-Bstatic'
13298             ;;
13299         esac
13300         ;;
13301       tandem*)
13302         case $cc_basename in
13303           NCC*)
13304             # NonStop-UX NCC 3.20
13305             lt_prog_compiler_pic_CXX='-KPIC'
13306             ;;
13307           *)
13308             ;;
13309         esac
13310         ;;
13311       vxworks*)
13312         ;;
13313       *)
13314         lt_prog_compiler_can_build_shared_CXX=no
13315         ;;
13316     esac
13317   fi
13318
13319 case $host_os in
13320   # For platforms which do not support PIC, -DPIC is meaningless:
13321   *djgpp*)
13322     lt_prog_compiler_pic_CXX=
13323     ;;
13324   *)
13325     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13326     ;;
13327 esac
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13329 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13330
13331
13332
13333 #
13334 # Check to make sure the PIC flag actually works.
13335 #
13336 if test -n "$lt_prog_compiler_pic_CXX"; then
13337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13338 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13339 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13340   $as_echo_n "(cached) " >&6
13341 else
13342   lt_cv_prog_compiler_pic_works_CXX=no
13343    ac_outfile=conftest.$ac_objext
13344    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13345    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13346    # Insert the option either (1) after the last *FLAGS variable, or
13347    # (2) before a word containing "conftest.", or (3) at the end.
13348    # Note that $ac_compile itself does not contain backslashes and begins
13349    # with a dollar sign (not a hyphen), so the echo should work correctly.
13350    # The option is referenced via a variable to avoid confusing sed.
13351    lt_compile=`echo "$ac_compile" | $SED \
13352    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13353    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13354    -e 's:$: $lt_compiler_flag:'`
13355    (eval echo "\"\$as_me:13355: $lt_compile\"" >&5)
13356    (eval "$lt_compile" 2>conftest.err)
13357    ac_status=$?
13358    cat conftest.err >&5
13359    echo "$as_me:13359: \$? = $ac_status" >&5
13360    if (exit $ac_status) && test -s "$ac_outfile"; then
13361      # The compiler can only warn and ignore the option if not recognized
13362      # So say no if there are warnings other than the usual output.
13363      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13364      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13365      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13366        lt_cv_prog_compiler_pic_works_CXX=yes
13367      fi
13368    fi
13369    $RM conftest*
13370
13371 fi
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13373 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13374
13375 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13376     case $lt_prog_compiler_pic_CXX in
13377      "" | " "*) ;;
13378      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13379      esac
13380 else
13381     lt_prog_compiler_pic_CXX=
13382      lt_prog_compiler_can_build_shared_CXX=no
13383 fi
13384
13385 fi
13386
13387
13388
13389 #
13390 # Check to make sure the static flag actually works.
13391 #
13392 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13394 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13395 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13396   $as_echo_n "(cached) " >&6
13397 else
13398   lt_cv_prog_compiler_static_works_CXX=no
13399    save_LDFLAGS="$LDFLAGS"
13400    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13401    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13402    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13403      # The linker can only warn and ignore the option if not recognized
13404      # So say no if there are warnings
13405      if test -s conftest.err; then
13406        # Append any errors to the config.log.
13407        cat conftest.err 1>&5
13408        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13409        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13410        if diff conftest.exp conftest.er2 >/dev/null; then
13411          lt_cv_prog_compiler_static_works_CXX=yes
13412        fi
13413      else
13414        lt_cv_prog_compiler_static_works_CXX=yes
13415      fi
13416    fi
13417    $RM -r conftest*
13418    LDFLAGS="$save_LDFLAGS"
13419
13420 fi
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13422 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13423
13424 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13425     :
13426 else
13427     lt_prog_compiler_static_CXX=
13428 fi
13429
13430
13431
13432
13433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13434 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13435 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13436   $as_echo_n "(cached) " >&6
13437 else
13438   lt_cv_prog_compiler_c_o_CXX=no
13439    $RM -r conftest 2>/dev/null
13440    mkdir conftest
13441    cd conftest
13442    mkdir out
13443    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13444
13445    lt_compiler_flag="-o out/conftest2.$ac_objext"
13446    # Insert the option either (1) after the last *FLAGS variable, or
13447    # (2) before a word containing "conftest.", or (3) at the end.
13448    # Note that $ac_compile itself does not contain backslashes and begins
13449    # with a dollar sign (not a hyphen), so the echo should work correctly.
13450    lt_compile=`echo "$ac_compile" | $SED \
13451    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13452    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13453    -e 's:$: $lt_compiler_flag:'`
13454    (eval echo "\"\$as_me:13454: $lt_compile\"" >&5)
13455    (eval "$lt_compile" 2>out/conftest.err)
13456    ac_status=$?
13457    cat out/conftest.err >&5
13458    echo "$as_me:13458: \$? = $ac_status" >&5
13459    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13460    then
13461      # The compiler can only warn and ignore the option if not recognized
13462      # So say no if there are warnings
13463      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13464      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13465      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13466        lt_cv_prog_compiler_c_o_CXX=yes
13467      fi
13468    fi
13469    chmod u+w . 2>&5
13470    $RM conftest*
13471    # SGI C++ compiler will create directory out/ii_files/ for
13472    # template instantiation
13473    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13474    $RM out/* && rmdir out
13475    cd ..
13476    $RM -r conftest
13477    $RM conftest*
13478
13479 fi
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13481 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13482
13483
13484
13485     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13486 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13487 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13488   $as_echo_n "(cached) " >&6
13489 else
13490   lt_cv_prog_compiler_c_o_CXX=no
13491    $RM -r conftest 2>/dev/null
13492    mkdir conftest
13493    cd conftest
13494    mkdir out
13495    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13496
13497    lt_compiler_flag="-o out/conftest2.$ac_objext"
13498    # Insert the option either (1) after the last *FLAGS variable, or
13499    # (2) before a word containing "conftest.", or (3) at the end.
13500    # Note that $ac_compile itself does not contain backslashes and begins
13501    # with a dollar sign (not a hyphen), so the echo should work correctly.
13502    lt_compile=`echo "$ac_compile" | $SED \
13503    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13504    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13505    -e 's:$: $lt_compiler_flag:'`
13506    (eval echo "\"\$as_me:13506: $lt_compile\"" >&5)
13507    (eval "$lt_compile" 2>out/conftest.err)
13508    ac_status=$?
13509    cat out/conftest.err >&5
13510    echo "$as_me:13510: \$? = $ac_status" >&5
13511    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13512    then
13513      # The compiler can only warn and ignore the option if not recognized
13514      # So say no if there are warnings
13515      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13516      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13517      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13518        lt_cv_prog_compiler_c_o_CXX=yes
13519      fi
13520    fi
13521    chmod u+w . 2>&5
13522    $RM conftest*
13523    # SGI C++ compiler will create directory out/ii_files/ for
13524    # template instantiation
13525    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13526    $RM out/* && rmdir out
13527    cd ..
13528    $RM -r conftest
13529    $RM conftest*
13530
13531 fi
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13533 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13534
13535
13536
13537
13538 hard_links="nottested"
13539 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13540   # do not overwrite the value of need_locks provided by the user
13541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13542 $as_echo_n "checking if we can lock with hard links... " >&6; }
13543   hard_links=yes
13544   $RM conftest*
13545   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13546   touch conftest.a
13547   ln conftest.a conftest.b 2>&5 || hard_links=no
13548   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13550 $as_echo "$hard_links" >&6; }
13551   if test "$hard_links" = no; then
13552     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13553 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13554     need_locks=warn
13555   fi
13556 else
13557   need_locks=no
13558 fi
13559
13560
13561
13562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13563 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13564
13565   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13566   case $host_os in
13567   aix[4-9]*)
13568     # If we're using GNU nm, then we don't want the "-C" option.
13569     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13570     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13571       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13572     else
13573       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'
13574     fi
13575     ;;
13576   pw32*)
13577     export_symbols_cmds_CXX="$ltdll_cmds"
13578   ;;
13579   cygwin* | mingw* | cegcc*)
13580     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13581   ;;
13582   linux* | k*bsd*-gnu)
13583     link_all_deplibs_CXX=no
13584   ;;
13585   *)
13586     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13587   ;;
13588   esac
13589   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13590
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13592 $as_echo "$ld_shlibs_CXX" >&6; }
13593 test "$ld_shlibs_CXX" = no && can_build_shared=no
13594
13595 with_gnu_ld_CXX=$with_gnu_ld
13596
13597
13598
13599
13600
13601
13602 #
13603 # Do we need to explicitly link libc?
13604 #
13605 case "x$archive_cmds_need_lc_CXX" in
13606 x|xyes)
13607   # Assume -lc should be added
13608   archive_cmds_need_lc_CXX=yes
13609
13610   if test "$enable_shared" = yes && test "$GCC" = yes; then
13611     case $archive_cmds_CXX in
13612     *'~'*)
13613       # FIXME: we may have to deal with multi-command sequences.
13614       ;;
13615     '$CC '*)
13616       # Test whether the compiler implicitly links with -lc since on some
13617       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13618       # to ld, don't add -lc before -lgcc.
13619       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13620 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13621       $RM conftest*
13622       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13623
13624       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13625   (eval $ac_compile) 2>&5
13626   ac_status=$?
13627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13628   test $ac_status = 0; } 2>conftest.err; then
13629         soname=conftest
13630         lib=conftest
13631         libobjs=conftest.$ac_objext
13632         deplibs=
13633         wl=$lt_prog_compiler_wl_CXX
13634         pic_flag=$lt_prog_compiler_pic_CXX
13635         compiler_flags=-v
13636         linker_flags=-v
13637         verstring=
13638         output_objdir=.
13639         libname=conftest
13640         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13641         allow_undefined_flag_CXX=
13642         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13643   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13644   ac_status=$?
13645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13646   test $ac_status = 0; }
13647         then
13648           archive_cmds_need_lc_CXX=no
13649         else
13650           archive_cmds_need_lc_CXX=yes
13651         fi
13652         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13653       else
13654         cat conftest.err 1>&5
13655       fi
13656       $RM conftest*
13657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13658 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13659       ;;
13660     esac
13661   fi
13662   ;;
13663 esac
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13729 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13730
13731 library_names_spec=
13732 libname_spec='lib$name'
13733 soname_spec=
13734 shrext_cmds=".so"
13735 postinstall_cmds=
13736 postuninstall_cmds=
13737 finish_cmds=
13738 finish_eval=
13739 shlibpath_var=
13740 shlibpath_overrides_runpath=unknown
13741 version_type=none
13742 dynamic_linker="$host_os ld.so"
13743 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13744 need_lib_prefix=unknown
13745 hardcode_into_libs=no
13746
13747 # when you set need_version to no, make sure it does not cause -set_version
13748 # flags to be left without arguments
13749 need_version=unknown
13750
13751 case $host_os in
13752 aix3*)
13753   version_type=linux
13754   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13755   shlibpath_var=LIBPATH
13756
13757   # AIX 3 has no versioning support, so we append a major version to the name.
13758   soname_spec='${libname}${release}${shared_ext}$major'
13759   ;;
13760
13761 aix[4-9]*)
13762   version_type=linux
13763   need_lib_prefix=no
13764   need_version=no
13765   hardcode_into_libs=yes
13766   if test "$host_cpu" = ia64; then
13767     # AIX 5 supports IA64
13768     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13769     shlibpath_var=LD_LIBRARY_PATH
13770   else
13771     # With GCC up to 2.95.x, collect2 would create an import file
13772     # for dependence libraries.  The import file would start with
13773     # the line `#! .'.  This would cause the generated library to
13774     # depend on `.', always an invalid library.  This was fixed in
13775     # development snapshots of GCC prior to 3.0.
13776     case $host_os in
13777       aix4 | aix4.[01] | aix4.[01].*)
13778       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13779            echo ' yes '
13780            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13781         :
13782       else
13783         can_build_shared=no
13784       fi
13785       ;;
13786     esac
13787     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13788     # soname into executable. Probably we can add versioning support to
13789     # collect2, so additional links can be useful in future.
13790     if test "$aix_use_runtimelinking" = yes; then
13791       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13792       # instead of lib<name>.a to let people know that these are not
13793       # typical AIX shared libraries.
13794       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13795     else
13796       # We preserve .a as extension for shared libraries through AIX4.2
13797       # and later when we are not doing run time linking.
13798       library_names_spec='${libname}${release}.a $libname.a'
13799       soname_spec='${libname}${release}${shared_ext}$major'
13800     fi
13801     shlibpath_var=LIBPATH
13802   fi
13803   ;;
13804
13805 amigaos*)
13806   case $host_cpu in
13807   powerpc)
13808     # Since July 2007 AmigaOS4 officially supports .so libraries.
13809     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13810     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13811     ;;
13812   m68k)
13813     library_names_spec='$libname.ixlibrary $libname.a'
13814     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13815     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
13816     ;;
13817   esac
13818   ;;
13819
13820 beos*)
13821   library_names_spec='${libname}${shared_ext}'
13822   dynamic_linker="$host_os ld.so"
13823   shlibpath_var=LIBRARY_PATH
13824   ;;
13825
13826 bsdi[45]*)
13827   version_type=linux
13828   need_version=no
13829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13830   soname_spec='${libname}${release}${shared_ext}$major'
13831   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13832   shlibpath_var=LD_LIBRARY_PATH
13833   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13834   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13835   # the default ld.so.conf also contains /usr/contrib/lib and
13836   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13837   # libtool to hard-code these into programs
13838   ;;
13839
13840 cygwin* | mingw* | pw32* | cegcc*)
13841   version_type=windows
13842   shrext_cmds=".dll"
13843   need_version=no
13844   need_lib_prefix=no
13845
13846   case $GCC,$host_os in
13847   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13848     library_names_spec='$libname.dll.a'
13849     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13850     postinstall_cmds='base_file=`basename \${file}`~
13851       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13852       dldir=$destdir/`dirname \$dlpath`~
13853       test -d \$dldir || mkdir -p \$dldir~
13854       $install_prog $dir/$dlname \$dldir/$dlname~
13855       chmod a+x \$dldir/$dlname~
13856       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13857         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13858       fi'
13859     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13860       dlpath=$dir/\$dldll~
13861        $RM \$dlpath'
13862     shlibpath_overrides_runpath=yes
13863
13864     case $host_os in
13865     cygwin*)
13866       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13867       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13868       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13869       ;;
13870     mingw* | cegcc*)
13871       # MinGW DLLs use traditional 'lib' prefix
13872       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13873       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13874       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13875         # It is most probably a Windows format PATH printed by
13876         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13877         # path with ; separators, and with drive letters. We can handle the
13878         # drive letters (cygwin fileutils understands them), so leave them,
13879         # especially as we might pass files found there to a mingw objdump,
13880         # which wouldn't understand a cygwinified path. Ahh.
13881         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13882       else
13883         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13884       fi
13885       ;;
13886     pw32*)
13887       # pw32 DLLs use 'pw' prefix rather than 'lib'
13888       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13889       ;;
13890     esac
13891     ;;
13892
13893   *)
13894     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13895     ;;
13896   esac
13897   dynamic_linker='Win32 ld.exe'
13898   # FIXME: first we should search . and the directory the executable is in
13899   shlibpath_var=PATH
13900   ;;
13901
13902 darwin* | rhapsody*)
13903   dynamic_linker="$host_os dyld"
13904   version_type=darwin
13905   need_lib_prefix=no
13906   need_version=no
13907   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13908   soname_spec='${libname}${release}${major}$shared_ext'
13909   shlibpath_overrides_runpath=yes
13910   shlibpath_var=DYLD_LIBRARY_PATH
13911   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13912
13913   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13914   ;;
13915
13916 dgux*)
13917   version_type=linux
13918   need_lib_prefix=no
13919   need_version=no
13920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13921   soname_spec='${libname}${release}${shared_ext}$major'
13922   shlibpath_var=LD_LIBRARY_PATH
13923   ;;
13924
13925 freebsd1*)
13926   dynamic_linker=no
13927   ;;
13928
13929 freebsd* | dragonfly*)
13930   # DragonFly does not have aout.  When/if they implement a new
13931   # versioning mechanism, adjust this.
13932   if test -x /usr/bin/objformat; then
13933     objformat=`/usr/bin/objformat`
13934   else
13935     case $host_os in
13936     freebsd[123]*) objformat=aout ;;
13937     *) objformat=elf ;;
13938     esac
13939   fi
13940   version_type=freebsd-$objformat
13941   case $version_type in
13942     freebsd-elf*)
13943       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13944       need_version=no
13945       need_lib_prefix=no
13946       ;;
13947     freebsd-*)
13948       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13949       need_version=yes
13950       ;;
13951   esac
13952   shlibpath_var=LD_LIBRARY_PATH
13953   case $host_os in
13954   freebsd2*)
13955     shlibpath_overrides_runpath=yes
13956     ;;
13957   freebsd3.[01]* | freebsdelf3.[01]*)
13958     shlibpath_overrides_runpath=yes
13959     hardcode_into_libs=yes
13960     ;;
13961   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13962   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13963     shlibpath_overrides_runpath=no
13964     hardcode_into_libs=yes
13965     ;;
13966   *) # from 4.6 on, and DragonFly
13967     shlibpath_overrides_runpath=yes
13968     hardcode_into_libs=yes
13969     ;;
13970   esac
13971   ;;
13972
13973 gnu*)
13974   version_type=linux
13975   need_lib_prefix=no
13976   need_version=no
13977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13978   soname_spec='${libname}${release}${shared_ext}$major'
13979   shlibpath_var=LD_LIBRARY_PATH
13980   hardcode_into_libs=yes
13981   ;;
13982
13983 hpux9* | hpux10* | hpux11*)
13984   # Give a soname corresponding to the major version so that dld.sl refuses to
13985   # link against other versions.
13986   version_type=sunos
13987   need_lib_prefix=no
13988   need_version=no
13989   case $host_cpu in
13990   ia64*)
13991     shrext_cmds='.so'
13992     hardcode_into_libs=yes
13993     dynamic_linker="$host_os dld.so"
13994     shlibpath_var=LD_LIBRARY_PATH
13995     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13996     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13997     soname_spec='${libname}${release}${shared_ext}$major'
13998     if test "X$HPUX_IA64_MODE" = X32; then
13999       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14000     else
14001       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14002     fi
14003     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14004     ;;
14005   hppa*64*)
14006     shrext_cmds='.sl'
14007     hardcode_into_libs=yes
14008     dynamic_linker="$host_os dld.sl"
14009     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14010     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14011     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14012     soname_spec='${libname}${release}${shared_ext}$major'
14013     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14014     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14015     ;;
14016   *)
14017     shrext_cmds='.sl'
14018     dynamic_linker="$host_os dld.sl"
14019     shlibpath_var=SHLIB_PATH
14020     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14021     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14022     soname_spec='${libname}${release}${shared_ext}$major'
14023     ;;
14024   esac
14025   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14026   postinstall_cmds='chmod 555 $lib'
14027   ;;
14028
14029 interix[3-9]*)
14030   version_type=linux
14031   need_lib_prefix=no
14032   need_version=no
14033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14034   soname_spec='${libname}${release}${shared_ext}$major'
14035   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14036   shlibpath_var=LD_LIBRARY_PATH
14037   shlibpath_overrides_runpath=no
14038   hardcode_into_libs=yes
14039   ;;
14040
14041 irix5* | irix6* | nonstopux*)
14042   case $host_os in
14043     nonstopux*) version_type=nonstopux ;;
14044     *)
14045         if test "$lt_cv_prog_gnu_ld" = yes; then
14046                 version_type=linux
14047         else
14048                 version_type=irix
14049         fi ;;
14050   esac
14051   need_lib_prefix=no
14052   need_version=no
14053   soname_spec='${libname}${release}${shared_ext}$major'
14054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14055   case $host_os in
14056   irix5* | nonstopux*)
14057     libsuff= shlibsuff=
14058     ;;
14059   *)
14060     case $LD in # libtool.m4 will add one of these switches to LD
14061     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14062       libsuff= shlibsuff= libmagic=32-bit;;
14063     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14064       libsuff=32 shlibsuff=N32 libmagic=N32;;
14065     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14066       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14067     *) libsuff= shlibsuff= libmagic=never-match;;
14068     esac
14069     ;;
14070   esac
14071   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14072   shlibpath_overrides_runpath=no
14073   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14074   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14075   hardcode_into_libs=yes
14076   ;;
14077
14078 # No shared lib support for Linux oldld, aout, or coff.
14079 linux*oldld* | linux*aout* | linux*coff*)
14080   dynamic_linker=no
14081   ;;
14082
14083 # This must be Linux ELF.
14084 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14085   version_type=linux
14086   need_lib_prefix=no
14087   need_version=no
14088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14089   soname_spec='${libname}${release}${shared_ext}$major'
14090   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14091   shlibpath_var=LD_LIBRARY_PATH
14092   shlibpath_overrides_runpath=no
14093   # Some binutils ld are patched to set DT_RUNPATH
14094   save_LDFLAGS=$LDFLAGS
14095   save_libdir=$libdir
14096   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14097        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h.  */
14100
14101 int
14102 main ()
14103 {
14104
14105   ;
14106   return 0;
14107 }
14108 _ACEOF
14109 if ac_fn_cxx_try_link "$LINENO"; then :
14110   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14111   shlibpath_overrides_runpath=yes
14112 fi
14113 fi
14114 rm -f core conftest.err conftest.$ac_objext \
14115     conftest$ac_exeext conftest.$ac_ext
14116   LDFLAGS=$save_LDFLAGS
14117   libdir=$save_libdir
14118
14119   # This implies no fast_install, which is unacceptable.
14120   # Some rework will be needed to allow for fast_install
14121   # before this can be enabled.
14122   hardcode_into_libs=yes
14123
14124   # Append ld.so.conf contents to the search path
14125   if test -f /etc/ld.so.conf; then
14126     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;/^$/d' | tr '\n' ' '`
14127     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14128   fi
14129
14130   # We used to test for /lib/ld.so.1 and disable shared libraries on
14131   # powerpc, because MkLinux only supported shared libraries with the
14132   # GNU dynamic linker.  Since this was broken with cross compilers,
14133   # most powerpc-linux boxes support dynamic linking these days and
14134   # people can always --disable-shared, the test was removed, and we
14135   # assume the GNU/Linux dynamic linker is in use.
14136   dynamic_linker='GNU/Linux ld.so'
14137   ;;
14138
14139 netbsdelf*-gnu)
14140   version_type=linux
14141   need_lib_prefix=no
14142   need_version=no
14143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14144   soname_spec='${libname}${release}${shared_ext}$major'
14145   shlibpath_var=LD_LIBRARY_PATH
14146   shlibpath_overrides_runpath=no
14147   hardcode_into_libs=yes
14148   dynamic_linker='NetBSD ld.elf_so'
14149   ;;
14150
14151 netbsd*)
14152   version_type=sunos
14153   need_lib_prefix=no
14154   need_version=no
14155   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14156     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14157     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14158     dynamic_linker='NetBSD (a.out) ld.so'
14159   else
14160     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14161     soname_spec='${libname}${release}${shared_ext}$major'
14162     dynamic_linker='NetBSD ld.elf_so'
14163   fi
14164   shlibpath_var=LD_LIBRARY_PATH
14165   shlibpath_overrides_runpath=yes
14166   hardcode_into_libs=yes
14167   ;;
14168
14169 newsos6)
14170   version_type=linux
14171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14172   shlibpath_var=LD_LIBRARY_PATH
14173   shlibpath_overrides_runpath=yes
14174   ;;
14175
14176 *nto* | *qnx*)
14177   version_type=qnx
14178   need_lib_prefix=no
14179   need_version=no
14180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14181   soname_spec='${libname}${release}${shared_ext}$major'
14182   shlibpath_var=LD_LIBRARY_PATH
14183   shlibpath_overrides_runpath=no
14184   hardcode_into_libs=yes
14185   dynamic_linker='ldqnx.so'
14186   ;;
14187
14188 openbsd*)
14189   version_type=sunos
14190   sys_lib_dlsearch_path_spec="/usr/lib"
14191   need_lib_prefix=no
14192   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14193   case $host_os in
14194     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14195     *)                          need_version=no  ;;
14196   esac
14197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14198   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14199   shlibpath_var=LD_LIBRARY_PATH
14200   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14201     case $host_os in
14202       openbsd2.[89] | openbsd2.[89].*)
14203         shlibpath_overrides_runpath=no
14204         ;;
14205       *)
14206         shlibpath_overrides_runpath=yes
14207         ;;
14208       esac
14209   else
14210     shlibpath_overrides_runpath=yes
14211   fi
14212   ;;
14213
14214 os2*)
14215   libname_spec='$name'
14216   shrext_cmds=".dll"
14217   need_lib_prefix=no
14218   library_names_spec='$libname${shared_ext} $libname.a'
14219   dynamic_linker='OS/2 ld.exe'
14220   shlibpath_var=LIBPATH
14221   ;;
14222
14223 osf3* | osf4* | osf5*)
14224   version_type=osf
14225   need_lib_prefix=no
14226   need_version=no
14227   soname_spec='${libname}${release}${shared_ext}$major'
14228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14229   shlibpath_var=LD_LIBRARY_PATH
14230   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14231   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14232   ;;
14233
14234 rdos*)
14235   dynamic_linker=no
14236   ;;
14237
14238 solaris*)
14239   version_type=linux
14240   need_lib_prefix=no
14241   need_version=no
14242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14243   soname_spec='${libname}${release}${shared_ext}$major'
14244   shlibpath_var=LD_LIBRARY_PATH
14245   shlibpath_overrides_runpath=yes
14246   hardcode_into_libs=yes
14247   # ldd complains unless libraries are executable
14248   postinstall_cmds='chmod +x $lib'
14249   ;;
14250
14251 sunos4*)
14252   version_type=sunos
14253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14254   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14255   shlibpath_var=LD_LIBRARY_PATH
14256   shlibpath_overrides_runpath=yes
14257   if test "$with_gnu_ld" = yes; then
14258     need_lib_prefix=no
14259   fi
14260   need_version=yes
14261   ;;
14262
14263 sysv4 | sysv4.3*)
14264   version_type=linux
14265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14266   soname_spec='${libname}${release}${shared_ext}$major'
14267   shlibpath_var=LD_LIBRARY_PATH
14268   case $host_vendor in
14269     sni)
14270       shlibpath_overrides_runpath=no
14271       need_lib_prefix=no
14272       runpath_var=LD_RUN_PATH
14273       ;;
14274     siemens)
14275       need_lib_prefix=no
14276       ;;
14277     motorola)
14278       need_lib_prefix=no
14279       need_version=no
14280       shlibpath_overrides_runpath=no
14281       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14282       ;;
14283   esac
14284   ;;
14285
14286 sysv4*MP*)
14287   if test -d /usr/nec ;then
14288     version_type=linux
14289     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14290     soname_spec='$libname${shared_ext}.$major'
14291     shlibpath_var=LD_LIBRARY_PATH
14292   fi
14293   ;;
14294
14295 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14296   version_type=freebsd-elf
14297   need_lib_prefix=no
14298   need_version=no
14299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14300   soname_spec='${libname}${release}${shared_ext}$major'
14301   shlibpath_var=LD_LIBRARY_PATH
14302   shlibpath_overrides_runpath=yes
14303   hardcode_into_libs=yes
14304   if test "$with_gnu_ld" = yes; then
14305     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14306   else
14307     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14308     case $host_os in
14309       sco3.2v5*)
14310         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14311         ;;
14312     esac
14313   fi
14314   sys_lib_dlsearch_path_spec='/usr/lib'
14315   ;;
14316
14317 tpf*)
14318   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14319   version_type=linux
14320   need_lib_prefix=no
14321   need_version=no
14322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14323   shlibpath_var=LD_LIBRARY_PATH
14324   shlibpath_overrides_runpath=no
14325   hardcode_into_libs=yes
14326   ;;
14327
14328 uts4*)
14329   version_type=linux
14330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14331   soname_spec='${libname}${release}${shared_ext}$major'
14332   shlibpath_var=LD_LIBRARY_PATH
14333   ;;
14334
14335 *)
14336   dynamic_linker=no
14337   ;;
14338 esac
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14340 $as_echo "$dynamic_linker" >&6; }
14341 test "$dynamic_linker" = no && can_build_shared=no
14342
14343 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14344 if test "$GCC" = yes; then
14345   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14346 fi
14347
14348 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14349   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14350 fi
14351 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14352   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14353 fi
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14391 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14392 hardcode_action_CXX=
14393 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14394    test -n "$runpath_var_CXX" ||
14395    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14396
14397   # We can hardcode non-existent directories.
14398   if test "$hardcode_direct_CXX" != no &&
14399      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14400      # have to relink, otherwise we might link with an installed library
14401      # when we should be linking with a yet-to-be-installed one
14402      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14403      test "$hardcode_minus_L_CXX" != no; then
14404     # Linking always hardcodes the temporary library directory.
14405     hardcode_action_CXX=relink
14406   else
14407     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14408     hardcode_action_CXX=immediate
14409   fi
14410 else
14411   # We cannot hardcode anything, or else we can only hardcode existing
14412   # directories.
14413   hardcode_action_CXX=unsupported
14414 fi
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14416 $as_echo "$hardcode_action_CXX" >&6; }
14417
14418 if test "$hardcode_action_CXX" = relink ||
14419    test "$inherit_rpath_CXX" = yes; then
14420   # Fast installation is not supported
14421   enable_fast_install=no
14422 elif test "$shlibpath_overrides_runpath" = yes ||
14423      test "$enable_shared" = no; then
14424   # Fast installation is not necessary
14425   enable_fast_install=needless
14426 fi
14427
14428
14429
14430
14431
14432
14433
14434   fi # test -n "$compiler"
14435
14436   CC=$lt_save_CC
14437   LDCXX=$LD
14438   LD=$lt_save_LD
14439   GCC=$lt_save_GCC
14440   with_gnu_ld=$lt_save_with_gnu_ld
14441   lt_cv_path_LDCXX=$lt_cv_path_LD
14442   lt_cv_path_LD=$lt_save_path_LD
14443   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14444   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14445 fi # test "$_lt_caught_CXX_error" != yes
14446
14447 ac_ext=c
14448 ac_cpp='$CPP $CPPFLAGS'
14449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465         ac_config_commands="$ac_config_commands libtool"
14466
14467
14468
14469
14470 # Only expand once:
14471
14472
14473
14474
14475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wall" >&5
14476 $as_echo_n "checking to see if compiler understands -Wall... " >&6; }
14477
14478   save_CFLAGS="$CFLAGS"
14479   CFLAGS="$CFLAGS -Wall"
14480
14481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h.  */
14483
14484 int
14485 main ()
14486 {
14487
14488   ;
14489   return 0;
14490 }
14491 _ACEOF
14492 if ac_fn_c_try_compile "$LINENO"; then :
14493   flag_ok=yes
14494 else
14495   flag_ok=no
14496 fi
14497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14498   CFLAGS="$save_CFLAGS"
14499
14500   if test "X$flag_ok" = Xyes ; then
14501     GST_WALL="yes"
14502     true
14503   else
14504     GST_WALL="no"
14505     true
14506   fi
14507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
14508 $as_echo "$flag_ok" >&6; }
14509
14510
14511 if test "x$GST_WALL" = "xyes"; then
14512    GST_ERROR="$GST_ERROR -Wall"
14513
14514 #   if test "x$GST_PLUGIN_CVS" = "xyes"; then
14515 #     AS_COMPILER_FLAG(-Werror,GST_ERROR="$GST_ERROR -Werror",GST_ERROR="$GST_ERROR")
14516 #   fi
14517 fi
14518
14519 # Extract the first word of "pkg-config", so it can be a program name with args.
14520 set dummy pkg-config; ac_word=$2
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14522 $as_echo_n "checking for $ac_word... " >&6; }
14523 if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then :
14524   $as_echo_n "(cached) " >&6
14525 else
14526   if test -n "$HAVE_PKGCONFIG"; then
14527   ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
14528 else
14529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14530 for as_dir in $PATH
14531 do
14532   IFS=$as_save_IFS
14533   test -z "$as_dir" && as_dir=.
14534     for ac_exec_ext in '' $ac_executable_extensions; do
14535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14536     ac_cv_prog_HAVE_PKGCONFIG="yes"
14537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14538     break 2
14539   fi
14540 done
14541   done
14542 IFS=$as_save_IFS
14543
14544   test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
14545 fi
14546 fi
14547 HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
14548 if test -n "$HAVE_PKGCONFIG"; then
14549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PKGCONFIG" >&5
14550 $as_echo "$HAVE_PKGCONFIG" >&6; }
14551 else
14552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14553 $as_echo "no" >&6; }
14554 fi
14555
14556
14557
14558 if test "x$HAVE_PKGCONFIG" = "xno"; then
14559   as_fn_error $? "you need to have pkgconfig installed !" "$LINENO" 5
14560 fi
14561
14562  if test "x$DISTRO" = "xvodafone-sdk"; then
14563   IS_VODA_SDK_TRUE=
14564   IS_VODA_SDK_FALSE='#'
14565 else
14566   IS_VODA_SDK_TRUE='#'
14567   IS_VODA_SDK_FALSE=
14568 fi
14569
14570  if test "x$DISTRO" = "xvodafone-sdk" && test "x$MACHINE" = "xprotector"; then
14571   ISPROTECTOR_VODA_SDK_TRUE=
14572   ISPROTECTOR_VODA_SDK_FALSE='#'
14573 else
14574   ISPROTECTOR_VODA_SDK_TRUE='#'
14575   ISPROTECTOR_VODA_SDK_FALSE=
14576 fi
14577
14578  if test "x$DISTRO" = "xvodafone-sdk" && test "x$MACHINE" = "xvolans"; then
14579   ISVOLANS_VODA_SDK_TRUE=
14580   ISVOLANS_VODA_SDK_FALSE='#'
14581 else
14582   ISVOLANS_VODA_SDK_TRUE='#'
14583   ISVOLANS_VODA_SDK_FALSE=
14584 fi
14585
14586  if test "x$ARCH" = "xarm" && test "x$MACHINE" = "xprotector"; then
14587   ISPROTECTOR_TARGET_TRUE=
14588   ISPROTECTOR_TARGET_FALSE='#'
14589 else
14590   ISPROTECTOR_TARGET_TRUE='#'
14591   ISPROTECTOR_TARGET_FALSE=
14592 fi
14593
14594  if test "x$ARCH" = "xarm" && test "x$MACHINE" = "xvolans"; then
14595   ISVOLANS_TARGET_TRUE=
14596   ISVOLANS_TARGET_FALSE='#'
14597 else
14598   ISVOLANS_TARGET_TRUE='#'
14599   ISVOLANS_TARGET_FALSE=
14600 fi
14601
14602
14603
14604
14605 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14606         if test -n "$ac_tool_prefix"; then
14607   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14608 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14610 $as_echo_n "checking for $ac_word... " >&6; }
14611 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
14612   $as_echo_n "(cached) " >&6
14613 else
14614   case $PKG_CONFIG in
14615   [\\/]* | ?:[\\/]*)
14616   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14617   ;;
14618   *)
14619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14620 for as_dir in $PATH
14621 do
14622   IFS=$as_save_IFS
14623   test -z "$as_dir" && as_dir=.
14624     for ac_exec_ext in '' $ac_executable_extensions; do
14625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14626     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14628     break 2
14629   fi
14630 done
14631   done
14632 IFS=$as_save_IFS
14633
14634   ;;
14635 esac
14636 fi
14637 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14638 if test -n "$PKG_CONFIG"; then
14639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14640 $as_echo "$PKG_CONFIG" >&6; }
14641 else
14642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14643 $as_echo "no" >&6; }
14644 fi
14645
14646
14647 fi
14648 if test -z "$ac_cv_path_PKG_CONFIG"; then
14649   ac_pt_PKG_CONFIG=$PKG_CONFIG
14650   # Extract the first word of "pkg-config", so it can be a program name with args.
14651 set dummy pkg-config; ac_word=$2
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14653 $as_echo_n "checking for $ac_word... " >&6; }
14654 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
14655   $as_echo_n "(cached) " >&6
14656 else
14657   case $ac_pt_PKG_CONFIG in
14658   [\\/]* | ?:[\\/]*)
14659   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14660   ;;
14661   *)
14662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14663 for as_dir in $PATH
14664 do
14665   IFS=$as_save_IFS
14666   test -z "$as_dir" && as_dir=.
14667     for ac_exec_ext in '' $ac_executable_extensions; do
14668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14669     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14671     break 2
14672   fi
14673 done
14674   done
14675 IFS=$as_save_IFS
14676
14677   ;;
14678 esac
14679 fi
14680 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14681 if test -n "$ac_pt_PKG_CONFIG"; then
14682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14683 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14684 else
14685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14686 $as_echo "no" >&6; }
14687 fi
14688
14689   if test "x$ac_pt_PKG_CONFIG" = x; then
14690     PKG_CONFIG=""
14691   else
14692     case $cross_compiling:$ac_tool_warned in
14693 yes:)
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14696 ac_tool_warned=yes ;;
14697 esac
14698     PKG_CONFIG=$ac_pt_PKG_CONFIG
14699   fi
14700 else
14701   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14702 fi
14703
14704 fi
14705 if test -n "$PKG_CONFIG"; then
14706         _pkg_min_version=0.9.0
14707         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14708 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14709         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14710                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14711 $as_echo "yes" >&6; }
14712         else
14713                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14714 $as_echo "no" >&6; }
14715                 PKG_CONFIG=""
14716         fi
14717
14718 fi
14719
14720 pkg_failed=no
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST" >&5
14722 $as_echo_n "checking for GST... " >&6; }
14723
14724 if test -n "$PKG_CONFIG"; then
14725     if test -n "$GST_CFLAGS"; then
14726         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
14727     else
14728         if test -n "$PKG_CONFIG" && \
14729     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\\
14730   gstreamer-\$GST_MAJORMINOR >= \$GST_REQUIRED\""; } >&5
14731   ($PKG_CONFIG --exists --print-errors "\
14732   gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED") 2>&5
14733   ac_status=$?
14734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14735   test $ac_status = 0; }; then
14736   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "\
14737   gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" 2>/dev/null`
14738 else
14739   pkg_failed=yes
14740 fi
14741     fi
14742 else
14743         pkg_failed=untried
14744 fi
14745 if test -n "$PKG_CONFIG"; then
14746     if test -n "$GST_LIBS"; then
14747         pkg_cv_GST_LIBS="$GST_LIBS"
14748     else
14749         if test -n "$PKG_CONFIG" && \
14750     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\\
14751   gstreamer-\$GST_MAJORMINOR >= \$GST_REQUIRED\""; } >&5
14752   ($PKG_CONFIG --exists --print-errors "\
14753   gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED") 2>&5
14754   ac_status=$?
14755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14756   test $ac_status = 0; }; then
14757   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "\
14758   gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" 2>/dev/null`
14759 else
14760   pkg_failed=yes
14761 fi
14762     fi
14763 else
14764         pkg_failed=untried
14765 fi
14766
14767 if test $pkg_failed = yes; then
14768         GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "\
14769   gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
14770         # Put the nasty error message in config.log where it belongs
14771         echo "$GST_PKG_ERRORS" 1>&5
14772
14773         HAVE_GST=no
14774 elif test $pkg_failed = untried; then
14775         HAVE_GST=no
14776 else
14777         GST_CFLAGS=$pkg_cv_GST_CFLAGS
14778         GST_LIBS=$pkg_cv_GST_LIBS
14779         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14780 $as_echo "yes" >&6; }
14781         HAVE_GST=yes
14782 fi
14783
14784 if test "x$HAVE_GST" = "xno"; then
14785   as_fn_error $? "you need gstreamer development packages installed !" "$LINENO" 5
14786 fi
14787
14788 GST_CFLAGS="$GST_CFLAGS $GST_ERROR"
14789
14790
14791 pkg_failed=no
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST" >&5
14793 $as_echo_n "checking for GST... " >&6; }
14794
14795 if test -n "$PKG_CONFIG"; then
14796     if test -n "$GST_CFLAGS"; then
14797         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
14798     else
14799         if test -n "$PKG_CONFIG" && \
14800     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-0.10 >= 0.10\""; } >&5
14801   ($PKG_CONFIG --exists --print-errors "gstreamer-0.10 >= 0.10") 2>&5
14802   ac_status=$?
14803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14804   test $ac_status = 0; }; then
14805   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.10 >= 0.10" 2>/dev/null`
14806 else
14807   pkg_failed=yes
14808 fi
14809     fi
14810 else
14811         pkg_failed=untried
14812 fi
14813 if test -n "$PKG_CONFIG"; then
14814     if test -n "$GST_LIBS"; then
14815         pkg_cv_GST_LIBS="$GST_LIBS"
14816     else
14817         if test -n "$PKG_CONFIG" && \
14818     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-0.10 >= 0.10\""; } >&5
14819   ($PKG_CONFIG --exists --print-errors "gstreamer-0.10 >= 0.10") 2>&5
14820   ac_status=$?
14821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14822   test $ac_status = 0; }; then
14823   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-0.10 >= 0.10" 2>/dev/null`
14824 else
14825   pkg_failed=yes
14826 fi
14827     fi
14828 else
14829         pkg_failed=untried
14830 fi
14831
14832 if test $pkg_failed = yes; then
14833         GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.10 >= 0.10"`
14834         # Put the nasty error message in config.log where it belongs
14835         echo "$GST_PKG_ERRORS" 1>&5
14836
14837         as_fn_error $? "Package requirements (gstreamer-0.10 >= 0.10) were not met.
14838 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14839 installed software in a non-standard prefix.
14840
14841 Alternatively you may set the GST_CFLAGS and GST_LIBS environment variables
14842 to avoid the need to call pkg-config.  See the pkg-config man page for
14843 more details." "$LINENO" 5
14844 elif test $pkg_failed = untried; then
14845         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14847 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14848 is in your PATH or set the PKG_CONFIG environment variable to the full
14849 path to pkg-config.
14850
14851 Alternatively you may set the GST_CFLAGS and GST_LIBS environment variables
14852 to avoid the need to call pkg-config.  See the pkg-config man page for
14853 more details.
14854
14855 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
14856 See \`config.log' for more details" "$LINENO" 5 ; }
14857 else
14858         GST_CFLAGS=$pkg_cv_GST_CFLAGS
14859         GST_LIBS=$pkg_cv_GST_LIBS
14860         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14861 $as_echo "yes" >&6; }
14862         :
14863 fi
14864
14865
14866
14867
14868
14869
14870 pkg_failed=no
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_BASE" >&5
14872 $as_echo_n "checking for GST_BASE... " >&6; }
14873
14874 if test -n "$PKG_CONFIG"; then
14875     if test -n "$GST_BASE_CFLAGS"; then
14876         pkg_cv_GST_BASE_CFLAGS="$GST_BASE_CFLAGS"
14877     else
14878         if test -n "$PKG_CONFIG" && \
14879     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-base-\$GST_MAJORMINOR >= \$GST_REQUIRED\""; } >&5
14880   ($PKG_CONFIG --exists --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED") 2>&5
14881   ac_status=$?
14882   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14883   test $ac_status = 0; }; then
14884   pkg_cv_GST_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" 2>/dev/null`
14885 else
14886   pkg_failed=yes
14887 fi
14888     fi
14889 else
14890         pkg_failed=untried
14891 fi
14892 if test -n "$PKG_CONFIG"; then
14893     if test -n "$GST_BASE_LIBS"; then
14894         pkg_cv_GST_BASE_LIBS="$GST_BASE_LIBS"
14895     else
14896         if test -n "$PKG_CONFIG" && \
14897     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-base-\$GST_MAJORMINOR >= \$GST_REQUIRED\""; } >&5
14898   ($PKG_CONFIG --exists --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED") 2>&5
14899   ac_status=$?
14900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14901   test $ac_status = 0; }; then
14902   pkg_cv_GST_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" 2>/dev/null`
14903 else
14904   pkg_failed=yes
14905 fi
14906     fi
14907 else
14908         pkg_failed=untried
14909 fi
14910
14911 if test $pkg_failed = yes; then
14912         GST_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
14913         # Put the nasty error message in config.log where it belongs
14914         echo "$GST_BASE_PKG_ERRORS" 1>&5
14915
14916         HAVE_GST_BASE=no
14917 elif test $pkg_failed = untried; then
14918         HAVE_GST_BASE=no
14919 else
14920         GST_BASE_CFLAGS=$pkg_cv_GST_BASE_CFLAGS
14921         GST_BASE_LIBS=$pkg_cv_GST_BASE_LIBS
14922         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14923 $as_echo "yes" >&6; }
14924         HAVE_GST_BASE=yes
14925 fi
14926
14927 if test "x$HAVE_GST_BASE" = "xno"; then
14928   { $as_echo "$as_me:${as_lineno-$LINENO}: no GStreamer base class libraries found (gstreamer-base-$GST_MAJORMINOR)" >&5
14929 $as_echo "$as_me: no GStreamer base class libraries found (gstreamer-base-$GST_MAJORMINOR)" >&6;}
14930 fi
14931
14932
14933
14934
14935
14936 pkg_failed=no
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSTPB_BASE" >&5
14938 $as_echo_n "checking for GSTPB_BASE... " >&6; }
14939
14940 if test -n "$PKG_CONFIG"; then
14941     if test -n "$GSTPB_BASE_CFLAGS"; then
14942         pkg_cv_GSTPB_BASE_CFLAGS="$GSTPB_BASE_CFLAGS"
14943     else
14944         if test -n "$PKG_CONFIG" && \
14945     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-plugins-base-\$GST_MAJORMINOR >= \$GSTPB_REQUIRED\""; } >&5
14946   ($PKG_CONFIG --exists --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GSTPB_REQUIRED") 2>&5
14947   ac_status=$?
14948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14949   test $ac_status = 0; }; then
14950   pkg_cv_GSTPB_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GSTPB_REQUIRED" 2>/dev/null`
14951 else
14952   pkg_failed=yes
14953 fi
14954     fi
14955 else
14956         pkg_failed=untried
14957 fi
14958 if test -n "$PKG_CONFIG"; then
14959     if test -n "$GSTPB_BASE_LIBS"; then
14960         pkg_cv_GSTPB_BASE_LIBS="$GSTPB_BASE_LIBS"
14961     else
14962         if test -n "$PKG_CONFIG" && \
14963     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-plugins-base-\$GST_MAJORMINOR >= \$GSTPB_REQUIRED\""; } >&5
14964   ($PKG_CONFIG --exists --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GSTPB_REQUIRED") 2>&5
14965   ac_status=$?
14966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14967   test $ac_status = 0; }; then
14968   pkg_cv_GSTPB_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GSTPB_REQUIRED" 2>/dev/null`
14969 else
14970   pkg_failed=yes
14971 fi
14972     fi
14973 else
14974         pkg_failed=untried
14975 fi
14976
14977 if test $pkg_failed = yes; then
14978         GSTPB_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GSTPB_REQUIRED"`
14979         # Put the nasty error message in config.log where it belongs
14980         echo "$GSTPB_BASE_PKG_ERRORS" 1>&5
14981
14982         HAVE_GSTPB_BASE=no
14983 elif test $pkg_failed = untried; then
14984         HAVE_GSTPB_BASE=no
14985 else
14986         GSTPB_BASE_CFLAGS=$pkg_cv_GSTPB_BASE_CFLAGS
14987         GSTPB_BASE_LIBS=$pkg_cv_GSTPB_BASE_LIBS
14988         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14989 $as_echo "yes" >&6; }
14990         HAVE_GSTPB_BASE=yes
14991 fi
14992
14993 if test "x$HAVE_GSTPB_BASE" = "xno"; then
14994   { $as_echo "$as_me:${as_lineno-$LINENO}: no GStreamer Plugins Base libraries found (gstreamer-plugins-base-$GST_MAJORMINOR)" >&5
14995 $as_echo "$as_me: no GStreamer Plugins Base libraries found (gstreamer-plugins-base-$GST_MAJORMINOR)" >&6;}
14996 fi
14997
14998
14999
15000
15001
15002 pkg_failed=no
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSTCTRL" >&5
15004 $as_echo_n "checking for GSTCTRL... " >&6; }
15005
15006 if test -n "$PKG_CONFIG"; then
15007     if test -n "$GSTCTRL_CFLAGS"; then
15008         pkg_cv_GSTCTRL_CFLAGS="$GSTCTRL_CFLAGS"
15009     else
15010         if test -n "$PKG_CONFIG" && \
15011     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-controller-\$GST_MAJORMINOR >= \$GSTPB_REQUIRED\""; } >&5
15012   ($PKG_CONFIG --exists --print-errors "gstreamer-controller-$GST_MAJORMINOR >= $GSTPB_REQUIRED") 2>&5
15013   ac_status=$?
15014   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15015   test $ac_status = 0; }; then
15016   pkg_cv_GSTCTRL_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-controller-$GST_MAJORMINOR >= $GSTPB_REQUIRED" 2>/dev/null`
15017 else
15018   pkg_failed=yes
15019 fi
15020     fi
15021 else
15022         pkg_failed=untried
15023 fi
15024 if test -n "$PKG_CONFIG"; then
15025     if test -n "$GSTCTRL_LIBS"; then
15026         pkg_cv_GSTCTRL_LIBS="$GSTCTRL_LIBS"
15027     else
15028         if test -n "$PKG_CONFIG" && \
15029     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-controller-\$GST_MAJORMINOR >= \$GSTPB_REQUIRED\""; } >&5
15030   ($PKG_CONFIG --exists --print-errors "gstreamer-controller-$GST_MAJORMINOR >= $GSTPB_REQUIRED") 2>&5
15031   ac_status=$?
15032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15033   test $ac_status = 0; }; then
15034   pkg_cv_GSTCTRL_LIBS=`$PKG_CONFIG --libs "gstreamer-controller-$GST_MAJORMINOR >= $GSTPB_REQUIRED" 2>/dev/null`
15035 else
15036   pkg_failed=yes
15037 fi
15038     fi
15039 else
15040         pkg_failed=untried
15041 fi
15042
15043 if test $pkg_failed = yes; then
15044         GSTCTRL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-controller-$GST_MAJORMINOR >= $GSTPB_REQUIRED"`
15045         # Put the nasty error message in config.log where it belongs
15046         echo "$GSTCTRL_PKG_ERRORS" 1>&5
15047
15048         HAVE_GSTCTRL=no
15049 elif test $pkg_failed = untried; then
15050         HAVE_GSTCTRL=no
15051 else
15052         GSTCTRL_CFLAGS=$pkg_cv_GSTCTRL_CFLAGS
15053         GSTCTRL_LIBS=$pkg_cv_GSTCTRL_LIBS
15054         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15055 $as_echo "yes" >&6; }
15056         HAVE_GSTCTRL=yes
15057 fi
15058
15059 if test "x$HAVE_GSTCTRL" = "xno"; then
15060   { $as_echo "$as_me:${as_lineno-$LINENO}: no GStreamer Controller libraries found (gstreamer-controller-$GST_MAJORMINOR)" >&5
15061 $as_echo "$as_me: no GStreamer Controller libraries found (gstreamer-controller-$GST_MAJORMINOR)" >&6;}
15062 fi
15063
15064
15065
15066
15067 if test "x${prefix}" = "x$HOME"; then
15068   plugindir="$HOME/.gstreamer-$GST_MAJORMINOR/plugins"
15069 else
15070   plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
15071 fi
15072
15073
15074 #GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex [_]*\(gst_\|Gst\|GST_\).*'
15075 GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex _*\(gst_\|Gst\|GST_\|FIR_\|arkamys_malloc\|arkamys_free\).*'
15076 #GST_PLUGIN_LDFLAGS='-module -avoid-version'
15077
15078
15079
15080
15081 pkg_failed=no
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_AUDIO" >&5
15083 $as_echo_n "checking for GST_AUDIO... " >&6; }
15084
15085 if test -n "$PKG_CONFIG"; then
15086     if test -n "$GST_AUDIO_CFLAGS"; then
15087         pkg_cv_GST_AUDIO_CFLAGS="$GST_AUDIO_CFLAGS"
15088     else
15089         if test -n "$PKG_CONFIG" && \
15090     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-audio-\$GST_MAJORMINOR >= \$GST_REQUIRED \""; } >&5
15091   ($PKG_CONFIG --exists --print-errors "gstreamer-audio-$GST_MAJORMINOR >= $GST_REQUIRED ") 2>&5
15092   ac_status=$?
15093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15094   test $ac_status = 0; }; then
15095   pkg_cv_GST_AUDIO_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-audio-$GST_MAJORMINOR >= $GST_REQUIRED " 2>/dev/null`
15096 else
15097   pkg_failed=yes
15098 fi
15099     fi
15100 else
15101         pkg_failed=untried
15102 fi
15103 if test -n "$PKG_CONFIG"; then
15104     if test -n "$GST_AUDIO_LIBS"; then
15105         pkg_cv_GST_AUDIO_LIBS="$GST_AUDIO_LIBS"
15106     else
15107         if test -n "$PKG_CONFIG" && \
15108     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-audio-\$GST_MAJORMINOR >= \$GST_REQUIRED \""; } >&5
15109   ($PKG_CONFIG --exists --print-errors "gstreamer-audio-$GST_MAJORMINOR >= $GST_REQUIRED ") 2>&5
15110   ac_status=$?
15111   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15112   test $ac_status = 0; }; then
15113   pkg_cv_GST_AUDIO_LIBS=`$PKG_CONFIG --libs "gstreamer-audio-$GST_MAJORMINOR >= $GST_REQUIRED " 2>/dev/null`
15114 else
15115   pkg_failed=yes
15116 fi
15117     fi
15118 else
15119         pkg_failed=untried
15120 fi
15121
15122 if test $pkg_failed = yes; then
15123         GST_AUDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-audio-$GST_MAJORMINOR >= $GST_REQUIRED "`
15124         # Put the nasty error message in config.log where it belongs
15125         echo "$GST_AUDIO_PKG_ERRORS" 1>&5
15126
15127         as_fn_error $? "Package requirements (gstreamer-audio-$GST_MAJORMINOR >= $GST_REQUIRED ) were not met.
15128 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15129 installed software in a non-standard prefix.
15130
15131 Alternatively you may set the GST_AUDIO_CFLAGS and GST_AUDIO_LIBS environment variables
15132 to avoid the need to call pkg-config.  See the pkg-config man page for
15133 more details." "$LINENO" 5
15134 elif test $pkg_failed = untried; then
15135         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15137 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15138 is in your PATH or set the PKG_CONFIG environment variable to the full
15139 path to pkg-config.
15140
15141 Alternatively you may set the GST_AUDIO_CFLAGS and GST_AUDIO_LIBS environment variables
15142 to avoid the need to call pkg-config.  See the pkg-config man page for
15143 more details.
15144
15145 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15146 See \`config.log' for more details" "$LINENO" 5 ; }
15147 else
15148         GST_AUDIO_CFLAGS=$pkg_cv_GST_AUDIO_CFLAGS
15149         GST_AUDIO_LIBS=$pkg_cv_GST_AUDIO_LIBS
15150         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15151 $as_echo "yes" >&6; }
15152         :
15153 fi
15154
15155
15156
15157
15158
15159
15160 pkg_failed=no
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_VIDEO" >&5
15162 $as_echo_n "checking for GST_VIDEO... " >&6; }
15163
15164 if test -n "$PKG_CONFIG"; then
15165     if test -n "$GST_VIDEO_CFLAGS"; then
15166         pkg_cv_GST_VIDEO_CFLAGS="$GST_VIDEO_CFLAGS"
15167     else
15168         if test -n "$PKG_CONFIG" && \
15169     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-video-\$GST_MAJORMINOR >= \$GST_REQUIRED\""; } >&5
15170   ($PKG_CONFIG --exists --print-errors "gstreamer-video-$GST_MAJORMINOR >= $GST_REQUIRED") 2>&5
15171   ac_status=$?
15172   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15173   test $ac_status = 0; }; then
15174   pkg_cv_GST_VIDEO_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-video-$GST_MAJORMINOR >= $GST_REQUIRED" 2>/dev/null`
15175 else
15176   pkg_failed=yes
15177 fi
15178     fi
15179 else
15180         pkg_failed=untried
15181 fi
15182 if test -n "$PKG_CONFIG"; then
15183     if test -n "$GST_VIDEO_LIBS"; then
15184         pkg_cv_GST_VIDEO_LIBS="$GST_VIDEO_LIBS"
15185     else
15186         if test -n "$PKG_CONFIG" && \
15187     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-video-\$GST_MAJORMINOR >= \$GST_REQUIRED\""; } >&5
15188   ($PKG_CONFIG --exists --print-errors "gstreamer-video-$GST_MAJORMINOR >= $GST_REQUIRED") 2>&5
15189   ac_status=$?
15190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15191   test $ac_status = 0; }; then
15192   pkg_cv_GST_VIDEO_LIBS=`$PKG_CONFIG --libs "gstreamer-video-$GST_MAJORMINOR >= $GST_REQUIRED" 2>/dev/null`
15193 else
15194   pkg_failed=yes
15195 fi
15196     fi
15197 else
15198         pkg_failed=untried
15199 fi
15200
15201 if test $pkg_failed = yes; then
15202         GST_VIDEO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-video-$GST_MAJORMINOR >= $GST_REQUIRED"`
15203         # Put the nasty error message in config.log where it belongs
15204         echo "$GST_VIDEO_PKG_ERRORS" 1>&5
15205
15206         as_fn_error $? "Package requirements (gstreamer-video-$GST_MAJORMINOR >= $GST_REQUIRED) were not met.
15207 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15208 installed software in a non-standard prefix.
15209
15210 Alternatively you may set the GST_VIDEO_CFLAGS and GST_VIDEO_LIBS environment variables
15211 to avoid the need to call pkg-config.  See the pkg-config man page for
15212 more details." "$LINENO" 5
15213 elif test $pkg_failed = untried; then
15214         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15216 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15217 is in your PATH or set the PKG_CONFIG environment variable to the full
15218 path to pkg-config.
15219
15220 Alternatively you may set the GST_VIDEO_CFLAGS and GST_VIDEO_LIBS environment variables
15221 to avoid the need to call pkg-config.  See the pkg-config man page for
15222 more details.
15223
15224 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15225 See \`config.log' for more details" "$LINENO" 5 ; }
15226 else
15227         GST_VIDEO_CFLAGS=$pkg_cv_GST_VIDEO_CFLAGS
15228         GST_VIDEO_LIBS=$pkg_cv_GST_VIDEO_LIBS
15229         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15230 $as_echo "yes" >&6; }
15231         :
15232 fi
15233
15234
15235
15236
15237
15238 pkg_failed=no
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST_INTERFACES" >&5
15240 $as_echo_n "checking for GST_INTERFACES... " >&6; }
15241
15242 if test -n "$PKG_CONFIG"; then
15243     if test -n "$GST_INTERFACES_CFLAGS"; then
15244         pkg_cv_GST_INTERFACES_CFLAGS="$GST_INTERFACES_CFLAGS"
15245     else
15246         if test -n "$PKG_CONFIG" && \
15247     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-interfaces-\$GST_MAJORMINOR >= \$GST_REQUIRED\""; } >&5
15248   ($PKG_CONFIG --exists --print-errors "gstreamer-interfaces-$GST_MAJORMINOR >= $GST_REQUIRED") 2>&5
15249   ac_status=$?
15250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15251   test $ac_status = 0; }; then
15252   pkg_cv_GST_INTERFACES_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-interfaces-$GST_MAJORMINOR >= $GST_REQUIRED" 2>/dev/null`
15253 else
15254   pkg_failed=yes
15255 fi
15256     fi
15257 else
15258         pkg_failed=untried
15259 fi
15260 if test -n "$PKG_CONFIG"; then
15261     if test -n "$GST_INTERFACES_LIBS"; then
15262         pkg_cv_GST_INTERFACES_LIBS="$GST_INTERFACES_LIBS"
15263     else
15264         if test -n "$PKG_CONFIG" && \
15265     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-interfaces-\$GST_MAJORMINOR >= \$GST_REQUIRED\""; } >&5
15266   ($PKG_CONFIG --exists --print-errors "gstreamer-interfaces-$GST_MAJORMINOR >= $GST_REQUIRED") 2>&5
15267   ac_status=$?
15268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15269   test $ac_status = 0; }; then
15270   pkg_cv_GST_INTERFACES_LIBS=`$PKG_CONFIG --libs "gstreamer-interfaces-$GST_MAJORMINOR >= $GST_REQUIRED" 2>/dev/null`
15271 else
15272   pkg_failed=yes
15273 fi
15274     fi
15275 else
15276         pkg_failed=untried
15277 fi
15278
15279 if test $pkg_failed = yes; then
15280         GST_INTERFACES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-interfaces-$GST_MAJORMINOR >= $GST_REQUIRED"`
15281         # Put the nasty error message in config.log where it belongs
15282         echo "$GST_INTERFACES_PKG_ERRORS" 1>&5
15283
15284         as_fn_error $? "Package requirements (gstreamer-interfaces-$GST_MAJORMINOR >= $GST_REQUIRED) were not met.
15285 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15286 installed software in a non-standard prefix.
15287
15288 Alternatively you may set the GST_INTERFACES_CFLAGS and GST_INTERFACES_LIBS environment variables
15289 to avoid the need to call pkg-config.  See the pkg-config man page for
15290 more details." "$LINENO" 5
15291 elif test $pkg_failed = untried; then
15292         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15294 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15295 is in your PATH or set the PKG_CONFIG environment variable to the full
15296 path to pkg-config.
15297
15298 Alternatively you may set the GST_INTERFACES_CFLAGS and GST_INTERFACES_LIBS environment variables
15299 to avoid the need to call pkg-config.  See the pkg-config man page for
15300 more details.
15301
15302 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15303 See \`config.log' for more details" "$LINENO" 5 ; }
15304 else
15305         GST_INTERFACES_CFLAGS=$pkg_cv_GST_INTERFACES_CFLAGS
15306         GST_INTERFACES_LIBS=$pkg_cv_GST_INTERFACES_LIBS
15307         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15308 $as_echo "yes" >&6; }
15309         :
15310 fi
15311
15312
15313
15314
15315 pkg_failed=no
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMTA" >&5
15317 $as_echo_n "checking for MMTA... " >&6; }
15318
15319 if test -n "$PKG_CONFIG"; then
15320     if test -n "$MMTA_CFLAGS"; then
15321         pkg_cv_MMTA_CFLAGS="$MMTA_CFLAGS"
15322     else
15323         if test -n "$PKG_CONFIG" && \
15324     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mm-ta\""; } >&5
15325   ($PKG_CONFIG --exists --print-errors "mm-ta") 2>&5
15326   ac_status=$?
15327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15328   test $ac_status = 0; }; then
15329   pkg_cv_MMTA_CFLAGS=`$PKG_CONFIG --cflags "mm-ta" 2>/dev/null`
15330 else
15331   pkg_failed=yes
15332 fi
15333     fi
15334 else
15335         pkg_failed=untried
15336 fi
15337 if test -n "$PKG_CONFIG"; then
15338     if test -n "$MMTA_LIBS"; then
15339         pkg_cv_MMTA_LIBS="$MMTA_LIBS"
15340     else
15341         if test -n "$PKG_CONFIG" && \
15342     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mm-ta\""; } >&5
15343   ($PKG_CONFIG --exists --print-errors "mm-ta") 2>&5
15344   ac_status=$?
15345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15346   test $ac_status = 0; }; then
15347   pkg_cv_MMTA_LIBS=`$PKG_CONFIG --libs "mm-ta" 2>/dev/null`
15348 else
15349   pkg_failed=yes
15350 fi
15351     fi
15352 else
15353         pkg_failed=untried
15354 fi
15355
15356 if test $pkg_failed = yes; then
15357         MMTA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mm-ta"`
15358         # Put the nasty error message in config.log where it belongs
15359         echo "$MMTA_PKG_ERRORS" 1>&5
15360
15361         as_fn_error $? "Package requirements (mm-ta) were not met.
15362 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15363 installed software in a non-standard prefix.
15364
15365 Alternatively you may set the MMTA_CFLAGS and MMTA_LIBS environment variables
15366 to avoid the need to call pkg-config.  See the pkg-config man page for
15367 more details." "$LINENO" 5
15368 elif test $pkg_failed = untried; then
15369         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15371 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15372 is in your PATH or set the PKG_CONFIG environment variable to the full
15373 path to pkg-config.
15374
15375 Alternatively you may set the MMTA_CFLAGS and MMTA_LIBS environment variables
15376 to avoid the need to call pkg-config.  See the pkg-config man page for
15377 more details.
15378
15379 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15380 See \`config.log' for more details" "$LINENO" 5 ; }
15381 else
15382         MMTA_CFLAGS=$pkg_cv_MMTA_CFLAGS
15383         MMTA_LIBS=$pkg_cv_MMTA_LIBS
15384         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15385 $as_echo "yes" >&6; }
15386         :
15387 fi
15388
15389
15390
15391
15392 pkg_failed=no
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EFL" >&5
15394 $as_echo_n "checking for EFL... " >&6; }
15395
15396 if test -n "$PKG_CONFIG"; then
15397     if test -n "$EFL_CFLAGS"; then
15398         pkg_cv_EFL_CFLAGS="$EFL_CFLAGS"
15399     else
15400         if test -n "$PKG_CONFIG" && \
15401     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
15402   evas >= \$EFL_REQUIRED
15403   ecore >= \$EFL_REQUIRED
15404   ecore-x >= \$EFL_REQUIRED
15405 \""; } >&5
15406   ($PKG_CONFIG --exists --print-errors "
15407   evas >= $EFL_REQUIRED
15408   ecore >= $EFL_REQUIRED
15409   ecore-x >= $EFL_REQUIRED
15410 ") 2>&5
15411   ac_status=$?
15412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15413   test $ac_status = 0; }; then
15414   pkg_cv_EFL_CFLAGS=`$PKG_CONFIG --cflags "
15415   evas >= $EFL_REQUIRED
15416   ecore >= $EFL_REQUIRED
15417   ecore-x >= $EFL_REQUIRED
15418 " 2>/dev/null`
15419 else
15420   pkg_failed=yes
15421 fi
15422     fi
15423 else
15424         pkg_failed=untried
15425 fi
15426 if test -n "$PKG_CONFIG"; then
15427     if test -n "$EFL_LIBS"; then
15428         pkg_cv_EFL_LIBS="$EFL_LIBS"
15429     else
15430         if test -n "$PKG_CONFIG" && \
15431     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
15432   evas >= \$EFL_REQUIRED
15433   ecore >= \$EFL_REQUIRED
15434   ecore-x >= \$EFL_REQUIRED
15435 \""; } >&5
15436   ($PKG_CONFIG --exists --print-errors "
15437   evas >= $EFL_REQUIRED
15438   ecore >= $EFL_REQUIRED
15439   ecore-x >= $EFL_REQUIRED
15440 ") 2>&5
15441   ac_status=$?
15442   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15443   test $ac_status = 0; }; then
15444   pkg_cv_EFL_LIBS=`$PKG_CONFIG --libs "
15445   evas >= $EFL_REQUIRED
15446   ecore >= $EFL_REQUIRED
15447   ecore-x >= $EFL_REQUIRED
15448 " 2>/dev/null`
15449 else
15450   pkg_failed=yes
15451 fi
15452     fi
15453 else
15454         pkg_failed=untried
15455 fi
15456
15457 if test $pkg_failed = yes; then
15458         EFL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "
15459   evas >= $EFL_REQUIRED
15460   ecore >= $EFL_REQUIRED
15461   ecore-x >= $EFL_REQUIRED
15462 "`
15463         # Put the nasty error message in config.log where it belongs
15464         echo "$EFL_PKG_ERRORS" 1>&5
15465
15466
15467   as_fn_error $? "
15468       You need to install or upgrade the EFL development
15469       packages on your system. On debian-based systems these are
15470       libevas-dev and libecore-dev.
15471       The minimum version required is $EFL_REQUIRED.
15472   " "$LINENO" 5
15473
15474 elif test $pkg_failed = untried; then
15475
15476   as_fn_error $? "
15477       You need to install or upgrade the EFL development
15478       packages on your system. On debian-based systems these are
15479       libevas-dev and libecore-dev.
15480       The minimum version required is $EFL_REQUIRED.
15481   " "$LINENO" 5
15482
15483 else
15484         EFL_CFLAGS=$pkg_cv_EFL_CFLAGS
15485         EFL_LIBS=$pkg_cv_EFL_LIBS
15486         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15487 $as_echo "yes" >&6; }
15488
15489
15490
15491
15492 fi
15493
15494
15495 # Check whether --enable-ext-encodebin was given.
15496 if test "${enable_ext_encodebin+set}" = set; then :
15497   enableval=$enable_ext_encodebin;
15498     case "${enableval}" in
15499       yes) GST_EXT_USE_EXT_ENCODEBIN=yes ;;
15500       no)  GST_EXT_USE_EXT_ENCODEBIN=no ;;
15501       *)   as_fn_error $? "bad value ${enableval} for --enable-ext-encodebin" "$LINENO" 5  ;;
15502     esac
15503
15504 else
15505   GST_EXT_USE_EXT_ENCODEBIN=yes
15506 fi
15507
15508  if test "x$GST_EXT_USE_EXT_ENCODEBIN" = "xyes"; then
15509   GST_EXT_USE_EXT_ENCODEBIN_TRUE=
15510   GST_EXT_USE_EXT_ENCODEBIN_FALSE='#'
15511 else
15512   GST_EXT_USE_EXT_ENCODEBIN_TRUE='#'
15513   GST_EXT_USE_EXT_ENCODEBIN_FALSE=
15514 fi
15515
15516
15517 # Check whether --enable-ext-avsystem was given.
15518 if test "${enable_ext_avsystem+set}" = set; then :
15519   enableval=$enable_ext_avsystem;
15520     case "${enableval}" in
15521       yes) GST_EXT_USE_EXT_AVSYSTEM=yes ;;
15522       no)  GST_EXT_USE_EXT_AVSYSTEM=no ;;
15523       *)   as_fn_error $? "bad value ${enableval} for --enable-ext-avsystem" "$LINENO" 5  ;;
15524     esac
15525
15526 else
15527   GST_EXT_USE_EXT_AVSYSTEM=yes
15528 fi
15529
15530  if test "x$GST_EXT_USE_EXT_AVSYSTEM" = "xyes"; then
15531   GST_EXT_USE_EXT_AVSYSTEM_TRUE=
15532   GST_EXT_USE_EXT_AVSYSTEM_FALSE='#'
15533 else
15534   GST_EXT_USE_EXT_AVSYSTEM_TRUE='#'
15535   GST_EXT_USE_EXT_AVSYSTEM_FALSE=
15536 fi
15537
15538
15539 # Check whether --enable-ext-evasimagesink was given.
15540 if test "${enable_ext_evasimagesink+set}" = set; then :
15541   enableval=$enable_ext_evasimagesink;
15542     case "${enableval}" in
15543       yes) GST_EXT_USE_EXT_EVASIMAGESINK=yes ;;
15544       no)  GST_EXT_USE_EXT_EVASIMAGESINK=no ;;
15545       *)   as_fn_error $? "bad value ${enableval} for --enable-ext-evasimagesink" "$LINENO" 5  ;;
15546     esac
15547
15548 else
15549   GST_EXT_USE_EXT_EVASIMAGESINK=yes
15550 fi
15551
15552  if test "x$GST_EXT_USE_EXT_EVASIMAGESINK" = "xyes"; then
15553   GST_EXT_USE_EXT_EVASIMAGESINK_TRUE=
15554   GST_EXT_USE_EXT_EVASIMAGESINK_FALSE='#'
15555 else
15556   GST_EXT_USE_EXT_EVASIMAGESINK_TRUE='#'
15557   GST_EXT_USE_EXT_EVASIMAGESINK_FALSE=
15558 fi
15559
15560
15561 # Check whether --enable-ext-gstreamer-camera was given.
15562 if test "${enable_ext_gstreamer_camera+set}" = set; then :
15563   enableval=$enable_ext_gstreamer_camera;
15564     case "${enableval}" in
15565       yes) GST_EXT_USE_EXT_AVSYSCAMERA=yes ;;
15566       no)  GST_EXT_USE_EXT_AVSYSCAMERA=no ;;
15567       *)   as_fn_error $? "bad value ${enableval} for --enable-ext-gstreamer-camera" "$LINENO" 5  ;;
15568     esac
15569
15570 else
15571   GST_EXT_USE_EXT_AVSYSCAMERA=yes
15572 fi
15573
15574  if test "x$GST_EXT_USE_EXT_AVSYSCAMERA" = "xyes"; then
15575   GST_EXT_USE_EXT_AVSYSCAMERA_TRUE=
15576   GST_EXT_USE_EXT_AVSYSCAMERA_FALSE='#'
15577 else
15578   GST_EXT_USE_EXT_AVSYSCAMERA_TRUE='#'
15579   GST_EXT_USE_EXT_AVSYSCAMERA_FALSE=
15580 fi
15581
15582
15583 if test "x$GST_EXT_USE_EXT_AVSYSCAMERA" = "xyes"; then
15584         HAVE_AVSYSCAMERA=NO
15585
15586 pkg_failed=no
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVSYSCAMERA" >&5
15588 $as_echo_n "checking for AVSYSCAMERA... " >&6; }
15589
15590 if test -n "$PKG_CONFIG"; then
15591     if test -n "$AVSYSCAMERA_CFLAGS"; then
15592         pkg_cv_AVSYSCAMERA_CFLAGS="$AVSYSCAMERA_CFLAGS"
15593     else
15594         if test -n "$PKG_CONFIG" && \
15595     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avsyscamera\""; } >&5
15596   ($PKG_CONFIG --exists --print-errors "avsyscamera") 2>&5
15597   ac_status=$?
15598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15599   test $ac_status = 0; }; then
15600   pkg_cv_AVSYSCAMERA_CFLAGS=`$PKG_CONFIG --cflags "avsyscamera" 2>/dev/null`
15601 else
15602   pkg_failed=yes
15603 fi
15604     fi
15605 else
15606         pkg_failed=untried
15607 fi
15608 if test -n "$PKG_CONFIG"; then
15609     if test -n "$AVSYSCAMERA_LIBS"; then
15610         pkg_cv_AVSYSCAMERA_LIBS="$AVSYSCAMERA_LIBS"
15611     else
15612         if test -n "$PKG_CONFIG" && \
15613     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avsyscamera\""; } >&5
15614   ($PKG_CONFIG --exists --print-errors "avsyscamera") 2>&5
15615   ac_status=$?
15616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15617   test $ac_status = 0; }; then
15618   pkg_cv_AVSYSCAMERA_LIBS=`$PKG_CONFIG --libs "avsyscamera" 2>/dev/null`
15619 else
15620   pkg_failed=yes
15621 fi
15622     fi
15623 else
15624         pkg_failed=untried
15625 fi
15626
15627 if test $pkg_failed = yes; then
15628         AVSYSCAMERA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "avsyscamera"`
15629         # Put the nasty error message in config.log where it belongs
15630         echo "$AVSYSCAMERA_PKG_ERRORS" 1>&5
15631
15632
15633             HAVE_AVSYSCAMERA="no"
15634             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15635 $as_echo "no" >&6; }
15636
15637 elif test $pkg_failed = untried; then
15638
15639             HAVE_AVSYSCAMERA="no"
15640             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15641 $as_echo "no" >&6; }
15642
15643 else
15644         AVSYSCAMERA_CFLAGS=$pkg_cv_AVSYSCAMERA_CFLAGS
15645         AVSYSCAMERA_LIBS=$pkg_cv_AVSYSCAMERA_LIBS
15646         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15647 $as_echo "yes" >&6; }
15648         HAVE_AVSYSCAMERA="yes"
15649 fi
15650         if test "x$HAVE_AVSYSCAMERA" = "xno"; then
15651           as_fn_error $? "no avsyscamera package found" "$LINENO" 5
15652         fi
15653
15654
15655 fi
15656
15657 # Check whether --enable-ext-gstreamer-audio was given.
15658 if test "${enable_ext_gstreamer_audio+set}" = set; then :
15659   enableval=$enable_ext_gstreamer_audio;
15660     case "${enableval}" in
15661       yes) GST_EXT_USE_EXT_AVSYSAUDIO=yes ;;
15662       no)  GST_EXT_USE_EXT_AVSYSAUDIO=no ;;
15663       *)   as_fn_error $? "bad value ${enableval} for --enable-ext-gstreamer-audio" "$LINENO" 5  ;;
15664     esac
15665
15666 else
15667   GST_EXT_USE_EXT_AVSYSAUDIO=yes
15668 fi
15669
15670  if test "x$GST_EXT_USE_EXT_AVSYSAUDIO" = "xyes"; then
15671   GST_EXT_USE_EXT_AVSYSAUDIO_TRUE=
15672   GST_EXT_USE_EXT_AVSYSAUDIO_FALSE='#'
15673 else
15674   GST_EXT_USE_EXT_AVSYSAUDIO_TRUE='#'
15675   GST_EXT_USE_EXT_AVSYSAUDIO_FALSE=
15676 fi
15677
15678
15679 if test "x$GST_EXT_USE_EXT_AVSYSAUDIO" = "xyes"; then
15680         HAVE_AVSYSAUDIO=NO
15681
15682 pkg_failed=no
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVSYSAUDIO" >&5
15684 $as_echo_n "checking for AVSYSAUDIO... " >&6; }
15685
15686 if test -n "$PKG_CONFIG"; then
15687     if test -n "$AVSYSAUDIO_CFLAGS"; then
15688         pkg_cv_AVSYSAUDIO_CFLAGS="$AVSYSAUDIO_CFLAGS"
15689     else
15690         if test -n "$PKG_CONFIG" && \
15691     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avsysaudio\""; } >&5
15692   ($PKG_CONFIG --exists --print-errors "avsysaudio") 2>&5
15693   ac_status=$?
15694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15695   test $ac_status = 0; }; then
15696   pkg_cv_AVSYSAUDIO_CFLAGS=`$PKG_CONFIG --cflags "avsysaudio" 2>/dev/null`
15697 else
15698   pkg_failed=yes
15699 fi
15700     fi
15701 else
15702         pkg_failed=untried
15703 fi
15704 if test -n "$PKG_CONFIG"; then
15705     if test -n "$AVSYSAUDIO_LIBS"; then
15706         pkg_cv_AVSYSAUDIO_LIBS="$AVSYSAUDIO_LIBS"
15707     else
15708         if test -n "$PKG_CONFIG" && \
15709     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avsysaudio\""; } >&5
15710   ($PKG_CONFIG --exists --print-errors "avsysaudio") 2>&5
15711   ac_status=$?
15712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15713   test $ac_status = 0; }; then
15714   pkg_cv_AVSYSAUDIO_LIBS=`$PKG_CONFIG --libs "avsysaudio" 2>/dev/null`
15715 else
15716   pkg_failed=yes
15717 fi
15718     fi
15719 else
15720         pkg_failed=untried
15721 fi
15722
15723 if test $pkg_failed = yes; then
15724         AVSYSAUDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "avsysaudio"`
15725         # Put the nasty error message in config.log where it belongs
15726         echo "$AVSYSAUDIO_PKG_ERRORS" 1>&5
15727
15728
15729             HAVE_AVSYSAUDIO="no"
15730             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15731 $as_echo "no" >&6; }
15732
15733 elif test $pkg_failed = untried; then
15734
15735             HAVE_AVSYSAUDIO="no"
15736             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15737 $as_echo "no" >&6; }
15738
15739 else
15740         AVSYSAUDIO_CFLAGS=$pkg_cv_AVSYSAUDIO_CFLAGS
15741         AVSYSAUDIO_LIBS=$pkg_cv_AVSYSAUDIO_LIBS
15742         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15743 $as_echo "yes" >&6; }
15744         HAVE_AVSYSAUDIO="yes"
15745 fi
15746         if test "x$HAVE_AVSYSAUDIO" = "xno"; then
15747           as_fn_error $? "no avsysaudio package found" "$LINENO" 5
15748         fi
15749
15750
15751 fi
15752
15753
15754 pkg_failed=no
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAMSRCJPEGENC" >&5
15756 $as_echo_n "checking for CAMSRCJPEGENC... " >&6; }
15757
15758 if test -n "$PKG_CONFIG"; then
15759     if test -n "$CAMSRCJPEGENC_CFLAGS"; then
15760         pkg_cv_CAMSRCJPEGENC_CFLAGS="$CAMSRCJPEGENC_CFLAGS"
15761     else
15762         if test -n "$PKG_CONFIG" && \
15763     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"camsrcjpegenc\""; } >&5
15764   ($PKG_CONFIG --exists --print-errors "camsrcjpegenc") 2>&5
15765   ac_status=$?
15766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15767   test $ac_status = 0; }; then
15768   pkg_cv_CAMSRCJPEGENC_CFLAGS=`$PKG_CONFIG --cflags "camsrcjpegenc" 2>/dev/null`
15769 else
15770   pkg_failed=yes
15771 fi
15772     fi
15773 else
15774         pkg_failed=untried
15775 fi
15776 if test -n "$PKG_CONFIG"; then
15777     if test -n "$CAMSRCJPEGENC_LIBS"; then
15778         pkg_cv_CAMSRCJPEGENC_LIBS="$CAMSRCJPEGENC_LIBS"
15779     else
15780         if test -n "$PKG_CONFIG" && \
15781     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"camsrcjpegenc\""; } >&5
15782   ($PKG_CONFIG --exists --print-errors "camsrcjpegenc") 2>&5
15783   ac_status=$?
15784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15785   test $ac_status = 0; }; then
15786   pkg_cv_CAMSRCJPEGENC_LIBS=`$PKG_CONFIG --libs "camsrcjpegenc" 2>/dev/null`
15787 else
15788   pkg_failed=yes
15789 fi
15790     fi
15791 else
15792         pkg_failed=untried
15793 fi
15794
15795 if test $pkg_failed = yes; then
15796         CAMSRCJPEGENC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "camsrcjpegenc"`
15797         # Put the nasty error message in config.log where it belongs
15798         echo "$CAMSRCJPEGENC_PKG_ERRORS" 1>&5
15799
15800         as_fn_error $? "Package requirements (camsrcjpegenc) were not met.
15801 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15802 installed software in a non-standard prefix.
15803
15804 Alternatively you may set the CAMSRCJPEGENC_CFLAGS and CAMSRCJPEGENC_LIBS environment variables
15805 to avoid the need to call pkg-config.  See the pkg-config man page for
15806 more details." "$LINENO" 5
15807 elif test $pkg_failed = untried; then
15808         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15810 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15811 is in your PATH or set the PKG_CONFIG environment variable to the full
15812 path to pkg-config.
15813
15814 Alternatively you may set the CAMSRCJPEGENC_CFLAGS and CAMSRCJPEGENC_LIBS environment variables
15815 to avoid the need to call pkg-config.  See the pkg-config man page for
15816 more details.
15817
15818 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15819 See \`config.log' for more details" "$LINENO" 5 ; }
15820 else
15821         CAMSRCJPEGENC_CFLAGS=$pkg_cv_CAMSRCJPEGENC_CFLAGS
15822         CAMSRCJPEGENC_LIBS=$pkg_cv_CAMSRCJPEGENC_LIBS
15823         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15824 $as_echo "yes" >&6; }
15825         :
15826 fi
15827
15828
15829
15830 # Check whether --enable-ext-drmsrc was given.
15831 if test "${enable_ext_drmsrc+set}" = set; then :
15832   enableval=$enable_ext_drmsrc;
15833     case "${enableval}" in
15834       yes) GST_EXT_USE_EXT_DRMSRC=yes ;;
15835       no)  GST_EXT_USE_EXT_DRMSRC=no ;;
15836       *)   as_fn_error $? "bad value ${enableval} for --enable-ext-drmsrc" "$LINENO" 5  ;;
15837     esac
15838
15839 else
15840   GST_EXT_USE_EXT_DRMSRC=yes
15841 fi
15842
15843  if test "x$GST_EXT_USE_EXT_DRMSRC" = "xyes"; then
15844   GST_EXT_USE_EXT_DRMSRC_TRUE=
15845   GST_EXT_USE_EXT_DRMSRC_FALSE='#'
15846 else
15847   GST_EXT_USE_EXT_DRMSRC_TRUE='#'
15848   GST_EXT_USE_EXT_DRMSRC_FALSE=
15849 fi
15850
15851
15852 if test "x$GST_EXT_USE_EXT_DRMSRC" = "xyes"; then
15853
15854 pkg_failed=no
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM_SERVICE" >&5
15856 $as_echo_n "checking for DRM_SERVICE... " >&6; }
15857
15858 if test -n "$PKG_CONFIG"; then
15859     if test -n "$DRM_SERVICE_CFLAGS"; then
15860         pkg_cv_DRM_SERVICE_CFLAGS="$DRM_SERVICE_CFLAGS"
15861     else
15862         if test -n "$PKG_CONFIG" && \
15863     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"drm-service\""; } >&5
15864   ($PKG_CONFIG --exists --print-errors "drm-service") 2>&5
15865   ac_status=$?
15866   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15867   test $ac_status = 0; }; then
15868   pkg_cv_DRM_SERVICE_CFLAGS=`$PKG_CONFIG --cflags "drm-service" 2>/dev/null`
15869 else
15870   pkg_failed=yes
15871 fi
15872     fi
15873 else
15874         pkg_failed=untried
15875 fi
15876 if test -n "$PKG_CONFIG"; then
15877     if test -n "$DRM_SERVICE_LIBS"; then
15878         pkg_cv_DRM_SERVICE_LIBS="$DRM_SERVICE_LIBS"
15879     else
15880         if test -n "$PKG_CONFIG" && \
15881     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"drm-service\""; } >&5
15882   ($PKG_CONFIG --exists --print-errors "drm-service") 2>&5
15883   ac_status=$?
15884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15885   test $ac_status = 0; }; then
15886   pkg_cv_DRM_SERVICE_LIBS=`$PKG_CONFIG --libs "drm-service" 2>/dev/null`
15887 else
15888   pkg_failed=yes
15889 fi
15890     fi
15891 else
15892         pkg_failed=untried
15893 fi
15894
15895 if test $pkg_failed = yes; then
15896         DRM_SERVICE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "drm-service"`
15897         # Put the nasty error message in config.log where it belongs
15898         echo "$DRM_SERVICE_PKG_ERRORS" 1>&5
15899
15900         as_fn_error $? "Package requirements (drm-service) were not met.
15901 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15902 installed software in a non-standard prefix.
15903
15904 Alternatively you may set the DRM_SERVICE_CFLAGS and DRM_SERVICE_LIBS environment variables
15905 to avoid the need to call pkg-config.  See the pkg-config man page for
15906 more details." "$LINENO" 5
15907 elif test $pkg_failed = untried; then
15908         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15910 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15911 is in your PATH or set the PKG_CONFIG environment variable to the full
15912 path to pkg-config.
15913
15914 Alternatively you may set the DRM_SERVICE_CFLAGS and DRM_SERVICE_LIBS environment variables
15915 to avoid the need to call pkg-config.  See the pkg-config man page for
15916 more details.
15917
15918 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15919 See \`config.log' for more details" "$LINENO" 5 ; }
15920 else
15921         DRM_SERVICE_CFLAGS=$pkg_cv_DRM_SERVICE_CFLAGS
15922         DRM_SERVICE_LIBS=$pkg_cv_DRM_SERVICE_LIBS
15923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15924 $as_echo "yes" >&6; }
15925         :
15926 fi
15927
15928
15929 fi
15930
15931 # Check whether --enable-ext-toggle was given.
15932 if test "${enable_ext_toggle+set}" = set; then :
15933   enableval=$enable_ext_toggle;
15934     case "${enableval}" in
15935       yes) GST_EXT_USE_EXT_TOGGLE=yes ;;
15936       no)  GST_EXT_USE_EXT_TOGGLE=no ;;
15937       *)   as_fn_error $? "bad value ${enableval} for --enable-ext-toggle" "$LINENO" 5  ;;
15938     esac
15939
15940 else
15941   GST_EXT_USE_EXT_TOGGLE=yes
15942 fi
15943
15944  if test "x$GST_EXT_USE_EXT_TOGGLE" = "xyes"; then
15945   GST_EXT_USE_EXT_TOGGLE_TRUE=
15946   GST_EXT_USE_EXT_TOGGLE_FALSE='#'
15947 else
15948   GST_EXT_USE_EXT_TOGGLE_TRUE='#'
15949   GST_EXT_USE_EXT_TOGGLE_FALSE=
15950 fi
15951
15952
15953 # Check whether --enable-i386 was given.
15954 if test "${enable_i386+set}" = set; then :
15955   enableval=$enable_i386;
15956          case "${enableval}" in
15957           yes) IS_I386=yes ;;
15958           no)  IS_I386=no ;;
15959           *)   as_fn_error $? "bad value ${enableval} for --enable-i386" "$LINENO" 5  ;;
15960          esac
15961
15962 else
15963   IS_I386=no
15964 fi
15965
15966  if test "x$IS_I386" = "xyes"; then
15967   IS_I386_TRUE=
15968   IS_I386_FALSE='#'
15969 else
15970   IS_I386_TRUE='#'
15971   IS_I386_FALSE=
15972 fi
15973
15974
15975 ac_config_files="$ac_config_files Makefile common/Makefile common/m4/Makefile avsystem/Makefile avsystem/src/Makefile encodebin/Makefile encodebin/src/Makefile evasimagesink/Makefile evasimagesink/src/Makefile toggle/Makefile toggle/src/Makefile drmsrc/Makefile drmsrc/src/Makefile"
15976
15977 cat >confcache <<\_ACEOF
15978 # This file is a shell script that caches the results of configure
15979 # tests run on this system so they can be shared between configure
15980 # scripts and configure runs, see configure's option --config-cache.
15981 # It is not useful on other systems.  If it contains results you don't
15982 # want to keep, you may remove or edit it.
15983 #
15984 # config.status only pays attention to the cache file if you give it
15985 # the --recheck option to rerun configure.
15986 #
15987 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15988 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15989 # following values.
15990
15991 _ACEOF
15992
15993 # The following way of writing the cache mishandles newlines in values,
15994 # but we know of no workaround that is simple, portable, and efficient.
15995 # So, we kill variables containing newlines.
15996 # Ultrix sh set writes to stderr and can't be redirected directly,
15997 # and sets the high bit in the cache file unless we assign to the vars.
15998 (
15999   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16000     eval ac_val=\$$ac_var
16001     case $ac_val in #(
16002     *${as_nl}*)
16003       case $ac_var in #(
16004       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16005 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16006       esac
16007       case $ac_var in #(
16008       _ | IFS | as_nl) ;; #(
16009       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16010       *) { eval $ac_var=; unset $ac_var;} ;;
16011       esac ;;
16012     esac
16013   done
16014
16015   (set) 2>&1 |
16016     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16017     *${as_nl}ac_space=\ *)
16018       # `set' does not quote correctly, so add quotes: double-quote
16019       # substitution turns \\\\ into \\, and sed turns \\ into \.
16020       sed -n \
16021         "s/'/'\\\\''/g;
16022           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16023       ;; #(
16024     *)
16025       # `set' quotes correctly as required by POSIX, so do not add quotes.
16026       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16027       ;;
16028     esac |
16029     sort
16030 ) |
16031   sed '
16032      /^ac_cv_env_/b end
16033      t clear
16034      :clear
16035      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16036      t end
16037      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16038      :end' >>confcache
16039 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16040   if test -w "$cache_file"; then
16041     test "x$cache_file" != "x/dev/null" &&
16042       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16043 $as_echo "$as_me: updating cache $cache_file" >&6;}
16044     cat confcache >$cache_file
16045   else
16046     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16047 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16048   fi
16049 fi
16050 rm -f confcache
16051
16052 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16053 # Let make expand exec_prefix.
16054 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16055
16056 DEFS=-DHAVE_CONFIG_H
16057
16058 ac_libobjs=
16059 ac_ltlibobjs=
16060 U=
16061 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16062   # 1. Remove the extension, and $U if already installed.
16063   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16064   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16065   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16066   #    will be set to the directory where LIBOBJS objects are built.
16067   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16068   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16069 done
16070 LIBOBJS=$ac_libobjs
16071
16072 LTLIBOBJS=$ac_ltlibobjs
16073
16074
16075 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16076   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16078 fi
16079  if test -n "$EXEEXT"; then
16080   am__EXEEXT_TRUE=
16081   am__EXEEXT_FALSE='#'
16082 else
16083   am__EXEEXT_TRUE='#'
16084   am__EXEEXT_FALSE=
16085 fi
16086
16087 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16088   as_fn_error $? "conditional \"AMDEP\" was never defined.
16089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16090 fi
16091 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16092   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16094 fi
16095 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16096   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16098 fi
16099 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16100   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16102 fi
16103 if test -z "${IS_VODA_SDK_TRUE}" && test -z "${IS_VODA_SDK_FALSE}"; then
16104   as_fn_error $? "conditional \"IS_VODA_SDK\" was never defined.
16105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16106 fi
16107 if test -z "${ISPROTECTOR_VODA_SDK_TRUE}" && test -z "${ISPROTECTOR_VODA_SDK_FALSE}"; then
16108   as_fn_error $? "conditional \"ISPROTECTOR_VODA_SDK\" was never defined.
16109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16110 fi
16111 if test -z "${ISVOLANS_VODA_SDK_TRUE}" && test -z "${ISVOLANS_VODA_SDK_FALSE}"; then
16112   as_fn_error $? "conditional \"ISVOLANS_VODA_SDK\" was never defined.
16113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16114 fi
16115 if test -z "${ISPROTECTOR_TARGET_TRUE}" && test -z "${ISPROTECTOR_TARGET_FALSE}"; then
16116   as_fn_error $? "conditional \"ISPROTECTOR_TARGET\" was never defined.
16117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16118 fi
16119 if test -z "${ISVOLANS_TARGET_TRUE}" && test -z "${ISVOLANS_TARGET_FALSE}"; then
16120   as_fn_error $? "conditional \"ISVOLANS_TARGET\" was never defined.
16121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16122 fi
16123 if test -z "${GST_EXT_USE_EXT_ENCODEBIN_TRUE}" && test -z "${GST_EXT_USE_EXT_ENCODEBIN_FALSE}"; then
16124   as_fn_error $? "conditional \"GST_EXT_USE_EXT_ENCODEBIN\" was never defined.
16125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16126 fi
16127 if test -z "${GST_EXT_USE_EXT_AVSYSTEM_TRUE}" && test -z "${GST_EXT_USE_EXT_AVSYSTEM_FALSE}"; then
16128   as_fn_error $? "conditional \"GST_EXT_USE_EXT_AVSYSTEM\" was never defined.
16129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16130 fi
16131 if test -z "${GST_EXT_USE_EXT_EVASIMAGESINK_TRUE}" && test -z "${GST_EXT_USE_EXT_EVASIMAGESINK_FALSE}"; then
16132   as_fn_error $? "conditional \"GST_EXT_USE_EXT_EVASIMAGESINK\" was never defined.
16133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16134 fi
16135 if test -z "${GST_EXT_USE_EXT_AVSYSCAMERA_TRUE}" && test -z "${GST_EXT_USE_EXT_AVSYSCAMERA_FALSE}"; then
16136   as_fn_error $? "conditional \"GST_EXT_USE_EXT_AVSYSCAMERA\" was never defined.
16137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16138 fi
16139 if test -z "${GST_EXT_USE_EXT_AVSYSAUDIO_TRUE}" && test -z "${GST_EXT_USE_EXT_AVSYSAUDIO_FALSE}"; then
16140   as_fn_error $? "conditional \"GST_EXT_USE_EXT_AVSYSAUDIO\" was never defined.
16141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16142 fi
16143 if test -z "${GST_EXT_USE_EXT_DRMSRC_TRUE}" && test -z "${GST_EXT_USE_EXT_DRMSRC_FALSE}"; then
16144   as_fn_error $? "conditional \"GST_EXT_USE_EXT_DRMSRC\" was never defined.
16145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16146 fi
16147 if test -z "${GST_EXT_USE_EXT_TOGGLE_TRUE}" && test -z "${GST_EXT_USE_EXT_TOGGLE_FALSE}"; then
16148   as_fn_error $? "conditional \"GST_EXT_USE_EXT_TOGGLE\" was never defined.
16149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16150 fi
16151 if test -z "${IS_I386_TRUE}" && test -z "${IS_I386_FALSE}"; then
16152   as_fn_error $? "conditional \"IS_I386\" was never defined.
16153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16154 fi
16155
16156 : ${CONFIG_STATUS=./config.status}
16157 ac_write_fail=0
16158 ac_clean_files_save=$ac_clean_files
16159 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16161 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16162 as_write_fail=0
16163 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16164 #! $SHELL
16165 # Generated by $as_me.
16166 # Run this file to recreate the current configuration.
16167 # Compiler output produced by configure, useful for debugging
16168 # configure, is in config.log if it exists.
16169
16170 debug=false
16171 ac_cs_recheck=false
16172 ac_cs_silent=false
16173
16174 SHELL=\${CONFIG_SHELL-$SHELL}
16175 export SHELL
16176 _ASEOF
16177 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16178 ## -------------------- ##
16179 ## M4sh Initialization. ##
16180 ## -------------------- ##
16181
16182 # Be more Bourne compatible
16183 DUALCASE=1; export DUALCASE # for MKS sh
16184 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16185   emulate sh
16186   NULLCMD=:
16187   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16188   # is contrary to our usage.  Disable this feature.
16189   alias -g '${1+"$@"}'='"$@"'
16190   setopt NO_GLOB_SUBST
16191 else
16192   case `(set -o) 2>/dev/null` in #(
16193   *posix*) :
16194     set -o posix ;; #(
16195   *) :
16196      ;;
16197 esac
16198 fi
16199
16200
16201 as_nl='
16202 '
16203 export as_nl
16204 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16205 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16206 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16207 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16208 # Prefer a ksh shell builtin over an external printf program on Solaris,
16209 # but without wasting forks for bash or zsh.
16210 if test -z "$BASH_VERSION$ZSH_VERSION" \
16211     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16212   as_echo='print -r --'
16213   as_echo_n='print -rn --'
16214 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16215   as_echo='printf %s\n'
16216   as_echo_n='printf %s'
16217 else
16218   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16219     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16220     as_echo_n='/usr/ucb/echo -n'
16221   else
16222     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16223     as_echo_n_body='eval
16224       arg=$1;
16225       case $arg in #(
16226       *"$as_nl"*)
16227         expr "X$arg" : "X\\(.*\\)$as_nl";
16228         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16229       esac;
16230       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16231     '
16232     export as_echo_n_body
16233     as_echo_n='sh -c $as_echo_n_body as_echo'
16234   fi
16235   export as_echo_body
16236   as_echo='sh -c $as_echo_body as_echo'
16237 fi
16238
16239 # The user is always right.
16240 if test "${PATH_SEPARATOR+set}" != set; then
16241   PATH_SEPARATOR=:
16242   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16243     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16244       PATH_SEPARATOR=';'
16245   }
16246 fi
16247
16248
16249 # IFS
16250 # We need space, tab and new line, in precisely that order.  Quoting is
16251 # there to prevent editors from complaining about space-tab.
16252 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16253 # splitting by setting IFS to empty value.)
16254 IFS=" ""        $as_nl"
16255
16256 # Find who we are.  Look in the path if we contain no directory separator.
16257 case $0 in #((
16258   *[\\/]* ) as_myself=$0 ;;
16259   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16260 for as_dir in $PATH
16261 do
16262   IFS=$as_save_IFS
16263   test -z "$as_dir" && as_dir=.
16264     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16265   done
16266 IFS=$as_save_IFS
16267
16268      ;;
16269 esac
16270 # We did not find ourselves, most probably we were run as `sh COMMAND'
16271 # in which case we are not to be found in the path.
16272 if test "x$as_myself" = x; then
16273   as_myself=$0
16274 fi
16275 if test ! -f "$as_myself"; then
16276   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16277   exit 1
16278 fi
16279
16280 # Unset variables that we do not need and which cause bugs (e.g. in
16281 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16282 # suppresses any "Segmentation fault" message there.  '((' could
16283 # trigger a bug in pdksh 5.2.14.
16284 for as_var in BASH_ENV ENV MAIL MAILPATH
16285 do eval test x\${$as_var+set} = xset \
16286   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16287 done
16288 PS1='$ '
16289 PS2='> '
16290 PS4='+ '
16291
16292 # NLS nuisances.
16293 LC_ALL=C
16294 export LC_ALL
16295 LANGUAGE=C
16296 export LANGUAGE
16297
16298 # CDPATH.
16299 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16300
16301
16302 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16303 # ----------------------------------------
16304 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16305 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16306 # script with STATUS, using 1 if that was 0.
16307 as_fn_error ()
16308 {
16309   as_status=$1; test $as_status -eq 0 && as_status=1
16310   if test "$4"; then
16311     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16312     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16313   fi
16314   $as_echo "$as_me: error: $2" >&2
16315   as_fn_exit $as_status
16316 } # as_fn_error
16317
16318
16319 # as_fn_set_status STATUS
16320 # -----------------------
16321 # Set $? to STATUS, without forking.
16322 as_fn_set_status ()
16323 {
16324   return $1
16325 } # as_fn_set_status
16326
16327 # as_fn_exit STATUS
16328 # -----------------
16329 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16330 as_fn_exit ()
16331 {
16332   set +e
16333   as_fn_set_status $1
16334   exit $1
16335 } # as_fn_exit
16336
16337 # as_fn_unset VAR
16338 # ---------------
16339 # Portably unset VAR.
16340 as_fn_unset ()
16341 {
16342   { eval $1=; unset $1;}
16343 }
16344 as_unset=as_fn_unset
16345 # as_fn_append VAR VALUE
16346 # ----------------------
16347 # Append the text in VALUE to the end of the definition contained in VAR. Take
16348 # advantage of any shell optimizations that allow amortized linear growth over
16349 # repeated appends, instead of the typical quadratic growth present in naive
16350 # implementations.
16351 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16352   eval 'as_fn_append ()
16353   {
16354     eval $1+=\$2
16355   }'
16356 else
16357   as_fn_append ()
16358   {
16359     eval $1=\$$1\$2
16360   }
16361 fi # as_fn_append
16362
16363 # as_fn_arith ARG...
16364 # ------------------
16365 # Perform arithmetic evaluation on the ARGs, and store the result in the
16366 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16367 # must be portable across $(()) and expr.
16368 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16369   eval 'as_fn_arith ()
16370   {
16371     as_val=$(( $* ))
16372   }'
16373 else
16374   as_fn_arith ()
16375   {
16376     as_val=`expr "$@" || test $? -eq 1`
16377   }
16378 fi # as_fn_arith
16379
16380
16381 if expr a : '\(a\)' >/dev/null 2>&1 &&
16382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16383   as_expr=expr
16384 else
16385   as_expr=false
16386 fi
16387
16388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16389   as_basename=basename
16390 else
16391   as_basename=false
16392 fi
16393
16394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16395   as_dirname=dirname
16396 else
16397   as_dirname=false
16398 fi
16399
16400 as_me=`$as_basename -- "$0" ||
16401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16402          X"$0" : 'X\(//\)$' \| \
16403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16404 $as_echo X/"$0" |
16405     sed '/^.*\/\([^/][^/]*\)\/*$/{
16406             s//\1/
16407             q
16408           }
16409           /^X\/\(\/\/\)$/{
16410             s//\1/
16411             q
16412           }
16413           /^X\/\(\/\).*/{
16414             s//\1/
16415             q
16416           }
16417           s/.*/./; q'`
16418
16419 # Avoid depending upon Character Ranges.
16420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16423 as_cr_digits='0123456789'
16424 as_cr_alnum=$as_cr_Letters$as_cr_digits
16425
16426 ECHO_C= ECHO_N= ECHO_T=
16427 case `echo -n x` in #(((((
16428 -n*)
16429   case `echo 'xy\c'` in
16430   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16431   xy)  ECHO_C='\c';;
16432   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16433        ECHO_T=' ';;
16434   esac;;
16435 *)
16436   ECHO_N='-n';;
16437 esac
16438
16439 rm -f conf$$ conf$$.exe conf$$.file
16440 if test -d conf$$.dir; then
16441   rm -f conf$$.dir/conf$$.file
16442 else
16443   rm -f conf$$.dir
16444   mkdir conf$$.dir 2>/dev/null
16445 fi
16446 if (echo >conf$$.file) 2>/dev/null; then
16447   if ln -s conf$$.file conf$$ 2>/dev/null; then
16448     as_ln_s='ln -s'
16449     # ... but there are two gotchas:
16450     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16451     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16452     # In both cases, we have to default to `cp -p'.
16453     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16454       as_ln_s='cp -p'
16455   elif ln conf$$.file conf$$ 2>/dev/null; then
16456     as_ln_s=ln
16457   else
16458     as_ln_s='cp -p'
16459   fi
16460 else
16461   as_ln_s='cp -p'
16462 fi
16463 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16464 rmdir conf$$.dir 2>/dev/null
16465
16466
16467 # as_fn_mkdir_p
16468 # -------------
16469 # Create "$as_dir" as a directory, including parents if necessary.
16470 as_fn_mkdir_p ()
16471 {
16472
16473   case $as_dir in #(
16474   -*) as_dir=./$as_dir;;
16475   esac
16476   test -d "$as_dir" || eval $as_mkdir_p || {
16477     as_dirs=
16478     while :; do
16479       case $as_dir in #(
16480       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16481       *) as_qdir=$as_dir;;
16482       esac
16483       as_dirs="'$as_qdir' $as_dirs"
16484       as_dir=`$as_dirname -- "$as_dir" ||
16485 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16486          X"$as_dir" : 'X\(//\)[^/]' \| \
16487          X"$as_dir" : 'X\(//\)$' \| \
16488          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16489 $as_echo X"$as_dir" |
16490     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16491             s//\1/
16492             q
16493           }
16494           /^X\(\/\/\)[^/].*/{
16495             s//\1/
16496             q
16497           }
16498           /^X\(\/\/\)$/{
16499             s//\1/
16500             q
16501           }
16502           /^X\(\/\).*/{
16503             s//\1/
16504             q
16505           }
16506           s/.*/./; q'`
16507       test -d "$as_dir" && break
16508     done
16509     test -z "$as_dirs" || eval "mkdir $as_dirs"
16510   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16511
16512
16513 } # as_fn_mkdir_p
16514 if mkdir -p . 2>/dev/null; then
16515   as_mkdir_p='mkdir -p "$as_dir"'
16516 else
16517   test -d ./-p && rmdir ./-p
16518   as_mkdir_p=false
16519 fi
16520
16521 if test -x / >/dev/null 2>&1; then
16522   as_test_x='test -x'
16523 else
16524   if ls -dL / >/dev/null 2>&1; then
16525     as_ls_L_option=L
16526   else
16527     as_ls_L_option=
16528   fi
16529   as_test_x='
16530     eval sh -c '\''
16531       if test -d "$1"; then
16532         test -d "$1/.";
16533       else
16534         case $1 in #(
16535         -*)set "./$1";;
16536         esac;
16537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16538         ???[sx]*):;;*)false;;esac;fi
16539     '\'' sh
16540   '
16541 fi
16542 as_executable_p=$as_test_x
16543
16544 # Sed expression to map a string onto a valid CPP name.
16545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16546
16547 # Sed expression to map a string onto a valid variable name.
16548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16549
16550
16551 exec 6>&1
16552 ## ----------------------------------- ##
16553 ## Main body of $CONFIG_STATUS script. ##
16554 ## ----------------------------------- ##
16555 _ASEOF
16556 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16557
16558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16559 # Save the log message, to keep $0 and so on meaningful, and to
16560 # report actual input values of CONFIG_FILES etc. instead of their
16561 # values after options handling.
16562 ac_log="
16563 This file was extended by extension $as_me 1.0, which was
16564 generated by GNU Autoconf 2.67.  Invocation command line was
16565
16566   CONFIG_FILES    = $CONFIG_FILES
16567   CONFIG_HEADERS  = $CONFIG_HEADERS
16568   CONFIG_LINKS    = $CONFIG_LINKS
16569   CONFIG_COMMANDS = $CONFIG_COMMANDS
16570   $ $0 $@
16571
16572 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16573 "
16574
16575 _ACEOF
16576
16577 case $ac_config_files in *"
16578 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16579 esac
16580
16581 case $ac_config_headers in *"
16582 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16583 esac
16584
16585
16586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16587 # Files that config.status was made for.
16588 config_files="$ac_config_files"
16589 config_headers="$ac_config_headers"
16590 config_commands="$ac_config_commands"
16591
16592 _ACEOF
16593
16594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16595 ac_cs_usage="\
16596 \`$as_me' instantiates files and other configuration actions
16597 from templates according to the current configuration.  Unless the files
16598 and actions are specified as TAGs, all are instantiated by default.
16599
16600 Usage: $0 [OPTION]... [TAG]...
16601
16602   -h, --help       print this help, then exit
16603   -V, --version    print version number and configuration settings, then exit
16604       --config     print configuration, then exit
16605   -q, --quiet, --silent
16606                    do not print progress messages
16607   -d, --debug      don't remove temporary files
16608       --recheck    update $as_me by reconfiguring in the same conditions
16609       --file=FILE[:TEMPLATE]
16610                    instantiate the configuration file FILE
16611       --header=FILE[:TEMPLATE]
16612                    instantiate the configuration header FILE
16613
16614 Configuration files:
16615 $config_files
16616
16617 Configuration headers:
16618 $config_headers
16619
16620 Configuration commands:
16621 $config_commands
16622
16623 Report bugs to the package provider."
16624
16625 _ACEOF
16626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16627 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16628 ac_cs_version="\\
16629 extension config.status 1.0
16630 configured by $0, generated by GNU Autoconf 2.67,
16631   with options \\"\$ac_cs_config\\"
16632
16633 Copyright (C) 2010 Free Software Foundation, Inc.
16634 This config.status script is free software; the Free Software Foundation
16635 gives unlimited permission to copy, distribute and modify it."
16636
16637 ac_pwd='$ac_pwd'
16638 srcdir='$srcdir'
16639 INSTALL='$INSTALL'
16640 MKDIR_P='$MKDIR_P'
16641 AWK='$AWK'
16642 test -n "\$AWK" || AWK=awk
16643 _ACEOF
16644
16645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16646 # The default lists apply if the user does not specify any file.
16647 ac_need_defaults=:
16648 while test $# != 0
16649 do
16650   case $1 in
16651   --*=?*)
16652     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16653     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16654     ac_shift=:
16655     ;;
16656   --*=)
16657     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16658     ac_optarg=
16659     ac_shift=:
16660     ;;
16661   *)
16662     ac_option=$1
16663     ac_optarg=$2
16664     ac_shift=shift
16665     ;;
16666   esac
16667
16668   case $ac_option in
16669   # Handling of the options.
16670   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16671     ac_cs_recheck=: ;;
16672   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16673     $as_echo "$ac_cs_version"; exit ;;
16674   --config | --confi | --conf | --con | --co | --c )
16675     $as_echo "$ac_cs_config"; exit ;;
16676   --debug | --debu | --deb | --de | --d | -d )
16677     debug=: ;;
16678   --file | --fil | --fi | --f )
16679     $ac_shift
16680     case $ac_optarg in
16681     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16682     '') as_fn_error $? "missing file argument" ;;
16683     esac
16684     as_fn_append CONFIG_FILES " '$ac_optarg'"
16685     ac_need_defaults=false;;
16686   --header | --heade | --head | --hea )
16687     $ac_shift
16688     case $ac_optarg in
16689     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16690     esac
16691     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16692     ac_need_defaults=false;;
16693   --he | --h)
16694     # Conflict between --help and --header
16695     as_fn_error $? "ambiguous option: \`$1'
16696 Try \`$0 --help' for more information.";;
16697   --help | --hel | -h )
16698     $as_echo "$ac_cs_usage"; exit ;;
16699   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16700   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16701     ac_cs_silent=: ;;
16702
16703   # This is an error.
16704   -*) as_fn_error $? "unrecognized option: \`$1'
16705 Try \`$0 --help' for more information." ;;
16706
16707   *) as_fn_append ac_config_targets " $1"
16708      ac_need_defaults=false ;;
16709
16710   esac
16711   shift
16712 done
16713
16714 ac_configure_extra_args=
16715
16716 if $ac_cs_silent; then
16717   exec 6>/dev/null
16718   ac_configure_extra_args="$ac_configure_extra_args --silent"
16719 fi
16720
16721 _ACEOF
16722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16723 if \$ac_cs_recheck; then
16724   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16725   shift
16726   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16727   CONFIG_SHELL='$SHELL'
16728   export CONFIG_SHELL
16729   exec "\$@"
16730 fi
16731
16732 _ACEOF
16733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16734 exec 5>>config.log
16735 {
16736   echo
16737   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16738 ## Running $as_me. ##
16739 _ASBOX
16740   $as_echo "$ac_log"
16741 } >&5
16742
16743 _ACEOF
16744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16745 #
16746 # INIT-COMMANDS
16747 #
16748 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16749
16750
16751 # The HP-UX ksh and POSIX shell print the target directory to stdout
16752 # if CDPATH is set.
16753 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16754
16755 sed_quote_subst='$sed_quote_subst'
16756 double_quote_subst='$double_quote_subst'
16757 delay_variable_subst='$delay_variable_subst'
16758 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16759 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16760 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16761 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16762 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16763 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16764 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16765 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16766 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16767 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16768 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16769 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16770 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16771 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16772 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16773 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16774 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16775 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16776 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16777 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16778 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16779 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16780 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16781 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16782 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16783 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16784 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16785 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16786 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16787 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16788 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16789 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16790 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16791 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16792 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16793 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16794 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16795 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16796 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16797 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16798 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16799 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16800 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16801 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16802 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16803 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16804 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16805 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16806 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16807 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16808 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16809 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16810 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16811 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16812 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16813 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16814 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16815 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16816 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16817 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16818 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16819 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16820 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16821 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16822 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16823 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16824 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16825 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16826 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16827 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16828 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16829 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16830 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16831 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16832 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16833 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16834 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16835 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16836 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16837 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16838 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16839 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16840 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16841 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16842 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16843 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16844 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16845 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16846 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16847 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16848 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16849 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16850 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16851 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16852 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16853 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16854 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16855 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16856 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16857 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16858 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16859 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16860 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16861 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16862 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16863 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16864 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16865 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16866 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16867 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16868 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16869 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16870 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16871 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16872 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16873 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16874 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16875 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16876 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16877 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16878 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16879 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16880 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16881 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16882 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16883 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16884 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16885 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16886 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16887 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16888 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16889 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16890 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16891 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16892 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16893 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16894 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16895 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16896 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16897 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16898 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16899 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16900 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16901 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16902 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16903 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16904 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16905 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16906 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16907 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16908 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16909 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16910 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16911 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16912 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16913 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16914 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16915 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16916 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16917 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16918 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16919 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16920 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16921 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16922 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16923 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16924 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16925 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16926 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16927 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16928 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16929
16930 LTCC='$LTCC'
16931 LTCFLAGS='$LTCFLAGS'
16932 compiler='$compiler_DEFAULT'
16933
16934 # Quote evaled strings.
16935 for var in SED \
16936 GREP \
16937 EGREP \
16938 FGREP \
16939 LD \
16940 NM \
16941 LN_S \
16942 lt_SP2NL \
16943 lt_NL2SP \
16944 reload_flag \
16945 OBJDUMP \
16946 deplibs_check_method \
16947 file_magic_cmd \
16948 AR \
16949 AR_FLAGS \
16950 STRIP \
16951 RANLIB \
16952 CC \
16953 CFLAGS \
16954 compiler \
16955 lt_cv_sys_global_symbol_pipe \
16956 lt_cv_sys_global_symbol_to_cdecl \
16957 lt_cv_sys_global_symbol_to_c_name_address \
16958 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16959 SHELL \
16960 ECHO \
16961 lt_prog_compiler_no_builtin_flag \
16962 lt_prog_compiler_wl \
16963 lt_prog_compiler_pic \
16964 lt_prog_compiler_static \
16965 lt_cv_prog_compiler_c_o \
16966 need_locks \
16967 DSYMUTIL \
16968 NMEDIT \
16969 LIPO \
16970 OTOOL \
16971 OTOOL64 \
16972 shrext_cmds \
16973 export_dynamic_flag_spec \
16974 whole_archive_flag_spec \
16975 compiler_needs_object \
16976 with_gnu_ld \
16977 allow_undefined_flag \
16978 no_undefined_flag \
16979 hardcode_libdir_flag_spec \
16980 hardcode_libdir_flag_spec_ld \
16981 hardcode_libdir_separator \
16982 fix_srcfile_path \
16983 exclude_expsyms \
16984 include_expsyms \
16985 file_list_spec \
16986 variables_saved_for_relink \
16987 libname_spec \
16988 library_names_spec \
16989 soname_spec \
16990 finish_eval \
16991 old_striplib \
16992 striplib \
16993 compiler_lib_search_dirs \
16994 predep_objects \
16995 postdep_objects \
16996 predeps \
16997 postdeps \
16998 compiler_lib_search_path \
16999 LD_CXX \
17000 compiler_CXX \
17001 lt_prog_compiler_no_builtin_flag_CXX \
17002 lt_prog_compiler_wl_CXX \
17003 lt_prog_compiler_pic_CXX \
17004 lt_prog_compiler_static_CXX \
17005 lt_cv_prog_compiler_c_o_CXX \
17006 export_dynamic_flag_spec_CXX \
17007 whole_archive_flag_spec_CXX \
17008 compiler_needs_object_CXX \
17009 with_gnu_ld_CXX \
17010 allow_undefined_flag_CXX \
17011 no_undefined_flag_CXX \
17012 hardcode_libdir_flag_spec_CXX \
17013 hardcode_libdir_flag_spec_ld_CXX \
17014 hardcode_libdir_separator_CXX \
17015 fix_srcfile_path_CXX \
17016 exclude_expsyms_CXX \
17017 include_expsyms_CXX \
17018 file_list_spec_CXX \
17019 compiler_lib_search_dirs_CXX \
17020 predep_objects_CXX \
17021 postdep_objects_CXX \
17022 predeps_CXX \
17023 postdeps_CXX \
17024 compiler_lib_search_path_CXX; do
17025     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17026     *[\\\\\\\`\\"\\\$]*)
17027       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17028       ;;
17029     *)
17030       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17031       ;;
17032     esac
17033 done
17034
17035 # Double-quote double-evaled strings.
17036 for var in reload_cmds \
17037 old_postinstall_cmds \
17038 old_postuninstall_cmds \
17039 old_archive_cmds \
17040 extract_expsyms_cmds \
17041 old_archive_from_new_cmds \
17042 old_archive_from_expsyms_cmds \
17043 archive_cmds \
17044 archive_expsym_cmds \
17045 module_cmds \
17046 module_expsym_cmds \
17047 export_symbols_cmds \
17048 prelink_cmds \
17049 postinstall_cmds \
17050 postuninstall_cmds \
17051 finish_cmds \
17052 sys_lib_search_path_spec \
17053 sys_lib_dlsearch_path_spec \
17054 old_archive_cmds_CXX \
17055 old_archive_from_new_cmds_CXX \
17056 old_archive_from_expsyms_cmds_CXX \
17057 archive_cmds_CXX \
17058 archive_expsym_cmds_CXX \
17059 module_cmds_CXX \
17060 module_expsym_cmds_CXX \
17061 export_symbols_cmds_CXX \
17062 prelink_cmds_CXX; do
17063     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17064     *[\\\\\\\`\\"\\\$]*)
17065       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17066       ;;
17067     *)
17068       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17069       ;;
17070     esac
17071 done
17072
17073 # Fix-up fallback echo if it was mangled by the above quoting rules.
17074 case \$lt_ECHO in
17075 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17076   ;;
17077 esac
17078
17079 ac_aux_dir='$ac_aux_dir'
17080 xsi_shell='$xsi_shell'
17081 lt_shell_append='$lt_shell_append'
17082
17083 # See if we are running on zsh, and set the options which allow our
17084 # commands through without removal of \ escapes INIT.
17085 if test -n "\${ZSH_VERSION+set}" ; then
17086    setopt NO_GLOB_SUBST
17087 fi
17088
17089
17090     PACKAGE='$PACKAGE'
17091     VERSION='$VERSION'
17092     TIMESTAMP='$TIMESTAMP'
17093     RM='$RM'
17094     ofile='$ofile'
17095
17096
17097
17098
17099
17100
17101 _ACEOF
17102
17103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17104
17105 # Handling of arguments.
17106 for ac_config_target in $ac_config_targets
17107 do
17108   case $ac_config_target in
17109     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17110     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17111     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17112     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17113     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
17114     "common/m4/Makefile") CONFIG_FILES="$CONFIG_FILES common/m4/Makefile" ;;
17115     "avsystem/Makefile") CONFIG_FILES="$CONFIG_FILES avsystem/Makefile" ;;
17116     "avsystem/src/Makefile") CONFIG_FILES="$CONFIG_FILES avsystem/src/Makefile" ;;
17117     "encodebin/Makefile") CONFIG_FILES="$CONFIG_FILES encodebin/Makefile" ;;
17118     "encodebin/src/Makefile") CONFIG_FILES="$CONFIG_FILES encodebin/src/Makefile" ;;
17119     "evasimagesink/Makefile") CONFIG_FILES="$CONFIG_FILES evasimagesink/Makefile" ;;
17120     "evasimagesink/src/Makefile") CONFIG_FILES="$CONFIG_FILES evasimagesink/src/Makefile" ;;
17121     "toggle/Makefile") CONFIG_FILES="$CONFIG_FILES toggle/Makefile" ;;
17122     "toggle/src/Makefile") CONFIG_FILES="$CONFIG_FILES toggle/src/Makefile" ;;
17123     "drmsrc/Makefile") CONFIG_FILES="$CONFIG_FILES drmsrc/Makefile" ;;
17124     "drmsrc/src/Makefile") CONFIG_FILES="$CONFIG_FILES drmsrc/src/Makefile" ;;
17125
17126   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
17127   esac
17128 done
17129
17130
17131 # If the user did not use the arguments to specify the items to instantiate,
17132 # then the envvar interface is used.  Set only those that are not.
17133 # We use the long form for the default assignment because of an extremely
17134 # bizarre bug on SunOS 4.1.3.
17135 if $ac_need_defaults; then
17136   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17137   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17138   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17139 fi
17140
17141 # Have a temporary directory for convenience.  Make it in the build tree
17142 # simply because there is no reason against having it here, and in addition,
17143 # creating and moving files from /tmp can sometimes cause problems.
17144 # Hook for its removal unless debugging.
17145 # Note that there is a small window in which the directory will not be cleaned:
17146 # after its creation but before its name has been assigned to `$tmp'.
17147 $debug ||
17148 {
17149   tmp=
17150   trap 'exit_status=$?
17151   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17152 ' 0
17153   trap 'as_fn_exit 1' 1 2 13 15
17154 }
17155 # Create a (secure) tmp directory for tmp files.
17156
17157 {
17158   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17159   test -n "$tmp" && test -d "$tmp"
17160 }  ||
17161 {
17162   tmp=./conf$$-$RANDOM
17163   (umask 077 && mkdir "$tmp")
17164 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17165
17166 # Set up the scripts for CONFIG_FILES section.
17167 # No need to generate them if there are no CONFIG_FILES.
17168 # This happens for instance with `./config.status config.h'.
17169 if test -n "$CONFIG_FILES"; then
17170
17171
17172 ac_cr=`echo X | tr X '\015'`
17173 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17174 # But we know of no other shell where ac_cr would be empty at this
17175 # point, so we can use a bashism as a fallback.
17176 if test "x$ac_cr" = x; then
17177   eval ac_cr=\$\'\\r\'
17178 fi
17179 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17180 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17181   ac_cs_awk_cr='\\r'
17182 else
17183   ac_cs_awk_cr=$ac_cr
17184 fi
17185
17186 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17187 _ACEOF
17188
17189
17190 {
17191   echo "cat >conf$$subs.awk <<_ACEOF" &&
17192   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17193   echo "_ACEOF"
17194 } >conf$$subs.sh ||
17195   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17196 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17197 ac_delim='%!_!# '
17198 for ac_last_try in false false false false false :; do
17199   . ./conf$$subs.sh ||
17200     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17201
17202   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17203   if test $ac_delim_n = $ac_delim_num; then
17204     break
17205   elif $ac_last_try; then
17206     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17207   else
17208     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17209   fi
17210 done
17211 rm -f conf$$subs.sh
17212
17213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17214 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17215 _ACEOF
17216 sed -n '
17217 h
17218 s/^/S["/; s/!.*/"]=/
17219 p
17220 g
17221 s/^[^!]*!//
17222 :repl
17223 t repl
17224 s/'"$ac_delim"'$//
17225 t delim
17226 :nl
17227 h
17228 s/\(.\{148\}\)..*/\1/
17229 t more1
17230 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17231 p
17232 n
17233 b repl
17234 :more1
17235 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17236 p
17237 g
17238 s/.\{148\}//
17239 t nl
17240 :delim
17241 h
17242 s/\(.\{148\}\)..*/\1/
17243 t more2
17244 s/["\\]/\\&/g; s/^/"/; s/$/"/
17245 p
17246 b
17247 :more2
17248 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17249 p
17250 g
17251 s/.\{148\}//
17252 t delim
17253 ' <conf$$subs.awk | sed '
17254 /^[^""]/{
17255   N
17256   s/\n//
17257 }
17258 ' >>$CONFIG_STATUS || ac_write_fail=1
17259 rm -f conf$$subs.awk
17260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17261 _ACAWK
17262 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17263   for (key in S) S_is_set[key] = 1
17264   FS = "\a"
17265
17266 }
17267 {
17268   line = $ 0
17269   nfields = split(line, field, "@")
17270   substed = 0
17271   len = length(field[1])
17272   for (i = 2; i < nfields; i++) {
17273     key = field[i]
17274     keylen = length(key)
17275     if (S_is_set[key]) {
17276       value = S[key]
17277       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17278       len += length(value) + length(field[++i])
17279       substed = 1
17280     } else
17281       len += 1 + keylen
17282   }
17283
17284   print line
17285 }
17286
17287 _ACAWK
17288 _ACEOF
17289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17290 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17291   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17292 else
17293   cat
17294 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17295   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17296 _ACEOF
17297
17298 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17299 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17300 # trailing colons and then remove the whole line if VPATH becomes empty
17301 # (actually we leave an empty line to preserve line numbers).
17302 if test "x$srcdir" = x.; then
17303   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17304 h
17305 s///
17306 s/^/:/
17307 s/[      ]*$/:/
17308 s/:\$(srcdir):/:/g
17309 s/:\${srcdir}:/:/g
17310 s/:@srcdir@:/:/g
17311 s/^:*//
17312 s/:*$//
17313 x
17314 s/\(=[   ]*\).*/\1/
17315 G
17316 s/\n//
17317 s/^[^=]*=[       ]*$//
17318 }'
17319 fi
17320
17321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17322 fi # test -n "$CONFIG_FILES"
17323
17324 # Set up the scripts for CONFIG_HEADERS section.
17325 # No need to generate them if there are no CONFIG_HEADERS.
17326 # This happens for instance with `./config.status Makefile'.
17327 if test -n "$CONFIG_HEADERS"; then
17328 cat >"$tmp/defines.awk" <<\_ACAWK ||
17329 BEGIN {
17330 _ACEOF
17331
17332 # Transform confdefs.h into an awk script `defines.awk', embedded as
17333 # here-document in config.status, that substitutes the proper values into
17334 # config.h.in to produce config.h.
17335
17336 # Create a delimiter string that does not exist in confdefs.h, to ease
17337 # handling of long lines.
17338 ac_delim='%!_!# '
17339 for ac_last_try in false false :; do
17340   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17341   if test -z "$ac_t"; then
17342     break
17343   elif $ac_last_try; then
17344     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17345   else
17346     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17347   fi
17348 done
17349
17350 # For the awk script, D is an array of macro values keyed by name,
17351 # likewise P contains macro parameters if any.  Preserve backslash
17352 # newline sequences.
17353
17354 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17355 sed -n '
17356 s/.\{148\}/&'"$ac_delim"'/g
17357 t rset
17358 :rset
17359 s/^[     ]*#[    ]*define[       ][      ]*/ /
17360 t def
17361 d
17362 :def
17363 s/\\$//
17364 t bsnl
17365 s/["\\]/\\&/g
17366 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17367 D["\1"]=" \3"/p
17368 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17369 d
17370 :bsnl
17371 s/["\\]/\\&/g
17372 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17373 D["\1"]=" \3\\\\\\n"\\/p
17374 t cont
17375 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17376 t cont
17377 d
17378 :cont
17379 n
17380 s/.\{148\}/&'"$ac_delim"'/g
17381 t clear
17382 :clear
17383 s/\\$//
17384 t bsnlc
17385 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17386 d
17387 :bsnlc
17388 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17389 b cont
17390 ' <confdefs.h | sed '
17391 s/'"$ac_delim"'/"\\\
17392 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17393
17394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17395   for (key in D) D_is_set[key] = 1
17396   FS = "\a"
17397 }
17398 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17399   line = \$ 0
17400   split(line, arg, " ")
17401   if (arg[1] == "#") {
17402     defundef = arg[2]
17403     mac1 = arg[3]
17404   } else {
17405     defundef = substr(arg[1], 2)
17406     mac1 = arg[2]
17407   }
17408   split(mac1, mac2, "(") #)
17409   macro = mac2[1]
17410   prefix = substr(line, 1, index(line, defundef) - 1)
17411   if (D_is_set[macro]) {
17412     # Preserve the white space surrounding the "#".
17413     print prefix "define", macro P[macro] D[macro]
17414     next
17415   } else {
17416     # Replace #undef with comments.  This is necessary, for example,
17417     # in the case of _POSIX_SOURCE, which is predefined and required
17418     # on some systems where configure will not decide to define it.
17419     if (defundef == "undef") {
17420       print "/*", prefix defundef, macro, "*/"
17421       next
17422     }
17423   }
17424 }
17425 { print }
17426 _ACAWK
17427 _ACEOF
17428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17429   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17430 fi # test -n "$CONFIG_HEADERS"
17431
17432
17433 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17434 shift
17435 for ac_tag
17436 do
17437   case $ac_tag in
17438   :[FHLC]) ac_mode=$ac_tag; continue;;
17439   esac
17440   case $ac_mode$ac_tag in
17441   :[FHL]*:*);;
17442   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
17443   :[FH]-) ac_tag=-:-;;
17444   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17445   esac
17446   ac_save_IFS=$IFS
17447   IFS=:
17448   set x $ac_tag
17449   IFS=$ac_save_IFS
17450   shift
17451   ac_file=$1
17452   shift
17453
17454   case $ac_mode in
17455   :L) ac_source=$1;;
17456   :[FH])
17457     ac_file_inputs=
17458     for ac_f
17459     do
17460       case $ac_f in
17461       -) ac_f="$tmp/stdin";;
17462       *) # Look for the file first in the build tree, then in the source tree
17463          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17464          # because $ac_f cannot contain `:'.
17465          test -f "$ac_f" ||
17466            case $ac_f in
17467            [\\/$]*) false;;
17468            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17469            esac ||
17470            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
17471       esac
17472       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17473       as_fn_append ac_file_inputs " '$ac_f'"
17474     done
17475
17476     # Let's still pretend it is `configure' which instantiates (i.e., don't
17477     # use $as_me), people would be surprised to read:
17478     #    /* config.h.  Generated by config.status.  */
17479     configure_input='Generated from '`
17480           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17481         `' by configure.'
17482     if test x"$ac_file" != x-; then
17483       configure_input="$ac_file.  $configure_input"
17484       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17485 $as_echo "$as_me: creating $ac_file" >&6;}
17486     fi
17487     # Neutralize special characters interpreted by sed in replacement strings.
17488     case $configure_input in #(
17489     *\&* | *\|* | *\\* )
17490        ac_sed_conf_input=`$as_echo "$configure_input" |
17491        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17492     *) ac_sed_conf_input=$configure_input;;
17493     esac
17494
17495     case $ac_tag in
17496     *:-:* | *:-) cat >"$tmp/stdin" \
17497       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
17498     esac
17499     ;;
17500   esac
17501
17502   ac_dir=`$as_dirname -- "$ac_file" ||
17503 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17504          X"$ac_file" : 'X\(//\)[^/]' \| \
17505          X"$ac_file" : 'X\(//\)$' \| \
17506          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17507 $as_echo X"$ac_file" |
17508     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17509             s//\1/
17510             q
17511           }
17512           /^X\(\/\/\)[^/].*/{
17513             s//\1/
17514             q
17515           }
17516           /^X\(\/\/\)$/{
17517             s//\1/
17518             q
17519           }
17520           /^X\(\/\).*/{
17521             s//\1/
17522             q
17523           }
17524           s/.*/./; q'`
17525   as_dir="$ac_dir"; as_fn_mkdir_p
17526   ac_builddir=.
17527
17528 case "$ac_dir" in
17529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17530 *)
17531   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17532   # A ".." for each directory in $ac_dir_suffix.
17533   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17534   case $ac_top_builddir_sub in
17535   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17536   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17537   esac ;;
17538 esac
17539 ac_abs_top_builddir=$ac_pwd
17540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17541 # for backward compatibility:
17542 ac_top_builddir=$ac_top_build_prefix
17543
17544 case $srcdir in
17545   .)  # We are building in place.
17546     ac_srcdir=.
17547     ac_top_srcdir=$ac_top_builddir_sub
17548     ac_abs_top_srcdir=$ac_pwd ;;
17549   [\\/]* | ?:[\\/]* )  # Absolute name.
17550     ac_srcdir=$srcdir$ac_dir_suffix;
17551     ac_top_srcdir=$srcdir
17552     ac_abs_top_srcdir=$srcdir ;;
17553   *) # Relative name.
17554     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17555     ac_top_srcdir=$ac_top_build_prefix$srcdir
17556     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17557 esac
17558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17559
17560
17561   case $ac_mode in
17562   :F)
17563   #
17564   # CONFIG_FILE
17565   #
17566
17567   case $INSTALL in
17568   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17569   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17570   esac
17571   ac_MKDIR_P=$MKDIR_P
17572   case $MKDIR_P in
17573   [\\/$]* | ?:[\\/]* ) ;;
17574   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17575   esac
17576 _ACEOF
17577
17578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17579 # If the template does not know about datarootdir, expand it.
17580 # FIXME: This hack should be removed a few years after 2.60.
17581 ac_datarootdir_hack=; ac_datarootdir_seen=
17582 ac_sed_dataroot='
17583 /datarootdir/ {
17584   p
17585   q
17586 }
17587 /@datadir@/p
17588 /@docdir@/p
17589 /@infodir@/p
17590 /@localedir@/p
17591 /@mandir@/p'
17592 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17593 *datarootdir*) ac_datarootdir_seen=yes;;
17594 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17595   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17596 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17597 _ACEOF
17598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17599   ac_datarootdir_hack='
17600   s&@datadir@&$datadir&g
17601   s&@docdir@&$docdir&g
17602   s&@infodir@&$infodir&g
17603   s&@localedir@&$localedir&g
17604   s&@mandir@&$mandir&g
17605   s&\\\${datarootdir}&$datarootdir&g' ;;
17606 esac
17607 _ACEOF
17608
17609 # Neutralize VPATH when `$srcdir' = `.'.
17610 # Shell code in configure.ac might set extrasub.
17611 # FIXME: do we really want to maintain this feature?
17612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17613 ac_sed_extra="$ac_vpsub
17614 $extrasub
17615 _ACEOF
17616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17617 :t
17618 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17619 s|@configure_input@|$ac_sed_conf_input|;t t
17620 s&@top_builddir@&$ac_top_builddir_sub&;t t
17621 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17622 s&@srcdir@&$ac_srcdir&;t t
17623 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17624 s&@top_srcdir@&$ac_top_srcdir&;t t
17625 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17626 s&@builddir@&$ac_builddir&;t t
17627 s&@abs_builddir@&$ac_abs_builddir&;t t
17628 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17629 s&@INSTALL@&$ac_INSTALL&;t t
17630 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17631 $ac_datarootdir_hack
17632 "
17633 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17634   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17635
17636 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17637   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17638   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17639   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17640 which seems to be undefined.  Please make sure it is defined" >&5
17641 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17642 which seems to be undefined.  Please make sure it is defined" >&2;}
17643
17644   rm -f "$tmp/stdin"
17645   case $ac_file in
17646   -) cat "$tmp/out" && rm -f "$tmp/out";;
17647   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17648   esac \
17649   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17650  ;;
17651   :H)
17652   #
17653   # CONFIG_HEADER
17654   #
17655   if test x"$ac_file" != x-; then
17656     {
17657       $as_echo "/* $configure_input  */" \
17658       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17659     } >"$tmp/config.h" \
17660       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17661     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17662       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17663 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17664     else
17665       rm -f "$ac_file"
17666       mv "$tmp/config.h" "$ac_file" \
17667         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17668     fi
17669   else
17670     $as_echo "/* $configure_input  */" \
17671       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17672       || as_fn_error $? "could not create -" "$LINENO" 5
17673   fi
17674 # Compute "$ac_file"'s index in $config_headers.
17675 _am_arg="$ac_file"
17676 _am_stamp_count=1
17677 for _am_header in $config_headers :; do
17678   case $_am_header in
17679     $_am_arg | $_am_arg:* )
17680       break ;;
17681     * )
17682       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17683   esac
17684 done
17685 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17686 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17687          X"$_am_arg" : 'X\(//\)[^/]' \| \
17688          X"$_am_arg" : 'X\(//\)$' \| \
17689          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17690 $as_echo X"$_am_arg" |
17691     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17692             s//\1/
17693             q
17694           }
17695           /^X\(\/\/\)[^/].*/{
17696             s//\1/
17697             q
17698           }
17699           /^X\(\/\/\)$/{
17700             s//\1/
17701             q
17702           }
17703           /^X\(\/\).*/{
17704             s//\1/
17705             q
17706           }
17707           s/.*/./; q'`/stamp-h$_am_stamp_count
17708  ;;
17709
17710   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17711 $as_echo "$as_me: executing $ac_file commands" >&6;}
17712  ;;
17713   esac
17714
17715
17716   case $ac_file$ac_mode in
17717     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17718   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17719   # are listed without --file.  Let's play safe and only enable the eval
17720   # if we detect the quoting.
17721   case $CONFIG_FILES in
17722   *\'*) eval set x "$CONFIG_FILES" ;;
17723   *)   set x $CONFIG_FILES ;;
17724   esac
17725   shift
17726   for mf
17727   do
17728     # Strip MF so we end up with the name of the file.
17729     mf=`echo "$mf" | sed -e 's/:.*$//'`
17730     # Check whether this is an Automake generated Makefile or not.
17731     # We used to match only the files named `Makefile.in', but
17732     # some people rename them; so instead we look at the file content.
17733     # Grep'ing the first line is not enough: some people post-process
17734     # each Makefile.in and add a new line on top of each file to say so.
17735     # Grep'ing the whole file is not good either: AIX grep has a line
17736     # limit of 2048, but all sed's we know have understand at least 4000.
17737     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17738       dirpart=`$as_dirname -- "$mf" ||
17739 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17740          X"$mf" : 'X\(//\)[^/]' \| \
17741          X"$mf" : 'X\(//\)$' \| \
17742          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17743 $as_echo X"$mf" |
17744     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17745             s//\1/
17746             q
17747           }
17748           /^X\(\/\/\)[^/].*/{
17749             s//\1/
17750             q
17751           }
17752           /^X\(\/\/\)$/{
17753             s//\1/
17754             q
17755           }
17756           /^X\(\/\).*/{
17757             s//\1/
17758             q
17759           }
17760           s/.*/./; q'`
17761     else
17762       continue
17763     fi
17764     # Extract the definition of DEPDIR, am__include, and am__quote
17765     # from the Makefile without running `make'.
17766     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17767     test -z "$DEPDIR" && continue
17768     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17769     test -z "am__include" && continue
17770     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17771     # When using ansi2knr, U may be empty or an underscore; expand it
17772     U=`sed -n 's/^U = //p' < "$mf"`
17773     # Find all dependency output files, they are included files with
17774     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17775     # simplest approach to changing $(DEPDIR) to its actual value in the
17776     # expansion.
17777     for file in `sed -n "
17778       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17779          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17780       # Make sure the directory exists.
17781       test -f "$dirpart/$file" && continue
17782       fdir=`$as_dirname -- "$file" ||
17783 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17784          X"$file" : 'X\(//\)[^/]' \| \
17785          X"$file" : 'X\(//\)$' \| \
17786          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17787 $as_echo X"$file" |
17788     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17789             s//\1/
17790             q
17791           }
17792           /^X\(\/\/\)[^/].*/{
17793             s//\1/
17794             q
17795           }
17796           /^X\(\/\/\)$/{
17797             s//\1/
17798             q
17799           }
17800           /^X\(\/\).*/{
17801             s//\1/
17802             q
17803           }
17804           s/.*/./; q'`
17805       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17806       # echo "creating $dirpart/$file"
17807       echo '# dummy' > "$dirpart/$file"
17808     done
17809   done
17810 }
17811  ;;
17812     "libtool":C)
17813
17814     # See if we are running on zsh, and set the options which allow our
17815     # commands through without removal of \ escapes.
17816     if test -n "${ZSH_VERSION+set}" ; then
17817       setopt NO_GLOB_SUBST
17818     fi
17819
17820     cfgfile="${ofile}T"
17821     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17822     $RM "$cfgfile"
17823
17824     cat <<_LT_EOF >> "$cfgfile"
17825 #! $SHELL
17826
17827 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17828 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17829 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17830 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17831 #
17832 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17833 #                 2006, 2007, 2008 Free Software Foundation, Inc.
17834 #   Written by Gordon Matzigkeit, 1996
17835 #
17836 #   This file is part of GNU Libtool.
17837 #
17838 # GNU Libtool is free software; you can redistribute it and/or
17839 # modify it under the terms of the GNU General Public License as
17840 # published by the Free Software Foundation; either version 2 of
17841 # the License, or (at your option) any later version.
17842 #
17843 # As a special exception to the GNU General Public License,
17844 # if you distribute this file as part of a program or library that
17845 # is built using GNU Libtool, you may include this file under the
17846 # same distribution terms that you use for the rest of that program.
17847 #
17848 # GNU Libtool is distributed in the hope that it will be useful,
17849 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17850 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17851 # GNU General Public License for more details.
17852 #
17853 # You should have received a copy of the GNU General Public License
17854 # along with GNU Libtool; see the file COPYING.  If not, a copy
17855 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17856 # obtained by writing to the Free Software Foundation, Inc.,
17857 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17858
17859
17860 # The names of the tagged configurations supported by this script.
17861 available_tags="CXX "
17862
17863 # ### BEGIN LIBTOOL CONFIG
17864
17865 # Which release of libtool.m4 was used?
17866 macro_version=$macro_version
17867 macro_revision=$macro_revision
17868
17869 # Whether or not to build shared libraries.
17870 build_libtool_libs=$enable_shared
17871
17872 # Whether or not to build static libraries.
17873 build_old_libs=$enable_static
17874
17875 # What type of objects to build.
17876 pic_mode=$pic_mode
17877
17878 # Whether or not to optimize for fast installation.
17879 fast_install=$enable_fast_install
17880
17881 # The host system.
17882 host_alias=$host_alias
17883 host=$host
17884 host_os=$host_os
17885
17886 # The build system.
17887 build_alias=$build_alias
17888 build=$build
17889 build_os=$build_os
17890
17891 # A sed program that does not truncate output.
17892 SED=$lt_SED
17893
17894 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17895 Xsed="\$SED -e 1s/^X//"
17896
17897 # A grep program that handles long lines.
17898 GREP=$lt_GREP
17899
17900 # An ERE matcher.
17901 EGREP=$lt_EGREP
17902
17903 # A literal string matcher.
17904 FGREP=$lt_FGREP
17905
17906 # A BSD- or MS-compatible name lister.
17907 NM=$lt_NM
17908
17909 # Whether we need soft or hard links.
17910 LN_S=$lt_LN_S
17911
17912 # What is the maximum length of a command?
17913 max_cmd_len=$max_cmd_len
17914
17915 # Object file suffix (normally "o").
17916 objext=$ac_objext
17917
17918 # Executable file suffix (normally "").
17919 exeext=$exeext
17920
17921 # whether the shell understands "unset".
17922 lt_unset=$lt_unset
17923
17924 # turn spaces into newlines.
17925 SP2NL=$lt_lt_SP2NL
17926
17927 # turn newlines into spaces.
17928 NL2SP=$lt_lt_NL2SP
17929
17930 # How to create reloadable object files.
17931 reload_flag=$lt_reload_flag
17932 reload_cmds=$lt_reload_cmds
17933
17934 # An object symbol dumper.
17935 OBJDUMP=$lt_OBJDUMP
17936
17937 # Method to check whether dependent libraries are shared objects.
17938 deplibs_check_method=$lt_deplibs_check_method
17939
17940 # Command to use when deplibs_check_method == "file_magic".
17941 file_magic_cmd=$lt_file_magic_cmd
17942
17943 # The archiver.
17944 AR=$lt_AR
17945 AR_FLAGS=$lt_AR_FLAGS
17946
17947 # A symbol stripping program.
17948 STRIP=$lt_STRIP
17949
17950 # Commands used to install an old-style archive.
17951 RANLIB=$lt_RANLIB
17952 old_postinstall_cmds=$lt_old_postinstall_cmds
17953 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17954
17955 # A C compiler.
17956 LTCC=$lt_CC
17957
17958 # LTCC compiler flags.
17959 LTCFLAGS=$lt_CFLAGS
17960
17961 # Take the output of nm and produce a listing of raw symbols and C names.
17962 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17963
17964 # Transform the output of nm in a proper C declaration.
17965 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17966
17967 # Transform the output of nm in a C name address pair.
17968 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17969
17970 # Transform the output of nm in a C name address pair when lib prefix is needed.
17971 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17972
17973 # The name of the directory that contains temporary libtool files.
17974 objdir=$objdir
17975
17976 # Shell to use when invoking shell scripts.
17977 SHELL=$lt_SHELL
17978
17979 # An echo program that does not interpret backslashes.
17980 ECHO=$lt_ECHO
17981
17982 # Used to examine libraries when file_magic_cmd begins with "file".
17983 MAGIC_CMD=$MAGIC_CMD
17984
17985 # Must we lock files when doing compilation?
17986 need_locks=$lt_need_locks
17987
17988 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17989 DSYMUTIL=$lt_DSYMUTIL
17990
17991 # Tool to change global to local symbols on Mac OS X.
17992 NMEDIT=$lt_NMEDIT
17993
17994 # Tool to manipulate fat objects and archives on Mac OS X.
17995 LIPO=$lt_LIPO
17996
17997 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17998 OTOOL=$lt_OTOOL
17999
18000 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18001 OTOOL64=$lt_OTOOL64
18002
18003 # Old archive suffix (normally "a").
18004 libext=$libext
18005
18006 # Shared library suffix (normally ".so").
18007 shrext_cmds=$lt_shrext_cmds
18008
18009 # The commands to extract the exported symbol list from a shared archive.
18010 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18011
18012 # Variables whose values should be saved in libtool wrapper scripts and
18013 # restored at link time.
18014 variables_saved_for_relink=$lt_variables_saved_for_relink
18015
18016 # Do we need the "lib" prefix for modules?
18017 need_lib_prefix=$need_lib_prefix
18018
18019 # Do we need a version for libraries?
18020 need_version=$need_version
18021
18022 # Library versioning type.
18023 version_type=$version_type
18024
18025 # Shared library runtime path variable.
18026 runpath_var=$runpath_var
18027
18028 # Shared library path variable.
18029 shlibpath_var=$shlibpath_var
18030
18031 # Is shlibpath searched before the hard-coded library search path?
18032 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18033
18034 # Format of library name prefix.
18035 libname_spec=$lt_libname_spec
18036
18037 # List of archive names.  First name is the real one, the rest are links.
18038 # The last name is the one that the linker finds with -lNAME
18039 library_names_spec=$lt_library_names_spec
18040
18041 # The coded name of the library, if different from the real name.
18042 soname_spec=$lt_soname_spec
18043
18044 # Command to use after installation of a shared archive.
18045 postinstall_cmds=$lt_postinstall_cmds
18046
18047 # Command to use after uninstallation of a shared archive.
18048 postuninstall_cmds=$lt_postuninstall_cmds
18049
18050 # Commands used to finish a libtool library installation in a directory.
18051 finish_cmds=$lt_finish_cmds
18052
18053 # As "finish_cmds", except a single script fragment to be evaled but
18054 # not shown.
18055 finish_eval=$lt_finish_eval
18056
18057 # Whether we should hardcode library paths into libraries.
18058 hardcode_into_libs=$hardcode_into_libs
18059
18060 # Compile-time system search path for libraries.
18061 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18062
18063 # Run-time system search path for libraries.
18064 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18065
18066 # Whether dlopen is supported.
18067 dlopen_support=$enable_dlopen
18068
18069 # Whether dlopen of programs is supported.
18070 dlopen_self=$enable_dlopen_self
18071
18072 # Whether dlopen of statically linked programs is supported.
18073 dlopen_self_static=$enable_dlopen_self_static
18074
18075 # Commands to strip libraries.
18076 old_striplib=$lt_old_striplib
18077 striplib=$lt_striplib
18078
18079
18080 # The linker used to build libraries.
18081 LD=$lt_LD
18082
18083 # Commands used to build an old-style archive.
18084 old_archive_cmds=$lt_old_archive_cmds
18085
18086 # A language specific compiler.
18087 CC=$lt_compiler
18088
18089 # Is the compiler the GNU compiler?
18090 with_gcc=$GCC
18091
18092 # Compiler flag to turn off builtin functions.
18093 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18094
18095 # How to pass a linker flag through the compiler.
18096 wl=$lt_lt_prog_compiler_wl
18097
18098 # Additional compiler flags for building library objects.
18099 pic_flag=$lt_lt_prog_compiler_pic
18100
18101 # Compiler flag to prevent dynamic linking.
18102 link_static_flag=$lt_lt_prog_compiler_static
18103
18104 # Does compiler simultaneously support -c and -o options?
18105 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18106
18107 # Whether or not to add -lc for building shared libraries.
18108 build_libtool_need_lc=$archive_cmds_need_lc
18109
18110 # Whether or not to disallow shared libs when runtime libs are static.
18111 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18112
18113 # Compiler flag to allow reflexive dlopens.
18114 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18115
18116 # Compiler flag to generate shared objects directly from archives.
18117 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18118
18119 # Whether the compiler copes with passing no objects directly.
18120 compiler_needs_object=$lt_compiler_needs_object
18121
18122 # Create an old-style archive from a shared archive.
18123 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18124
18125 # Create a temporary old-style archive to link instead of a shared archive.
18126 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18127
18128 # Commands used to build a shared archive.
18129 archive_cmds=$lt_archive_cmds
18130 archive_expsym_cmds=$lt_archive_expsym_cmds
18131
18132 # Commands used to build a loadable module if different from building
18133 # a shared archive.
18134 module_cmds=$lt_module_cmds
18135 module_expsym_cmds=$lt_module_expsym_cmds
18136
18137 # Whether we are building with GNU ld or not.
18138 with_gnu_ld=$lt_with_gnu_ld
18139
18140 # Flag that allows shared libraries with undefined symbols to be built.
18141 allow_undefined_flag=$lt_allow_undefined_flag
18142
18143 # Flag that enforces no undefined symbols.
18144 no_undefined_flag=$lt_no_undefined_flag
18145
18146 # Flag to hardcode \$libdir into a binary during linking.
18147 # This must work even if \$libdir does not exist
18148 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18149
18150 # If ld is used when linking, flag to hardcode \$libdir into a binary
18151 # during linking.  This must work even if \$libdir does not exist.
18152 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18153
18154 # Whether we need a single "-rpath" flag with a separated argument.
18155 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18156
18157 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18158 # DIR into the resulting binary.
18159 hardcode_direct=$hardcode_direct
18160
18161 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18162 # DIR into the resulting binary and the resulting library dependency is
18163 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18164 # library is relocated.
18165 hardcode_direct_absolute=$hardcode_direct_absolute
18166
18167 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18168 # into the resulting binary.
18169 hardcode_minus_L=$hardcode_minus_L
18170
18171 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18172 # into the resulting binary.
18173 hardcode_shlibpath_var=$hardcode_shlibpath_var
18174
18175 # Set to "yes" if building a shared library automatically hardcodes DIR
18176 # into the library and all subsequent libraries and executables linked
18177 # against it.
18178 hardcode_automatic=$hardcode_automatic
18179
18180 # Set to yes if linker adds runtime paths of dependent libraries
18181 # to runtime path list.
18182 inherit_rpath=$inherit_rpath
18183
18184 # Whether libtool must link a program against all its dependency libraries.
18185 link_all_deplibs=$link_all_deplibs
18186
18187 # Fix the shell variable \$srcfile for the compiler.
18188 fix_srcfile_path=$lt_fix_srcfile_path
18189
18190 # Set to "yes" if exported symbols are required.
18191 always_export_symbols=$always_export_symbols
18192
18193 # The commands to list exported symbols.
18194 export_symbols_cmds=$lt_export_symbols_cmds
18195
18196 # Symbols that should not be listed in the preloaded symbols.
18197 exclude_expsyms=$lt_exclude_expsyms
18198
18199 # Symbols that must always be exported.
18200 include_expsyms=$lt_include_expsyms
18201
18202 # Commands necessary for linking programs (against libraries) with templates.
18203 prelink_cmds=$lt_prelink_cmds
18204
18205 # Specify filename containing input files.
18206 file_list_spec=$lt_file_list_spec
18207
18208 # How to hardcode a shared library path into an executable.
18209 hardcode_action=$hardcode_action
18210
18211 # The directories searched by this compiler when creating a shared library.
18212 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18213
18214 # Dependencies to place before and after the objects being linked to
18215 # create a shared library.
18216 predep_objects=$lt_predep_objects
18217 postdep_objects=$lt_postdep_objects
18218 predeps=$lt_predeps
18219 postdeps=$lt_postdeps
18220
18221 # The library search path used internally by the compiler when linking
18222 # a shared library.
18223 compiler_lib_search_path=$lt_compiler_lib_search_path
18224
18225 # ### END LIBTOOL CONFIG
18226
18227 _LT_EOF
18228
18229   case $host_os in
18230   aix3*)
18231     cat <<\_LT_EOF >> "$cfgfile"
18232 # AIX sometimes has problems with the GCC collect2 program.  For some
18233 # reason, if we set the COLLECT_NAMES environment variable, the problems
18234 # vanish in a puff of smoke.
18235 if test "X${COLLECT_NAMES+set}" != Xset; then
18236   COLLECT_NAMES=
18237   export COLLECT_NAMES
18238 fi
18239 _LT_EOF
18240     ;;
18241   esac
18242
18243
18244 ltmain="$ac_aux_dir/ltmain.sh"
18245
18246
18247   # We use sed instead of cat because bash on DJGPP gets confused if
18248   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18249   # text mode, it properly converts lines to CR/LF.  This bash problem
18250   # is reportedly fixed, but why not run on old versions too?
18251   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18252     || (rm -f "$cfgfile"; exit 1)
18253
18254   case $xsi_shell in
18255   yes)
18256     cat << \_LT_EOF >> "$cfgfile"
18257
18258 # func_dirname file append nondir_replacement
18259 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18260 # otherwise set result to NONDIR_REPLACEMENT.
18261 func_dirname ()
18262 {
18263   case ${1} in
18264     */*) func_dirname_result="${1%/*}${2}" ;;
18265     *  ) func_dirname_result="${3}" ;;
18266   esac
18267 }
18268
18269 # func_basename file
18270 func_basename ()
18271 {
18272   func_basename_result="${1##*/}"
18273 }
18274
18275 # func_dirname_and_basename file append nondir_replacement
18276 # perform func_basename and func_dirname in a single function
18277 # call:
18278 #   dirname:  Compute the dirname of FILE.  If nonempty,
18279 #             add APPEND to the result, otherwise set result
18280 #             to NONDIR_REPLACEMENT.
18281 #             value returned in "$func_dirname_result"
18282 #   basename: Compute filename of FILE.
18283 #             value retuned in "$func_basename_result"
18284 # Implementation must be kept synchronized with func_dirname
18285 # and func_basename. For efficiency, we do not delegate to
18286 # those functions but instead duplicate the functionality here.
18287 func_dirname_and_basename ()
18288 {
18289   case ${1} in
18290     */*) func_dirname_result="${1%/*}${2}" ;;
18291     *  ) func_dirname_result="${3}" ;;
18292   esac
18293   func_basename_result="${1##*/}"
18294 }
18295
18296 # func_stripname prefix suffix name
18297 # strip PREFIX and SUFFIX off of NAME.
18298 # PREFIX and SUFFIX must not contain globbing or regex special
18299 # characters, hashes, percent signs, but SUFFIX may contain a leading
18300 # dot (in which case that matches only a dot).
18301 func_stripname ()
18302 {
18303   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18304   # positional parameters, so assign one to ordinary parameter first.
18305   func_stripname_result=${3}
18306   func_stripname_result=${func_stripname_result#"${1}"}
18307   func_stripname_result=${func_stripname_result%"${2}"}
18308 }
18309
18310 # func_opt_split
18311 func_opt_split ()
18312 {
18313   func_opt_split_opt=${1%%=*}
18314   func_opt_split_arg=${1#*=}
18315 }
18316
18317 # func_lo2o object
18318 func_lo2o ()
18319 {
18320   case ${1} in
18321     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18322     *)    func_lo2o_result=${1} ;;
18323   esac
18324 }
18325
18326 # func_xform libobj-or-source
18327 func_xform ()
18328 {
18329   func_xform_result=${1%.*}.lo
18330 }
18331
18332 # func_arith arithmetic-term...
18333 func_arith ()
18334 {
18335   func_arith_result=$(( $* ))
18336 }
18337
18338 # func_len string
18339 # STRING may not start with a hyphen.
18340 func_len ()
18341 {
18342   func_len_result=${#1}
18343 }
18344
18345 _LT_EOF
18346     ;;
18347   *) # Bourne compatible functions.
18348     cat << \_LT_EOF >> "$cfgfile"
18349
18350 # func_dirname file append nondir_replacement
18351 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18352 # otherwise set result to NONDIR_REPLACEMENT.
18353 func_dirname ()
18354 {
18355   # Extract subdirectory from the argument.
18356   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18357   if test "X$func_dirname_result" = "X${1}"; then
18358     func_dirname_result="${3}"
18359   else
18360     func_dirname_result="$func_dirname_result${2}"
18361   fi
18362 }
18363
18364 # func_basename file
18365 func_basename ()
18366 {
18367   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18368 }
18369
18370
18371 # func_stripname prefix suffix name
18372 # strip PREFIX and SUFFIX off of NAME.
18373 # PREFIX and SUFFIX must not contain globbing or regex special
18374 # characters, hashes, percent signs, but SUFFIX may contain a leading
18375 # dot (in which case that matches only a dot).
18376 # func_strip_suffix prefix name
18377 func_stripname ()
18378 {
18379   case ${2} in
18380     .*) func_stripname_result=`$ECHO "X${3}" \
18381            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18382     *)  func_stripname_result=`$ECHO "X${3}" \
18383            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18384   esac
18385 }
18386
18387 # sed scripts:
18388 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18389 my_sed_long_arg='1s/^-[^=]*=//'
18390
18391 # func_opt_split
18392 func_opt_split ()
18393 {
18394   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18395   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18396 }
18397
18398 # func_lo2o object
18399 func_lo2o ()
18400 {
18401   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18402 }
18403
18404 # func_xform libobj-or-source
18405 func_xform ()
18406 {
18407   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18408 }
18409
18410 # func_arith arithmetic-term...
18411 func_arith ()
18412 {
18413   func_arith_result=`expr "$@"`
18414 }
18415
18416 # func_len string
18417 # STRING may not start with a hyphen.
18418 func_len ()
18419 {
18420   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18421 }
18422
18423 _LT_EOF
18424 esac
18425
18426 case $lt_shell_append in
18427   yes)
18428     cat << \_LT_EOF >> "$cfgfile"
18429
18430 # func_append var value
18431 # Append VALUE to the end of shell variable VAR.
18432 func_append ()
18433 {
18434   eval "$1+=\$2"
18435 }
18436 _LT_EOF
18437     ;;
18438   *)
18439     cat << \_LT_EOF >> "$cfgfile"
18440
18441 # func_append var value
18442 # Append VALUE to the end of shell variable VAR.
18443 func_append ()
18444 {
18445   eval "$1=\$$1\$2"
18446 }
18447
18448 _LT_EOF
18449     ;;
18450   esac
18451
18452
18453   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18454     || (rm -f "$cfgfile"; exit 1)
18455
18456   mv -f "$cfgfile" "$ofile" ||
18457     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18458   chmod +x "$ofile"
18459
18460
18461     cat <<_LT_EOF >> "$ofile"
18462
18463 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18464
18465 # The linker used to build libraries.
18466 LD=$lt_LD_CXX
18467
18468 # Commands used to build an old-style archive.
18469 old_archive_cmds=$lt_old_archive_cmds_CXX
18470
18471 # A language specific compiler.
18472 CC=$lt_compiler_CXX
18473
18474 # Is the compiler the GNU compiler?
18475 with_gcc=$GCC_CXX
18476
18477 # Compiler flag to turn off builtin functions.
18478 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18479
18480 # How to pass a linker flag through the compiler.
18481 wl=$lt_lt_prog_compiler_wl_CXX
18482
18483 # Additional compiler flags for building library objects.
18484 pic_flag=$lt_lt_prog_compiler_pic_CXX
18485
18486 # Compiler flag to prevent dynamic linking.
18487 link_static_flag=$lt_lt_prog_compiler_static_CXX
18488
18489 # Does compiler simultaneously support -c and -o options?
18490 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18491
18492 # Whether or not to add -lc for building shared libraries.
18493 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18494
18495 # Whether or not to disallow shared libs when runtime libs are static.
18496 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18497
18498 # Compiler flag to allow reflexive dlopens.
18499 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18500
18501 # Compiler flag to generate shared objects directly from archives.
18502 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18503
18504 # Whether the compiler copes with passing no objects directly.
18505 compiler_needs_object=$lt_compiler_needs_object_CXX
18506
18507 # Create an old-style archive from a shared archive.
18508 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18509
18510 # Create a temporary old-style archive to link instead of a shared archive.
18511 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18512
18513 # Commands used to build a shared archive.
18514 archive_cmds=$lt_archive_cmds_CXX
18515 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18516
18517 # Commands used to build a loadable module if different from building
18518 # a shared archive.
18519 module_cmds=$lt_module_cmds_CXX
18520 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18521
18522 # Whether we are building with GNU ld or not.
18523 with_gnu_ld=$lt_with_gnu_ld_CXX
18524
18525 # Flag that allows shared libraries with undefined symbols to be built.
18526 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18527
18528 # Flag that enforces no undefined symbols.
18529 no_undefined_flag=$lt_no_undefined_flag_CXX
18530
18531 # Flag to hardcode \$libdir into a binary during linking.
18532 # This must work even if \$libdir does not exist
18533 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18534
18535 # If ld is used when linking, flag to hardcode \$libdir into a binary
18536 # during linking.  This must work even if \$libdir does not exist.
18537 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18538
18539 # Whether we need a single "-rpath" flag with a separated argument.
18540 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18541
18542 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18543 # DIR into the resulting binary.
18544 hardcode_direct=$hardcode_direct_CXX
18545
18546 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18547 # DIR into the resulting binary and the resulting library dependency is
18548 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18549 # library is relocated.
18550 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18551
18552 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18553 # into the resulting binary.
18554 hardcode_minus_L=$hardcode_minus_L_CXX
18555
18556 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18557 # into the resulting binary.
18558 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18559
18560 # Set to "yes" if building a shared library automatically hardcodes DIR
18561 # into the library and all subsequent libraries and executables linked
18562 # against it.
18563 hardcode_automatic=$hardcode_automatic_CXX
18564
18565 # Set to yes if linker adds runtime paths of dependent libraries
18566 # to runtime path list.
18567 inherit_rpath=$inherit_rpath_CXX
18568
18569 # Whether libtool must link a program against all its dependency libraries.
18570 link_all_deplibs=$link_all_deplibs_CXX
18571
18572 # Fix the shell variable \$srcfile for the compiler.
18573 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18574
18575 # Set to "yes" if exported symbols are required.
18576 always_export_symbols=$always_export_symbols_CXX
18577
18578 # The commands to list exported symbols.
18579 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18580
18581 # Symbols that should not be listed in the preloaded symbols.
18582 exclude_expsyms=$lt_exclude_expsyms_CXX
18583
18584 # Symbols that must always be exported.
18585 include_expsyms=$lt_include_expsyms_CXX
18586
18587 # Commands necessary for linking programs (against libraries) with templates.
18588 prelink_cmds=$lt_prelink_cmds_CXX
18589
18590 # Specify filename containing input files.
18591 file_list_spec=$lt_file_list_spec_CXX
18592
18593 # How to hardcode a shared library path into an executable.
18594 hardcode_action=$hardcode_action_CXX
18595
18596 # The directories searched by this compiler when creating a shared library.
18597 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18598
18599 # Dependencies to place before and after the objects being linked to
18600 # create a shared library.
18601 predep_objects=$lt_predep_objects_CXX
18602 postdep_objects=$lt_postdep_objects_CXX
18603 predeps=$lt_predeps_CXX
18604 postdeps=$lt_postdeps_CXX
18605
18606 # The library search path used internally by the compiler when linking
18607 # a shared library.
18608 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18609
18610 # ### END LIBTOOL TAG CONFIG: CXX
18611 _LT_EOF
18612
18613  ;;
18614
18615   esac
18616 done # for ac_tag
18617
18618
18619 as_fn_exit 0
18620 _ACEOF
18621 ac_clean_files=$ac_clean_files_save
18622
18623 test $ac_write_fail = 0 ||
18624   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18625
18626
18627 # configure is writing to config.log, and then calls config.status.
18628 # config.status does its own redirection, appending to config.log.
18629 # Unfortunately, on DOS this fails, as config.log is still kept open
18630 # by configure, so config.status won't be able to write to it; its
18631 # output is simply discarded.  So we exec the FD to /dev/null,
18632 # effectively closing config.log, so it can be properly (re)opened and
18633 # appended to by config.status.  When coming back to configure, we
18634 # need to make the FD available again.
18635 if test "$no_create" != yes; then
18636   ac_cs_success=:
18637   ac_config_status_args=
18638   test "$silent" = yes &&
18639     ac_config_status_args="$ac_config_status_args --quiet"
18640   exec 5>/dev/null
18641   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18642   exec 5>>config.log
18643   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18644   # would make configure fail if this is the last instruction.
18645   $ac_cs_success || as_fn_exit 1
18646 fi
18647 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18648   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18649 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18650 fi
18651