Updated version and changelog.
[profile/ivi/libmm-sound.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for avsystem 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='avsystem'
700 PACKAGE_TARNAME='avsystem'
701 PACKAGE_VERSION='1.0'
702 PACKAGE_STRING='avsystem 1.0'
703 PACKAGE_BUGREPORT=''
704 PACKAGE_URL=''
705
706 ac_header_list=
707 # Factoring default headers for most tests.
708 ac_includes_default="\
709 #include <stdio.h>
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
712 #endif
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
715 #endif
716 #ifdef STDC_HEADERS
717 # include <stdlib.h>
718 # include <stddef.h>
719 #else
720 # ifdef HAVE_STDLIB_H
721 #  include <stdlib.h>
722 # endif
723 #endif
724 #ifdef HAVE_STRING_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726 #  include <memory.h>
727 # endif
728 # include <string.h>
729 #endif
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
732 #endif
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
735 #endif
736 #ifdef HAVE_STDINT_H
737 # include <stdint.h>
738 #endif
739 #ifdef HAVE_UNISTD_H
740 # include <unistd.h>
741 #endif"
742
743 ac_subst_vars='am__EXEEXT_FALSE
744 am__EXEEXT_TRUE
745 LTLIBOBJS
746 ALLOCA
747 USE_PULSE_FALSE
748 USE_PULSE_TRUE
749 PULSE_LIBS
750 PULSE_CFLAGS
751 HEYNOTI_LIBS
752 HEYNOTI_CFLAGS
753 VCONF_LIBS
754 VCONF_CFLAGS
755 GLIB2_LIBS
756 GLIB2_CFLAGS
757 AUDIOSESSIONMGR_LIBS
758 AUDIOSESSIONMGR_CFLAGS
759 MMSESSION_LIBS
760 MMSESSION_CFLAGS
761 MMLOG_LIBS
762 MMLOG_CFLAGS
763 MMCOMMON_LIBS
764 MMCOMMON_CFLAGS
765 AVSYSTEM_LIBS
766 AVSYSTEM_CFLAGS
767 PKG_CONFIG_LIBDIR
768 PKG_CONFIG_PATH
769 PKG_CONFIG
770 IS_SDK_FALSE
771 IS_SDK_TRUE
772 OTOOL64
773 OTOOL
774 LIPO
775 NMEDIT
776 DSYMUTIL
777 lt_ECHO
778 RANLIB
779 AR
780 OBJDUMP
781 LN_S
782 NM
783 ac_ct_DUMPBIN
784 DUMPBIN
785 LD
786 FGREP
787 SED
788 host_os
789 host_vendor
790 host_cpu
791 host
792 build_os
793 build_vendor
794 build_cpu
795 build
796 LIBTOOL
797 LIBOBJS
798 EGREP
799 GREP
800 CPP
801 am__fastdepCC_FALSE
802 am__fastdepCC_TRUE
803 CCDEPMODE
804 AMDEPBACKSLASH
805 AMDEP_FALSE
806 AMDEP_TRUE
807 am__quote
808 am__include
809 DEPDIR
810 OBJEXT
811 EXEEXT
812 ac_ct_CC
813 CPPFLAGS
814 LDFLAGS
815 CFLAGS
816 CC
817 am__untar
818 am__tar
819 AMTAR
820 am__leading_dot
821 SET_MAKE
822 AWK
823 mkdir_p
824 MKDIR_P
825 INSTALL_STRIP_PROGRAM
826 STRIP
827 install_sh
828 MAKEINFO
829 AUTOHEADER
830 AUTOMAKE
831 AUTOCONF
832 ACLOCAL
833 VERSION
834 PACKAGE
835 CYGPATH_W
836 am__isrc
837 INSTALL_DATA
838 INSTALL_SCRIPT
839 INSTALL_PROGRAM
840 target_alias
841 host_alias
842 build_alias
843 LIBS
844 ECHO_T
845 ECHO_N
846 ECHO_C
847 DEFS
848 mandir
849 localedir
850 libdir
851 psdir
852 pdfdir
853 dvidir
854 htmldir
855 infodir
856 docdir
857 oldincludedir
858 includedir
859 localstatedir
860 sharedstatedir
861 sysconfdir
862 datadir
863 datarootdir
864 libexecdir
865 sbindir
866 bindir
867 program_transform_name
868 prefix
869 exec_prefix
870 PACKAGE_URL
871 PACKAGE_BUGREPORT
872 PACKAGE_STRING
873 PACKAGE_VERSION
874 PACKAGE_TARNAME
875 PACKAGE_NAME
876 PATH_SEPARATOR
877 SHELL'
878 ac_subst_files=''
879 ac_user_opts='
880 enable_option_checking
881 enable_dependency_tracking
882 enable_shared
883 enable_static
884 with_pic
885 enable_fast_install
886 with_gnu_ld
887 enable_libtool_lock
888 enable_sdk
889 enable_pulse
890 '
891       ac_precious_vars='build_alias
892 host_alias
893 target_alias
894 CC
895 CFLAGS
896 LDFLAGS
897 LIBS
898 CPPFLAGS
899 CPP
900 PKG_CONFIG
901 PKG_CONFIG_PATH
902 PKG_CONFIG_LIBDIR
903 AVSYSTEM_CFLAGS
904 AVSYSTEM_LIBS
905 MMCOMMON_CFLAGS
906 MMCOMMON_LIBS
907 MMLOG_CFLAGS
908 MMLOG_LIBS
909 MMSESSION_CFLAGS
910 MMSESSION_LIBS
911 AUDIOSESSIONMGR_CFLAGS
912 AUDIOSESSIONMGR_LIBS
913 GLIB2_CFLAGS
914 GLIB2_LIBS
915 VCONF_CFLAGS
916 VCONF_LIBS
917 HEYNOTI_CFLAGS
918 HEYNOTI_LIBS
919 PULSE_CFLAGS
920 PULSE_LIBS'
921
922
923 # Initialize some variables set by options.
924 ac_init_help=
925 ac_init_version=false
926 ac_unrecognized_opts=
927 ac_unrecognized_sep=
928 # The variables have the same names as the options, with
929 # dashes changed to underlines.
930 cache_file=/dev/null
931 exec_prefix=NONE
932 no_create=
933 no_recursion=
934 prefix=NONE
935 program_prefix=NONE
936 program_suffix=NONE
937 program_transform_name=s,x,x,
938 silent=
939 site=
940 srcdir=
941 verbose=
942 x_includes=NONE
943 x_libraries=NONE
944
945 # Installation directory options.
946 # These are left unexpanded so users can "make install exec_prefix=/foo"
947 # and all the variables that are supposed to be based on exec_prefix
948 # by default will actually change.
949 # Use braces instead of parens because sh, perl, etc. also accept them.
950 # (The list follows the same order as the GNU Coding Standards.)
951 bindir='${exec_prefix}/bin'
952 sbindir='${exec_prefix}/sbin'
953 libexecdir='${exec_prefix}/libexec'
954 datarootdir='${prefix}/share'
955 datadir='${datarootdir}'
956 sysconfdir='${prefix}/etc'
957 sharedstatedir='${prefix}/com'
958 localstatedir='${prefix}/var'
959 includedir='${prefix}/include'
960 oldincludedir='/usr/include'
961 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
962 infodir='${datarootdir}/info'
963 htmldir='${docdir}'
964 dvidir='${docdir}'
965 pdfdir='${docdir}'
966 psdir='${docdir}'
967 libdir='${exec_prefix}/lib'
968 localedir='${datarootdir}/locale'
969 mandir='${datarootdir}/man'
970
971 ac_prev=
972 ac_dashdash=
973 for ac_option
974 do
975   # If the previous option needs an argument, assign it.
976   if test -n "$ac_prev"; then
977     eval $ac_prev=\$ac_option
978     ac_prev=
979     continue
980   fi
981
982   case $ac_option in
983   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
984   *=)   ac_optarg= ;;
985   *)    ac_optarg=yes ;;
986   esac
987
988   # Accept the important Cygnus configure options, so we can diagnose typos.
989
990   case $ac_dashdash$ac_option in
991   --)
992     ac_dashdash=yes ;;
993
994   -bindir | --bindir | --bindi | --bind | --bin | --bi)
995     ac_prev=bindir ;;
996   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
997     bindir=$ac_optarg ;;
998
999   -build | --build | --buil | --bui | --bu)
1000     ac_prev=build_alias ;;
1001   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1002     build_alias=$ac_optarg ;;
1003
1004   -cache-file | --cache-file | --cache-fil | --cache-fi \
1005   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1006     ac_prev=cache_file ;;
1007   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1008   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1009     cache_file=$ac_optarg ;;
1010
1011   --config-cache | -C)
1012     cache_file=config.cache ;;
1013
1014   -datadir | --datadir | --datadi | --datad)
1015     ac_prev=datadir ;;
1016   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1017     datadir=$ac_optarg ;;
1018
1019   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1020   | --dataroo | --dataro | --datar)
1021     ac_prev=datarootdir ;;
1022   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1023   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1024     datarootdir=$ac_optarg ;;
1025
1026   -disable-* | --disable-*)
1027     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1028     # Reject names that are not valid shell variable names.
1029     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030       as_fn_error $? "invalid feature name: $ac_useropt"
1031     ac_useropt_orig=$ac_useropt
1032     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033     case $ac_user_opts in
1034       *"
1035 "enable_$ac_useropt"
1036 "*) ;;
1037       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1038          ac_unrecognized_sep=', ';;
1039     esac
1040     eval enable_$ac_useropt=no ;;
1041
1042   -docdir | --docdir | --docdi | --doc | --do)
1043     ac_prev=docdir ;;
1044   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045     docdir=$ac_optarg ;;
1046
1047   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1048     ac_prev=dvidir ;;
1049   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050     dvidir=$ac_optarg ;;
1051
1052   -enable-* | --enable-*)
1053     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054     # Reject names that are not valid shell variable names.
1055     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056       as_fn_error $? "invalid feature name: $ac_useropt"
1057     ac_useropt_orig=$ac_useropt
1058     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059     case $ac_user_opts in
1060       *"
1061 "enable_$ac_useropt"
1062 "*) ;;
1063       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1064          ac_unrecognized_sep=', ';;
1065     esac
1066     eval enable_$ac_useropt=\$ac_optarg ;;
1067
1068   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1069   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1070   | --exec | --exe | --ex)
1071     ac_prev=exec_prefix ;;
1072   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1073   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1074   | --exec=* | --exe=* | --ex=*)
1075     exec_prefix=$ac_optarg ;;
1076
1077   -gas | --gas | --ga | --g)
1078     # Obsolete; use --with-gas.
1079     with_gas=yes ;;
1080
1081   -help | --help | --hel | --he | -h)
1082     ac_init_help=long ;;
1083   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1084     ac_init_help=recursive ;;
1085   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1086     ac_init_help=short ;;
1087
1088   -host | --host | --hos | --ho)
1089     ac_prev=host_alias ;;
1090   -host=* | --host=* | --hos=* | --ho=*)
1091     host_alias=$ac_optarg ;;
1092
1093   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1094     ac_prev=htmldir ;;
1095   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1096   | --ht=*)
1097     htmldir=$ac_optarg ;;
1098
1099   -includedir | --includedir | --includedi | --included | --include \
1100   | --includ | --inclu | --incl | --inc)
1101     ac_prev=includedir ;;
1102   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1103   | --includ=* | --inclu=* | --incl=* | --inc=*)
1104     includedir=$ac_optarg ;;
1105
1106   -infodir | --infodir | --infodi | --infod | --info | --inf)
1107     ac_prev=infodir ;;
1108   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1109     infodir=$ac_optarg ;;
1110
1111   -libdir | --libdir | --libdi | --libd)
1112     ac_prev=libdir ;;
1113   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1114     libdir=$ac_optarg ;;
1115
1116   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1117   | --libexe | --libex | --libe)
1118     ac_prev=libexecdir ;;
1119   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1120   | --libexe=* | --libex=* | --libe=*)
1121     libexecdir=$ac_optarg ;;
1122
1123   -localedir | --localedir | --localedi | --localed | --locale)
1124     ac_prev=localedir ;;
1125   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1126     localedir=$ac_optarg ;;
1127
1128   -localstatedir | --localstatedir | --localstatedi | --localstated \
1129   | --localstate | --localstat | --localsta | --localst | --locals)
1130     ac_prev=localstatedir ;;
1131   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1132   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1133     localstatedir=$ac_optarg ;;
1134
1135   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1136     ac_prev=mandir ;;
1137   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1138     mandir=$ac_optarg ;;
1139
1140   -nfp | --nfp | --nf)
1141     # Obsolete; use --without-fp.
1142     with_fp=no ;;
1143
1144   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1145   | --no-cr | --no-c | -n)
1146     no_create=yes ;;
1147
1148   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1149   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1150     no_recursion=yes ;;
1151
1152   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1153   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1154   | --oldin | --oldi | --old | --ol | --o)
1155     ac_prev=oldincludedir ;;
1156   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1157   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1158   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1159     oldincludedir=$ac_optarg ;;
1160
1161   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1162     ac_prev=prefix ;;
1163   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1164     prefix=$ac_optarg ;;
1165
1166   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1167   | --program-pre | --program-pr | --program-p)
1168     ac_prev=program_prefix ;;
1169   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1170   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1171     program_prefix=$ac_optarg ;;
1172
1173   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1174   | --program-suf | --program-su | --program-s)
1175     ac_prev=program_suffix ;;
1176   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1177   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1178     program_suffix=$ac_optarg ;;
1179
1180   -program-transform-name | --program-transform-name \
1181   | --program-transform-nam | --program-transform-na \
1182   | --program-transform-n | --program-transform- \
1183   | --program-transform | --program-transfor \
1184   | --program-transfo | --program-transf \
1185   | --program-trans | --program-tran \
1186   | --progr-tra | --program-tr | --program-t)
1187     ac_prev=program_transform_name ;;
1188   -program-transform-name=* | --program-transform-name=* \
1189   | --program-transform-nam=* | --program-transform-na=* \
1190   | --program-transform-n=* | --program-transform-=* \
1191   | --program-transform=* | --program-transfor=* \
1192   | --program-transfo=* | --program-transf=* \
1193   | --program-trans=* | --program-tran=* \
1194   | --progr-tra=* | --program-tr=* | --program-t=*)
1195     program_transform_name=$ac_optarg ;;
1196
1197   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1198     ac_prev=pdfdir ;;
1199   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1200     pdfdir=$ac_optarg ;;
1201
1202   -psdir | --psdir | --psdi | --psd | --ps)
1203     ac_prev=psdir ;;
1204   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1205     psdir=$ac_optarg ;;
1206
1207   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1208   | -silent | --silent | --silen | --sile | --sil)
1209     silent=yes ;;
1210
1211   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1212     ac_prev=sbindir ;;
1213   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1214   | --sbi=* | --sb=*)
1215     sbindir=$ac_optarg ;;
1216
1217   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1218   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1219   | --sharedst | --shareds | --shared | --share | --shar \
1220   | --sha | --sh)
1221     ac_prev=sharedstatedir ;;
1222   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1223   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1224   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1225   | --sha=* | --sh=*)
1226     sharedstatedir=$ac_optarg ;;
1227
1228   -site | --site | --sit)
1229     ac_prev=site ;;
1230   -site=* | --site=* | --sit=*)
1231     site=$ac_optarg ;;
1232
1233   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1234     ac_prev=srcdir ;;
1235   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1236     srcdir=$ac_optarg ;;
1237
1238   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1239   | --syscon | --sysco | --sysc | --sys | --sy)
1240     ac_prev=sysconfdir ;;
1241   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1242   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1243     sysconfdir=$ac_optarg ;;
1244
1245   -target | --target | --targe | --targ | --tar | --ta | --t)
1246     ac_prev=target_alias ;;
1247   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1248     target_alias=$ac_optarg ;;
1249
1250   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1251     verbose=yes ;;
1252
1253   -version | --version | --versio | --versi | --vers | -V)
1254     ac_init_version=: ;;
1255
1256   -with-* | --with-*)
1257     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1258     # Reject names that are not valid shell variable names.
1259     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260       as_fn_error $? "invalid package name: $ac_useropt"
1261     ac_useropt_orig=$ac_useropt
1262     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263     case $ac_user_opts in
1264       *"
1265 "with_$ac_useropt"
1266 "*) ;;
1267       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1268          ac_unrecognized_sep=', ';;
1269     esac
1270     eval with_$ac_useropt=\$ac_optarg ;;
1271
1272   -without-* | --without-*)
1273     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1274     # Reject names that are not valid shell variable names.
1275     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276       as_fn_error $? "invalid package name: $ac_useropt"
1277     ac_useropt_orig=$ac_useropt
1278     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279     case $ac_user_opts in
1280       *"
1281 "with_$ac_useropt"
1282 "*) ;;
1283       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1284          ac_unrecognized_sep=', ';;
1285     esac
1286     eval with_$ac_useropt=no ;;
1287
1288   --x)
1289     # Obsolete; use --with-x.
1290     with_x=yes ;;
1291
1292   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1293   | --x-incl | --x-inc | --x-in | --x-i)
1294     ac_prev=x_includes ;;
1295   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1296   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1297     x_includes=$ac_optarg ;;
1298
1299   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1300   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1301     ac_prev=x_libraries ;;
1302   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1303   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1304     x_libraries=$ac_optarg ;;
1305
1306   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1307 Try \`$0 --help' for more information"
1308     ;;
1309
1310   *=*)
1311     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1312     # Reject names that are not valid shell variable names.
1313     case $ac_envvar in #(
1314       '' | [0-9]* | *[!_$as_cr_alnum]* )
1315       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1316     esac
1317     eval $ac_envvar=\$ac_optarg
1318     export $ac_envvar ;;
1319
1320   *)
1321     # FIXME: should be removed in autoconf 3.0.
1322     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1323     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1324       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1325     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1326     ;;
1327
1328   esac
1329 done
1330
1331 if test -n "$ac_prev"; then
1332   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1333   as_fn_error $? "missing argument to $ac_option"
1334 fi
1335
1336 if test -n "$ac_unrecognized_opts"; then
1337   case $enable_option_checking in
1338     no) ;;
1339     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1340     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1341   esac
1342 fi
1343
1344 # Check all directory arguments for consistency.
1345 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346                 datadir sysconfdir sharedstatedir localstatedir includedir \
1347                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348                 libdir localedir mandir
1349 do
1350   eval ac_val=\$$ac_var
1351   # Remove trailing slashes.
1352   case $ac_val in
1353     */ )
1354       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1355       eval $ac_var=\$ac_val;;
1356   esac
1357   # Be sure to have absolute directory names.
1358   case $ac_val in
1359     [\\/$]* | ?:[\\/]* )  continue;;
1360     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1361   esac
1362   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1363 done
1364
1365 # There might be people who depend on the old broken behavior: `$host'
1366 # used to hold the argument of --host etc.
1367 # FIXME: To remove some day.
1368 build=$build_alias
1369 host=$host_alias
1370 target=$target_alias
1371
1372 # FIXME: To remove some day.
1373 if test "x$host_alias" != x; then
1374   if test "x$build_alias" = x; then
1375     cross_compiling=maybe
1376     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1377     If a cross compiler is detected then cross compile mode will be used" >&2
1378   elif test "x$build_alias" != "x$host_alias"; then
1379     cross_compiling=yes
1380   fi
1381 fi
1382
1383 ac_tool_prefix=
1384 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385
1386 test "$silent" = yes && exec 6>/dev/null
1387
1388
1389 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1390 ac_ls_di=`ls -di .` &&
1391 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1392   as_fn_error $? "working directory cannot be determined"
1393 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394   as_fn_error $? "pwd does not report name of working directory"
1395
1396
1397 # Find the source files, if location was not specified.
1398 if test -z "$srcdir"; then
1399   ac_srcdir_defaulted=yes
1400   # Try the directory containing this script, then the parent directory.
1401   ac_confdir=`$as_dirname -- "$as_myself" ||
1402 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403          X"$as_myself" : 'X\(//\)[^/]' \| \
1404          X"$as_myself" : 'X\(//\)$' \| \
1405          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1406 $as_echo X"$as_myself" |
1407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408             s//\1/
1409             q
1410           }
1411           /^X\(\/\/\)[^/].*/{
1412             s//\1/
1413             q
1414           }
1415           /^X\(\/\/\)$/{
1416             s//\1/
1417             q
1418           }
1419           /^X\(\/\).*/{
1420             s//\1/
1421             q
1422           }
1423           s/.*/./; q'`
1424   srcdir=$ac_confdir
1425   if test ! -r "$srcdir/$ac_unique_file"; then
1426     srcdir=..
1427   fi
1428 else
1429   ac_srcdir_defaulted=no
1430 fi
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1434 fi
1435 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436 ac_abs_confdir=`(
1437         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1438         pwd)`
1439 # When building in place, set srcdir=.
1440 if test "$ac_abs_confdir" = "$ac_pwd"; then
1441   srcdir=.
1442 fi
1443 # Remove unnecessary trailing slashes from srcdir.
1444 # Double slashes in file names in object file debugging info
1445 # mess up M-x gdb in Emacs.
1446 case $srcdir in
1447 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448 esac
1449 for ac_var in $ac_precious_vars; do
1450   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451   eval ac_env_${ac_var}_value=\$${ac_var}
1452   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454 done
1455
1456 #
1457 # Report the --help message.
1458 #
1459 if test "$ac_init_help" = "long"; then
1460   # Omit some internal or obsolete options to make the list less imposing.
1461   # This message is too long to be a string in the A/UX 3.1 sh.
1462   cat <<_ACEOF
1463 \`configure' configures avsystem 1.0 to adapt to many kinds of systems.
1464
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE.  See below for descriptions of some of the useful variables.
1469
1470 Defaults for the options are specified in brackets.
1471
1472 Configuration:
1473   -h, --help              display this help and exit
1474       --help=short        display options specific to this package
1475       --help=recursive    display the short help of all the included packages
1476   -V, --version           display version information and exit
1477   -q, --quiet, --silent   do not print \`checking ...' messages
1478       --cache-file=FILE   cache test results in FILE [disabled]
1479   -C, --config-cache      alias for \`--cache-file=config.cache'
1480   -n, --no-create         do not create output files
1481       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1482
1483 Installation directories:
1484   --prefix=PREFIX         install architecture-independent files in PREFIX
1485                           [$ac_default_prefix]
1486   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1487                           [PREFIX]
1488
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1493
1494 For better control, use the options below.
1495
1496 Fine tuning of the installation directories:
1497   --bindir=DIR            user executables [EPREFIX/bin]
1498   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1499   --libexecdir=DIR        program executables [EPREFIX/libexec]
1500   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1501   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1502   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1503   --libdir=DIR            object code libraries [EPREFIX/lib]
1504   --includedir=DIR        C header files [PREFIX/include]
1505   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1506   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1507   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1508   --infodir=DIR           info documentation [DATAROOTDIR/info]
1509   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1510   --mandir=DIR            man documentation [DATAROOTDIR/man]
1511   --docdir=DIR            documentation root [DATAROOTDIR/doc/avsystem]
1512   --htmldir=DIR           html documentation [DOCDIR]
1513   --dvidir=DIR            dvi documentation [DOCDIR]
1514   --pdfdir=DIR            pdf documentation [DOCDIR]
1515   --psdir=DIR             ps documentation [DOCDIR]
1516 _ACEOF
1517
1518   cat <<\_ACEOF
1519
1520 Program names:
1521   --program-prefix=PREFIX            prepend PREFIX to installed program names
1522   --program-suffix=SUFFIX            append SUFFIX to installed program names
1523   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1524
1525 System types:
1526   --build=BUILD     configure for building on BUILD [guessed]
1527   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1528 _ACEOF
1529 fi
1530
1531 if test -n "$ac_init_help"; then
1532   case $ac_init_help in
1533      short | recursive ) echo "Configuration of avsystem 1.0:";;
1534    esac
1535   cat <<\_ACEOF
1536
1537 Optional Features:
1538   --disable-option-checking  ignore unrecognized --enable/--with options
1539   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1540   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1541   --disable-dependency-tracking  speeds up one-time build
1542   --enable-dependency-tracking   do not reject slow dependency extractors
1543   --enable-shared[=PKGS]  build shared libraries [default=yes]
1544   --enable-static[=PKGS]  build static libraries [default=yes]
1545   --enable-fast-install[=PKGS]
1546                           optimize for fast installation [default=yes]
1547   --disable-libtool-lock  avoid locking (might break parallel builds)
1548   --enable-sdk            sdk build
1549   --enable-pulse          enable pulseaudio client
1550
1551 Optional Packages:
1552   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1553   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1554   --with-pic              try to use only PIC/non-PIC objects [default=use
1555                           both]
1556   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1557
1558 Some influential environment variables:
1559   CC          C compiler command
1560   CFLAGS      C compiler flags
1561   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1562               nonstandard directory <lib dir>
1563   LIBS        libraries to pass to the linker, e.g. -l<library>
1564   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1565               you have headers in a nonstandard directory <include dir>
1566   CPP         C preprocessor
1567   PKG_CONFIG  path to pkg-config utility
1568   PKG_CONFIG_PATH
1569               directories to add to pkg-config's search path
1570   PKG_CONFIG_LIBDIR
1571               path overriding pkg-config's built-in search path
1572   AVSYSTEM_CFLAGS
1573               C compiler flags for AVSYSTEM, overriding pkg-config
1574   AVSYSTEM_LIBS
1575               linker flags for AVSYSTEM, overriding pkg-config
1576   MMCOMMON_CFLAGS
1577               C compiler flags for MMCOMMON, overriding pkg-config
1578   MMCOMMON_LIBS
1579               linker flags for MMCOMMON, overriding pkg-config
1580   MMLOG_CFLAGS
1581               C compiler flags for MMLOG, overriding pkg-config
1582   MMLOG_LIBS  linker flags for MMLOG, overriding pkg-config
1583   MMSESSION_CFLAGS
1584               C compiler flags for MMSESSION, overriding pkg-config
1585   MMSESSION_LIBS
1586               linker flags for MMSESSION, overriding pkg-config
1587   AUDIOSESSIONMGR_CFLAGS
1588               C compiler flags for AUDIOSESSIONMGR, overriding pkg-config
1589   AUDIOSESSIONMGR_LIBS
1590               linker flags for AUDIOSESSIONMGR, overriding pkg-config
1591   GLIB2_CFLAGS
1592               C compiler flags for GLIB2, overriding pkg-config
1593   GLIB2_LIBS  linker flags for GLIB2, overriding pkg-config
1594   VCONF_CFLAGS
1595               C compiler flags for VCONF, overriding pkg-config
1596   VCONF_LIBS  linker flags for VCONF, overriding pkg-config
1597   HEYNOTI_CFLAGS
1598               C compiler flags for HEYNOTI, overriding pkg-config
1599   HEYNOTI_LIBS
1600               linker flags for HEYNOTI, overriding pkg-config
1601   PULSE_CFLAGS
1602               C compiler flags for PULSE, overriding pkg-config
1603   PULSE_LIBS  linker flags for PULSE, overriding pkg-config
1604
1605 Use these variables to override the choices made by `configure' or to help
1606 it to find libraries and programs with nonstandard names/locations.
1607
1608 Report bugs to the package provider.
1609 _ACEOF
1610 ac_status=$?
1611 fi
1612
1613 if test "$ac_init_help" = "recursive"; then
1614   # If there are subdirs, report their specific --help.
1615   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1616     test -d "$ac_dir" ||
1617       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1618       continue
1619     ac_builddir=.
1620
1621 case "$ac_dir" in
1622 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *)
1624   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1625   # A ".." for each directory in $ac_dir_suffix.
1626   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1627   case $ac_top_builddir_sub in
1628   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1630   esac ;;
1631 esac
1632 ac_abs_top_builddir=$ac_pwd
1633 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634 # for backward compatibility:
1635 ac_top_builddir=$ac_top_build_prefix
1636
1637 case $srcdir in
1638   .)  # We are building in place.
1639     ac_srcdir=.
1640     ac_top_srcdir=$ac_top_builddir_sub
1641     ac_abs_top_srcdir=$ac_pwd ;;
1642   [\\/]* | ?:[\\/]* )  # Absolute name.
1643     ac_srcdir=$srcdir$ac_dir_suffix;
1644     ac_top_srcdir=$srcdir
1645     ac_abs_top_srcdir=$srcdir ;;
1646   *) # Relative name.
1647     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648     ac_top_srcdir=$ac_top_build_prefix$srcdir
1649     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1650 esac
1651 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1652
1653     cd "$ac_dir" || { ac_status=$?; continue; }
1654     # Check for guested configure.
1655     if test -f "$ac_srcdir/configure.gnu"; then
1656       echo &&
1657       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658     elif test -f "$ac_srcdir/configure"; then
1659       echo &&
1660       $SHELL "$ac_srcdir/configure" --help=recursive
1661     else
1662       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1663     fi || ac_status=$?
1664     cd "$ac_pwd" || { ac_status=$?; break; }
1665   done
1666 fi
1667
1668 test -n "$ac_init_help" && exit $ac_status
1669 if $ac_init_version; then
1670   cat <<\_ACEOF
1671 avsystem configure 1.0
1672 generated by GNU Autoconf 2.67
1673
1674 Copyright (C) 2010 Free Software Foundation, Inc.
1675 This configure script is free software; the Free Software Foundation
1676 gives unlimited permission to copy, distribute and modify it.
1677 _ACEOF
1678   exit
1679 fi
1680
1681 ## ------------------------ ##
1682 ## Autoconf initialization. ##
1683 ## ------------------------ ##
1684
1685 # ac_fn_c_try_compile LINENO
1686 # --------------------------
1687 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_compile ()
1689 {
1690   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691   rm -f conftest.$ac_objext
1692   if { { ac_try="$ac_compile"
1693 case "(($ac_try" in
1694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695   *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699   (eval "$ac_compile") 2>conftest.err
1700   ac_status=$?
1701   if test -s conftest.err; then
1702     grep -v '^ *+' conftest.err >conftest.er1
1703     cat conftest.er1 >&5
1704     mv -f conftest.er1 conftest.err
1705   fi
1706   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707   test $ac_status = 0; } && {
1708          test -z "$ac_c_werror_flag" ||
1709          test ! -s conftest.err
1710        } && test -s conftest.$ac_objext; then :
1711   ac_retval=0
1712 else
1713   $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716         ac_retval=1
1717 fi
1718   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719   as_fn_set_status $ac_retval
1720
1721 } # ac_fn_c_try_compile
1722
1723 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1724 # -------------------------------------------------------
1725 # Tests whether HEADER exists and can be compiled using the include files in
1726 # INCLUDES, setting the cache variable VAR accordingly.
1727 ac_fn_c_check_header_compile ()
1728 {
1729   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if eval "test \"\${$3+set}\"" = set; then :
1733   $as_echo_n "(cached) " >&6
1734 else
1735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h.  */
1737 $4
1738 #include <$2>
1739 _ACEOF
1740 if ac_fn_c_try_compile "$LINENO"; then :
1741   eval "$3=yes"
1742 else
1743   eval "$3=no"
1744 fi
1745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1746 fi
1747 eval ac_res=\$$3
1748                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 $as_echo "$ac_res" >&6; }
1750   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751
1752 } # ac_fn_c_check_header_compile
1753
1754 # ac_fn_c_try_cpp LINENO
1755 # ----------------------
1756 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_c_try_cpp ()
1758 {
1759   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760   if { { ac_try="$ac_cpp conftest.$ac_ext"
1761 case "(($ac_try" in
1762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763   *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1768   ac_status=$?
1769   if test -s conftest.err; then
1770     grep -v '^ *+' conftest.err >conftest.er1
1771     cat conftest.er1 >&5
1772     mv -f conftest.er1 conftest.err
1773   fi
1774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775   test $ac_status = 0; } > conftest.i && {
1776          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1777          test ! -s conftest.err
1778        }; then :
1779   ac_retval=0
1780 else
1781   $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784     ac_retval=1
1785 fi
1786   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787   as_fn_set_status $ac_retval
1788
1789 } # ac_fn_c_try_cpp
1790
1791 # ac_fn_c_try_run LINENO
1792 # ----------------------
1793 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1794 # that executables *can* be run.
1795 ac_fn_c_try_run ()
1796 {
1797   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798   if { { ac_try="$ac_link"
1799 case "(($ac_try" in
1800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801   *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805   (eval "$ac_link") 2>&5
1806   ac_status=$?
1807   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1809   { { case "(($ac_try" in
1810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811   *) ac_try_echo=$ac_try;;
1812 esac
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815   (eval "$ac_try") 2>&5
1816   ac_status=$?
1817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818   test $ac_status = 0; }; }; then :
1819   ac_retval=0
1820 else
1821   $as_echo "$as_me: program exited with status $ac_status" >&5
1822        $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825        ac_retval=$ac_status
1826 fi
1827   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829   as_fn_set_status $ac_retval
1830
1831 } # ac_fn_c_try_run
1832
1833 # ac_fn_c_try_link LINENO
1834 # -----------------------
1835 # Try to link conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_c_try_link ()
1837 {
1838   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839   rm -f conftest.$ac_objext conftest$ac_exeext
1840   if { { ac_try="$ac_link"
1841 case "(($ac_try" in
1842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843   *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847   (eval "$ac_link") 2>conftest.err
1848   ac_status=$?
1849   if test -s conftest.err; then
1850     grep -v '^ *+' conftest.err >conftest.er1
1851     cat conftest.er1 >&5
1852     mv -f conftest.er1 conftest.err
1853   fi
1854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855   test $ac_status = 0; } && {
1856          test -z "$ac_c_werror_flag" ||
1857          test ! -s conftest.err
1858        } && test -s conftest$ac_exeext && {
1859          test "$cross_compiling" = yes ||
1860          $as_test_x conftest$ac_exeext
1861        }; then :
1862   ac_retval=0
1863 else
1864   $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.$ac_ext >&5
1866
1867         ac_retval=1
1868 fi
1869   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871   # interfere with the next link command; also delete a directory that is
1872   # left behind by Apple's compiler.  We do this before executing the actions.
1873   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875   as_fn_set_status $ac_retval
1876
1877 } # ac_fn_c_try_link
1878
1879 # ac_fn_c_check_func LINENO FUNC VAR
1880 # ----------------------------------
1881 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1882 ac_fn_c_check_func ()
1883 {
1884   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval "test \"\${$3+set}\"" = set; then :
1888   $as_echo_n "(cached) " >&6
1889 else
1890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h.  */
1892 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1894 #define $2 innocuous_$2
1895
1896 /* System header to define __stub macros and hopefully few prototypes,
1897     which can conflict with char $2 (); below.
1898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1899     <limits.h> exists even on freestanding compilers.  */
1900
1901 #ifdef __STDC__
1902 # include <limits.h>
1903 #else
1904 # include <assert.h>
1905 #endif
1906
1907 #undef $2
1908
1909 /* Override any GCC internal prototype to avoid an error.
1910    Use char because int might match the return type of a GCC
1911    builtin and then its argument prototype would still apply.  */
1912 #ifdef __cplusplus
1913 extern "C"
1914 #endif
1915 char $2 ();
1916 /* The GNU C library defines this for functions which it implements
1917     to always fail with ENOSYS.  Some functions are actually named
1918     something starting with __ and the normal name is an alias.  */
1919 #if defined __stub_$2 || defined __stub___$2
1920 choke me
1921 #endif
1922
1923 int
1924 main ()
1925 {
1926 return $2 ();
1927   ;
1928   return 0;
1929 }
1930 _ACEOF
1931 if ac_fn_c_try_link "$LINENO"; then :
1932   eval "$3=yes"
1933 else
1934   eval "$3=no"
1935 fi
1936 rm -f core conftest.err conftest.$ac_objext \
1937     conftest$ac_exeext conftest.$ac_ext
1938 fi
1939 eval ac_res=\$$3
1940                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1943
1944 } # ac_fn_c_check_func
1945
1946 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1947 # -------------------------------------------------------
1948 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1949 # the include files in INCLUDES and setting the cache variable VAR
1950 # accordingly.
1951 ac_fn_c_check_header_mongrel ()
1952 {
1953   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954   if eval "test \"\${$3+set}\"" = set; then :
1955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1956 $as_echo_n "checking for $2... " >&6; }
1957 if eval "test \"\${$3+set}\"" = set; then :
1958   $as_echo_n "(cached) " >&6
1959 fi
1960 eval ac_res=\$$3
1961                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1963 else
1964   # Is the header compilable?
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1966 $as_echo_n "checking $2 usability... " >&6; }
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h.  */
1969 $4
1970 #include <$2>
1971 _ACEOF
1972 if ac_fn_c_try_compile "$LINENO"; then :
1973   ac_header_compiler=yes
1974 else
1975   ac_header_compiler=no
1976 fi
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1979 $as_echo "$ac_header_compiler" >&6; }
1980
1981 # Is the header present?
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1983 $as_echo_n "checking $2 presence... " >&6; }
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h.  */
1986 #include <$2>
1987 _ACEOF
1988 if ac_fn_c_try_cpp "$LINENO"; then :
1989   ac_header_preproc=yes
1990 else
1991   ac_header_preproc=no
1992 fi
1993 rm -f conftest.err conftest.i conftest.$ac_ext
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1995 $as_echo "$ac_header_preproc" >&6; }
1996
1997 # So?  What about this header?
1998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1999   yes:no: )
2000     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2001 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2002     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2003 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2004     ;;
2005   no:yes:* )
2006     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2007 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2008     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2009 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2010     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2011 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2012     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2013 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2014     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2015 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2016     ;;
2017 esac
2018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019 $as_echo_n "checking for $2... " >&6; }
2020 if eval "test \"\${$3+set}\"" = set; then :
2021   $as_echo_n "(cached) " >&6
2022 else
2023   eval "$3=\$ac_header_compiler"
2024 fi
2025 eval ac_res=\$$3
2026                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2028 fi
2029   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2030
2031 } # ac_fn_c_check_header_mongrel
2032
2033 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2034 # -------------------------------------------
2035 # Tests whether TYPE exists after having included INCLUDES, setting cache
2036 # variable VAR accordingly.
2037 ac_fn_c_check_type ()
2038 {
2039   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041 $as_echo_n "checking for $2... " >&6; }
2042 if eval "test \"\${$3+set}\"" = set; then :
2043   $as_echo_n "(cached) " >&6
2044 else
2045   eval "$3=no"
2046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h.  */
2048 $4
2049 int
2050 main ()
2051 {
2052 if (sizeof ($2))
2053          return 0;
2054   ;
2055   return 0;
2056 }
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h.  */
2061 $4
2062 int
2063 main ()
2064 {
2065 if (sizeof (($2)))
2066             return 0;
2067   ;
2068   return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072
2073 else
2074   eval "$3=yes"
2075 fi
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 fi
2080 eval ac_res=\$$3
2081                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082 $as_echo "$ac_res" >&6; }
2083   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2084
2085 } # ac_fn_c_check_type
2086 cat >config.log <<_ACEOF
2087 This file contains any messages produced by compilers while
2088 running configure, to aid debugging if configure makes a mistake.
2089
2090 It was created by avsystem $as_me 1.0, which was
2091 generated by GNU Autoconf 2.67.  Invocation command line was
2092
2093   $ $0 $@
2094
2095 _ACEOF
2096 exec 5>>config.log
2097 {
2098 cat <<_ASUNAME
2099 ## --------- ##
2100 ## Platform. ##
2101 ## --------- ##
2102
2103 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2104 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2105 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2106 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2107 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2108
2109 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2110 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2111
2112 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2113 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2114 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2115 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2116 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2117 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2118 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2119
2120 _ASUNAME
2121
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 for as_dir in $PATH
2124 do
2125   IFS=$as_save_IFS
2126   test -z "$as_dir" && as_dir=.
2127     $as_echo "PATH: $as_dir"
2128   done
2129 IFS=$as_save_IFS
2130
2131 } >&5
2132
2133 cat >&5 <<_ACEOF
2134
2135
2136 ## ----------- ##
2137 ## Core tests. ##
2138 ## ----------- ##
2139
2140 _ACEOF
2141
2142
2143 # Keep a trace of the command line.
2144 # Strip out --no-create and --no-recursion so they do not pile up.
2145 # Strip out --silent because we don't want to record it for future runs.
2146 # Also quote any args containing shell meta-characters.
2147 # Make two passes to allow for proper duplicate-argument suppression.
2148 ac_configure_args=
2149 ac_configure_args0=
2150 ac_configure_args1=
2151 ac_must_keep_next=false
2152 for ac_pass in 1 2
2153 do
2154   for ac_arg
2155   do
2156     case $ac_arg in
2157     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2158     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2159     | -silent | --silent | --silen | --sile | --sil)
2160       continue ;;
2161     *\'*)
2162       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2163     esac
2164     case $ac_pass in
2165     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2166     2)
2167       as_fn_append ac_configure_args1 " '$ac_arg'"
2168       if test $ac_must_keep_next = true; then
2169         ac_must_keep_next=false # Got value, back to normal.
2170       else
2171         case $ac_arg in
2172           *=* | --config-cache | -C | -disable-* | --disable-* \
2173           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2174           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2175           | -with-* | --with-* | -without-* | --without-* | --x)
2176             case "$ac_configure_args0 " in
2177               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2178             esac
2179             ;;
2180           -* ) ac_must_keep_next=true ;;
2181         esac
2182       fi
2183       as_fn_append ac_configure_args " '$ac_arg'"
2184       ;;
2185     esac
2186   done
2187 done
2188 { ac_configure_args0=; unset ac_configure_args0;}
2189 { ac_configure_args1=; unset ac_configure_args1;}
2190
2191 # When interrupted or exit'd, cleanup temporary files, and complete
2192 # config.log.  We remove comments because anyway the quotes in there
2193 # would cause problems or look ugly.
2194 # WARNING: Use '\'' to represent an apostrophe within the trap.
2195 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2196 trap 'exit_status=$?
2197   # Save into config.log some information that might help in debugging.
2198   {
2199     echo
2200
2201     $as_echo "## ---------------- ##
2202 ## Cache variables. ##
2203 ## ---------------- ##"
2204     echo
2205     # The following way of writing the cache mishandles newlines in values,
2206 (
2207   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2208     eval ac_val=\$$ac_var
2209     case $ac_val in #(
2210     *${as_nl}*)
2211       case $ac_var in #(
2212       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2213 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2214       esac
2215       case $ac_var in #(
2216       _ | IFS | as_nl) ;; #(
2217       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2218       *) { eval $ac_var=; unset $ac_var;} ;;
2219       esac ;;
2220     esac
2221   done
2222   (set) 2>&1 |
2223     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2224     *${as_nl}ac_space=\ *)
2225       sed -n \
2226         "s/'\''/'\''\\\\'\'''\''/g;
2227           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2228       ;; #(
2229     *)
2230       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2231       ;;
2232     esac |
2233     sort
2234 )
2235     echo
2236
2237     $as_echo "## ----------------- ##
2238 ## Output variables. ##
2239 ## ----------------- ##"
2240     echo
2241     for ac_var in $ac_subst_vars
2242     do
2243       eval ac_val=\$$ac_var
2244       case $ac_val in
2245       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2246       esac
2247       $as_echo "$ac_var='\''$ac_val'\''"
2248     done | sort
2249     echo
2250
2251     if test -n "$ac_subst_files"; then
2252       $as_echo "## ------------------- ##
2253 ## File substitutions. ##
2254 ## ------------------- ##"
2255       echo
2256       for ac_var in $ac_subst_files
2257       do
2258         eval ac_val=\$$ac_var
2259         case $ac_val in
2260         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261         esac
2262         $as_echo "$ac_var='\''$ac_val'\''"
2263       done | sort
2264       echo
2265     fi
2266
2267     if test -s confdefs.h; then
2268       $as_echo "## ----------- ##
2269 ## confdefs.h. ##
2270 ## ----------- ##"
2271       echo
2272       cat confdefs.h
2273       echo
2274     fi
2275     test "$ac_signal" != 0 &&
2276       $as_echo "$as_me: caught signal $ac_signal"
2277     $as_echo "$as_me: exit $exit_status"
2278   } >&5
2279   rm -f core *.core core.conftest.* &&
2280     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2281     exit $exit_status
2282 ' 0
2283 for ac_signal in 1 2 13 15; do
2284   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2285 done
2286 ac_signal=0
2287
2288 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2289 rm -f -r conftest* confdefs.h
2290
2291 $as_echo "/* confdefs.h */" > confdefs.h
2292
2293 # Predefined preprocessor variables.
2294
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_NAME "$PACKAGE_NAME"
2297 _ACEOF
2298
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2301 _ACEOF
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2305 _ACEOF
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_STRING "$PACKAGE_STRING"
2309 _ACEOF
2310
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2313 _ACEOF
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_URL "$PACKAGE_URL"
2317 _ACEOF
2318
2319
2320 # Let the site file select an alternate cache file if it wants to.
2321 # Prefer an explicitly selected file to automatically selected ones.
2322 ac_site_file1=NONE
2323 ac_site_file2=NONE
2324 if test -n "$CONFIG_SITE"; then
2325   # We do not want a PATH search for config.site.
2326   case $CONFIG_SITE in #((
2327     -*)  ac_site_file1=./$CONFIG_SITE;;
2328     */*) ac_site_file1=$CONFIG_SITE;;
2329     *)   ac_site_file1=./$CONFIG_SITE;;
2330   esac
2331 elif test "x$prefix" != xNONE; then
2332   ac_site_file1=$prefix/share/config.site
2333   ac_site_file2=$prefix/etc/config.site
2334 else
2335   ac_site_file1=$ac_default_prefix/share/config.site
2336   ac_site_file2=$ac_default_prefix/etc/config.site
2337 fi
2338 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2339 do
2340   test "x$ac_site_file" = xNONE && continue
2341   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2342     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2343 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2344     sed 's/^/| /' "$ac_site_file" >&5
2345     . "$ac_site_file" \
2346       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2348 as_fn_error $? "failed to load site script $ac_site_file
2349 See \`config.log' for more details" "$LINENO" 5 ; }
2350   fi
2351 done
2352
2353 if test -r "$cache_file"; then
2354   # Some versions of bash will fail to source /dev/null (special files
2355   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2356   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2357     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2358 $as_echo "$as_me: loading cache $cache_file" >&6;}
2359     case $cache_file in
2360       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2361       *)                      . "./$cache_file";;
2362     esac
2363   fi
2364 else
2365   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2366 $as_echo "$as_me: creating cache $cache_file" >&6;}
2367   >$cache_file
2368 fi
2369
2370 as_fn_append ac_header_list " stdlib.h"
2371 as_fn_append ac_header_list " unistd.h"
2372 as_fn_append ac_header_list " sys/param.h"
2373 # Check that the precious variables saved in the cache have kept the same
2374 # value.
2375 ac_cache_corrupted=false
2376 for ac_var in $ac_precious_vars; do
2377   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2378   eval ac_new_set=\$ac_env_${ac_var}_set
2379   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2380   eval ac_new_val=\$ac_env_${ac_var}_value
2381   case $ac_old_set,$ac_new_set in
2382     set,)
2383       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2384 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2385       ac_cache_corrupted=: ;;
2386     ,set)
2387       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2388 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2389       ac_cache_corrupted=: ;;
2390     ,);;
2391     *)
2392       if test "x$ac_old_val" != "x$ac_new_val"; then
2393         # differences in whitespace do not lead to failure.
2394         ac_old_val_w=`echo x $ac_old_val`
2395         ac_new_val_w=`echo x $ac_new_val`
2396         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2397           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2398 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2399           ac_cache_corrupted=:
2400         else
2401           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2402 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2403           eval $ac_var=\$ac_old_val
2404         fi
2405         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2406 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2407         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2408 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2409       fi;;
2410   esac
2411   # Pass precious variables to config.status.
2412   if test "$ac_new_set" = set; then
2413     case $ac_new_val in
2414     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2415     *) ac_arg=$ac_var=$ac_new_val ;;
2416     esac
2417     case " $ac_configure_args " in
2418       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2419       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2420     esac
2421   fi
2422 done
2423 if $ac_cache_corrupted; then
2424   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2426   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2427 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2428   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2429 fi
2430 ## -------------------- ##
2431 ## Main body of script. ##
2432 ## -------------------- ##
2433
2434 ac_ext=c
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2439
2440
2441 am__api_version='1.11'
2442
2443 ac_aux_dir=
2444 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2445   if test -f "$ac_dir/install-sh"; then
2446     ac_aux_dir=$ac_dir
2447     ac_install_sh="$ac_aux_dir/install-sh -c"
2448     break
2449   elif test -f "$ac_dir/install.sh"; then
2450     ac_aux_dir=$ac_dir
2451     ac_install_sh="$ac_aux_dir/install.sh -c"
2452     break
2453   elif test -f "$ac_dir/shtool"; then
2454     ac_aux_dir=$ac_dir
2455     ac_install_sh="$ac_aux_dir/shtool install -c"
2456     break
2457   fi
2458 done
2459 if test -z "$ac_aux_dir"; then
2460   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2461 fi
2462
2463 # These three variables are undocumented and unsupported,
2464 # and are intended to be withdrawn in a future Autoconf release.
2465 # They can cause serious problems if a builder's source tree is in a directory
2466 # whose full name contains unusual characters.
2467 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2468 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2469 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2470
2471
2472 # Find a good install program.  We prefer a C program (faster),
2473 # so one script is as good as another.  But avoid the broken or
2474 # incompatible versions:
2475 # SysV /etc/install, /usr/sbin/install
2476 # SunOS /usr/etc/install
2477 # IRIX /sbin/install
2478 # AIX /bin/install
2479 # AmigaOS /C/install, which installs bootblocks on floppy discs
2480 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2481 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2482 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2483 # OS/2's system install, which has a completely different semantic
2484 # ./install, which can be erroneously created by make from ./install.sh.
2485 # Reject install programs that cannot install multiple files.
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2487 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2488 if test -z "$INSTALL"; then
2489 if test "${ac_cv_path_install+set}" = set; then :
2490   $as_echo_n "(cached) " >&6
2491 else
2492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495   IFS=$as_save_IFS
2496   test -z "$as_dir" && as_dir=.
2497     # Account for people who put trailing slashes in PATH elements.
2498 case $as_dir/ in #((
2499   ./ | .// | /[cC]/* | \
2500   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2501   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2502   /usr/ucb/* ) ;;
2503   *)
2504     # OSF1 and SCO ODT 3.0 have their own names for install.
2505     # Don't use installbsd from OSF since it installs stuff as root
2506     # by default.
2507     for ac_prog in ginstall scoinst install; do
2508       for ac_exec_ext in '' $ac_executable_extensions; do
2509         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2510           if test $ac_prog = install &&
2511             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2512             # AIX install.  It has an incompatible calling convention.
2513             :
2514           elif test $ac_prog = install &&
2515             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2516             # program-specific install script used by HP pwplus--don't use.
2517             :
2518           else
2519             rm -rf conftest.one conftest.two conftest.dir
2520             echo one > conftest.one
2521             echo two > conftest.two
2522             mkdir conftest.dir
2523             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2524               test -s conftest.one && test -s conftest.two &&
2525               test -s conftest.dir/conftest.one &&
2526               test -s conftest.dir/conftest.two
2527             then
2528               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2529               break 3
2530             fi
2531           fi
2532         fi
2533       done
2534     done
2535     ;;
2536 esac
2537
2538   done
2539 IFS=$as_save_IFS
2540
2541 rm -rf conftest.one conftest.two conftest.dir
2542
2543 fi
2544   if test "${ac_cv_path_install+set}" = set; then
2545     INSTALL=$ac_cv_path_install
2546   else
2547     # As a last resort, use the slow shell script.  Don't cache a
2548     # value for INSTALL within a source directory, because that will
2549     # break other packages using the cache if that directory is
2550     # removed, or if the value is a relative name.
2551     INSTALL=$ac_install_sh
2552   fi
2553 fi
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2555 $as_echo "$INSTALL" >&6; }
2556
2557 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2558 # It thinks the first close brace ends the variable substitution.
2559 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2560
2561 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2562
2563 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2564
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2566 $as_echo_n "checking whether build environment is sane... " >&6; }
2567 # Just in case
2568 sleep 1
2569 echo timestamp > conftest.file
2570 # Reject unsafe characters in $srcdir or the absolute working directory
2571 # name.  Accept space and tab only in the latter.
2572 am_lf='
2573 '
2574 case `pwd` in
2575   *[\\\"\#\$\&\'\`$am_lf]*)
2576     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2577 esac
2578 case $srcdir in
2579   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2580     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2581 esac
2582
2583 # Do `set' in a subshell so we don't clobber the current shell's
2584 # arguments.  Must try -L first in case configure is actually a
2585 # symlink; some systems play weird games with the mod time of symlinks
2586 # (eg FreeBSD returns the mod time of the symlink's containing
2587 # directory).
2588 if (
2589    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2590    if test "$*" = "X"; then
2591       # -L didn't work.
2592       set X `ls -t "$srcdir/configure" conftest.file`
2593    fi
2594    rm -f conftest.file
2595    if test "$*" != "X $srcdir/configure conftest.file" \
2596       && test "$*" != "X conftest.file $srcdir/configure"; then
2597
2598       # If neither matched, then we have a broken ls.  This can happen
2599       # if, for instance, CONFIG_SHELL is bash and it inherits a
2600       # broken ls alias from the environment.  This has actually
2601       # happened.  Such a system could not be considered "sane".
2602       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2603 alias in your environment" "$LINENO" 5
2604    fi
2605
2606    test "$2" = conftest.file
2607    )
2608 then
2609    # Ok.
2610    :
2611 else
2612    as_fn_error $? "newly created file is older than distributed files!
2613 Check your system clock" "$LINENO" 5
2614 fi
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2616 $as_echo "yes" >&6; }
2617 test "$program_prefix" != NONE &&
2618   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2619 # Use a double $ so make ignores it.
2620 test "$program_suffix" != NONE &&
2621   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2622 # Double any \ or $.
2623 # By default was `s,x,x', remove it if useless.
2624 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2625 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2626
2627 # expand $ac_aux_dir to an absolute path
2628 am_aux_dir=`cd $ac_aux_dir && pwd`
2629
2630 if test x"${MISSING+set}" != xset; then
2631   case $am_aux_dir in
2632   *\ * | *\     *)
2633     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2634   *)
2635     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2636   esac
2637 fi
2638 # Use eval to expand $SHELL
2639 if eval "$MISSING --run true"; then
2640   am_missing_run="$MISSING --run "
2641 else
2642   am_missing_run=
2643   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2644 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2645 fi
2646
2647 if test x"${install_sh}" != xset; then
2648   case $am_aux_dir in
2649   *\ * | *\     *)
2650     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2651   *)
2652     install_sh="\${SHELL} $am_aux_dir/install-sh"
2653   esac
2654 fi
2655
2656 # Installed binaries are usually stripped using `strip' when the user
2657 # run `make install-strip'.  However `strip' might not be the right
2658 # tool to use in cross-compilation environments, therefore Automake
2659 # will honor the `STRIP' environment variable to overrule this program.
2660 if test "$cross_compiling" != no; then
2661   if test -n "$ac_tool_prefix"; then
2662   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2663 set dummy ${ac_tool_prefix}strip; ac_word=$2
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2665 $as_echo_n "checking for $ac_word... " >&6; }
2666 if test "${ac_cv_prog_STRIP+set}" = set; then :
2667   $as_echo_n "(cached) " >&6
2668 else
2669   if test -n "$STRIP"; then
2670   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH
2674 do
2675   IFS=$as_save_IFS
2676   test -z "$as_dir" && as_dir=.
2677     for ac_exec_ext in '' $ac_executable_extensions; do
2678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2679     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2681     break 2
2682   fi
2683 done
2684   done
2685 IFS=$as_save_IFS
2686
2687 fi
2688 fi
2689 STRIP=$ac_cv_prog_STRIP
2690 if test -n "$STRIP"; then
2691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2692 $as_echo "$STRIP" >&6; }
2693 else
2694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2695 $as_echo "no" >&6; }
2696 fi
2697
2698
2699 fi
2700 if test -z "$ac_cv_prog_STRIP"; then
2701   ac_ct_STRIP=$STRIP
2702   # Extract the first word of "strip", so it can be a program name with args.
2703 set dummy strip; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2707   $as_echo_n "(cached) " >&6
2708 else
2709   if test -n "$ac_ct_STRIP"; then
2710   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2714 do
2715   IFS=$as_save_IFS
2716   test -z "$as_dir" && as_dir=.
2717     for ac_exec_ext in '' $ac_executable_extensions; do
2718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2719     ac_cv_prog_ac_ct_STRIP="strip"
2720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721     break 2
2722   fi
2723 done
2724   done
2725 IFS=$as_save_IFS
2726
2727 fi
2728 fi
2729 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2730 if test -n "$ac_ct_STRIP"; then
2731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2732 $as_echo "$ac_ct_STRIP" >&6; }
2733 else
2734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2736 fi
2737
2738   if test "x$ac_ct_STRIP" = x; then
2739     STRIP=":"
2740   else
2741     case $cross_compiling:$ac_tool_warned in
2742 yes:)
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2745 ac_tool_warned=yes ;;
2746 esac
2747     STRIP=$ac_ct_STRIP
2748   fi
2749 else
2750   STRIP="$ac_cv_prog_STRIP"
2751 fi
2752
2753 fi
2754 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2755
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2757 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2758 if test -z "$MKDIR_P"; then
2759   if test "${ac_cv_path_mkdir+set}" = set; then :
2760   $as_echo_n "(cached) " >&6
2761 else
2762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2764 do
2765   IFS=$as_save_IFS
2766   test -z "$as_dir" && as_dir=.
2767     for ac_prog in mkdir gmkdir; do
2768          for ac_exec_ext in '' $ac_executable_extensions; do
2769            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2770            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2771              'mkdir (GNU coreutils) '* | \
2772              'mkdir (coreutils) '* | \
2773              'mkdir (fileutils) '4.1*)
2774                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2775                break 3;;
2776            esac
2777          done
2778        done
2779   done
2780 IFS=$as_save_IFS
2781
2782 fi
2783
2784   test -d ./--version && rmdir ./--version
2785   if test "${ac_cv_path_mkdir+set}" = set; then
2786     MKDIR_P="$ac_cv_path_mkdir -p"
2787   else
2788     # As a last resort, use the slow shell script.  Don't cache a
2789     # value for MKDIR_P within a source directory, because that will
2790     # break other packages using the cache if that directory is
2791     # removed, or if the value is a relative name.
2792     MKDIR_P="$ac_install_sh -d"
2793   fi
2794 fi
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2796 $as_echo "$MKDIR_P" >&6; }
2797
2798 mkdir_p="$MKDIR_P"
2799 case $mkdir_p in
2800   [\\/$]* | ?:[\\/]*) ;;
2801   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2802 esac
2803
2804 for ac_prog in gawk mawk nawk awk
2805 do
2806   # Extract the first word of "$ac_prog", so it can be a program name with args.
2807 set dummy $ac_prog; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if test "${ac_cv_prog_AWK+set}" = set; then :
2811   $as_echo_n "(cached) " >&6
2812 else
2813   if test -n "$AWK"; then
2814   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819   IFS=$as_save_IFS
2820   test -z "$as_dir" && as_dir=.
2821     for ac_exec_ext in '' $ac_executable_extensions; do
2822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823     ac_cv_prog_AWK="$ac_prog"
2824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825     break 2
2826   fi
2827 done
2828   done
2829 IFS=$as_save_IFS
2830
2831 fi
2832 fi
2833 AWK=$ac_cv_prog_AWK
2834 if test -n "$AWK"; then
2835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2836 $as_echo "$AWK" >&6; }
2837 else
2838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2840 fi
2841
2842
2843   test -n "$AWK" && break
2844 done
2845
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2847 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2848 set x ${MAKE-make}
2849 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2850 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2851   $as_echo_n "(cached) " >&6
2852 else
2853   cat >conftest.make <<\_ACEOF
2854 SHELL = /bin/sh
2855 all:
2856         @echo '@@@%%%=$(MAKE)=@@@%%%'
2857 _ACEOF
2858 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2859 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2860   *@@@%%%=?*=@@@%%%*)
2861     eval ac_cv_prog_make_${ac_make}_set=yes;;
2862   *)
2863     eval ac_cv_prog_make_${ac_make}_set=no;;
2864 esac
2865 rm -f conftest.make
2866 fi
2867 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2869 $as_echo "yes" >&6; }
2870   SET_MAKE=
2871 else
2872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2874   SET_MAKE="MAKE=${MAKE-make}"
2875 fi
2876
2877 rm -rf .tst 2>/dev/null
2878 mkdir .tst 2>/dev/null
2879 if test -d .tst; then
2880   am__leading_dot=.
2881 else
2882   am__leading_dot=_
2883 fi
2884 rmdir .tst 2>/dev/null
2885
2886 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2887   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2888   # is not polluted with repeated "-I."
2889   am__isrc=' -I$(srcdir)'
2890   # test to see if srcdir already configured
2891   if test -f $srcdir/config.status; then
2892     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2893   fi
2894 fi
2895
2896 # test whether we have cygpath
2897 if test -z "$CYGPATH_W"; then
2898   if (cygpath --version) >/dev/null 2>/dev/null; then
2899     CYGPATH_W='cygpath -w'
2900   else
2901     CYGPATH_W=echo
2902   fi
2903 fi
2904
2905
2906 # Define the identity of the package.
2907  PACKAGE='avsystem'
2908  VERSION='1.0'
2909
2910
2911 cat >>confdefs.h <<_ACEOF
2912 #define PACKAGE "$PACKAGE"
2913 _ACEOF
2914
2915
2916 cat >>confdefs.h <<_ACEOF
2917 #define VERSION "$VERSION"
2918 _ACEOF
2919
2920 # Some tools Automake needs.
2921
2922 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2923
2924
2925 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2926
2927
2928 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2929
2930
2931 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2932
2933
2934 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2935
2936 # We need awk for the "check" target.  The system "awk" is bad on
2937 # some platforms.
2938 # Always define AMTAR for backward compatibility.
2939
2940 AMTAR=${AMTAR-"${am_missing_run}tar"}
2941
2942 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2943
2944
2945
2946
2947
2948 ac_config_headers="$ac_config_headers config.h:config.hin"
2949
2950
2951
2952
2953 # Checks for programs.
2954 ac_ext=c
2955 ac_cpp='$CPP $CPPFLAGS'
2956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2959 if test -n "$ac_tool_prefix"; then
2960   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2961 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if test "${ac_cv_prog_CC+set}" = set; then :
2965   $as_echo_n "(cached) " >&6
2966 else
2967   if test -n "$CC"; then
2968   ac_cv_prog_CC="$CC" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2972 do
2973   IFS=$as_save_IFS
2974   test -z "$as_dir" && as_dir=.
2975     for ac_exec_ext in '' $ac_executable_extensions; do
2976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979     break 2
2980   fi
2981 done
2982   done
2983 IFS=$as_save_IFS
2984
2985 fi
2986 fi
2987 CC=$ac_cv_prog_CC
2988 if test -n "$CC"; then
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2990 $as_echo "$CC" >&6; }
2991 else
2992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2994 fi
2995
2996
2997 fi
2998 if test -z "$ac_cv_prog_CC"; then
2999   ac_ct_CC=$CC
3000   # Extract the first word of "gcc", so it can be a program name with args.
3001 set dummy gcc; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3005   $as_echo_n "(cached) " >&6
3006 else
3007   if test -n "$ac_ct_CC"; then
3008   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013   IFS=$as_save_IFS
3014   test -z "$as_dir" && as_dir=.
3015     for ac_exec_ext in '' $ac_executable_extensions; do
3016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017     ac_cv_prog_ac_ct_CC="gcc"
3018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019     break 2
3020   fi
3021 done
3022   done
3023 IFS=$as_save_IFS
3024
3025 fi
3026 fi
3027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3028 if test -n "$ac_ct_CC"; then
3029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3030 $as_echo "$ac_ct_CC" >&6; }
3031 else
3032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 fi
3035
3036   if test "x$ac_ct_CC" = x; then
3037     CC=""
3038   else
3039     case $cross_compiling:$ac_tool_warned in
3040 yes:)
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3043 ac_tool_warned=yes ;;
3044 esac
3045     CC=$ac_ct_CC
3046   fi
3047 else
3048   CC="$ac_cv_prog_CC"
3049 fi
3050
3051 if test -z "$CC"; then
3052           if test -n "$ac_tool_prefix"; then
3053     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3054 set dummy ${ac_tool_prefix}cc; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if test "${ac_cv_prog_CC+set}" = set; then :
3058   $as_echo_n "(cached) " >&6
3059 else
3060   if test -n "$CC"; then
3061   ac_cv_prog_CC="$CC" # Let the user override the test.
3062 else
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3065 do
3066   IFS=$as_save_IFS
3067   test -z "$as_dir" && as_dir=.
3068     for ac_exec_ext in '' $ac_executable_extensions; do
3069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070     ac_cv_prog_CC="${ac_tool_prefix}cc"
3071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072     break 2
3073   fi
3074 done
3075   done
3076 IFS=$as_save_IFS
3077
3078 fi
3079 fi
3080 CC=$ac_cv_prog_CC
3081 if test -n "$CC"; then
3082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083 $as_echo "$CC" >&6; }
3084 else
3085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3087 fi
3088
3089
3090   fi
3091 fi
3092 if test -z "$CC"; then
3093   # Extract the first word of "cc", so it can be a program name with args.
3094 set dummy cc; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if test "${ac_cv_prog_CC+set}" = set; then :
3098   $as_echo_n "(cached) " >&6
3099 else
3100   if test -n "$CC"; then
3101   ac_cv_prog_CC="$CC" # Let the user override the test.
3102 else
3103   ac_prog_rejected=no
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107   IFS=$as_save_IFS
3108   test -z "$as_dir" && as_dir=.
3109     for ac_exec_ext in '' $ac_executable_extensions; do
3110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3112        ac_prog_rejected=yes
3113        continue
3114      fi
3115     ac_cv_prog_CC="cc"
3116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117     break 2
3118   fi
3119 done
3120   done
3121 IFS=$as_save_IFS
3122
3123 if test $ac_prog_rejected = yes; then
3124   # We found a bogon in the path, so make sure we never use it.
3125   set dummy $ac_cv_prog_CC
3126   shift
3127   if test $# != 0; then
3128     # We chose a different compiler from the bogus one.
3129     # However, it has the same basename, so the bogon will be chosen
3130     # first if we set CC to just the basename; use the full file name.
3131     shift
3132     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3133   fi
3134 fi
3135 fi
3136 fi
3137 CC=$ac_cv_prog_CC
3138 if test -n "$CC"; then
3139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3140 $as_echo "$CC" >&6; }
3141 else
3142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 fi
3145
3146
3147 fi
3148 if test -z "$CC"; then
3149   if test -n "$ac_tool_prefix"; then
3150   for ac_prog in cl.exe
3151   do
3152     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if test "${ac_cv_prog_CC+set}" = set; then :
3157   $as_echo_n "(cached) " >&6
3158 else
3159   if test -n "$CC"; then
3160   ac_cv_prog_CC="$CC" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165   IFS=$as_save_IFS
3166   test -z "$as_dir" && as_dir=.
3167     for ac_exec_ext in '' $ac_executable_extensions; do
3168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171     break 2
3172   fi
3173 done
3174   done
3175 IFS=$as_save_IFS
3176
3177 fi
3178 fi
3179 CC=$ac_cv_prog_CC
3180 if test -n "$CC"; then
3181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3183 else
3184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 fi
3187
3188
3189     test -n "$CC" && break
3190   done
3191 fi
3192 if test -z "$CC"; then
3193   ac_ct_CC=$CC
3194   for ac_prog in cl.exe
3195 do
3196   # Extract the first word of "$ac_prog", so it can be a program name with args.
3197 set dummy $ac_prog; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3201   $as_echo_n "(cached) " >&6
3202 else
3203   if test -n "$ac_ct_CC"; then
3204   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209   IFS=$as_save_IFS
3210   test -z "$as_dir" && as_dir=.
3211     for ac_exec_ext in '' $ac_executable_extensions; do
3212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213     ac_cv_prog_ac_ct_CC="$ac_prog"
3214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215     break 2
3216   fi
3217 done
3218   done
3219 IFS=$as_save_IFS
3220
3221 fi
3222 fi
3223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3224 if test -n "$ac_ct_CC"; then
3225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3226 $as_echo "$ac_ct_CC" >&6; }
3227 else
3228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3230 fi
3231
3232
3233   test -n "$ac_ct_CC" && break
3234 done
3235
3236   if test "x$ac_ct_CC" = x; then
3237     CC=""
3238   else
3239     case $cross_compiling:$ac_tool_warned in
3240 yes:)
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3243 ac_tool_warned=yes ;;
3244 esac
3245     CC=$ac_ct_CC
3246   fi
3247 fi
3248
3249 fi
3250
3251
3252 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 as_fn_error $? "no acceptable C compiler found in \$PATH
3255 See \`config.log' for more details" "$LINENO" 5 ; }
3256
3257 # Provide some information about the compiler.
3258 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3259 set X $ac_compile
3260 ac_compiler=$2
3261 for ac_option in --version -v -V -qversion; do
3262   { { ac_try="$ac_compiler $ac_option >&5"
3263 case "(($ac_try" in
3264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265   *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 $as_echo "$ac_try_echo"; } >&5
3269   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3270   ac_status=$?
3271   if test -s conftest.err; then
3272     sed '10a\
3273 ... rest of stderr output deleted ...
3274          10q' conftest.err >conftest.er1
3275     cat conftest.er1 >&5
3276   fi
3277   rm -f conftest.er1 conftest.err
3278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279   test $ac_status = 0; }
3280 done
3281
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h.  */
3284
3285 int
3286 main ()
3287 {
3288
3289   ;
3290   return 0;
3291 }
3292 _ACEOF
3293 ac_clean_files_save=$ac_clean_files
3294 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3295 # Try to create an executable without -o first, disregard a.out.
3296 # It will help us diagnose broken compilers, and finding out an intuition
3297 # of exeext.
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3299 $as_echo_n "checking whether the C compiler works... " >&6; }
3300 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3301
3302 # The possible output files:
3303 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3304
3305 ac_rmfiles=
3306 for ac_file in $ac_files
3307 do
3308   case $ac_file in
3309     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3310     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3311   esac
3312 done
3313 rm -f $ac_rmfiles
3314
3315 if { { ac_try="$ac_link_default"
3316 case "(($ac_try" in
3317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318   *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322   (eval "$ac_link_default") 2>&5
3323   ac_status=$?
3324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325   test $ac_status = 0; }; then :
3326   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3327 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3328 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3329 # so that the user can short-circuit this test for compilers unknown to
3330 # Autoconf.
3331 for ac_file in $ac_files ''
3332 do
3333   test -f "$ac_file" || continue
3334   case $ac_file in
3335     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3336         ;;
3337     [ab].out )
3338         # We found the default executable, but exeext='' is most
3339         # certainly right.
3340         break;;
3341     *.* )
3342         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3343         then :; else
3344            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345         fi
3346         # We set ac_cv_exeext here because the later test for it is not
3347         # safe: cross compilers may not add the suffix if given an `-o'
3348         # argument, so we may need to know it at that point already.
3349         # Even if this section looks crufty: it has the advantage of
3350         # actually working.
3351         break;;
3352     * )
3353         break;;
3354   esac
3355 done
3356 test "$ac_cv_exeext" = no && ac_cv_exeext=
3357
3358 else
3359   ac_file=''
3360 fi
3361 if test -z "$ac_file"; then :
3362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3364 $as_echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 as_fn_error 77 "C compiler cannot create executables
3370 See \`config.log' for more details" "$LINENO" 5 ; }
3371 else
3372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3373 $as_echo "yes" >&6; }
3374 fi
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3376 $as_echo_n "checking for C compiler default output file name... " >&6; }
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3378 $as_echo "$ac_file" >&6; }
3379 ac_exeext=$ac_cv_exeext
3380
3381 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3382 ac_clean_files=$ac_clean_files_save
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3384 $as_echo_n "checking for suffix of executables... " >&6; }
3385 if { { ac_try="$ac_link"
3386 case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391 $as_echo "$ac_try_echo"; } >&5
3392   (eval "$ac_link") 2>&5
3393   ac_status=$?
3394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395   test $ac_status = 0; }; then :
3396   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3397 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3398 # work properly (i.e., refer to `conftest.exe'), while it won't with
3399 # `rm'.
3400 for ac_file in conftest.exe conftest conftest.*; do
3401   test -f "$ac_file" || continue
3402   case $ac_file in
3403     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3404     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3405           break;;
3406     * ) break;;
3407   esac
3408 done
3409 else
3410   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3413 See \`config.log' for more details" "$LINENO" 5 ; }
3414 fi
3415 rm -f conftest conftest$ac_cv_exeext
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3417 $as_echo "$ac_cv_exeext" >&6; }
3418
3419 rm -f conftest.$ac_ext
3420 EXEEXT=$ac_cv_exeext
3421 ac_exeext=$EXEEXT
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h.  */
3424 #include <stdio.h>
3425 int
3426 main ()
3427 {
3428 FILE *f = fopen ("conftest.out", "w");
3429  return ferror (f) || fclose (f) != 0;
3430
3431   ;
3432   return 0;
3433 }
3434 _ACEOF
3435 ac_clean_files="$ac_clean_files conftest.out"
3436 # Check that the compiler produces executables we can run.  If not, either
3437 # the compiler is broken, or we cross compile.
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3439 $as_echo_n "checking whether we are cross compiling... " >&6; }
3440 if test "$cross_compiling" != yes; then
3441   { { ac_try="$ac_link"
3442 case "(($ac_try" in
3443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444   *) ac_try_echo=$ac_try;;
3445 esac
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448   (eval "$ac_link") 2>&5
3449   ac_status=$?
3450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451   test $ac_status = 0; }
3452   if { ac_try='./conftest$ac_cv_exeext'
3453   { { case "(($ac_try" in
3454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455   *) ac_try_echo=$ac_try;;
3456 esac
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459   (eval "$ac_try") 2>&5
3460   ac_status=$?
3461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462   test $ac_status = 0; }; }; then
3463     cross_compiling=no
3464   else
3465     if test "$cross_compiling" = maybe; then
3466         cross_compiling=yes
3467     else
3468         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 as_fn_error $? "cannot run C compiled programs.
3471 If you meant to cross compile, use \`--host'.
3472 See \`config.log' for more details" "$LINENO" 5 ; }
3473     fi
3474   fi
3475 fi
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3477 $as_echo "$cross_compiling" >&6; }
3478
3479 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3480 ac_clean_files=$ac_clean_files_save
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3482 $as_echo_n "checking for suffix of object files... " >&6; }
3483 if test "${ac_cv_objext+set}" = set; then :
3484   $as_echo_n "(cached) " >&6
3485 else
3486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h.  */
3488
3489 int
3490 main ()
3491 {
3492
3493   ;
3494   return 0;
3495 }
3496 _ACEOF
3497 rm -f conftest.o conftest.obj
3498 if { { ac_try="$ac_compile"
3499 case "(($ac_try" in
3500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501   *) ac_try_echo=$ac_try;;
3502 esac
3503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504 $as_echo "$ac_try_echo"; } >&5
3505   (eval "$ac_compile") 2>&5
3506   ac_status=$?
3507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3508   test $ac_status = 0; }; then :
3509   for ac_file in conftest.o conftest.obj conftest.*; do
3510   test -f "$ac_file" || continue;
3511   case $ac_file in
3512     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3513     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3514        break;;
3515   esac
3516 done
3517 else
3518   $as_echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3520
3521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error $? "cannot compute suffix of object files: cannot compile
3524 See \`config.log' for more details" "$LINENO" 5 ; }
3525 fi
3526 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3527 fi
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3529 $as_echo "$ac_cv_objext" >&6; }
3530 OBJEXT=$ac_cv_objext
3531 ac_objext=$OBJEXT
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3533 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3534 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3535   $as_echo_n "(cached) " >&6
3536 else
3537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h.  */
3539
3540 int
3541 main ()
3542 {
3543 #ifndef __GNUC__
3544        choke me
3545 #endif
3546
3547   ;
3548   return 0;
3549 }
3550 _ACEOF
3551 if ac_fn_c_try_compile "$LINENO"; then :
3552   ac_compiler_gnu=yes
3553 else
3554   ac_compiler_gnu=no
3555 fi
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3558
3559 fi
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3561 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3562 if test $ac_compiler_gnu = yes; then
3563   GCC=yes
3564 else
3565   GCC=
3566 fi
3567 ac_test_CFLAGS=${CFLAGS+set}
3568 ac_save_CFLAGS=$CFLAGS
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3570 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3571 if test "${ac_cv_prog_cc_g+set}" = set; then :
3572   $as_echo_n "(cached) " >&6
3573 else
3574   ac_save_c_werror_flag=$ac_c_werror_flag
3575    ac_c_werror_flag=yes
3576    ac_cv_prog_cc_g=no
3577    CFLAGS="-g"
3578    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h.  */
3580
3581 int
3582 main ()
3583 {
3584
3585   ;
3586   return 0;
3587 }
3588 _ACEOF
3589 if ac_fn_c_try_compile "$LINENO"; then :
3590   ac_cv_prog_cc_g=yes
3591 else
3592   CFLAGS=""
3593       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h.  */
3595
3596 int
3597 main ()
3598 {
3599
3600   ;
3601   return 0;
3602 }
3603 _ACEOF
3604 if ac_fn_c_try_compile "$LINENO"; then :
3605
3606 else
3607   ac_c_werror_flag=$ac_save_c_werror_flag
3608          CFLAGS="-g"
3609          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610 /* end confdefs.h.  */
3611
3612 int
3613 main ()
3614 {
3615
3616   ;
3617   return 0;
3618 }
3619 _ACEOF
3620 if ac_fn_c_try_compile "$LINENO"; then :
3621   ac_cv_prog_cc_g=yes
3622 fi
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 fi
3625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626 fi
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628    ac_c_werror_flag=$ac_save_c_werror_flag
3629 fi
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3631 $as_echo "$ac_cv_prog_cc_g" >&6; }
3632 if test "$ac_test_CFLAGS" = set; then
3633   CFLAGS=$ac_save_CFLAGS
3634 elif test $ac_cv_prog_cc_g = yes; then
3635   if test "$GCC" = yes; then
3636     CFLAGS="-g -O2"
3637   else
3638     CFLAGS="-g"
3639   fi
3640 else
3641   if test "$GCC" = yes; then
3642     CFLAGS="-O2"
3643   else
3644     CFLAGS=
3645   fi
3646 fi
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3648 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3649 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3650   $as_echo_n "(cached) " >&6
3651 else
3652   ac_cv_prog_cc_c89=no
3653 ac_save_CC=$CC
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h.  */
3656 #include <stdarg.h>
3657 #include <stdio.h>
3658 #include <sys/types.h>
3659 #include <sys/stat.h>
3660 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3661 struct buf { int x; };
3662 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663 static char *e (p, i)
3664      char **p;
3665      int i;
3666 {
3667   return p[i];
3668 }
3669 static char *f (char * (*g) (char **, int), char **p, ...)
3670 {
3671   char *s;
3672   va_list v;
3673   va_start (v,p);
3674   s = g (p, va_arg (v,int));
3675   va_end (v);
3676   return s;
3677 }
3678
3679 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3680    function prototypes and stuff, but not '\xHH' hex character constants.
3681    These don't provoke an error unfortunately, instead are silently treated
3682    as 'x'.  The following induces an error, until -std is added to get
3683    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3684    array size at least.  It's necessary to write '\x00'==0 to get something
3685    that's true only with -std.  */
3686 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3687
3688 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3689    inside strings and character constants.  */
3690 #define FOO(x) 'x'
3691 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3692
3693 int test (int i, double x);
3694 struct s1 {int (*f) (int a);};
3695 struct s2 {int (*f) (double a);};
3696 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3697 int argc;
3698 char **argv;
3699 int
3700 main ()
3701 {
3702 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3703   ;
3704   return 0;
3705 }
3706 _ACEOF
3707 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3708         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3709 do
3710   CC="$ac_save_CC $ac_arg"
3711   if ac_fn_c_try_compile "$LINENO"; then :
3712   ac_cv_prog_cc_c89=$ac_arg
3713 fi
3714 rm -f core conftest.err conftest.$ac_objext
3715   test "x$ac_cv_prog_cc_c89" != "xno" && break
3716 done
3717 rm -f conftest.$ac_ext
3718 CC=$ac_save_CC
3719
3720 fi
3721 # AC_CACHE_VAL
3722 case "x$ac_cv_prog_cc_c89" in
3723   x)
3724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3725 $as_echo "none needed" >&6; } ;;
3726   xno)
3727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3728 $as_echo "unsupported" >&6; } ;;
3729   *)
3730     CC="$CC $ac_cv_prog_cc_c89"
3731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3732 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3733 esac
3734 if test "x$ac_cv_prog_cc_c89" != xno; then :
3735
3736 fi
3737
3738 ac_ext=c
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743 DEPDIR="${am__leading_dot}deps"
3744
3745 ac_config_commands="$ac_config_commands depfiles"
3746
3747
3748 am_make=${MAKE-make}
3749 cat > confinc << 'END'
3750 am__doit:
3751         @echo this is the am__doit target
3752 .PHONY: am__doit
3753 END
3754 # If we don't find an include directive, just comment out the code.
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3756 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3757 am__include="#"
3758 am__quote=
3759 _am_result=none
3760 # First try GNU make style include.
3761 echo "include confinc" > confmf
3762 # Ignore all kinds of additional output from `make'.
3763 case `$am_make -s -f confmf 2> /dev/null` in #(
3764 *the\ am__doit\ target*)
3765   am__include=include
3766   am__quote=
3767   _am_result=GNU
3768   ;;
3769 esac
3770 # Now try BSD make style include.
3771 if test "$am__include" = "#"; then
3772    echo '.include "confinc"' > confmf
3773    case `$am_make -s -f confmf 2> /dev/null` in #(
3774    *the\ am__doit\ target*)
3775      am__include=.include
3776      am__quote="\""
3777      _am_result=BSD
3778      ;;
3779    esac
3780 fi
3781
3782
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3784 $as_echo "$_am_result" >&6; }
3785 rm -f confinc confmf
3786
3787 # Check whether --enable-dependency-tracking was given.
3788 if test "${enable_dependency_tracking+set}" = set; then :
3789   enableval=$enable_dependency_tracking;
3790 fi
3791
3792 if test "x$enable_dependency_tracking" != xno; then
3793   am_depcomp="$ac_aux_dir/depcomp"
3794   AMDEPBACKSLASH='\'
3795 fi
3796  if test "x$enable_dependency_tracking" != xno; then
3797   AMDEP_TRUE=
3798   AMDEP_FALSE='#'
3799 else
3800   AMDEP_TRUE='#'
3801   AMDEP_FALSE=
3802 fi
3803
3804
3805
3806 depcc="$CC"   am_compiler_list=
3807
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3809 $as_echo_n "checking dependency style of $depcc... " >&6; }
3810 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3811   $as_echo_n "(cached) " >&6
3812 else
3813   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3814   # We make a subdir and do the tests there.  Otherwise we can end up
3815   # making bogus files that we don't know about and never remove.  For
3816   # instance it was reported that on HP-UX the gcc test will end up
3817   # making a dummy file named `D' -- because `-MD' means `put the output
3818   # in D'.
3819   mkdir conftest.dir
3820   # Copy depcomp to subdir because otherwise we won't find it if we're
3821   # using a relative directory.
3822   cp "$am_depcomp" conftest.dir
3823   cd conftest.dir
3824   # We will build objects and dependencies in a subdirectory because
3825   # it helps to detect inapplicable dependency modes.  For instance
3826   # both Tru64's cc and ICC support -MD to output dependencies as a
3827   # side effect of compilation, but ICC will put the dependencies in
3828   # the current directory while Tru64 will put them in the object
3829   # directory.
3830   mkdir sub
3831
3832   am_cv_CC_dependencies_compiler_type=none
3833   if test "$am_compiler_list" = ""; then
3834      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3835   fi
3836   am__universal=false
3837   case " $depcc " in #(
3838      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3839      esac
3840
3841   for depmode in $am_compiler_list; do
3842     # Setup a source with many dependencies, because some compilers
3843     # like to wrap large dependency lists on column 80 (with \), and
3844     # we should not choose a depcomp mode which is confused by this.
3845     #
3846     # We need to recreate these files for each test, as the compiler may
3847     # overwrite some of them when testing with obscure command lines.
3848     # This happens at least with the AIX C compiler.
3849     : > sub/conftest.c
3850     for i in 1 2 3 4 5 6; do
3851       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3852       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3853       # Solaris 8's {/usr,}/bin/sh.
3854       touch sub/conftst$i.h
3855     done
3856     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3857
3858     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3859     # mode.  It turns out that the SunPro C++ compiler does not properly
3860     # handle `-M -o', and we need to detect this.  Also, some Intel
3861     # versions had trouble with output in subdirs
3862     am__obj=sub/conftest.${OBJEXT-o}
3863     am__minus_obj="-o $am__obj"
3864     case $depmode in
3865     gcc)
3866       # This depmode causes a compiler race in universal mode.
3867       test "$am__universal" = false || continue
3868       ;;
3869     nosideeffect)
3870       # after this tag, mechanisms are not by side-effect, so they'll
3871       # only be used when explicitly requested
3872       if test "x$enable_dependency_tracking" = xyes; then
3873         continue
3874       else
3875         break
3876       fi
3877       ;;
3878     msvisualcpp | msvcmsys)
3879       # This compiler won't grok `-c -o', but also, the minuso test has
3880       # not run yet.  These depmodes are late enough in the game, and
3881       # so weak that their functioning should not be impacted.
3882       am__obj=conftest.${OBJEXT-o}
3883       am__minus_obj=
3884       ;;
3885     none) break ;;
3886     esac
3887     if depmode=$depmode \
3888        source=sub/conftest.c object=$am__obj \
3889        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3890        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3891          >/dev/null 2>conftest.err &&
3892        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3893        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3894        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3895        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3896       # icc doesn't choke on unknown options, it will just issue warnings
3897       # or remarks (even with -Werror).  So we grep stderr for any message
3898       # that says an option was ignored or not supported.
3899       # When given -MP, icc 7.0 and 7.1 complain thusly:
3900       #   icc: Command line warning: ignoring option '-M'; no argument required
3901       # The diagnosis changed in icc 8.0:
3902       #   icc: Command line remark: option '-MP' not supported
3903       if (grep 'ignoring option' conftest.err ||
3904           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3905         am_cv_CC_dependencies_compiler_type=$depmode
3906         break
3907       fi
3908     fi
3909   done
3910
3911   cd ..
3912   rm -rf conftest.dir
3913 else
3914   am_cv_CC_dependencies_compiler_type=none
3915 fi
3916
3917 fi
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3919 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3920 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3921
3922  if
3923   test "x$enable_dependency_tracking" != xno \
3924   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3925   am__fastdepCC_TRUE=
3926   am__fastdepCC_FALSE='#'
3927 else
3928   am__fastdepCC_TRUE='#'
3929   am__fastdepCC_FALSE=
3930 fi
3931
3932
3933
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3935 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3936 if test "${ac_cv_c_const+set}" = set; then :
3937   $as_echo_n "(cached) " >&6
3938 else
3939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h.  */
3941
3942 int
3943 main ()
3944 {
3945 /* FIXME: Include the comments suggested by Paul. */
3946 #ifndef __cplusplus
3947   /* Ultrix mips cc rejects this.  */
3948   typedef int charset[2];
3949   const charset cs;
3950   /* SunOS 4.1.1 cc rejects this.  */
3951   char const *const *pcpcc;
3952   char **ppc;
3953   /* NEC SVR4.0.2 mips cc rejects this.  */
3954   struct point {int x, y;};
3955   static struct point const zero = {0,0};
3956   /* AIX XL C 1.02.0.0 rejects this.
3957      It does not let you subtract one const X* pointer from another in
3958      an arm of an if-expression whose if-part is not a constant
3959      expression */
3960   const char *g = "string";
3961   pcpcc = &g + (g ? g-g : 0);
3962   /* HPUX 7.0 cc rejects these. */
3963   ++pcpcc;
3964   ppc = (char**) pcpcc;
3965   pcpcc = (char const *const *) ppc;
3966   { /* SCO 3.2v4 cc rejects this.  */
3967     char *t;
3968     char const *s = 0 ? (char *) 0 : (char const *) 0;
3969
3970     *t++ = 0;
3971     if (s) return 0;
3972   }
3973   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3974     int x[] = {25, 17};
3975     const int *foo = &x[0];
3976     ++foo;
3977   }
3978   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3979     typedef const int *iptr;
3980     iptr p = 0;
3981     ++p;
3982   }
3983   { /* AIX XL C 1.02.0.0 rejects this saying
3984        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3985     struct s { int j; const int *ap[3]; };
3986     struct s *b; b->j = 5;
3987   }
3988   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3989     const int foo = 10;
3990     if (!foo) return 0;
3991   }
3992   return !cs[0] && !zero.x;
3993 #endif
3994
3995   ;
3996   return 0;
3997 }
3998 _ACEOF
3999 if ac_fn_c_try_compile "$LINENO"; then :
4000   ac_cv_c_const=yes
4001 else
4002   ac_cv_c_const=no
4003 fi
4004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005 fi
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4007 $as_echo "$ac_cv_c_const" >&6; }
4008 if test $ac_cv_c_const = no; then
4009
4010 $as_echo "#define const /**/" >>confdefs.h
4011
4012 fi
4013
4014 ac_ext=c
4015 ac_cpp='$CPP $CPPFLAGS'
4016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4020 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4021 # On Suns, sometimes $CPP names a directory.
4022 if test -n "$CPP" && test -d "$CPP"; then
4023   CPP=
4024 fi
4025 if test -z "$CPP"; then
4026   if test "${ac_cv_prog_CPP+set}" = set; then :
4027   $as_echo_n "(cached) " >&6
4028 else
4029       # Double quotes because CPP needs to be expanded
4030     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4031     do
4032       ac_preproc_ok=false
4033 for ac_c_preproc_warn_flag in '' yes
4034 do
4035   # Use a header file that comes with gcc, so configuring glibc
4036   # with a fresh cross-compiler works.
4037   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4038   # <limits.h> exists even on freestanding compilers.
4039   # On the NeXT, cc -E runs the code through the compiler's parser,
4040   # not just through cpp. "Syntax error" is here to catch this case.
4041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h.  */
4043 #ifdef __STDC__
4044 # include <limits.h>
4045 #else
4046 # include <assert.h>
4047 #endif
4048                      Syntax error
4049 _ACEOF
4050 if ac_fn_c_try_cpp "$LINENO"; then :
4051
4052 else
4053   # Broken: fails on valid input.
4054 continue
4055 fi
4056 rm -f conftest.err conftest.i conftest.$ac_ext
4057
4058   # OK, works on sane cases.  Now check whether nonexistent headers
4059   # can be detected and how.
4060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h.  */
4062 #include <ac_nonexistent.h>
4063 _ACEOF
4064 if ac_fn_c_try_cpp "$LINENO"; then :
4065   # Broken: success on invalid input.
4066 continue
4067 else
4068   # Passes both tests.
4069 ac_preproc_ok=:
4070 break
4071 fi
4072 rm -f conftest.err conftest.i conftest.$ac_ext
4073
4074 done
4075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4076 rm -f conftest.i conftest.err conftest.$ac_ext
4077 if $ac_preproc_ok; then :
4078   break
4079 fi
4080
4081     done
4082     ac_cv_prog_CPP=$CPP
4083
4084 fi
4085   CPP=$ac_cv_prog_CPP
4086 else
4087   ac_cv_prog_CPP=$CPP
4088 fi
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4090 $as_echo "$CPP" >&6; }
4091 ac_preproc_ok=false
4092 for ac_c_preproc_warn_flag in '' yes
4093 do
4094   # Use a header file that comes with gcc, so configuring glibc
4095   # with a fresh cross-compiler works.
4096   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4097   # <limits.h> exists even on freestanding compilers.
4098   # On the NeXT, cc -E runs the code through the compiler's parser,
4099   # not just through cpp. "Syntax error" is here to catch this case.
4100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h.  */
4102 #ifdef __STDC__
4103 # include <limits.h>
4104 #else
4105 # include <assert.h>
4106 #endif
4107                      Syntax error
4108 _ACEOF
4109 if ac_fn_c_try_cpp "$LINENO"; then :
4110
4111 else
4112   # Broken: fails on valid input.
4113 continue
4114 fi
4115 rm -f conftest.err conftest.i conftest.$ac_ext
4116
4117   # OK, works on sane cases.  Now check whether nonexistent headers
4118   # can be detected and how.
4119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h.  */
4121 #include <ac_nonexistent.h>
4122 _ACEOF
4123 if ac_fn_c_try_cpp "$LINENO"; then :
4124   # Broken: success on invalid input.
4125 continue
4126 else
4127   # Passes both tests.
4128 ac_preproc_ok=:
4129 break
4130 fi
4131 rm -f conftest.err conftest.i conftest.$ac_ext
4132
4133 done
4134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4135 rm -f conftest.i conftest.err conftest.$ac_ext
4136 if $ac_preproc_ok; then :
4137
4138 else
4139   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4141 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4142 See \`config.log' for more details" "$LINENO" 5 ; }
4143 fi
4144
4145 ac_ext=c
4146 ac_cpp='$CPP $CPPFLAGS'
4147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150
4151
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4153 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4154 if test "${ac_cv_path_GREP+set}" = set; then :
4155   $as_echo_n "(cached) " >&6
4156 else
4157   if test -z "$GREP"; then
4158   ac_path_GREP_found=false
4159   # Loop through the user's path and test for each of PROGNAME-LIST
4160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4162 do
4163   IFS=$as_save_IFS
4164   test -z "$as_dir" && as_dir=.
4165     for ac_prog in grep ggrep; do
4166     for ac_exec_ext in '' $ac_executable_extensions; do
4167       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4168       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4169 # Check for GNU ac_path_GREP and select it if it is found.
4170   # Check for GNU $ac_path_GREP
4171 case `"$ac_path_GREP" --version 2>&1` in
4172 *GNU*)
4173   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4174 *)
4175   ac_count=0
4176   $as_echo_n 0123456789 >"conftest.in"
4177   while :
4178   do
4179     cat "conftest.in" "conftest.in" >"conftest.tmp"
4180     mv "conftest.tmp" "conftest.in"
4181     cp "conftest.in" "conftest.nl"
4182     $as_echo 'GREP' >> "conftest.nl"
4183     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4184     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4185     as_fn_arith $ac_count + 1 && ac_count=$as_val
4186     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4187       # Best one so far, save it but keep looking for a better one
4188       ac_cv_path_GREP="$ac_path_GREP"
4189       ac_path_GREP_max=$ac_count
4190     fi
4191     # 10*(2^10) chars as input seems more than enough
4192     test $ac_count -gt 10 && break
4193   done
4194   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4195 esac
4196
4197       $ac_path_GREP_found && break 3
4198     done
4199   done
4200   done
4201 IFS=$as_save_IFS
4202   if test -z "$ac_cv_path_GREP"; then
4203     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4204   fi
4205 else
4206   ac_cv_path_GREP=$GREP
4207 fi
4208
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4211 $as_echo "$ac_cv_path_GREP" >&6; }
4212  GREP="$ac_cv_path_GREP"
4213
4214
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4216 $as_echo_n "checking for egrep... " >&6; }
4217 if test "${ac_cv_path_EGREP+set}" = set; then :
4218   $as_echo_n "(cached) " >&6
4219 else
4220   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4221    then ac_cv_path_EGREP="$GREP -E"
4222    else
4223      if test -z "$EGREP"; then
4224   ac_path_EGREP_found=false
4225   # Loop through the user's path and test for each of PROGNAME-LIST
4226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4228 do
4229   IFS=$as_save_IFS
4230   test -z "$as_dir" && as_dir=.
4231     for ac_prog in egrep; do
4232     for ac_exec_ext in '' $ac_executable_extensions; do
4233       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4234       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4235 # Check for GNU ac_path_EGREP and select it if it is found.
4236   # Check for GNU $ac_path_EGREP
4237 case `"$ac_path_EGREP" --version 2>&1` in
4238 *GNU*)
4239   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4240 *)
4241   ac_count=0
4242   $as_echo_n 0123456789 >"conftest.in"
4243   while :
4244   do
4245     cat "conftest.in" "conftest.in" >"conftest.tmp"
4246     mv "conftest.tmp" "conftest.in"
4247     cp "conftest.in" "conftest.nl"
4248     $as_echo 'EGREP' >> "conftest.nl"
4249     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4250     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4251     as_fn_arith $ac_count + 1 && ac_count=$as_val
4252     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4253       # Best one so far, save it but keep looking for a better one
4254       ac_cv_path_EGREP="$ac_path_EGREP"
4255       ac_path_EGREP_max=$ac_count
4256     fi
4257     # 10*(2^10) chars as input seems more than enough
4258     test $ac_count -gt 10 && break
4259   done
4260   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4261 esac
4262
4263       $ac_path_EGREP_found && break 3
4264     done
4265   done
4266   done
4267 IFS=$as_save_IFS
4268   if test -z "$ac_cv_path_EGREP"; then
4269     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4270   fi
4271 else
4272   ac_cv_path_EGREP=$EGREP
4273 fi
4274
4275    fi
4276 fi
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4278 $as_echo "$ac_cv_path_EGREP" >&6; }
4279  EGREP="$ac_cv_path_EGREP"
4280
4281
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4283 $as_echo_n "checking for ANSI C header files... " >&6; }
4284 if test "${ac_cv_header_stdc+set}" = set; then :
4285   $as_echo_n "(cached) " >&6
4286 else
4287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h.  */
4289 #include <stdlib.h>
4290 #include <stdarg.h>
4291 #include <string.h>
4292 #include <float.h>
4293
4294 int
4295 main ()
4296 {
4297
4298   ;
4299   return 0;
4300 }
4301 _ACEOF
4302 if ac_fn_c_try_compile "$LINENO"; then :
4303   ac_cv_header_stdc=yes
4304 else
4305   ac_cv_header_stdc=no
4306 fi
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4308
4309 if test $ac_cv_header_stdc = yes; then
4310   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h.  */
4313 #include <string.h>
4314
4315 _ACEOF
4316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4317   $EGREP "memchr" >/dev/null 2>&1; then :
4318
4319 else
4320   ac_cv_header_stdc=no
4321 fi
4322 rm -f conftest*
4323
4324 fi
4325
4326 if test $ac_cv_header_stdc = yes; then
4327   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h.  */
4330 #include <stdlib.h>
4331
4332 _ACEOF
4333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4334   $EGREP "free" >/dev/null 2>&1; then :
4335
4336 else
4337   ac_cv_header_stdc=no
4338 fi
4339 rm -f conftest*
4340
4341 fi
4342
4343 if test $ac_cv_header_stdc = yes; then
4344   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4345   if test "$cross_compiling" = yes; then :
4346   :
4347 else
4348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h.  */
4350 #include <ctype.h>
4351 #include <stdlib.h>
4352 #if ((' ' & 0x0FF) == 0x020)
4353 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4354 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4355 #else
4356 # define ISLOWER(c) \
4357                    (('a' <= (c) && (c) <= 'i') \
4358                      || ('j' <= (c) && (c) <= 'r') \
4359                      || ('s' <= (c) && (c) <= 'z'))
4360 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4361 #endif
4362
4363 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4364 int
4365 main ()
4366 {
4367   int i;
4368   for (i = 0; i < 256; i++)
4369     if (XOR (islower (i), ISLOWER (i))
4370         || toupper (i) != TOUPPER (i))
4371       return 2;
4372   return 0;
4373 }
4374 _ACEOF
4375 if ac_fn_c_try_run "$LINENO"; then :
4376
4377 else
4378   ac_cv_header_stdc=no
4379 fi
4380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4381   conftest.$ac_objext conftest.beam conftest.$ac_ext
4382 fi
4383
4384 fi
4385 fi
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4387 $as_echo "$ac_cv_header_stdc" >&6; }
4388 if test $ac_cv_header_stdc = yes; then
4389
4390 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4391
4392 fi
4393
4394 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4395 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4396                   inttypes.h stdint.h unistd.h
4397 do :
4398   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4399 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4400 "
4401 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4402   cat >>confdefs.h <<_ACEOF
4403 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4404 _ACEOF
4405
4406 fi
4407
4408 done
4409
4410
4411
4412
4413
4414   for ac_header in $ac_header_list
4415 do :
4416   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4417 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4418 "
4419 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4420   cat >>confdefs.h <<_ACEOF
4421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4422 _ACEOF
4423
4424 fi
4425
4426 done
4427
4428
4429
4430
4431
4432
4433
4434
4435 for ac_func in getpagesize
4436 do :
4437   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4438 if test "x$ac_cv_func_getpagesize" = x""yes; then :
4439   cat >>confdefs.h <<_ACEOF
4440 #define HAVE_GETPAGESIZE 1
4441 _ACEOF
4442
4443 fi
4444 done
4445
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4447 $as_echo_n "checking for working mmap... " >&6; }
4448 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
4449   $as_echo_n "(cached) " >&6
4450 else
4451   if test "$cross_compiling" = yes; then :
4452   ac_cv_func_mmap_fixed_mapped=no
4453 else
4454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h.  */
4456 $ac_includes_default
4457 /* malloc might have been renamed as rpl_malloc. */
4458 #undef malloc
4459
4460 /* Thanks to Mike Haertel and Jim Avera for this test.
4461    Here is a matrix of mmap possibilities:
4462         mmap private not fixed
4463         mmap private fixed at somewhere currently unmapped
4464         mmap private fixed at somewhere already mapped
4465         mmap shared not fixed
4466         mmap shared fixed at somewhere currently unmapped
4467         mmap shared fixed at somewhere already mapped
4468    For private mappings, we should verify that changes cannot be read()
4469    back from the file, nor mmap's back from the file at a different
4470    address.  (There have been systems where private was not correctly
4471    implemented like the infamous i386 svr4.0, and systems where the
4472    VM page cache was not coherent with the file system buffer cache
4473    like early versions of FreeBSD and possibly contemporary NetBSD.)
4474    For shared mappings, we should conversely verify that changes get
4475    propagated back to all the places they're supposed to be.
4476
4477    Grep wants private fixed already mapped.
4478    The main things grep needs to know about mmap are:
4479    * does it exist and is it safe to write into the mmap'd area
4480    * how to use it (BSD variants)  */
4481
4482 #include <fcntl.h>
4483 #include <sys/mman.h>
4484
4485 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4486 char *malloc ();
4487 #endif
4488
4489 /* This mess was copied from the GNU getpagesize.h.  */
4490 #ifndef HAVE_GETPAGESIZE
4491 # ifdef _SC_PAGESIZE
4492 #  define getpagesize() sysconf(_SC_PAGESIZE)
4493 # else /* no _SC_PAGESIZE */
4494 #  ifdef HAVE_SYS_PARAM_H
4495 #   include <sys/param.h>
4496 #   ifdef EXEC_PAGESIZE
4497 #    define getpagesize() EXEC_PAGESIZE
4498 #   else /* no EXEC_PAGESIZE */
4499 #    ifdef NBPG
4500 #     define getpagesize() NBPG * CLSIZE
4501 #     ifndef CLSIZE
4502 #      define CLSIZE 1
4503 #     endif /* no CLSIZE */
4504 #    else /* no NBPG */
4505 #     ifdef NBPC
4506 #      define getpagesize() NBPC
4507 #     else /* no NBPC */
4508 #      ifdef PAGESIZE
4509 #       define getpagesize() PAGESIZE
4510 #      endif /* PAGESIZE */
4511 #     endif /* no NBPC */
4512 #    endif /* no NBPG */
4513 #   endif /* no EXEC_PAGESIZE */
4514 #  else /* no HAVE_SYS_PARAM_H */
4515 #   define getpagesize() 8192   /* punt totally */
4516 #  endif /* no HAVE_SYS_PARAM_H */
4517 # endif /* no _SC_PAGESIZE */
4518
4519 #endif /* no HAVE_GETPAGESIZE */
4520
4521 int
4522 main ()
4523 {
4524   char *data, *data2, *data3;
4525   const char *cdata2;
4526   int i, pagesize;
4527   int fd, fd2;
4528
4529   pagesize = getpagesize ();
4530
4531   /* First, make a file with some known garbage in it. */
4532   data = (char *) malloc (pagesize);
4533   if (!data)
4534     return 1;
4535   for (i = 0; i < pagesize; ++i)
4536     *(data + i) = rand ();
4537   umask (0);
4538   fd = creat ("conftest.mmap", 0600);
4539   if (fd < 0)
4540     return 2;
4541   if (write (fd, data, pagesize) != pagesize)
4542     return 3;
4543   close (fd);
4544
4545   /* Next, check that the tail of a page is zero-filled.  File must have
4546      non-zero length, otherwise we risk SIGBUS for entire page.  */
4547   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4548   if (fd2 < 0)
4549     return 4;
4550   cdata2 = "";
4551   if (write (fd2, cdata2, 1) != 1)
4552     return 5;
4553   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4554   if (data2 == MAP_FAILED)
4555     return 6;
4556   for (i = 0; i < pagesize; ++i)
4557     if (*(data2 + i))
4558       return 7;
4559   close (fd2);
4560   if (munmap (data2, pagesize))
4561     return 8;
4562
4563   /* Next, try to mmap the file at a fixed address which already has
4564      something else allocated at it.  If we can, also make sure that
4565      we see the same garbage.  */
4566   fd = open ("conftest.mmap", O_RDWR);
4567   if (fd < 0)
4568     return 9;
4569   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4570                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
4571     return 10;
4572   for (i = 0; i < pagesize; ++i)
4573     if (*(data + i) != *(data2 + i))
4574       return 11;
4575
4576   /* Finally, make sure that changes to the mapped area do not
4577      percolate back to the file as seen by read().  (This is a bug on
4578      some variants of i386 svr4.0.)  */
4579   for (i = 0; i < pagesize; ++i)
4580     *(data2 + i) = *(data2 + i) + 1;
4581   data3 = (char *) malloc (pagesize);
4582   if (!data3)
4583     return 12;
4584   if (read (fd, data3, pagesize) != pagesize)
4585     return 13;
4586   for (i = 0; i < pagesize; ++i)
4587     if (*(data + i) != *(data3 + i))
4588       return 14;
4589   close (fd);
4590   return 0;
4591 }
4592 _ACEOF
4593 if ac_fn_c_try_run "$LINENO"; then :
4594   ac_cv_func_mmap_fixed_mapped=yes
4595 else
4596   ac_cv_func_mmap_fixed_mapped=no
4597 fi
4598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4599   conftest.$ac_objext conftest.beam conftest.$ac_ext
4600 fi
4601
4602 fi
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4604 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4605 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4606
4607 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4608
4609 fi
4610 rm -f conftest.mmap conftest.txt
4611
4612 for ac_header in stdlib.h
4613 do :
4614   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4615 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
4616   cat >>confdefs.h <<_ACEOF
4617 #define HAVE_STDLIB_H 1
4618 _ACEOF
4619
4620 fi
4621
4622 done
4623
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
4625 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
4626 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
4627   $as_echo_n "(cached) " >&6
4628 else
4629   if test "$cross_compiling" = yes; then :
4630   ac_cv_func_realloc_0_nonnull=no
4631 else
4632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h.  */
4634 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
4635 # include <stdlib.h>
4636 #else
4637 char *realloc ();
4638 #endif
4639
4640 int
4641 main ()
4642 {
4643 return ! realloc (0, 0);
4644   ;
4645   return 0;
4646 }
4647 _ACEOF
4648 if ac_fn_c_try_run "$LINENO"; then :
4649   ac_cv_func_realloc_0_nonnull=yes
4650 else
4651   ac_cv_func_realloc_0_nonnull=no
4652 fi
4653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4654   conftest.$ac_objext conftest.beam conftest.$ac_ext
4655 fi
4656
4657 fi
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
4659 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
4660 if test $ac_cv_func_realloc_0_nonnull = yes; then :
4661
4662 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
4663
4664 else
4665   $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
4666
4667    case " $LIBOBJS " in
4668   *" realloc.$ac_objext "* ) ;;
4669   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
4670  ;;
4671 esac
4672
4673
4674 $as_echo "#define realloc rpl_realloc" >>confdefs.h
4675
4676 fi
4677
4678
4679 for ac_header in sys/select.h sys/socket.h
4680 do :
4681   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4682 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4683 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4684   cat >>confdefs.h <<_ACEOF
4685 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4686 _ACEOF
4687
4688 fi
4689
4690 done
4691
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
4693 $as_echo_n "checking types of arguments for select... " >&6; }
4694 if test "${ac_cv_func_select_args+set}" = set; then :
4695   $as_echo_n "(cached) " >&6
4696 else
4697   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
4698  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
4699   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
4700    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h.  */
4702 $ac_includes_default
4703 #ifdef HAVE_SYS_SELECT_H
4704 # include <sys/select.h>
4705 #endif
4706 #ifdef HAVE_SYS_SOCKET_H
4707 # include <sys/socket.h>
4708 #endif
4709
4710 int
4711 main ()
4712 {
4713 extern int select ($ac_arg1,
4714                                             $ac_arg234, $ac_arg234, $ac_arg234,
4715                                             $ac_arg5);
4716   ;
4717   return 0;
4718 }
4719 _ACEOF
4720 if ac_fn_c_try_compile "$LINENO"; then :
4721   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
4722 fi
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724   done
4725  done
4726 done
4727 # Provide a safe default value.
4728 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
4729
4730 fi
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
4732 $as_echo "$ac_cv_func_select_args" >&6; }
4733 ac_save_IFS=$IFS; IFS=','
4734 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
4735 IFS=$ac_save_IFS
4736 shift
4737
4738 cat >>confdefs.h <<_ACEOF
4739 #define SELECT_TYPE_ARG1 $1
4740 _ACEOF
4741
4742
4743 cat >>confdefs.h <<_ACEOF
4744 #define SELECT_TYPE_ARG234 ($2)
4745 _ACEOF
4746
4747
4748 cat >>confdefs.h <<_ACEOF
4749 #define SELECT_TYPE_ARG5 ($3)
4750 _ACEOF
4751
4752 rm -f conftest*
4753
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
4755 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
4756 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
4757   $as_echo_n "(cached) " >&6
4758 else
4759   rm -f conftest.sym conftest.file
4760 echo >conftest.file
4761 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
4762   if test "$cross_compiling" = yes; then :
4763   ac_cv_func_lstat_dereferences_slashed_symlink=no
4764 else
4765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h.  */
4767 $ac_includes_default
4768 int
4769 main ()
4770 {
4771 struct stat sbuf;
4772      /* Linux will dereference the symlink and fail, as required by POSIX.
4773         That is better in the sense that it means we will not
4774         have to compile and use the lstat wrapper.  */
4775      return lstat ("conftest.sym/", &sbuf) == 0;
4776   ;
4777   return 0;
4778 }
4779 _ACEOF
4780 if ac_fn_c_try_run "$LINENO"; then :
4781   ac_cv_func_lstat_dereferences_slashed_symlink=yes
4782 else
4783   ac_cv_func_lstat_dereferences_slashed_symlink=no
4784 fi
4785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4786   conftest.$ac_objext conftest.beam conftest.$ac_ext
4787 fi
4788
4789 else
4790   # If the `ln -s' command failed, then we probably don't even
4791   # have an lstat function.
4792   ac_cv_func_lstat_dereferences_slashed_symlink=no
4793 fi
4794 rm -f conftest.sym conftest.file
4795
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
4798 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
4799
4800 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
4801
4802 cat >>confdefs.h <<_ACEOF
4803 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
4804 _ACEOF
4805
4806
4807 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
4808   case " $LIBOBJS " in
4809   *" lstat.$ac_objext "* ) ;;
4810   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
4811  ;;
4812 esac
4813
4814 fi
4815
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
4817 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
4818 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
4819   $as_echo_n "(cached) " >&6
4820 else
4821   if test "$cross_compiling" = yes; then :
4822   ac_cv_func_stat_empty_string_bug=yes
4823 else
4824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h.  */
4826 $ac_includes_default
4827 int
4828 main ()
4829 {
4830 struct stat sbuf;
4831   return stat ("", &sbuf) == 0;
4832   ;
4833   return 0;
4834 }
4835 _ACEOF
4836 if ac_fn_c_try_run "$LINENO"; then :
4837   ac_cv_func_stat_empty_string_bug=no
4838 else
4839   ac_cv_func_stat_empty_string_bug=yes
4840 fi
4841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4842   conftest.$ac_objext conftest.beam conftest.$ac_ext
4843 fi
4844
4845 fi
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
4847 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
4848 if test $ac_cv_func_stat_empty_string_bug = yes; then
4849   case " $LIBOBJS " in
4850   *" stat.$ac_objext "* ) ;;
4851   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
4852  ;;
4853 esac
4854
4855
4856 cat >>confdefs.h <<_ACEOF
4857 #define HAVE_STAT_EMPTY_STRING_BUG 1
4858 _ACEOF
4859
4860 fi
4861
4862 for ac_func in vprintf
4863 do :
4864   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
4865 if test "x$ac_cv_func_vprintf" = x""yes; then :
4866   cat >>confdefs.h <<_ACEOF
4867 #define HAVE_VPRINTF 1
4868 _ACEOF
4869
4870 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
4871 if test "x$ac_cv_func__doprnt" = x""yes; then :
4872
4873 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
4874
4875 fi
4876
4877 fi
4878 done
4879
4880
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
4882 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4883 if test "${ac_cv_header_stdbool_h+set}" = set; then :
4884   $as_echo_n "(cached) " >&6
4885 else
4886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h.  */
4888
4889 #include <stdbool.h>
4890 #ifndef bool
4891  "error: bool is not defined"
4892 #endif
4893 #ifndef false
4894  "error: false is not defined"
4895 #endif
4896 #if false
4897  "error: false is not 0"
4898 #endif
4899 #ifndef true
4900  "error: true is not defined"
4901 #endif
4902 #if true != 1
4903  "error: true is not 1"
4904 #endif
4905 #ifndef __bool_true_false_are_defined
4906  "error: __bool_true_false_are_defined is not defined"
4907 #endif
4908
4909         struct s { _Bool s: 1; _Bool t; } s;
4910
4911         char a[true == 1 ? 1 : -1];
4912         char b[false == 0 ? 1 : -1];
4913         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4914         char d[(bool) 0.5 == true ? 1 : -1];
4915         bool e = &s;
4916         char f[(_Bool) 0.0 == false ? 1 : -1];
4917         char g[true];
4918         char h[sizeof (_Bool)];
4919         char i[sizeof s.t];
4920         enum { j = false, k = true, l = false * true, m = true * 256 };
4921         /* The following fails for
4922            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4923         _Bool n[m];
4924         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4925         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4926 #       if defined __xlc__ || defined __GNUC__
4927          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
4928             reported by James Lemley on 2005-10-05; see
4929             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
4930             This test is not quite right, since xlc is allowed to
4931             reject this program, as the initializer for xlcbug is
4932             not one of the forms that C requires support for.
4933             However, doing the test right would require a runtime
4934             test, and that would make cross-compilation harder.
4935             Let us hope that IBM fixes the xlc bug, and also adds
4936             support for this kind of constant expression.  In the
4937             meantime, this test will reject xlc, which is OK, since
4938             our stdbool.h substitute should suffice.  We also test
4939             this with GCC, where it should work, to detect more
4940             quickly whether someone messes up the test in the
4941             future.  */
4942          char digs[] = "0123456789";
4943          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
4944 #       endif
4945         /* Catch a bug in an HP-UX C compiler.  See
4946            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4947            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4948          */
4949         _Bool q = true;
4950         _Bool *pq = &q;
4951
4952 int
4953 main ()
4954 {
4955
4956         *pq |= q;
4957         *pq |= ! q;
4958         /* Refer to every declared value, to avoid compiler optimizations.  */
4959         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4960                 + !m + !n + !o + !p + !q + !pq);
4961
4962   ;
4963   return 0;
4964 }
4965 _ACEOF
4966 if ac_fn_c_try_compile "$LINENO"; then :
4967   ac_cv_header_stdbool_h=yes
4968 else
4969   ac_cv_header_stdbool_h=no
4970 fi
4971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 fi
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
4974 $as_echo "$ac_cv_header_stdbool_h" >&6; }
4975 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
4976 if test "x$ac_cv_type__Bool" = x""yes; then :
4977
4978 cat >>confdefs.h <<_ACEOF
4979 #define HAVE__BOOL 1
4980 _ACEOF
4981
4982
4983 fi
4984
4985 if test $ac_cv_header_stdbool_h = yes; then
4986
4987 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
4988
4989 fi
4990
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4992 $as_echo_n "checking for ANSI C header files... " >&6; }
4993 if test "${ac_cv_header_stdc+set}" = set; then :
4994   $as_echo_n "(cached) " >&6
4995 else
4996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h.  */
4998 #include <stdlib.h>
4999 #include <stdarg.h>
5000 #include <string.h>
5001 #include <float.h>
5002
5003 int
5004 main ()
5005 {
5006
5007   ;
5008   return 0;
5009 }
5010 _ACEOF
5011 if ac_fn_c_try_compile "$LINENO"; then :
5012   ac_cv_header_stdc=yes
5013 else
5014   ac_cv_header_stdc=no
5015 fi
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017
5018 if test $ac_cv_header_stdc = yes; then
5019   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021 /* end confdefs.h.  */
5022 #include <string.h>
5023
5024 _ACEOF
5025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5026   $EGREP "memchr" >/dev/null 2>&1; then :
5027
5028 else
5029   ac_cv_header_stdc=no
5030 fi
5031 rm -f conftest*
5032
5033 fi
5034
5035 if test $ac_cv_header_stdc = yes; then
5036   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5038 /* end confdefs.h.  */
5039 #include <stdlib.h>
5040
5041 _ACEOF
5042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5043   $EGREP "free" >/dev/null 2>&1; then :
5044
5045 else
5046   ac_cv_header_stdc=no
5047 fi
5048 rm -f conftest*
5049
5050 fi
5051
5052 if test $ac_cv_header_stdc = yes; then
5053   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5054   if test "$cross_compiling" = yes; then :
5055   :
5056 else
5057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h.  */
5059 #include <ctype.h>
5060 #include <stdlib.h>
5061 #if ((' ' & 0x0FF) == 0x020)
5062 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5063 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5064 #else
5065 # define ISLOWER(c) \
5066                    (('a' <= (c) && (c) <= 'i') \
5067                      || ('j' <= (c) && (c) <= 'r') \
5068                      || ('s' <= (c) && (c) <= 'z'))
5069 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5070 #endif
5071
5072 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5073 int
5074 main ()
5075 {
5076   int i;
5077   for (i = 0; i < 256; i++)
5078     if (XOR (islower (i), ISLOWER (i))
5079         || toupper (i) != TOUPPER (i))
5080       return 2;
5081   return 0;
5082 }
5083 _ACEOF
5084 if ac_fn_c_try_run "$LINENO"; then :
5085
5086 else
5087   ac_cv_header_stdc=no
5088 fi
5089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5090   conftest.$ac_objext conftest.beam conftest.$ac_ext
5091 fi
5092
5093 fi
5094 fi
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5096 $as_echo "$ac_cv_header_stdc" >&6; }
5097 if test $ac_cv_header_stdc = yes; then
5098
5099 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5100
5101 fi
5102
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5104 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5105 if test "${ac_cv_header_time+set}" = set; then :
5106   $as_echo_n "(cached) " >&6
5107 else
5108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h.  */
5110 #include <sys/types.h>
5111 #include <sys/time.h>
5112 #include <time.h>
5113
5114 int
5115 main ()
5116 {
5117 if ((struct tm *) 0)
5118 return 0;
5119   ;
5120   return 0;
5121 }
5122 _ACEOF
5123 if ac_fn_c_try_compile "$LINENO"; then :
5124   ac_cv_header_time=yes
5125 else
5126   ac_cv_header_time=no
5127 fi
5128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5129 fi
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5131 $as_echo "$ac_cv_header_time" >&6; }
5132 if test $ac_cv_header_time = yes; then
5133
5134 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5135
5136 fi
5137
5138 if test $ac_cv_c_compiler_gnu = yes; then
5139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5140 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
5141 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
5142   $as_echo_n "(cached) " >&6
5143 else
5144     ac_pattern="Autoconf.*'x'"
5145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h.  */
5147 #include <sgtty.h>
5148 Autoconf TIOCGETP
5149 _ACEOF
5150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5151   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5152   ac_cv_prog_gcc_traditional=yes
5153 else
5154   ac_cv_prog_gcc_traditional=no
5155 fi
5156 rm -f conftest*
5157
5158
5159   if test $ac_cv_prog_gcc_traditional = no; then
5160     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h.  */
5162 #include <termio.h>
5163 Autoconf TCGETA
5164 _ACEOF
5165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5166   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5167   ac_cv_prog_gcc_traditional=yes
5168 fi
5169 rm -f conftest*
5170
5171   fi
5172 fi
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5174 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5175   if test $ac_cv_prog_gcc_traditional = yes; then
5176     CC="$CC -traditional"
5177   fi
5178 fi
5179
5180 case `pwd` in
5181   *\ * | *\     *)
5182     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5183 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5184 esac
5185
5186
5187
5188 macro_version='2.2.6b'
5189 macro_revision='1.3017'
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203 ltmain="$ac_aux_dir/ltmain.sh"
5204
5205 # Make sure we can run config.sub.
5206 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5207   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5208
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5210 $as_echo_n "checking build system type... " >&6; }
5211 if test "${ac_cv_build+set}" = set; then :
5212   $as_echo_n "(cached) " >&6
5213 else
5214   ac_build_alias=$build_alias
5215 test "x$ac_build_alias" = x &&
5216   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5217 test "x$ac_build_alias" = x &&
5218   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5219 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5220   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5221
5222 fi
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5224 $as_echo "$ac_cv_build" >&6; }
5225 case $ac_cv_build in
5226 *-*-*) ;;
5227 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
5228 esac
5229 build=$ac_cv_build
5230 ac_save_IFS=$IFS; IFS='-'
5231 set x $ac_cv_build
5232 shift
5233 build_cpu=$1
5234 build_vendor=$2
5235 shift; shift
5236 # Remember, the first character of IFS is used to create $*,
5237 # except with old shells:
5238 build_os=$*
5239 IFS=$ac_save_IFS
5240 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5241
5242
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5244 $as_echo_n "checking host system type... " >&6; }
5245 if test "${ac_cv_host+set}" = set; then :
5246   $as_echo_n "(cached) " >&6
5247 else
5248   if test "x$host_alias" = x; then
5249   ac_cv_host=$ac_cv_build
5250 else
5251   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5252     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5253 fi
5254
5255 fi
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5257 $as_echo "$ac_cv_host" >&6; }
5258 case $ac_cv_host in
5259 *-*-*) ;;
5260 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
5261 esac
5262 host=$ac_cv_host
5263 ac_save_IFS=$IFS; IFS='-'
5264 set x $ac_cv_host
5265 shift
5266 host_cpu=$1
5267 host_vendor=$2
5268 shift; shift
5269 # Remember, the first character of IFS is used to create $*,
5270 # except with old shells:
5271 host_os=$*
5272 IFS=$ac_save_IFS
5273 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5274
5275
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5277 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5278 if test "${ac_cv_path_SED+set}" = set; then :
5279   $as_echo_n "(cached) " >&6
5280 else
5281             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5282      for ac_i in 1 2 3 4 5 6 7; do
5283        ac_script="$ac_script$as_nl$ac_script"
5284      done
5285      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5286      { ac_script=; unset ac_script;}
5287      if test -z "$SED"; then
5288   ac_path_SED_found=false
5289   # Loop through the user's path and test for each of PROGNAME-LIST
5290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293   IFS=$as_save_IFS
5294   test -z "$as_dir" && as_dir=.
5295     for ac_prog in sed gsed; do
5296     for ac_exec_ext in '' $ac_executable_extensions; do
5297       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5298       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5299 # Check for GNU ac_path_SED and select it if it is found.
5300   # Check for GNU $ac_path_SED
5301 case `"$ac_path_SED" --version 2>&1` in
5302 *GNU*)
5303   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5304 *)
5305   ac_count=0
5306   $as_echo_n 0123456789 >"conftest.in"
5307   while :
5308   do
5309     cat "conftest.in" "conftest.in" >"conftest.tmp"
5310     mv "conftest.tmp" "conftest.in"
5311     cp "conftest.in" "conftest.nl"
5312     $as_echo '' >> "conftest.nl"
5313     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5314     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5315     as_fn_arith $ac_count + 1 && ac_count=$as_val
5316     if test $ac_count -gt ${ac_path_SED_max-0}; then
5317       # Best one so far, save it but keep looking for a better one
5318       ac_cv_path_SED="$ac_path_SED"
5319       ac_path_SED_max=$ac_count
5320     fi
5321     # 10*(2^10) chars as input seems more than enough
5322     test $ac_count -gt 10 && break
5323   done
5324   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5325 esac
5326
5327       $ac_path_SED_found && break 3
5328     done
5329   done
5330   done
5331 IFS=$as_save_IFS
5332   if test -z "$ac_cv_path_SED"; then
5333     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5334   fi
5335 else
5336   ac_cv_path_SED=$SED
5337 fi
5338
5339 fi
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5341 $as_echo "$ac_cv_path_SED" >&6; }
5342  SED="$ac_cv_path_SED"
5343   rm -f conftest.sed
5344
5345 test -z "$SED" && SED=sed
5346 Xsed="$SED -e 1s/^X//"
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5359 $as_echo_n "checking for fgrep... " >&6; }
5360 if test "${ac_cv_path_FGREP+set}" = set; then :
5361   $as_echo_n "(cached) " >&6
5362 else
5363   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5364    then ac_cv_path_FGREP="$GREP -F"
5365    else
5366      if test -z "$FGREP"; then
5367   ac_path_FGREP_found=false
5368   # Loop through the user's path and test for each of PROGNAME-LIST
5369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5371 do
5372   IFS=$as_save_IFS
5373   test -z "$as_dir" && as_dir=.
5374     for ac_prog in fgrep; do
5375     for ac_exec_ext in '' $ac_executable_extensions; do
5376       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5377       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5378 # Check for GNU ac_path_FGREP and select it if it is found.
5379   # Check for GNU $ac_path_FGREP
5380 case `"$ac_path_FGREP" --version 2>&1` in
5381 *GNU*)
5382   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5383 *)
5384   ac_count=0
5385   $as_echo_n 0123456789 >"conftest.in"
5386   while :
5387   do
5388     cat "conftest.in" "conftest.in" >"conftest.tmp"
5389     mv "conftest.tmp" "conftest.in"
5390     cp "conftest.in" "conftest.nl"
5391     $as_echo 'FGREP' >> "conftest.nl"
5392     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5393     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5394     as_fn_arith $ac_count + 1 && ac_count=$as_val
5395     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5396       # Best one so far, save it but keep looking for a better one
5397       ac_cv_path_FGREP="$ac_path_FGREP"
5398       ac_path_FGREP_max=$ac_count
5399     fi
5400     # 10*(2^10) chars as input seems more than enough
5401     test $ac_count -gt 10 && break
5402   done
5403   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5404 esac
5405
5406       $ac_path_FGREP_found && break 3
5407     done
5408   done
5409   done
5410 IFS=$as_save_IFS
5411   if test -z "$ac_cv_path_FGREP"; then
5412     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5413   fi
5414 else
5415   ac_cv_path_FGREP=$FGREP
5416 fi
5417
5418    fi
5419 fi
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5421 $as_echo "$ac_cv_path_FGREP" >&6; }
5422  FGREP="$ac_cv_path_FGREP"
5423
5424
5425 test -z "$GREP" && GREP=grep
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445 # Check whether --with-gnu-ld was given.
5446 if test "${with_gnu_ld+set}" = set; then :
5447   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5448 else
5449   with_gnu_ld=no
5450 fi
5451
5452 ac_prog=ld
5453 if test "$GCC" = yes; then
5454   # Check if gcc -print-prog-name=ld gives a path.
5455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5456 $as_echo_n "checking for ld used by $CC... " >&6; }
5457   case $host in
5458   *-*-mingw*)
5459     # gcc leaves a trailing carriage return which upsets mingw
5460     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5461   *)
5462     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5463   esac
5464   case $ac_prog in
5465     # Accept absolute paths.
5466     [\\/]* | ?:[\\/]*)
5467       re_direlt='/[^/][^/]*/\.\./'
5468       # Canonicalize the pathname of ld
5469       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5470       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5471         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5472       done
5473       test -z "$LD" && LD="$ac_prog"
5474       ;;
5475   "")
5476     # If it fails, then pretend we aren't using GCC.
5477     ac_prog=ld
5478     ;;
5479   *)
5480     # If it is relative, then search for the first ld in PATH.
5481     with_gnu_ld=unknown
5482     ;;
5483   esac
5484 elif test "$with_gnu_ld" = yes; then
5485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5486 $as_echo_n "checking for GNU ld... " >&6; }
5487 else
5488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5489 $as_echo_n "checking for non-GNU ld... " >&6; }
5490 fi
5491 if test "${lt_cv_path_LD+set}" = set; then :
5492   $as_echo_n "(cached) " >&6
5493 else
5494   if test -z "$LD"; then
5495   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5496   for ac_dir in $PATH; do
5497     IFS="$lt_save_ifs"
5498     test -z "$ac_dir" && ac_dir=.
5499     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5500       lt_cv_path_LD="$ac_dir/$ac_prog"
5501       # Check to see if the program is GNU ld.  I'd rather use --version,
5502       # but apparently some variants of GNU ld only accept -v.
5503       # Break only if it was the GNU/non-GNU ld that we prefer.
5504       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5505       *GNU* | *'with BFD'*)
5506         test "$with_gnu_ld" != no && break
5507         ;;
5508       *)
5509         test "$with_gnu_ld" != yes && break
5510         ;;
5511       esac
5512     fi
5513   done
5514   IFS="$lt_save_ifs"
5515 else
5516   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5517 fi
5518 fi
5519
5520 LD="$lt_cv_path_LD"
5521 if test -n "$LD"; then
5522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5523 $as_echo "$LD" >&6; }
5524 else
5525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5527 fi
5528 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5530 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5531 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5535 case `$LD -v 2>&1 </dev/null` in
5536 *GNU* | *'with BFD'*)
5537   lt_cv_prog_gnu_ld=yes
5538   ;;
5539 *)
5540   lt_cv_prog_gnu_ld=no
5541   ;;
5542 esac
5543 fi
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5545 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5546 with_gnu_ld=$lt_cv_prog_gnu_ld
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5557 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5558 if test "${lt_cv_path_NM+set}" = set; then :
5559   $as_echo_n "(cached) " >&6
5560 else
5561   if test -n "$NM"; then
5562   # Let the user override the test.
5563   lt_cv_path_NM="$NM"
5564 else
5565   lt_nm_to_check="${ac_tool_prefix}nm"
5566   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5567     lt_nm_to_check="$lt_nm_to_check nm"
5568   fi
5569   for lt_tmp_nm in $lt_nm_to_check; do
5570     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5571     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5572       IFS="$lt_save_ifs"
5573       test -z "$ac_dir" && ac_dir=.
5574       tmp_nm="$ac_dir/$lt_tmp_nm"
5575       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5576         # Check to see if the nm accepts a BSD-compat flag.
5577         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5578         #   nm: unknown option "B" ignored
5579         # Tru64's nm complains that /dev/null is an invalid object file
5580         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5581         */dev/null* | *'Invalid file or object type'*)
5582           lt_cv_path_NM="$tmp_nm -B"
5583           break
5584           ;;
5585         *)
5586           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5587           */dev/null*)
5588             lt_cv_path_NM="$tmp_nm -p"
5589             break
5590             ;;
5591           *)
5592             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5593             continue # so that we can try to find one that supports BSD flags
5594             ;;
5595           esac
5596           ;;
5597         esac
5598       fi
5599     done
5600     IFS="$lt_save_ifs"
5601   done
5602   : ${lt_cv_path_NM=no}
5603 fi
5604 fi
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5606 $as_echo "$lt_cv_path_NM" >&6; }
5607 if test "$lt_cv_path_NM" != "no"; then
5608   NM="$lt_cv_path_NM"
5609 else
5610   # Didn't find any BSD compatible name lister, look for dumpbin.
5611   if test -n "$ac_tool_prefix"; then
5612   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5613   do
5614     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621   if test -n "$DUMPBIN"; then
5622   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5626 do
5627   IFS=$as_save_IFS
5628   test -z "$as_dir" && as_dir=.
5629     for ac_exec_ext in '' $ac_executable_extensions; do
5630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5631     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633     break 2
5634   fi
5635 done
5636   done
5637 IFS=$as_save_IFS
5638
5639 fi
5640 fi
5641 DUMPBIN=$ac_cv_prog_DUMPBIN
5642 if test -n "$DUMPBIN"; then
5643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5644 $as_echo "$DUMPBIN" >&6; }
5645 else
5646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5648 fi
5649
5650
5651     test -n "$DUMPBIN" && break
5652   done
5653 fi
5654 if test -z "$DUMPBIN"; then
5655   ac_ct_DUMPBIN=$DUMPBIN
5656   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5657 do
5658   # Extract the first word of "$ac_prog", so it can be a program name with args.
5659 set dummy $ac_prog; ac_word=$2
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5661 $as_echo_n "checking for $ac_word... " >&6; }
5662 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5663   $as_echo_n "(cached) " >&6
5664 else
5665   if test -n "$ac_ct_DUMPBIN"; then
5666   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671   IFS=$as_save_IFS
5672   test -z "$as_dir" && as_dir=.
5673     for ac_exec_ext in '' $ac_executable_extensions; do
5674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5675     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677     break 2
5678   fi
5679 done
5680   done
5681 IFS=$as_save_IFS
5682
5683 fi
5684 fi
5685 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5686 if test -n "$ac_ct_DUMPBIN"; then
5687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5688 $as_echo "$ac_ct_DUMPBIN" >&6; }
5689 else
5690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 $as_echo "no" >&6; }
5692 fi
5693
5694
5695   test -n "$ac_ct_DUMPBIN" && break
5696 done
5697
5698   if test "x$ac_ct_DUMPBIN" = x; then
5699     DUMPBIN=":"
5700   else
5701     case $cross_compiling:$ac_tool_warned in
5702 yes:)
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5705 ac_tool_warned=yes ;;
5706 esac
5707     DUMPBIN=$ac_ct_DUMPBIN
5708   fi
5709 fi
5710
5711
5712   if test "$DUMPBIN" != ":"; then
5713     NM="$DUMPBIN"
5714   fi
5715 fi
5716 test -z "$NM" && NM=nm
5717
5718
5719
5720
5721
5722
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5724 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5725 if test "${lt_cv_nm_interface+set}" = set; then :
5726   $as_echo_n "(cached) " >&6
5727 else
5728   lt_cv_nm_interface="BSD nm"
5729   echo "int some_variable = 0;" > conftest.$ac_ext
5730   (eval echo "\"\$as_me:5730: $ac_compile\"" >&5)
5731   (eval "$ac_compile" 2>conftest.err)
5732   cat conftest.err >&5
5733   (eval echo "\"\$as_me:5733: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5734   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5735   cat conftest.err >&5
5736   (eval echo "\"\$as_me:5736: output\"" >&5)
5737   cat conftest.out >&5
5738   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5739     lt_cv_nm_interface="MS dumpbin"
5740   fi
5741   rm -f conftest*
5742 fi
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5744 $as_echo "$lt_cv_nm_interface" >&6; }
5745
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5747 $as_echo_n "checking whether ln -s works... " >&6; }
5748 LN_S=$as_ln_s
5749 if test "$LN_S" = "ln -s"; then
5750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5751 $as_echo "yes" >&6; }
5752 else
5753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5754 $as_echo "no, using $LN_S" >&6; }
5755 fi
5756
5757 # find the maximum length of command line arguments
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5759 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5760 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5761   $as_echo_n "(cached) " >&6
5762 else
5763     i=0
5764   teststring="ABCD"
5765
5766   case $build_os in
5767   msdosdjgpp*)
5768     # On DJGPP, this test can blow up pretty badly due to problems in libc
5769     # (any single argument exceeding 2000 bytes causes a buffer overrun
5770     # during glob expansion).  Even if it were fixed, the result of this
5771     # check would be larger than it should be.
5772     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5773     ;;
5774
5775   gnu*)
5776     # Under GNU Hurd, this test is not required because there is
5777     # no limit to the length of command line arguments.
5778     # Libtool will interpret -1 as no limit whatsoever
5779     lt_cv_sys_max_cmd_len=-1;
5780     ;;
5781
5782   cygwin* | mingw* | cegcc*)
5783     # On Win9x/ME, this test blows up -- it succeeds, but takes
5784     # about 5 minutes as the teststring grows exponentially.
5785     # Worse, since 9x/ME are not pre-emptively multitasking,
5786     # you end up with a "frozen" computer, even though with patience
5787     # the test eventually succeeds (with a max line length of 256k).
5788     # Instead, let's just punt: use the minimum linelength reported by
5789     # all of the supported platforms: 8192 (on NT/2K/XP).
5790     lt_cv_sys_max_cmd_len=8192;
5791     ;;
5792
5793   amigaos*)
5794     # On AmigaOS with pdksh, this test takes hours, literally.
5795     # So we just punt and use a minimum line length of 8192.
5796     lt_cv_sys_max_cmd_len=8192;
5797     ;;
5798
5799   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5800     # This has been around since 386BSD, at least.  Likely further.
5801     if test -x /sbin/sysctl; then
5802       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5803     elif test -x /usr/sbin/sysctl; then
5804       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5805     else
5806       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5807     fi
5808     # And add a safety zone
5809     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5810     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5811     ;;
5812
5813   interix*)
5814     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5815     lt_cv_sys_max_cmd_len=196608
5816     ;;
5817
5818   osf*)
5819     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5820     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5821     # nice to cause kernel panics so lets avoid the loop below.
5822     # First set a reasonable default.
5823     lt_cv_sys_max_cmd_len=16384
5824     #
5825     if test -x /sbin/sysconfig; then
5826       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5827         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5828       esac
5829     fi
5830     ;;
5831   sco3.2v5*)
5832     lt_cv_sys_max_cmd_len=102400
5833     ;;
5834   sysv5* | sco5v6* | sysv4.2uw2*)
5835     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5836     if test -n "$kargmax"; then
5837       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5838     else
5839       lt_cv_sys_max_cmd_len=32768
5840     fi
5841     ;;
5842   *)
5843     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5844     if test -n "$lt_cv_sys_max_cmd_len"; then
5845       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5846       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5847     else
5848       # Make teststring a little bigger before we do anything with it.
5849       # a 1K string should be a reasonable start.
5850       for i in 1 2 3 4 5 6 7 8 ; do
5851         teststring=$teststring$teststring
5852       done
5853       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5854       # If test is not a shell built-in, we'll probably end up computing a
5855       # maximum length that is only half of the actual maximum length, but
5856       # we can't tell.
5857       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5858                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5859               test $i != 17 # 1/2 MB should be enough
5860       do
5861         i=`expr $i + 1`
5862         teststring=$teststring$teststring
5863       done
5864       # Only check the string length outside the loop.
5865       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5866       teststring=
5867       # Add a significant safety factor because C++ compilers can tack on
5868       # massive amounts of additional arguments before passing them to the
5869       # linker.  It appears as though 1/2 is a usable value.
5870       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5871     fi
5872     ;;
5873   esac
5874
5875 fi
5876
5877 if test -n $lt_cv_sys_max_cmd_len ; then
5878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5879 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5880 else
5881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5882 $as_echo "none" >&6; }
5883 fi
5884 max_cmd_len=$lt_cv_sys_max_cmd_len
5885
5886
5887
5888
5889
5890
5891 : ${CP="cp -f"}
5892 : ${MV="mv -f"}
5893 : ${RM="rm -f"}
5894
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5896 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5897 # Try some XSI features
5898 xsi_shell=no
5899 ( _lt_dummy="a/b/c"
5900   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5901       = c,a/b,, \
5902     && eval 'test $(( 1 + 1 )) -eq 2 \
5903     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5904   && xsi_shell=yes
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5906 $as_echo "$xsi_shell" >&6; }
5907
5908
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5910 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5911 lt_shell_append=no
5912 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5913     >/dev/null 2>&1 \
5914   && lt_shell_append=yes
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5916 $as_echo "$lt_shell_append" >&6; }
5917
5918
5919 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5920   lt_unset=unset
5921 else
5922   lt_unset=false
5923 fi
5924
5925
5926
5927
5928
5929 # test EBCDIC or ASCII
5930 case `echo X|tr X '\101'` in
5931  A) # ASCII based system
5932     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5933   lt_SP2NL='tr \040 \012'
5934   lt_NL2SP='tr \015\012 \040\040'
5935   ;;
5936  *) # EBCDIC based system
5937   lt_SP2NL='tr \100 \n'
5938   lt_NL2SP='tr \r\n \100\100'
5939   ;;
5940 esac
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5951 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5952 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5953   $as_echo_n "(cached) " >&6
5954 else
5955   lt_cv_ld_reload_flag='-r'
5956 fi
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5958 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5959 reload_flag=$lt_cv_ld_reload_flag
5960 case $reload_flag in
5961 "" | " "*) ;;
5962 *) reload_flag=" $reload_flag" ;;
5963 esac
5964 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5965 case $host_os in
5966   darwin*)
5967     if test "$GCC" = yes; then
5968       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5969     else
5970       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5971     fi
5972     ;;
5973 esac
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983 if test -n "$ac_tool_prefix"; then
5984   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5985 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 $as_echo_n "checking for $ac_word... " >&6; }
5988 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5989   $as_echo_n "(cached) " >&6
5990 else
5991   if test -n "$OBJDUMP"; then
5992   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5993 else
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5996 do
5997   IFS=$as_save_IFS
5998   test -z "$as_dir" && as_dir=.
5999     for ac_exec_ext in '' $ac_executable_extensions; do
6000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6003     break 2
6004   fi
6005 done
6006   done
6007 IFS=$as_save_IFS
6008
6009 fi
6010 fi
6011 OBJDUMP=$ac_cv_prog_OBJDUMP
6012 if test -n "$OBJDUMP"; then
6013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6014 $as_echo "$OBJDUMP" >&6; }
6015 else
6016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6017 $as_echo "no" >&6; }
6018 fi
6019
6020
6021 fi
6022 if test -z "$ac_cv_prog_OBJDUMP"; then
6023   ac_ct_OBJDUMP=$OBJDUMP
6024   # Extract the first word of "objdump", so it can be a program name with args.
6025 set dummy objdump; ac_word=$2
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6027 $as_echo_n "checking for $ac_word... " >&6; }
6028 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6029   $as_echo_n "(cached) " >&6
6030 else
6031   if test -n "$ac_ct_OBJDUMP"; then
6032   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6033 else
6034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035 for as_dir in $PATH
6036 do
6037   IFS=$as_save_IFS
6038   test -z "$as_dir" && as_dir=.
6039     for ac_exec_ext in '' $ac_executable_extensions; do
6040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6041     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6043     break 2
6044   fi
6045 done
6046   done
6047 IFS=$as_save_IFS
6048
6049 fi
6050 fi
6051 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6052 if test -n "$ac_ct_OBJDUMP"; then
6053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6054 $as_echo "$ac_ct_OBJDUMP" >&6; }
6055 else
6056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 $as_echo "no" >&6; }
6058 fi
6059
6060   if test "x$ac_ct_OBJDUMP" = x; then
6061     OBJDUMP="false"
6062   else
6063     case $cross_compiling:$ac_tool_warned in
6064 yes:)
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6067 ac_tool_warned=yes ;;
6068 esac
6069     OBJDUMP=$ac_ct_OBJDUMP
6070   fi
6071 else
6072   OBJDUMP="$ac_cv_prog_OBJDUMP"
6073 fi
6074
6075 test -z "$OBJDUMP" && OBJDUMP=objdump
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6086 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6087 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6088   $as_echo_n "(cached) " >&6
6089 else
6090   lt_cv_file_magic_cmd='$MAGIC_CMD'
6091 lt_cv_file_magic_test_file=
6092 lt_cv_deplibs_check_method='unknown'
6093 # Need to set the preceding variable on all platforms that support
6094 # interlibrary dependencies.
6095 # 'none' -- dependencies not supported.
6096 # `unknown' -- same as none, but documents that we really don't know.
6097 # 'pass_all' -- all dependencies passed with no checks.
6098 # 'test_compile' -- check by making test program.
6099 # 'file_magic [[regex]]' -- check by looking for files in library path
6100 # which responds to the $file_magic_cmd with a given extended regex.
6101 # If you have `file' or equivalent on your system and you're not sure
6102 # whether `pass_all' will *always* work, you probably want this one.
6103
6104 case $host_os in
6105 aix[4-9]*)
6106   lt_cv_deplibs_check_method=pass_all
6107   ;;
6108
6109 beos*)
6110   lt_cv_deplibs_check_method=pass_all
6111   ;;
6112
6113 bsdi[45]*)
6114   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6115   lt_cv_file_magic_cmd='/usr/bin/file -L'
6116   lt_cv_file_magic_test_file=/shlib/libc.so
6117   ;;
6118
6119 cygwin*)
6120   # func_win32_libid is a shell function defined in ltmain.sh
6121   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6122   lt_cv_file_magic_cmd='func_win32_libid'
6123   ;;
6124
6125 mingw* | pw32*)
6126   # Base MSYS/MinGW do not provide the 'file' command needed by
6127   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6128   # unless we find 'file', for example because we are cross-compiling.
6129   if ( file / ) >/dev/null 2>&1; then
6130     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6131     lt_cv_file_magic_cmd='func_win32_libid'
6132   else
6133     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6134     lt_cv_file_magic_cmd='$OBJDUMP -f'
6135   fi
6136   ;;
6137
6138 cegcc)
6139   # use the weaker test based on 'objdump'. See mingw*.
6140   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6141   lt_cv_file_magic_cmd='$OBJDUMP -f'
6142   ;;
6143
6144 darwin* | rhapsody*)
6145   lt_cv_deplibs_check_method=pass_all
6146   ;;
6147
6148 freebsd* | dragonfly*)
6149   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6150     case $host_cpu in
6151     i*86 )
6152       # Not sure whether the presence of OpenBSD here was a mistake.
6153       # Let's accept both of them until this is cleared up.
6154       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6155       lt_cv_file_magic_cmd=/usr/bin/file
6156       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6157       ;;
6158     esac
6159   else
6160     lt_cv_deplibs_check_method=pass_all
6161   fi
6162   ;;
6163
6164 gnu*)
6165   lt_cv_deplibs_check_method=pass_all
6166   ;;
6167
6168 hpux10.20* | hpux11*)
6169   lt_cv_file_magic_cmd=/usr/bin/file
6170   case $host_cpu in
6171   ia64*)
6172     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6173     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6174     ;;
6175   hppa*64*)
6176     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]'
6177     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6178     ;;
6179   *)
6180     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6181     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6182     ;;
6183   esac
6184   ;;
6185
6186 interix[3-9]*)
6187   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6188   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6189   ;;
6190
6191 irix5* | irix6* | nonstopux*)
6192   case $LD in
6193   *-32|*"-32 ") libmagic=32-bit;;
6194   *-n32|*"-n32 ") libmagic=N32;;
6195   *-64|*"-64 ") libmagic=64-bit;;
6196   *) libmagic=never-match;;
6197   esac
6198   lt_cv_deplibs_check_method=pass_all
6199   ;;
6200
6201 # This must be Linux ELF.
6202 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6203   lt_cv_deplibs_check_method=pass_all
6204   ;;
6205
6206 netbsd* | netbsdelf*-gnu)
6207   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6208     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6209   else
6210     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6211   fi
6212   ;;
6213
6214 newos6*)
6215   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6216   lt_cv_file_magic_cmd=/usr/bin/file
6217   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6218   ;;
6219
6220 *nto* | *qnx*)
6221   lt_cv_deplibs_check_method=pass_all
6222   ;;
6223
6224 openbsd*)
6225   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6226     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6227   else
6228     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6229   fi
6230   ;;
6231
6232 osf3* | osf4* | osf5*)
6233   lt_cv_deplibs_check_method=pass_all
6234   ;;
6235
6236 rdos*)
6237   lt_cv_deplibs_check_method=pass_all
6238   ;;
6239
6240 solaris*)
6241   lt_cv_deplibs_check_method=pass_all
6242   ;;
6243
6244 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6245   lt_cv_deplibs_check_method=pass_all
6246   ;;
6247
6248 sysv4 | sysv4.3*)
6249   case $host_vendor in
6250   motorola)
6251     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]'
6252     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6253     ;;
6254   ncr)
6255     lt_cv_deplibs_check_method=pass_all
6256     ;;
6257   sequent)
6258     lt_cv_file_magic_cmd='/bin/file'
6259     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6260     ;;
6261   sni)
6262     lt_cv_file_magic_cmd='/bin/file'
6263     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6264     lt_cv_file_magic_test_file=/lib/libc.so
6265     ;;
6266   siemens)
6267     lt_cv_deplibs_check_method=pass_all
6268     ;;
6269   pc)
6270     lt_cv_deplibs_check_method=pass_all
6271     ;;
6272   esac
6273   ;;
6274
6275 tpf*)
6276   lt_cv_deplibs_check_method=pass_all
6277   ;;
6278 esac
6279
6280 fi
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6282 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6283 file_magic_cmd=$lt_cv_file_magic_cmd
6284 deplibs_check_method=$lt_cv_deplibs_check_method
6285 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298 if test -n "$ac_tool_prefix"; then
6299   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6300 set dummy ${ac_tool_prefix}ar; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302 $as_echo_n "checking for $ac_word... " >&6; }
6303 if test "${ac_cv_prog_AR+set}" = set; then :
6304   $as_echo_n "(cached) " >&6
6305 else
6306   if test -n "$AR"; then
6307   ac_cv_prog_AR="$AR" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312   IFS=$as_save_IFS
6313   test -z "$as_dir" && as_dir=.
6314     for ac_exec_ext in '' $ac_executable_extensions; do
6315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316     ac_cv_prog_AR="${ac_tool_prefix}ar"
6317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318     break 2
6319   fi
6320 done
6321   done
6322 IFS=$as_save_IFS
6323
6324 fi
6325 fi
6326 AR=$ac_cv_prog_AR
6327 if test -n "$AR"; then
6328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6329 $as_echo "$AR" >&6; }
6330 else
6331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332 $as_echo "no" >&6; }
6333 fi
6334
6335
6336 fi
6337 if test -z "$ac_cv_prog_AR"; then
6338   ac_ct_AR=$AR
6339   # Extract the first word of "ar", so it can be a program name with args.
6340 set dummy ar; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6344   $as_echo_n "(cached) " >&6
6345 else
6346   if test -n "$ac_ct_AR"; then
6347   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6351 do
6352   IFS=$as_save_IFS
6353   test -z "$as_dir" && as_dir=.
6354     for ac_exec_ext in '' $ac_executable_extensions; do
6355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6356     ac_cv_prog_ac_ct_AR="ar"
6357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358     break 2
6359   fi
6360 done
6361   done
6362 IFS=$as_save_IFS
6363
6364 fi
6365 fi
6366 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6367 if test -n "$ac_ct_AR"; then
6368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6369 $as_echo "$ac_ct_AR" >&6; }
6370 else
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6373 fi
6374
6375   if test "x$ac_ct_AR" = x; then
6376     AR="false"
6377   else
6378     case $cross_compiling:$ac_tool_warned in
6379 yes:)
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382 ac_tool_warned=yes ;;
6383 esac
6384     AR=$ac_ct_AR
6385   fi
6386 else
6387   AR="$ac_cv_prog_AR"
6388 fi
6389
6390 test -z "$AR" && AR=ar
6391 test -z "$AR_FLAGS" && AR_FLAGS=cru
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403 if test -n "$ac_tool_prefix"; then
6404   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6405 set dummy ${ac_tool_prefix}strip; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if test "${ac_cv_prog_STRIP+set}" = set; then :
6409   $as_echo_n "(cached) " >&6
6410 else
6411   if test -n "$STRIP"; then
6412   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6416 do
6417   IFS=$as_save_IFS
6418   test -z "$as_dir" && as_dir=.
6419     for ac_exec_ext in '' $ac_executable_extensions; do
6420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423     break 2
6424   fi
6425 done
6426   done
6427 IFS=$as_save_IFS
6428
6429 fi
6430 fi
6431 STRIP=$ac_cv_prog_STRIP
6432 if test -n "$STRIP"; then
6433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6434 $as_echo "$STRIP" >&6; }
6435 else
6436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 $as_echo "no" >&6; }
6438 fi
6439
6440
6441 fi
6442 if test -z "$ac_cv_prog_STRIP"; then
6443   ac_ct_STRIP=$STRIP
6444   # Extract the first word of "strip", so it can be a program name with args.
6445 set dummy strip; ac_word=$2
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447 $as_echo_n "checking for $ac_word... " >&6; }
6448 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6449   $as_echo_n "(cached) " >&6
6450 else
6451   if test -n "$ac_ct_STRIP"; then
6452   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457   IFS=$as_save_IFS
6458   test -z "$as_dir" && as_dir=.
6459     for ac_exec_ext in '' $ac_executable_extensions; do
6460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6461     ac_cv_prog_ac_ct_STRIP="strip"
6462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463     break 2
6464   fi
6465 done
6466   done
6467 IFS=$as_save_IFS
6468
6469 fi
6470 fi
6471 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6472 if test -n "$ac_ct_STRIP"; then
6473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6474 $as_echo "$ac_ct_STRIP" >&6; }
6475 else
6476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6478 fi
6479
6480   if test "x$ac_ct_STRIP" = x; then
6481     STRIP=":"
6482   else
6483     case $cross_compiling:$ac_tool_warned in
6484 yes:)
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487 ac_tool_warned=yes ;;
6488 esac
6489     STRIP=$ac_ct_STRIP
6490   fi
6491 else
6492   STRIP="$ac_cv_prog_STRIP"
6493 fi
6494
6495 test -z "$STRIP" && STRIP=:
6496
6497
6498
6499
6500
6501
6502 if test -n "$ac_tool_prefix"; then
6503   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6504 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6508   $as_echo_n "(cached) " >&6
6509 else
6510   if test -n "$RANLIB"; then
6511   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6512 else
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6515 do
6516   IFS=$as_save_IFS
6517   test -z "$as_dir" && as_dir=.
6518     for ac_exec_ext in '' $ac_executable_extensions; do
6519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522     break 2
6523   fi
6524 done
6525   done
6526 IFS=$as_save_IFS
6527
6528 fi
6529 fi
6530 RANLIB=$ac_cv_prog_RANLIB
6531 if test -n "$RANLIB"; then
6532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6533 $as_echo "$RANLIB" >&6; }
6534 else
6535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536 $as_echo "no" >&6; }
6537 fi
6538
6539
6540 fi
6541 if test -z "$ac_cv_prog_RANLIB"; then
6542   ac_ct_RANLIB=$RANLIB
6543   # Extract the first word of "ranlib", so it can be a program name with args.
6544 set dummy ranlib; ac_word=$2
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6548   $as_echo_n "(cached) " >&6
6549 else
6550   if test -n "$ac_ct_RANLIB"; then
6551   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556   IFS=$as_save_IFS
6557   test -z "$as_dir" && as_dir=.
6558     for ac_exec_ext in '' $ac_executable_extensions; do
6559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560     ac_cv_prog_ac_ct_RANLIB="ranlib"
6561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562     break 2
6563   fi
6564 done
6565   done
6566 IFS=$as_save_IFS
6567
6568 fi
6569 fi
6570 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6571 if test -n "$ac_ct_RANLIB"; then
6572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6573 $as_echo "$ac_ct_RANLIB" >&6; }
6574 else
6575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6577 fi
6578
6579   if test "x$ac_ct_RANLIB" = x; then
6580     RANLIB=":"
6581   else
6582     case $cross_compiling:$ac_tool_warned in
6583 yes:)
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6586 ac_tool_warned=yes ;;
6587 esac
6588     RANLIB=$ac_ct_RANLIB
6589   fi
6590 else
6591   RANLIB="$ac_cv_prog_RANLIB"
6592 fi
6593
6594 test -z "$RANLIB" && RANLIB=:
6595
6596
6597
6598
6599
6600
6601 # Determine commands to create old-style static archives.
6602 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6603 old_postinstall_cmds='chmod 644 $oldlib'
6604 old_postuninstall_cmds=
6605
6606 if test -n "$RANLIB"; then
6607   case $host_os in
6608   openbsd*)
6609     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6610     ;;
6611   *)
6612     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6613     ;;
6614   esac
6615   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6616 fi
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651 # If no C compiler was specified, use CC.
6652 LTCC=${LTCC-"$CC"}
6653
6654 # If no C compiler flags were specified, use CFLAGS.
6655 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6656
6657 # Allow CC to be a program name with arguments.
6658 compiler=$CC
6659
6660
6661 # Check for command to grab the raw symbol name followed by C symbol from nm.
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6663 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6664 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6665   $as_echo_n "(cached) " >&6
6666 else
6667
6668 # These are sane defaults that work on at least a few old systems.
6669 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6670
6671 # Character class describing NM global symbol codes.
6672 symcode='[BCDEGRST]'
6673
6674 # Regexp to match symbols that can be accessed directly from C.
6675 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6676
6677 # Define system-specific variables.
6678 case $host_os in
6679 aix*)
6680   symcode='[BCDT]'
6681   ;;
6682 cygwin* | mingw* | pw32* | cegcc*)
6683   symcode='[ABCDGISTW]'
6684   ;;
6685 hpux*)
6686   if test "$host_cpu" = ia64; then
6687     symcode='[ABCDEGRST]'
6688   fi
6689   ;;
6690 irix* | nonstopux*)
6691   symcode='[BCDEGRST]'
6692   ;;
6693 osf*)
6694   symcode='[BCDEGQRST]'
6695   ;;
6696 solaris*)
6697   symcode='[BDRT]'
6698   ;;
6699 sco3.2v5*)
6700   symcode='[DT]'
6701   ;;
6702 sysv4.2uw2*)
6703   symcode='[DT]'
6704   ;;
6705 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6706   symcode='[ABDT]'
6707   ;;
6708 sysv4)
6709   symcode='[DFNSTU]'
6710   ;;
6711 esac
6712
6713 # If we're using GNU nm, then use its standard symbol codes.
6714 case `$NM -V 2>&1` in
6715 *GNU* | *'with BFD'*)
6716   symcode='[ABCDGIRSTW]' ;;
6717 esac
6718
6719 # Transform an extracted symbol line into a proper C declaration.
6720 # Some systems (esp. on ia64) link data and code symbols differently,
6721 # so use this general approach.
6722 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6723
6724 # Transform an extracted symbol line into symbol name and symbol address
6725 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6726 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'"
6727
6728 # Handle CRLF in mingw tool chain
6729 opt_cr=
6730 case $build_os in
6731 mingw*)
6732   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6733   ;;
6734 esac
6735
6736 # Try without a prefix underscore, then with it.
6737 for ac_symprfx in "" "_"; do
6738
6739   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6740   symxfrm="\\1 $ac_symprfx\\2 \\2"
6741
6742   # Write the raw and C identifiers.
6743   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6744     # Fake it for dumpbin and say T for any non-static function
6745     # and D for any global variable.
6746     # Also find C++ and __fastcall symbols from MSVC++,
6747     # which start with @ or ?.
6748     lt_cv_sys_global_symbol_pipe="$AWK '"\
6749 "     {last_section=section; section=\$ 3};"\
6750 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6751 "     \$ 0!~/External *\|/{next};"\
6752 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6753 "     {if(hide[section]) next};"\
6754 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6755 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6756 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6757 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6758 "     ' prfx=^$ac_symprfx"
6759   else
6760     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6761   fi
6762
6763   # Check to see that the pipe works correctly.
6764   pipe_works=no
6765
6766   rm -f conftest*
6767   cat > conftest.$ac_ext <<_LT_EOF
6768 #ifdef __cplusplus
6769 extern "C" {
6770 #endif
6771 char nm_test_var;
6772 void nm_test_func(void);
6773 void nm_test_func(void){}
6774 #ifdef __cplusplus
6775 }
6776 #endif
6777 int main(){nm_test_var='a';nm_test_func();return(0);}
6778 _LT_EOF
6779
6780   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6781   (eval $ac_compile) 2>&5
6782   ac_status=$?
6783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6784   test $ac_status = 0; }; then
6785     # Now try to grab the symbols.
6786     nlist=conftest.nm
6787     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6788   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6789   ac_status=$?
6790   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6791   test $ac_status = 0; } && test -s "$nlist"; then
6792       # Try sorting and uniquifying the output.
6793       if sort "$nlist" | uniq > "$nlist"T; then
6794         mv -f "$nlist"T "$nlist"
6795       else
6796         rm -f "$nlist"T
6797       fi
6798
6799       # Make sure that we snagged all the symbols we need.
6800       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6801         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6802           cat <<_LT_EOF > conftest.$ac_ext
6803 #ifdef __cplusplus
6804 extern "C" {
6805 #endif
6806
6807 _LT_EOF
6808           # Now generate the symbol file.
6809           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6810
6811           cat <<_LT_EOF >> conftest.$ac_ext
6812
6813 /* The mapping between symbol names and symbols.  */
6814 const struct {
6815   const char *name;
6816   void       *address;
6817 }
6818 lt__PROGRAM__LTX_preloaded_symbols[] =
6819 {
6820   { "@PROGRAM@", (void *) 0 },
6821 _LT_EOF
6822           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6823           cat <<\_LT_EOF >> conftest.$ac_ext
6824   {0, (void *) 0}
6825 };
6826
6827 /* This works around a problem in FreeBSD linker */
6828 #ifdef FREEBSD_WORKAROUND
6829 static const void *lt_preloaded_setup() {
6830   return lt__PROGRAM__LTX_preloaded_symbols;
6831 }
6832 #endif
6833
6834 #ifdef __cplusplus
6835 }
6836 #endif
6837 _LT_EOF
6838           # Now try linking the two files.
6839           mv conftest.$ac_objext conftstm.$ac_objext
6840           lt_save_LIBS="$LIBS"
6841           lt_save_CFLAGS="$CFLAGS"
6842           LIBS="conftstm.$ac_objext"
6843           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6844           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6845   (eval $ac_link) 2>&5
6846   ac_status=$?
6847   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6848   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6849             pipe_works=yes
6850           fi
6851           LIBS="$lt_save_LIBS"
6852           CFLAGS="$lt_save_CFLAGS"
6853         else
6854           echo "cannot find nm_test_func in $nlist" >&5
6855         fi
6856       else
6857         echo "cannot find nm_test_var in $nlist" >&5
6858       fi
6859     else
6860       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6861     fi
6862   else
6863     echo "$progname: failed program was:" >&5
6864     cat conftest.$ac_ext >&5
6865   fi
6866   rm -rf conftest* conftst*
6867
6868   # Do not use the global_symbol_pipe unless it works.
6869   if test "$pipe_works" = yes; then
6870     break
6871   else
6872     lt_cv_sys_global_symbol_pipe=
6873   fi
6874 done
6875
6876 fi
6877
6878 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6879   lt_cv_sys_global_symbol_to_cdecl=
6880 fi
6881 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6883 $as_echo "failed" >&6; }
6884 else
6885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6886 $as_echo "ok" >&6; }
6887 fi
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910 # Check whether --enable-libtool-lock was given.
6911 if test "${enable_libtool_lock+set}" = set; then :
6912   enableval=$enable_libtool_lock;
6913 fi
6914
6915 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6916
6917 # Some flags need to be propagated to the compiler or linker for good
6918 # libtool support.
6919 case $host in
6920 ia64-*-hpux*)
6921   # Find out which ABI we are using.
6922   echo 'int i;' > conftest.$ac_ext
6923   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6924   (eval $ac_compile) 2>&5
6925   ac_status=$?
6926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6927   test $ac_status = 0; }; then
6928     case `/usr/bin/file conftest.$ac_objext` in
6929       *ELF-32*)
6930         HPUX_IA64_MODE="32"
6931         ;;
6932       *ELF-64*)
6933         HPUX_IA64_MODE="64"
6934         ;;
6935     esac
6936   fi
6937   rm -rf conftest*
6938   ;;
6939 *-*-irix6*)
6940   # Find out which ABI we are using.
6941   echo '#line 6941 "configure"' > conftest.$ac_ext
6942   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6943   (eval $ac_compile) 2>&5
6944   ac_status=$?
6945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6946   test $ac_status = 0; }; then
6947     if test "$lt_cv_prog_gnu_ld" = yes; then
6948       case `/usr/bin/file conftest.$ac_objext` in
6949         *32-bit*)
6950           LD="${LD-ld} -melf32bsmip"
6951           ;;
6952         *N32*)
6953           LD="${LD-ld} -melf32bmipn32"
6954           ;;
6955         *64-bit*)
6956           LD="${LD-ld} -melf64bmip"
6957         ;;
6958       esac
6959     else
6960       case `/usr/bin/file conftest.$ac_objext` in
6961         *32-bit*)
6962           LD="${LD-ld} -32"
6963           ;;
6964         *N32*)
6965           LD="${LD-ld} -n32"
6966           ;;
6967         *64-bit*)
6968           LD="${LD-ld} -64"
6969           ;;
6970       esac
6971     fi
6972   fi
6973   rm -rf conftest*
6974   ;;
6975
6976 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6977 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6978   # Find out which ABI we are using.
6979   echo 'int i;' > conftest.$ac_ext
6980   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6981   (eval $ac_compile) 2>&5
6982   ac_status=$?
6983   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6984   test $ac_status = 0; }; then
6985     case `/usr/bin/file conftest.o` in
6986       *32-bit*)
6987         case $host in
6988           x86_64-*kfreebsd*-gnu)
6989             LD="${LD-ld} -m elf_i386_fbsd"
6990             ;;
6991           x86_64-*linux*)
6992             LD="${LD-ld} -m elf_i386"
6993             ;;
6994           ppc64-*linux*|powerpc64-*linux*)
6995             LD="${LD-ld} -m elf32ppclinux"
6996             ;;
6997           s390x-*linux*)
6998             LD="${LD-ld} -m elf_s390"
6999             ;;
7000           sparc64-*linux*)
7001             LD="${LD-ld} -m elf32_sparc"
7002             ;;
7003         esac
7004         ;;
7005       *64-bit*)
7006         case $host in
7007           x86_64-*kfreebsd*-gnu)
7008             LD="${LD-ld} -m elf_x86_64_fbsd"
7009             ;;
7010           x86_64-*linux*)
7011             LD="${LD-ld} -m elf_x86_64"
7012             ;;
7013           ppc*-*linux*|powerpc*-*linux*)
7014             LD="${LD-ld} -m elf64ppc"
7015             ;;
7016           s390*-*linux*|s390*-*tpf*)
7017             LD="${LD-ld} -m elf64_s390"
7018             ;;
7019           sparc*-*linux*)
7020             LD="${LD-ld} -m elf64_sparc"
7021             ;;
7022         esac
7023         ;;
7024     esac
7025   fi
7026   rm -rf conftest*
7027   ;;
7028
7029 *-*-sco3.2v5*)
7030   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7031   SAVE_CFLAGS="$CFLAGS"
7032   CFLAGS="$CFLAGS -belf"
7033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7034 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7035 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7036   $as_echo_n "(cached) " >&6
7037 else
7038   ac_ext=c
7039 ac_cpp='$CPP $CPPFLAGS'
7040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7043
7044      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h.  */
7046
7047 int
7048 main ()
7049 {
7050
7051   ;
7052   return 0;
7053 }
7054 _ACEOF
7055 if ac_fn_c_try_link "$LINENO"; then :
7056   lt_cv_cc_needs_belf=yes
7057 else
7058   lt_cv_cc_needs_belf=no
7059 fi
7060 rm -f core conftest.err conftest.$ac_objext \
7061     conftest$ac_exeext conftest.$ac_ext
7062      ac_ext=c
7063 ac_cpp='$CPP $CPPFLAGS'
7064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7067
7068 fi
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7070 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7071   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7072     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7073     CFLAGS="$SAVE_CFLAGS"
7074   fi
7075   ;;
7076 sparc*-*solaris*)
7077   # Find out which ABI we are using.
7078   echo 'int i;' > conftest.$ac_ext
7079   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7080   (eval $ac_compile) 2>&5
7081   ac_status=$?
7082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7083   test $ac_status = 0; }; then
7084     case `/usr/bin/file conftest.o` in
7085     *64-bit*)
7086       case $lt_cv_prog_gnu_ld in
7087       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7088       *)
7089         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7090           LD="${LD-ld} -64"
7091         fi
7092         ;;
7093       esac
7094       ;;
7095     esac
7096   fi
7097   rm -rf conftest*
7098   ;;
7099 esac
7100
7101 need_locks="$enable_libtool_lock"
7102
7103
7104   case $host_os in
7105     rhapsody* | darwin*)
7106     if test -n "$ac_tool_prefix"; then
7107   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7108 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110 $as_echo_n "checking for $ac_word... " >&6; }
7111 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7112   $as_echo_n "(cached) " >&6
7113 else
7114   if test -n "$DSYMUTIL"; then
7115   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122     for ac_exec_ext in '' $ac_executable_extensions; do
7123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7124     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127   fi
7128 done
7129   done
7130 IFS=$as_save_IFS
7131
7132 fi
7133 fi
7134 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7135 if test -n "$DSYMUTIL"; then
7136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7137 $as_echo "$DSYMUTIL" >&6; }
7138 else
7139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140 $as_echo "no" >&6; }
7141 fi
7142
7143
7144 fi
7145 if test -z "$ac_cv_prog_DSYMUTIL"; then
7146   ac_ct_DSYMUTIL=$DSYMUTIL
7147   # Extract the first word of "dsymutil", so it can be a program name with args.
7148 set dummy dsymutil; ac_word=$2
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7150 $as_echo_n "checking for $ac_word... " >&6; }
7151 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7152   $as_echo_n "(cached) " >&6
7153 else
7154   if test -n "$ac_ct_DSYMUTIL"; then
7155   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7156 else
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 for as_dir in $PATH
7159 do
7160   IFS=$as_save_IFS
7161   test -z "$as_dir" && as_dir=.
7162     for ac_exec_ext in '' $ac_executable_extensions; do
7163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7164     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7166     break 2
7167   fi
7168 done
7169   done
7170 IFS=$as_save_IFS
7171
7172 fi
7173 fi
7174 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7175 if test -n "$ac_ct_DSYMUTIL"; then
7176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7177 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7178 else
7179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180 $as_echo "no" >&6; }
7181 fi
7182
7183   if test "x$ac_ct_DSYMUTIL" = x; then
7184     DSYMUTIL=":"
7185   else
7186     case $cross_compiling:$ac_tool_warned in
7187 yes:)
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7190 ac_tool_warned=yes ;;
7191 esac
7192     DSYMUTIL=$ac_ct_DSYMUTIL
7193   fi
7194 else
7195   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7196 fi
7197
7198     if test -n "$ac_tool_prefix"; then
7199   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7200 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202 $as_echo_n "checking for $ac_word... " >&6; }
7203 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7204   $as_echo_n "(cached) " >&6
7205 else
7206   if test -n "$NMEDIT"; then
7207   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7208 else
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7211 do
7212   IFS=$as_save_IFS
7213   test -z "$as_dir" && as_dir=.
7214     for ac_exec_ext in '' $ac_executable_extensions; do
7215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7216     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218     break 2
7219   fi
7220 done
7221   done
7222 IFS=$as_save_IFS
7223
7224 fi
7225 fi
7226 NMEDIT=$ac_cv_prog_NMEDIT
7227 if test -n "$NMEDIT"; then
7228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7229 $as_echo "$NMEDIT" >&6; }
7230 else
7231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232 $as_echo "no" >&6; }
7233 fi
7234
7235
7236 fi
7237 if test -z "$ac_cv_prog_NMEDIT"; then
7238   ac_ct_NMEDIT=$NMEDIT
7239   # Extract the first word of "nmedit", so it can be a program name with args.
7240 set dummy nmedit; ac_word=$2
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7242 $as_echo_n "checking for $ac_word... " >&6; }
7243 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7244   $as_echo_n "(cached) " >&6
7245 else
7246   if test -n "$ac_ct_NMEDIT"; then
7247   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7248 else
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 for as_dir in $PATH
7251 do
7252   IFS=$as_save_IFS
7253   test -z "$as_dir" && as_dir=.
7254     for ac_exec_ext in '' $ac_executable_extensions; do
7255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7256     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7258     break 2
7259   fi
7260 done
7261   done
7262 IFS=$as_save_IFS
7263
7264 fi
7265 fi
7266 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7267 if test -n "$ac_ct_NMEDIT"; then
7268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7269 $as_echo "$ac_ct_NMEDIT" >&6; }
7270 else
7271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272 $as_echo "no" >&6; }
7273 fi
7274
7275   if test "x$ac_ct_NMEDIT" = x; then
7276     NMEDIT=":"
7277   else
7278     case $cross_compiling:$ac_tool_warned in
7279 yes:)
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7282 ac_tool_warned=yes ;;
7283 esac
7284     NMEDIT=$ac_ct_NMEDIT
7285   fi
7286 else
7287   NMEDIT="$ac_cv_prog_NMEDIT"
7288 fi
7289
7290     if test -n "$ac_tool_prefix"; then
7291   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7292 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if test "${ac_cv_prog_LIPO+set}" = set; then :
7296   $as_echo_n "(cached) " >&6
7297 else
7298   if test -n "$LIPO"; then
7299   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7300 else
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 for as_dir in $PATH
7303 do
7304   IFS=$as_save_IFS
7305   test -z "$as_dir" && as_dir=.
7306     for ac_exec_ext in '' $ac_executable_extensions; do
7307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7308     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310     break 2
7311   fi
7312 done
7313   done
7314 IFS=$as_save_IFS
7315
7316 fi
7317 fi
7318 LIPO=$ac_cv_prog_LIPO
7319 if test -n "$LIPO"; then
7320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7321 $as_echo "$LIPO" >&6; }
7322 else
7323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324 $as_echo "no" >&6; }
7325 fi
7326
7327
7328 fi
7329 if test -z "$ac_cv_prog_LIPO"; then
7330   ac_ct_LIPO=$LIPO
7331   # Extract the first word of "lipo", so it can be a program name with args.
7332 set dummy lipo; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7336   $as_echo_n "(cached) " >&6
7337 else
7338   if test -n "$ac_ct_LIPO"; then
7339   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7340 else
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7343 do
7344   IFS=$as_save_IFS
7345   test -z "$as_dir" && as_dir=.
7346     for ac_exec_ext in '' $ac_executable_extensions; do
7347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7348     ac_cv_prog_ac_ct_LIPO="lipo"
7349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350     break 2
7351   fi
7352 done
7353   done
7354 IFS=$as_save_IFS
7355
7356 fi
7357 fi
7358 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7359 if test -n "$ac_ct_LIPO"; then
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7361 $as_echo "$ac_ct_LIPO" >&6; }
7362 else
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7365 fi
7366
7367   if test "x$ac_ct_LIPO" = x; then
7368     LIPO=":"
7369   else
7370     case $cross_compiling:$ac_tool_warned in
7371 yes:)
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7374 ac_tool_warned=yes ;;
7375 esac
7376     LIPO=$ac_ct_LIPO
7377   fi
7378 else
7379   LIPO="$ac_cv_prog_LIPO"
7380 fi
7381
7382     if test -n "$ac_tool_prefix"; then
7383   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7384 set dummy ${ac_tool_prefix}otool; ac_word=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 $as_echo_n "checking for $ac_word... " >&6; }
7387 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7388   $as_echo_n "(cached) " >&6
7389 else
7390   if test -n "$OTOOL"; then
7391   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7392 else
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7395 do
7396   IFS=$as_save_IFS
7397   test -z "$as_dir" && as_dir=.
7398     for ac_exec_ext in '' $ac_executable_extensions; do
7399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7400     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7402     break 2
7403   fi
7404 done
7405   done
7406 IFS=$as_save_IFS
7407
7408 fi
7409 fi
7410 OTOOL=$ac_cv_prog_OTOOL
7411 if test -n "$OTOOL"; then
7412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7413 $as_echo "$OTOOL" >&6; }
7414 else
7415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7417 fi
7418
7419
7420 fi
7421 if test -z "$ac_cv_prog_OTOOL"; then
7422   ac_ct_OTOOL=$OTOOL
7423   # Extract the first word of "otool", so it can be a program name with args.
7424 set dummy otool; ac_word=$2
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426 $as_echo_n "checking for $ac_word... " >&6; }
7427 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7428   $as_echo_n "(cached) " >&6
7429 else
7430   if test -n "$ac_ct_OTOOL"; then
7431   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7432 else
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 for as_dir in $PATH
7435 do
7436   IFS=$as_save_IFS
7437   test -z "$as_dir" && as_dir=.
7438     for ac_exec_ext in '' $ac_executable_extensions; do
7439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7440     ac_cv_prog_ac_ct_OTOOL="otool"
7441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442     break 2
7443   fi
7444 done
7445   done
7446 IFS=$as_save_IFS
7447
7448 fi
7449 fi
7450 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7451 if test -n "$ac_ct_OTOOL"; then
7452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7453 $as_echo "$ac_ct_OTOOL" >&6; }
7454 else
7455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 $as_echo "no" >&6; }
7457 fi
7458
7459   if test "x$ac_ct_OTOOL" = x; then
7460     OTOOL=":"
7461   else
7462     case $cross_compiling:$ac_tool_warned in
7463 yes:)
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7466 ac_tool_warned=yes ;;
7467 esac
7468     OTOOL=$ac_ct_OTOOL
7469   fi
7470 else
7471   OTOOL="$ac_cv_prog_OTOOL"
7472 fi
7473
7474     if test -n "$ac_tool_prefix"; then
7475   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7476 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478 $as_echo_n "checking for $ac_word... " >&6; }
7479 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7480   $as_echo_n "(cached) " >&6
7481 else
7482   if test -n "$OTOOL64"; then
7483   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7484 else
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7487 do
7488   IFS=$as_save_IFS
7489   test -z "$as_dir" && as_dir=.
7490     for ac_exec_ext in '' $ac_executable_extensions; do
7491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7492     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494     break 2
7495   fi
7496 done
7497   done
7498 IFS=$as_save_IFS
7499
7500 fi
7501 fi
7502 OTOOL64=$ac_cv_prog_OTOOL64
7503 if test -n "$OTOOL64"; then
7504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7505 $as_echo "$OTOOL64" >&6; }
7506 else
7507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7509 fi
7510
7511
7512 fi
7513 if test -z "$ac_cv_prog_OTOOL64"; then
7514   ac_ct_OTOOL64=$OTOOL64
7515   # Extract the first word of "otool64", so it can be a program name with args.
7516 set dummy otool64; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7520   $as_echo_n "(cached) " >&6
7521 else
7522   if test -n "$ac_ct_OTOOL64"; then
7523   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528   IFS=$as_save_IFS
7529   test -z "$as_dir" && as_dir=.
7530     for ac_exec_ext in '' $ac_executable_extensions; do
7531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7532     ac_cv_prog_ac_ct_OTOOL64="otool64"
7533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534     break 2
7535   fi
7536 done
7537   done
7538 IFS=$as_save_IFS
7539
7540 fi
7541 fi
7542 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7543 if test -n "$ac_ct_OTOOL64"; then
7544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7545 $as_echo "$ac_ct_OTOOL64" >&6; }
7546 else
7547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7549 fi
7550
7551   if test "x$ac_ct_OTOOL64" = x; then
7552     OTOOL64=":"
7553   else
7554     case $cross_compiling:$ac_tool_warned in
7555 yes:)
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7558 ac_tool_warned=yes ;;
7559 esac
7560     OTOOL64=$ac_ct_OTOOL64
7561   fi
7562 else
7563   OTOOL64="$ac_cv_prog_OTOOL64"
7564 fi
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7593 $as_echo_n "checking for -single_module linker flag... " >&6; }
7594 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7595   $as_echo_n "(cached) " >&6
7596 else
7597   lt_cv_apple_cc_single_mod=no
7598       if test -z "${LT_MULTI_MODULE}"; then
7599         # By default we will add the -single_module flag. You can override
7600         # by either setting the environment variable LT_MULTI_MODULE
7601         # non-empty at configure time, or by adding -multi_module to the
7602         # link flags.
7603         rm -rf libconftest.dylib*
7604         echo "int foo(void){return 1;}" > conftest.c
7605         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7606 -dynamiclib -Wl,-single_module conftest.c" >&5
7607         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7608           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7609         _lt_result=$?
7610         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7611           lt_cv_apple_cc_single_mod=yes
7612         else
7613           cat conftest.err >&5
7614         fi
7615         rm -rf libconftest.dylib*
7616         rm -f conftest.*
7617       fi
7618 fi
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7620 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7622 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7623 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7624   $as_echo_n "(cached) " >&6
7625 else
7626   lt_cv_ld_exported_symbols_list=no
7627       save_LDFLAGS=$LDFLAGS
7628       echo "_main" > conftest.sym
7629       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7630       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h.  */
7632
7633 int
7634 main ()
7635 {
7636
7637   ;
7638   return 0;
7639 }
7640 _ACEOF
7641 if ac_fn_c_try_link "$LINENO"; then :
7642   lt_cv_ld_exported_symbols_list=yes
7643 else
7644   lt_cv_ld_exported_symbols_list=no
7645 fi
7646 rm -f core conftest.err conftest.$ac_objext \
7647     conftest$ac_exeext conftest.$ac_ext
7648         LDFLAGS="$save_LDFLAGS"
7649
7650 fi
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7652 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7653     case $host_os in
7654     rhapsody* | darwin1.[012])
7655       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7656     darwin1.*)
7657       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7658     darwin*) # darwin 5.x on
7659       # if running on 10.5 or later, the deployment target defaults
7660       # to the OS version, if on x86, and 10.4, the deployment
7661       # target defaults to 10.4. Don't you love it?
7662       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7663         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7664           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7665         10.[012]*)
7666           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7667         10.*)
7668           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7669       esac
7670     ;;
7671   esac
7672     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7673       _lt_dar_single_mod='$single_module'
7674     fi
7675     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7676       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7677     else
7678       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7679     fi
7680     if test "$DSYMUTIL" != ":"; then
7681       _lt_dsymutil='~$DSYMUTIL $lib || :'
7682     else
7683       _lt_dsymutil=
7684     fi
7685     ;;
7686   esac
7687
7688 for ac_header in dlfcn.h
7689 do :
7690   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7691 "
7692 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7693   cat >>confdefs.h <<_ACEOF
7694 #define HAVE_DLFCN_H 1
7695 _ACEOF
7696
7697 fi
7698
7699 done
7700
7701
7702
7703 # Set options
7704
7705
7706
7707         enable_dlopen=no
7708
7709
7710   enable_win32_dll=no
7711
7712
7713             # Check whether --enable-shared was given.
7714 if test "${enable_shared+set}" = set; then :
7715   enableval=$enable_shared; p=${PACKAGE-default}
7716     case $enableval in
7717     yes) enable_shared=yes ;;
7718     no) enable_shared=no ;;
7719     *)
7720       enable_shared=no
7721       # Look at the argument we got.  We use all the common list separators.
7722       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7723       for pkg in $enableval; do
7724         IFS="$lt_save_ifs"
7725         if test "X$pkg" = "X$p"; then
7726           enable_shared=yes
7727         fi
7728       done
7729       IFS="$lt_save_ifs"
7730       ;;
7731     esac
7732 else
7733   enable_shared=yes
7734 fi
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744   # Check whether --enable-static was given.
7745 if test "${enable_static+set}" = set; then :
7746   enableval=$enable_static; p=${PACKAGE-default}
7747     case $enableval in
7748     yes) enable_static=yes ;;
7749     no) enable_static=no ;;
7750     *)
7751      enable_static=no
7752       # Look at the argument we got.  We use all the common list separators.
7753       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7754       for pkg in $enableval; do
7755         IFS="$lt_save_ifs"
7756         if test "X$pkg" = "X$p"; then
7757           enable_static=yes
7758         fi
7759       done
7760       IFS="$lt_save_ifs"
7761       ;;
7762     esac
7763 else
7764   enable_static=yes
7765 fi
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776 # Check whether --with-pic was given.
7777 if test "${with_pic+set}" = set; then :
7778   withval=$with_pic; pic_mode="$withval"
7779 else
7780   pic_mode=default
7781 fi
7782
7783
7784 test -z "$pic_mode" && pic_mode=default
7785
7786
7787
7788
7789
7790
7791
7792   # Check whether --enable-fast-install was given.
7793 if test "${enable_fast_install+set}" = set; then :
7794   enableval=$enable_fast_install; p=${PACKAGE-default}
7795     case $enableval in
7796     yes) enable_fast_install=yes ;;
7797     no) enable_fast_install=no ;;
7798     *)
7799       enable_fast_install=no
7800       # Look at the argument we got.  We use all the common list separators.
7801       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7802       for pkg in $enableval; do
7803         IFS="$lt_save_ifs"
7804         if test "X$pkg" = "X$p"; then
7805           enable_fast_install=yes
7806         fi
7807       done
7808       IFS="$lt_save_ifs"
7809       ;;
7810     esac
7811 else
7812   enable_fast_install=yes
7813 fi
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825 # This can be used to rebuild libtool when needed
7826 LIBTOOL_DEPS="$ltmain"
7827
7828 # Always use our own libtool.
7829 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855 test -z "$LN_S" && LN_S="ln -s"
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870 if test -n "${ZSH_VERSION+set}" ; then
7871    setopt NO_GLOB_SUBST
7872 fi
7873
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7875 $as_echo_n "checking for objdir... " >&6; }
7876 if test "${lt_cv_objdir+set}" = set; then :
7877   $as_echo_n "(cached) " >&6
7878 else
7879   rm -f .libs 2>/dev/null
7880 mkdir .libs 2>/dev/null
7881 if test -d .libs; then
7882   lt_cv_objdir=.libs
7883 else
7884   # MS-DOS does not allow filenames that begin with a dot.
7885   lt_cv_objdir=_libs
7886 fi
7887 rmdir .libs 2>/dev/null
7888 fi
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7890 $as_echo "$lt_cv_objdir" >&6; }
7891 objdir=$lt_cv_objdir
7892
7893
7894
7895
7896
7897 cat >>confdefs.h <<_ACEOF
7898 #define LT_OBJDIR "$lt_cv_objdir/"
7899 _ACEOF
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917 case $host_os in
7918 aix3*)
7919   # AIX sometimes has problems with the GCC collect2 program.  For some
7920   # reason, if we set the COLLECT_NAMES environment variable, the problems
7921   # vanish in a puff of smoke.
7922   if test "X${COLLECT_NAMES+set}" != Xset; then
7923     COLLECT_NAMES=
7924     export COLLECT_NAMES
7925   fi
7926   ;;
7927 esac
7928
7929 # Sed substitution that helps us do robust quoting.  It backslashifies
7930 # metacharacters that are still active within double-quoted strings.
7931 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7932
7933 # Same as above, but do not quote variable references.
7934 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7935
7936 # Sed substitution to delay expansion of an escaped shell variable in a
7937 # double_quote_subst'ed string.
7938 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7939
7940 # Sed substitution to delay expansion of an escaped single quote.
7941 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7942
7943 # Sed substitution to avoid accidental globbing in evaled expressions
7944 no_glob_subst='s/\*/\\\*/g'
7945
7946 # Global variables:
7947 ofile=libtool
7948 can_build_shared=yes
7949
7950 # All known linkers require a `.a' archive for static linking (except MSVC,
7951 # which needs '.lib').
7952 libext=a
7953
7954 with_gnu_ld="$lt_cv_prog_gnu_ld"
7955
7956 old_CC="$CC"
7957 old_CFLAGS="$CFLAGS"
7958
7959 # Set sane defaults for various variables
7960 test -z "$CC" && CC=cc
7961 test -z "$LTCC" && LTCC=$CC
7962 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7963 test -z "$LD" && LD=ld
7964 test -z "$ac_objext" && ac_objext=o
7965
7966 for cc_temp in $compiler""; do
7967   case $cc_temp in
7968     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7969     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7970     \-*) ;;
7971     *) break;;
7972   esac
7973 done
7974 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7975
7976
7977 # Only perform the check for file, if the check method requires it
7978 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7979 case $deplibs_check_method in
7980 file_magic*)
7981   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7982     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7983 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7984 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7985   $as_echo_n "(cached) " >&6
7986 else
7987   case $MAGIC_CMD in
7988 [\\/*] |  ?:[\\/]*)
7989   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7990   ;;
7991 *)
7992   lt_save_MAGIC_CMD="$MAGIC_CMD"
7993   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7994   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7995   for ac_dir in $ac_dummy; do
7996     IFS="$lt_save_ifs"
7997     test -z "$ac_dir" && ac_dir=.
7998     if test -f $ac_dir/${ac_tool_prefix}file; then
7999       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8000       if test -n "$file_magic_test_file"; then
8001         case $deplibs_check_method in
8002         "file_magic "*)
8003           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8004           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8005           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8006             $EGREP "$file_magic_regex" > /dev/null; then
8007             :
8008           else
8009             cat <<_LT_EOF 1>&2
8010
8011 *** Warning: the command libtool uses to detect shared libraries,
8012 *** $file_magic_cmd, produces output that libtool cannot recognize.
8013 *** The result is that libtool may fail to recognize shared libraries
8014 *** as such.  This will affect the creation of libtool libraries that
8015 *** depend on shared libraries, but programs linked with such libtool
8016 *** libraries will work regardless of this problem.  Nevertheless, you
8017 *** may want to report the problem to your system manager and/or to
8018 *** bug-libtool@gnu.org
8019
8020 _LT_EOF
8021           fi ;;
8022         esac
8023       fi
8024       break
8025     fi
8026   done
8027   IFS="$lt_save_ifs"
8028   MAGIC_CMD="$lt_save_MAGIC_CMD"
8029   ;;
8030 esac
8031 fi
8032
8033 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8034 if test -n "$MAGIC_CMD"; then
8035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8036 $as_echo "$MAGIC_CMD" >&6; }
8037 else
8038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 $as_echo "no" >&6; }
8040 fi
8041
8042
8043
8044
8045
8046 if test -z "$lt_cv_path_MAGIC_CMD"; then
8047   if test -n "$ac_tool_prefix"; then
8048     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8049 $as_echo_n "checking for file... " >&6; }
8050 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8051   $as_echo_n "(cached) " >&6
8052 else
8053   case $MAGIC_CMD in
8054 [\\/*] |  ?:[\\/]*)
8055   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8056   ;;
8057 *)
8058   lt_save_MAGIC_CMD="$MAGIC_CMD"
8059   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8060   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8061   for ac_dir in $ac_dummy; do
8062     IFS="$lt_save_ifs"
8063     test -z "$ac_dir" && ac_dir=.
8064     if test -f $ac_dir/file; then
8065       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8066       if test -n "$file_magic_test_file"; then
8067         case $deplibs_check_method in
8068         "file_magic "*)
8069           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8070           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8071           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8072             $EGREP "$file_magic_regex" > /dev/null; then
8073             :
8074           else
8075             cat <<_LT_EOF 1>&2
8076
8077 *** Warning: the command libtool uses to detect shared libraries,
8078 *** $file_magic_cmd, produces output that libtool cannot recognize.
8079 *** The result is that libtool may fail to recognize shared libraries
8080 *** as such.  This will affect the creation of libtool libraries that
8081 *** depend on shared libraries, but programs linked with such libtool
8082 *** libraries will work regardless of this problem.  Nevertheless, you
8083 *** may want to report the problem to your system manager and/or to
8084 *** bug-libtool@gnu.org
8085
8086 _LT_EOF
8087           fi ;;
8088         esac
8089       fi
8090       break
8091     fi
8092   done
8093   IFS="$lt_save_ifs"
8094   MAGIC_CMD="$lt_save_MAGIC_CMD"
8095   ;;
8096 esac
8097 fi
8098
8099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8100 if test -n "$MAGIC_CMD"; then
8101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8102 $as_echo "$MAGIC_CMD" >&6; }
8103 else
8104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8106 fi
8107
8108
8109   else
8110     MAGIC_CMD=:
8111   fi
8112 fi
8113
8114   fi
8115   ;;
8116 esac
8117
8118 # Use C for the default configuration in the libtool script
8119
8120 lt_save_CC="$CC"
8121 ac_ext=c
8122 ac_cpp='$CPP $CPPFLAGS'
8123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8126
8127
8128 # Source file extension for C test sources.
8129 ac_ext=c
8130
8131 # Object file extension for compiled C test sources.
8132 objext=o
8133 objext=$objext
8134
8135 # Code to be used in simple compile tests
8136 lt_simple_compile_test_code="int some_variable = 0;"
8137
8138 # Code to be used in simple link tests
8139 lt_simple_link_test_code='int main(){return(0);}'
8140
8141
8142
8143
8144
8145
8146
8147 # If no C compiler was specified, use CC.
8148 LTCC=${LTCC-"$CC"}
8149
8150 # If no C compiler flags were specified, use CFLAGS.
8151 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8152
8153 # Allow CC to be a program name with arguments.
8154 compiler=$CC
8155
8156 # Save the default compiler, since it gets overwritten when the other
8157 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8158 compiler_DEFAULT=$CC
8159
8160 # save warnings/boilerplate of simple test code
8161 ac_outfile=conftest.$ac_objext
8162 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8163 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8164 _lt_compiler_boilerplate=`cat conftest.err`
8165 $RM conftest*
8166
8167 ac_outfile=conftest.$ac_objext
8168 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8169 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8170 _lt_linker_boilerplate=`cat conftest.err`
8171 $RM -r conftest*
8172
8173
8174 if test -n "$compiler"; then
8175
8176 lt_prog_compiler_no_builtin_flag=
8177
8178 if test "$GCC" = yes; then
8179   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8180
8181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8182 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8183 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8184   $as_echo_n "(cached) " >&6
8185 else
8186   lt_cv_prog_compiler_rtti_exceptions=no
8187    ac_outfile=conftest.$ac_objext
8188    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8189    lt_compiler_flag="-fno-rtti -fno-exceptions"
8190    # Insert the option either (1) after the last *FLAGS variable, or
8191    # (2) before a word containing "conftest.", or (3) at the end.
8192    # Note that $ac_compile itself does not contain backslashes and begins
8193    # with a dollar sign (not a hyphen), so the echo should work correctly.
8194    # The option is referenced via a variable to avoid confusing sed.
8195    lt_compile=`echo "$ac_compile" | $SED \
8196    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8197    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8198    -e 's:$: $lt_compiler_flag:'`
8199    (eval echo "\"\$as_me:8199: $lt_compile\"" >&5)
8200    (eval "$lt_compile" 2>conftest.err)
8201    ac_status=$?
8202    cat conftest.err >&5
8203    echo "$as_me:8203: \$? = $ac_status" >&5
8204    if (exit $ac_status) && test -s "$ac_outfile"; then
8205      # The compiler can only warn and ignore the option if not recognized
8206      # So say no if there are warnings other than the usual output.
8207      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8208      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8209      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8210        lt_cv_prog_compiler_rtti_exceptions=yes
8211      fi
8212    fi
8213    $RM conftest*
8214
8215 fi
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8217 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8218
8219 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8220     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8221 else
8222     :
8223 fi
8224
8225 fi
8226
8227
8228
8229
8230
8231
8232   lt_prog_compiler_wl=
8233 lt_prog_compiler_pic=
8234 lt_prog_compiler_static=
8235
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8237 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8238
8239   if test "$GCC" = yes; then
8240     lt_prog_compiler_wl='-Wl,'
8241     lt_prog_compiler_static='-static'
8242
8243     case $host_os in
8244       aix*)
8245       # All AIX code is PIC.
8246       if test "$host_cpu" = ia64; then
8247         # AIX 5 now supports IA64 processor
8248         lt_prog_compiler_static='-Bstatic'
8249       fi
8250       ;;
8251
8252     amigaos*)
8253       case $host_cpu in
8254       powerpc)
8255             # see comment about AmigaOS4 .so support
8256             lt_prog_compiler_pic='-fPIC'
8257         ;;
8258       m68k)
8259             # FIXME: we need at least 68020 code to build shared libraries, but
8260             # adding the `-m68020' flag to GCC prevents building anything better,
8261             # like `-m68040'.
8262             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8263         ;;
8264       esac
8265       ;;
8266
8267     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8268       # PIC is the default for these OSes.
8269       ;;
8270
8271     mingw* | cygwin* | pw32* | os2* | cegcc*)
8272       # This hack is so that the source file can tell whether it is being
8273       # built for inclusion in a dll (and should export symbols for example).
8274       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8275       # (--disable-auto-import) libraries
8276       lt_prog_compiler_pic='-DDLL_EXPORT'
8277       ;;
8278
8279     darwin* | rhapsody*)
8280       # PIC is the default on this platform
8281       # Common symbols not allowed in MH_DYLIB files
8282       lt_prog_compiler_pic='-fno-common'
8283       ;;
8284
8285     hpux*)
8286       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8287       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8288       # sets the default TLS model and affects inlining.
8289       case $host_cpu in
8290       hppa*64*)
8291         # +Z the default
8292         ;;
8293       *)
8294         lt_prog_compiler_pic='-fPIC'
8295         ;;
8296       esac
8297       ;;
8298
8299     interix[3-9]*)
8300       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8301       # Instead, we relocate shared libraries at runtime.
8302       ;;
8303
8304     msdosdjgpp*)
8305       # Just because we use GCC doesn't mean we suddenly get shared libraries
8306       # on systems that don't support them.
8307       lt_prog_compiler_can_build_shared=no
8308       enable_shared=no
8309       ;;
8310
8311     *nto* | *qnx*)
8312       # QNX uses GNU C++, but need to define -shared option too, otherwise
8313       # it will coredump.
8314       lt_prog_compiler_pic='-fPIC -shared'
8315       ;;
8316
8317     sysv4*MP*)
8318       if test -d /usr/nec; then
8319         lt_prog_compiler_pic=-Kconform_pic
8320       fi
8321       ;;
8322
8323     *)
8324       lt_prog_compiler_pic='-fPIC'
8325       ;;
8326     esac
8327   else
8328     # PORTME Check for flag to pass linker flags through the system compiler.
8329     case $host_os in
8330     aix*)
8331       lt_prog_compiler_wl='-Wl,'
8332       if test "$host_cpu" = ia64; then
8333         # AIX 5 now supports IA64 processor
8334         lt_prog_compiler_static='-Bstatic'
8335       else
8336         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8337       fi
8338       ;;
8339
8340     mingw* | cygwin* | pw32* | os2* | cegcc*)
8341       # This hack is so that the source file can tell whether it is being
8342       # built for inclusion in a dll (and should export symbols for example).
8343       lt_prog_compiler_pic='-DDLL_EXPORT'
8344       ;;
8345
8346     hpux9* | hpux10* | hpux11*)
8347       lt_prog_compiler_wl='-Wl,'
8348       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8349       # not for PA HP-UX.
8350       case $host_cpu in
8351       hppa*64*|ia64*)
8352         # +Z the default
8353         ;;
8354       *)
8355         lt_prog_compiler_pic='+Z'
8356         ;;
8357       esac
8358       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8359       lt_prog_compiler_static='${wl}-a ${wl}archive'
8360       ;;
8361
8362     irix5* | irix6* | nonstopux*)
8363       lt_prog_compiler_wl='-Wl,'
8364       # PIC (with -KPIC) is the default.
8365       lt_prog_compiler_static='-non_shared'
8366       ;;
8367
8368     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8369       case $cc_basename in
8370       # old Intel for x86_64 which still supported -KPIC.
8371       ecc*)
8372         lt_prog_compiler_wl='-Wl,'
8373         lt_prog_compiler_pic='-KPIC'
8374         lt_prog_compiler_static='-static'
8375         ;;
8376       # icc used to be incompatible with GCC.
8377       # ICC 10 doesn't accept -KPIC any more.
8378       icc* | ifort*)
8379         lt_prog_compiler_wl='-Wl,'
8380         lt_prog_compiler_pic='-fPIC'
8381         lt_prog_compiler_static='-static'
8382         ;;
8383       # Lahey Fortran 8.1.
8384       lf95*)
8385         lt_prog_compiler_wl='-Wl,'
8386         lt_prog_compiler_pic='--shared'
8387         lt_prog_compiler_static='--static'
8388         ;;
8389       pgcc* | pgf77* | pgf90* | pgf95*)
8390         # Portland Group compilers (*not* the Pentium gcc compiler,
8391         # which looks to be a dead project)
8392         lt_prog_compiler_wl='-Wl,'
8393         lt_prog_compiler_pic='-fpic'
8394         lt_prog_compiler_static='-Bstatic'
8395         ;;
8396       ccc*)
8397         lt_prog_compiler_wl='-Wl,'
8398         # All Alpha code is PIC.
8399         lt_prog_compiler_static='-non_shared'
8400         ;;
8401       xl*)
8402         # IBM XL C 8.0/Fortran 10.1 on PPC
8403         lt_prog_compiler_wl='-Wl,'
8404         lt_prog_compiler_pic='-qpic'
8405         lt_prog_compiler_static='-qstaticlink'
8406         ;;
8407       *)
8408         case `$CC -V 2>&1 | sed 5q` in
8409         *Sun\ C*)
8410           # Sun C 5.9
8411           lt_prog_compiler_pic='-KPIC'
8412           lt_prog_compiler_static='-Bstatic'
8413           lt_prog_compiler_wl='-Wl,'
8414           ;;
8415         *Sun\ F*)
8416           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8417           lt_prog_compiler_pic='-KPIC'
8418           lt_prog_compiler_static='-Bstatic'
8419           lt_prog_compiler_wl=''
8420           ;;
8421         esac
8422         ;;
8423       esac
8424       ;;
8425
8426     newsos6)
8427       lt_prog_compiler_pic='-KPIC'
8428       lt_prog_compiler_static='-Bstatic'
8429       ;;
8430
8431     *nto* | *qnx*)
8432       # QNX uses GNU C++, but need to define -shared option too, otherwise
8433       # it will coredump.
8434       lt_prog_compiler_pic='-fPIC -shared'
8435       ;;
8436
8437     osf3* | osf4* | osf5*)
8438       lt_prog_compiler_wl='-Wl,'
8439       # All OSF/1 code is PIC.
8440       lt_prog_compiler_static='-non_shared'
8441       ;;
8442
8443     rdos*)
8444       lt_prog_compiler_static='-non_shared'
8445       ;;
8446
8447     solaris*)
8448       lt_prog_compiler_pic='-KPIC'
8449       lt_prog_compiler_static='-Bstatic'
8450       case $cc_basename in
8451       f77* | f90* | f95*)
8452         lt_prog_compiler_wl='-Qoption ld ';;
8453       *)
8454         lt_prog_compiler_wl='-Wl,';;
8455       esac
8456       ;;
8457
8458     sunos4*)
8459       lt_prog_compiler_wl='-Qoption ld '
8460       lt_prog_compiler_pic='-PIC'
8461       lt_prog_compiler_static='-Bstatic'
8462       ;;
8463
8464     sysv4 | sysv4.2uw2* | sysv4.3*)
8465       lt_prog_compiler_wl='-Wl,'
8466       lt_prog_compiler_pic='-KPIC'
8467       lt_prog_compiler_static='-Bstatic'
8468       ;;
8469
8470     sysv4*MP*)
8471       if test -d /usr/nec ;then
8472         lt_prog_compiler_pic='-Kconform_pic'
8473         lt_prog_compiler_static='-Bstatic'
8474       fi
8475       ;;
8476
8477     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8478       lt_prog_compiler_wl='-Wl,'
8479       lt_prog_compiler_pic='-KPIC'
8480       lt_prog_compiler_static='-Bstatic'
8481       ;;
8482
8483     unicos*)
8484       lt_prog_compiler_wl='-Wl,'
8485       lt_prog_compiler_can_build_shared=no
8486       ;;
8487
8488     uts4*)
8489       lt_prog_compiler_pic='-pic'
8490       lt_prog_compiler_static='-Bstatic'
8491       ;;
8492
8493     *)
8494       lt_prog_compiler_can_build_shared=no
8495       ;;
8496     esac
8497   fi
8498
8499 case $host_os in
8500   # For platforms which do not support PIC, -DPIC is meaningless:
8501   *djgpp*)
8502     lt_prog_compiler_pic=
8503     ;;
8504   *)
8505     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8506     ;;
8507 esac
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8509 $as_echo "$lt_prog_compiler_pic" >&6; }
8510
8511
8512
8513
8514
8515
8516 #
8517 # Check to make sure the PIC flag actually works.
8518 #
8519 if test -n "$lt_prog_compiler_pic"; then
8520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8521 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8522 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8523   $as_echo_n "(cached) " >&6
8524 else
8525   lt_cv_prog_compiler_pic_works=no
8526    ac_outfile=conftest.$ac_objext
8527    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8528    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8529    # Insert the option either (1) after the last *FLAGS variable, or
8530    # (2) before a word containing "conftest.", or (3) at the end.
8531    # Note that $ac_compile itself does not contain backslashes and begins
8532    # with a dollar sign (not a hyphen), so the echo should work correctly.
8533    # The option is referenced via a variable to avoid confusing sed.
8534    lt_compile=`echo "$ac_compile" | $SED \
8535    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8536    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8537    -e 's:$: $lt_compiler_flag:'`
8538    (eval echo "\"\$as_me:8538: $lt_compile\"" >&5)
8539    (eval "$lt_compile" 2>conftest.err)
8540    ac_status=$?
8541    cat conftest.err >&5
8542    echo "$as_me:8542: \$? = $ac_status" >&5
8543    if (exit $ac_status) && test -s "$ac_outfile"; then
8544      # The compiler can only warn and ignore the option if not recognized
8545      # So say no if there are warnings other than the usual output.
8546      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8547      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8548      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8549        lt_cv_prog_compiler_pic_works=yes
8550      fi
8551    fi
8552    $RM conftest*
8553
8554 fi
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8556 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8557
8558 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8559     case $lt_prog_compiler_pic in
8560      "" | " "*) ;;
8561      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8562      esac
8563 else
8564     lt_prog_compiler_pic=
8565      lt_prog_compiler_can_build_shared=no
8566 fi
8567
8568 fi
8569
8570
8571
8572
8573
8574
8575 #
8576 # Check to make sure the static flag actually works.
8577 #
8578 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8580 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8581 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8582   $as_echo_n "(cached) " >&6
8583 else
8584   lt_cv_prog_compiler_static_works=no
8585    save_LDFLAGS="$LDFLAGS"
8586    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8587    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8588    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8589      # The linker can only warn and ignore the option if not recognized
8590      # So say no if there are warnings
8591      if test -s conftest.err; then
8592        # Append any errors to the config.log.
8593        cat conftest.err 1>&5
8594        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8595        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8596        if diff conftest.exp conftest.er2 >/dev/null; then
8597          lt_cv_prog_compiler_static_works=yes
8598        fi
8599      else
8600        lt_cv_prog_compiler_static_works=yes
8601      fi
8602    fi
8603    $RM -r conftest*
8604    LDFLAGS="$save_LDFLAGS"
8605
8606 fi
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8608 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8609
8610 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8611     :
8612 else
8613     lt_prog_compiler_static=
8614 fi
8615
8616
8617
8618
8619
8620
8621
8622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8623 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8624 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8625   $as_echo_n "(cached) " >&6
8626 else
8627   lt_cv_prog_compiler_c_o=no
8628    $RM -r conftest 2>/dev/null
8629    mkdir conftest
8630    cd conftest
8631    mkdir out
8632    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8633
8634    lt_compiler_flag="-o out/conftest2.$ac_objext"
8635    # Insert the option either (1) after the last *FLAGS variable, or
8636    # (2) before a word containing "conftest.", or (3) at the end.
8637    # Note that $ac_compile itself does not contain backslashes and begins
8638    # with a dollar sign (not a hyphen), so the echo should work correctly.
8639    lt_compile=`echo "$ac_compile" | $SED \
8640    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8641    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8642    -e 's:$: $lt_compiler_flag:'`
8643    (eval echo "\"\$as_me:8643: $lt_compile\"" >&5)
8644    (eval "$lt_compile" 2>out/conftest.err)
8645    ac_status=$?
8646    cat out/conftest.err >&5
8647    echo "$as_me:8647: \$? = $ac_status" >&5
8648    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8649    then
8650      # The compiler can only warn and ignore the option if not recognized
8651      # So say no if there are warnings
8652      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8653      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8654      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8655        lt_cv_prog_compiler_c_o=yes
8656      fi
8657    fi
8658    chmod u+w . 2>&5
8659    $RM conftest*
8660    # SGI C++ compiler will create directory out/ii_files/ for
8661    # template instantiation
8662    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8663    $RM out/* && rmdir out
8664    cd ..
8665    $RM -r conftest
8666    $RM conftest*
8667
8668 fi
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8670 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8671
8672
8673
8674
8675
8676
8677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8678 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8679 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8680   $as_echo_n "(cached) " >&6
8681 else
8682   lt_cv_prog_compiler_c_o=no
8683    $RM -r conftest 2>/dev/null
8684    mkdir conftest
8685    cd conftest
8686    mkdir out
8687    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8688
8689    lt_compiler_flag="-o out/conftest2.$ac_objext"
8690    # Insert the option either (1) after the last *FLAGS variable, or
8691    # (2) before a word containing "conftest.", or (3) at the end.
8692    # Note that $ac_compile itself does not contain backslashes and begins
8693    # with a dollar sign (not a hyphen), so the echo should work correctly.
8694    lt_compile=`echo "$ac_compile" | $SED \
8695    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8696    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8697    -e 's:$: $lt_compiler_flag:'`
8698    (eval echo "\"\$as_me:8698: $lt_compile\"" >&5)
8699    (eval "$lt_compile" 2>out/conftest.err)
8700    ac_status=$?
8701    cat out/conftest.err >&5
8702    echo "$as_me:8702: \$? = $ac_status" >&5
8703    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8704    then
8705      # The compiler can only warn and ignore the option if not recognized
8706      # So say no if there are warnings
8707      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8708      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8709      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8710        lt_cv_prog_compiler_c_o=yes
8711      fi
8712    fi
8713    chmod u+w . 2>&5
8714    $RM conftest*
8715    # SGI C++ compiler will create directory out/ii_files/ for
8716    # template instantiation
8717    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8718    $RM out/* && rmdir out
8719    cd ..
8720    $RM -r conftest
8721    $RM conftest*
8722
8723 fi
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8725 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8726
8727
8728
8729
8730 hard_links="nottested"
8731 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8732   # do not overwrite the value of need_locks provided by the user
8733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8734 $as_echo_n "checking if we can lock with hard links... " >&6; }
8735   hard_links=yes
8736   $RM conftest*
8737   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8738   touch conftest.a
8739   ln conftest.a conftest.b 2>&5 || hard_links=no
8740   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8742 $as_echo "$hard_links" >&6; }
8743   if test "$hard_links" = no; then
8744     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8745 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8746     need_locks=warn
8747   fi
8748 else
8749   need_locks=no
8750 fi
8751
8752
8753
8754
8755
8756
8757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8758 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8759
8760   runpath_var=
8761   allow_undefined_flag=
8762   always_export_symbols=no
8763   archive_cmds=
8764   archive_expsym_cmds=
8765   compiler_needs_object=no
8766   enable_shared_with_static_runtimes=no
8767   export_dynamic_flag_spec=
8768   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8769   hardcode_automatic=no
8770   hardcode_direct=no
8771   hardcode_direct_absolute=no
8772   hardcode_libdir_flag_spec=
8773   hardcode_libdir_flag_spec_ld=
8774   hardcode_libdir_separator=
8775   hardcode_minus_L=no
8776   hardcode_shlibpath_var=unsupported
8777   inherit_rpath=no
8778   link_all_deplibs=unknown
8779   module_cmds=
8780   module_expsym_cmds=
8781   old_archive_from_new_cmds=
8782   old_archive_from_expsyms_cmds=
8783   thread_safe_flag_spec=
8784   whole_archive_flag_spec=
8785   # include_expsyms should be a list of space-separated symbols to be *always*
8786   # included in the symbol list
8787   include_expsyms=
8788   # exclude_expsyms can be an extended regexp of symbols to exclude
8789   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8790   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8791   # as well as any symbol that contains `d'.
8792   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8793   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8794   # platforms (ab)use it in PIC code, but their linkers get confused if
8795   # the symbol is explicitly referenced.  Since portable code cannot
8796   # rely on this symbol name, it's probably fine to never include it in
8797   # preloaded symbol tables.
8798   # Exclude shared library initialization/finalization symbols.
8799   extract_expsyms_cmds=
8800
8801   case $host_os in
8802   cygwin* | mingw* | pw32* | cegcc*)
8803     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8804     # When not using gcc, we currently assume that we are using
8805     # Microsoft Visual C++.
8806     if test "$GCC" != yes; then
8807       with_gnu_ld=no
8808     fi
8809     ;;
8810   interix*)
8811     # we just hope/assume this is gcc and not c89 (= MSVC++)
8812     with_gnu_ld=yes
8813     ;;
8814   openbsd*)
8815     with_gnu_ld=no
8816     ;;
8817   linux* | k*bsd*-gnu)
8818     link_all_deplibs=no
8819     ;;
8820   esac
8821
8822   ld_shlibs=yes
8823   if test "$with_gnu_ld" = yes; then
8824     # If archive_cmds runs LD, not CC, wlarc should be empty
8825     wlarc='${wl}'
8826
8827     # Set some defaults for GNU ld with shared library support. These
8828     # are reset later if shared libraries are not supported. Putting them
8829     # here allows them to be overridden if necessary.
8830     runpath_var=LD_RUN_PATH
8831     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8832     export_dynamic_flag_spec='${wl}--export-dynamic'
8833     # ancient GNU ld didn't support --whole-archive et. al.
8834     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8835       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8836     else
8837       whole_archive_flag_spec=
8838     fi
8839     supports_anon_versioning=no
8840     case `$LD -v 2>&1` in
8841       *GNU\ gold*) supports_anon_versioning=yes ;;
8842       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8843       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8844       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8845       *\ 2.11.*) ;; # other 2.11 versions
8846       *) supports_anon_versioning=yes ;;
8847     esac
8848
8849     # See if GNU ld supports shared libraries.
8850     case $host_os in
8851     aix[3-9]*)
8852       # On AIX/PPC, the GNU linker is very broken
8853       if test "$host_cpu" != ia64; then
8854         ld_shlibs=no
8855         cat <<_LT_EOF 1>&2
8856
8857 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8858 *** to be unable to reliably create shared libraries on AIX.
8859 *** Therefore, libtool is disabling shared libraries support.  If you
8860 *** really care for shared libraries, you may want to modify your PATH
8861 *** so that a non-GNU linker is found, and then restart.
8862
8863 _LT_EOF
8864       fi
8865       ;;
8866
8867     amigaos*)
8868       case $host_cpu in
8869       powerpc)
8870             # see comment about AmigaOS4 .so support
8871             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8872             archive_expsym_cmds=''
8873         ;;
8874       m68k)
8875             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)'
8876             hardcode_libdir_flag_spec='-L$libdir'
8877             hardcode_minus_L=yes
8878         ;;
8879       esac
8880       ;;
8881
8882     beos*)
8883       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8884         allow_undefined_flag=unsupported
8885         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8886         # support --undefined.  This deserves some investigation.  FIXME
8887         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8888       else
8889         ld_shlibs=no
8890       fi
8891       ;;
8892
8893     cygwin* | mingw* | pw32* | cegcc*)
8894       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8895       # as there is no search path for DLLs.
8896       hardcode_libdir_flag_spec='-L$libdir'
8897       allow_undefined_flag=unsupported
8898       always_export_symbols=no
8899       enable_shared_with_static_runtimes=yes
8900       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8901
8902       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8903         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8904         # If the export-symbols file already is a .def file (1st line
8905         # is EXPORTS), use it as is; otherwise, prepend...
8906         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8907           cp $export_symbols $output_objdir/$soname.def;
8908         else
8909           echo EXPORTS > $output_objdir/$soname.def;
8910           cat $export_symbols >> $output_objdir/$soname.def;
8911         fi~
8912         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8913       else
8914         ld_shlibs=no
8915       fi
8916       ;;
8917
8918     interix[3-9]*)
8919       hardcode_direct=no
8920       hardcode_shlibpath_var=no
8921       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8922       export_dynamic_flag_spec='${wl}-E'
8923       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8924       # Instead, shared libraries are loaded at an image base (0x10000000 by
8925       # default) and relocated if they conflict, which is a slow very memory
8926       # consuming and fragmenting process.  To avoid this, we pick a random,
8927       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8928       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8929       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8930       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'
8931       ;;
8932
8933     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8934       tmp_diet=no
8935       if test "$host_os" = linux-dietlibc; then
8936         case $cc_basename in
8937           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8938         esac
8939       fi
8940       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8941          && test "$tmp_diet" = no
8942       then
8943         tmp_addflag=
8944         tmp_sharedflag='-shared'
8945         case $cc_basename,$host_cpu in
8946         pgcc*)                          # Portland Group C compiler
8947           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'
8948           tmp_addflag=' $pic_flag'
8949           ;;
8950         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8951           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'
8952           tmp_addflag=' $pic_flag -Mnomain' ;;
8953         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8954           tmp_addflag=' -i_dynamic' ;;
8955         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8956           tmp_addflag=' -i_dynamic -nofor_main' ;;
8957         ifc* | ifort*)                  # Intel Fortran compiler
8958           tmp_addflag=' -nofor_main' ;;
8959         lf95*)                          # Lahey Fortran 8.1
8960           whole_archive_flag_spec=
8961           tmp_sharedflag='--shared' ;;
8962         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8963           tmp_sharedflag='-qmkshrobj'
8964           tmp_addflag= ;;
8965         esac
8966         case `$CC -V 2>&1 | sed 5q` in
8967         *Sun\ C*)                       # Sun C 5.9
8968           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'
8969           compiler_needs_object=yes
8970           tmp_sharedflag='-G' ;;
8971         *Sun\ F*)                       # Sun Fortran 8.3
8972           tmp_sharedflag='-G' ;;
8973         esac
8974         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8975
8976         if test "x$supports_anon_versioning" = xyes; then
8977           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8978             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8979             echo "local: *; };" >> $output_objdir/$libname.ver~
8980             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8981         fi
8982
8983         case $cc_basename in
8984         xlf*)
8985           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8986           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8987           hardcode_libdir_flag_spec=
8988           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8989           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8990           if test "x$supports_anon_versioning" = xyes; then
8991             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8992               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8993               echo "local: *; };" >> $output_objdir/$libname.ver~
8994               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8995           fi
8996           ;;
8997         esac
8998       else
8999         ld_shlibs=no
9000       fi
9001       ;;
9002
9003     netbsd* | netbsdelf*-gnu)
9004       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9005         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9006         wlarc=
9007       else
9008         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9009         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9010       fi
9011       ;;
9012
9013     solaris*)
9014       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9015         ld_shlibs=no
9016         cat <<_LT_EOF 1>&2
9017
9018 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9019 *** create shared libraries on Solaris systems.  Therefore, libtool
9020 *** is disabling shared libraries support.  We urge you to upgrade GNU
9021 *** binutils to release 2.9.1 or newer.  Another option is to modify
9022 *** your PATH or compiler configuration so that the native linker is
9023 *** used, and then restart.
9024
9025 _LT_EOF
9026       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9027         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9028         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9029       else
9030         ld_shlibs=no
9031       fi
9032       ;;
9033
9034     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9035       case `$LD -v 2>&1` in
9036         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9037         ld_shlibs=no
9038         cat <<_LT_EOF 1>&2
9039
9040 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9041 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9042 *** is disabling shared libraries support.  We urge you to upgrade GNU
9043 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9044 *** your PATH or compiler configuration so that the native linker is
9045 *** used, and then restart.
9046
9047 _LT_EOF
9048         ;;
9049         *)
9050           # For security reasons, it is highly recommended that you always
9051           # use absolute paths for naming shared libraries, and exclude the
9052           # DT_RUNPATH tag from executables and libraries.  But doing so
9053           # requires that you compile everything twice, which is a pain.
9054           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9055             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9056             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9057             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9058           else
9059             ld_shlibs=no
9060           fi
9061         ;;
9062       esac
9063       ;;
9064
9065     sunos4*)
9066       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9067       wlarc=
9068       hardcode_direct=yes
9069       hardcode_shlibpath_var=no
9070       ;;
9071
9072     *)
9073       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9074         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9076       else
9077         ld_shlibs=no
9078       fi
9079       ;;
9080     esac
9081
9082     if test "$ld_shlibs" = no; then
9083       runpath_var=
9084       hardcode_libdir_flag_spec=
9085       export_dynamic_flag_spec=
9086       whole_archive_flag_spec=
9087     fi
9088   else
9089     # PORTME fill in a description of your system's linker (not GNU ld)
9090     case $host_os in
9091     aix3*)
9092       allow_undefined_flag=unsupported
9093       always_export_symbols=yes
9094       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'
9095       # Note: this linker hardcodes the directories in LIBPATH if there
9096       # are no directories specified by -L.
9097       hardcode_minus_L=yes
9098       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9099         # Neither direct hardcoding nor static linking is supported with a
9100         # broken collect2.
9101         hardcode_direct=unsupported
9102       fi
9103       ;;
9104
9105     aix[4-9]*)
9106       if test "$host_cpu" = ia64; then
9107         # On IA64, the linker does run time linking by default, so we don't
9108         # have to do anything special.
9109         aix_use_runtimelinking=no
9110         exp_sym_flag='-Bexport'
9111         no_entry_flag=""
9112       else
9113         # If we're using GNU nm, then we don't want the "-C" option.
9114         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9115         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9116           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'
9117         else
9118           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'
9119         fi
9120         aix_use_runtimelinking=no
9121
9122         # Test if we are trying to use run time linking or normal
9123         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9124         # need to do runtime linking.
9125         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9126           for ld_flag in $LDFLAGS; do
9127           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9128             aix_use_runtimelinking=yes
9129             break
9130           fi
9131           done
9132           ;;
9133         esac
9134
9135         exp_sym_flag='-bexport'
9136         no_entry_flag='-bnoentry'
9137       fi
9138
9139       # When large executables or shared objects are built, AIX ld can
9140       # have problems creating the table of contents.  If linking a library
9141       # or program results in "error TOC overflow" add -mminimal-toc to
9142       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9143       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9144
9145       archive_cmds=''
9146       hardcode_direct=yes
9147       hardcode_direct_absolute=yes
9148       hardcode_libdir_separator=':'
9149       link_all_deplibs=yes
9150       file_list_spec='${wl}-f,'
9151
9152       if test "$GCC" = yes; then
9153         case $host_os in aix4.[012]|aix4.[012].*)
9154         # We only want to do this on AIX 4.2 and lower, the check
9155         # below for broken collect2 doesn't work under 4.3+
9156           collect2name=`${CC} -print-prog-name=collect2`
9157           if test -f "$collect2name" &&
9158            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9159           then
9160           # We have reworked collect2
9161           :
9162           else
9163           # We have old collect2
9164           hardcode_direct=unsupported
9165           # It fails to find uninstalled libraries when the uninstalled
9166           # path is not listed in the libpath.  Setting hardcode_minus_L
9167           # to unsupported forces relinking
9168           hardcode_minus_L=yes
9169           hardcode_libdir_flag_spec='-L$libdir'
9170           hardcode_libdir_separator=
9171           fi
9172           ;;
9173         esac
9174         shared_flag='-shared'
9175         if test "$aix_use_runtimelinking" = yes; then
9176           shared_flag="$shared_flag "'${wl}-G'
9177         fi
9178         link_all_deplibs=no
9179       else
9180         # not using gcc
9181         if test "$host_cpu" = ia64; then
9182         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9183         # chokes on -Wl,-G. The following line is correct:
9184           shared_flag='-G'
9185         else
9186           if test "$aix_use_runtimelinking" = yes; then
9187             shared_flag='${wl}-G'
9188           else
9189             shared_flag='${wl}-bM:SRE'
9190           fi
9191         fi
9192       fi
9193
9194       export_dynamic_flag_spec='${wl}-bexpall'
9195       # It seems that -bexpall does not export symbols beginning with
9196       # underscore (_), so it is better to generate a list of symbols to export.
9197       always_export_symbols=yes
9198       if test "$aix_use_runtimelinking" = yes; then
9199         # Warning - without using the other runtime loading flags (-brtl),
9200         # -berok will link without error, but may produce a broken library.
9201         allow_undefined_flag='-berok'
9202         # Determine the default libpath from the value encoded in an
9203         # empty executable.
9204         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205 /* end confdefs.h.  */
9206
9207 int
9208 main ()
9209 {
9210
9211   ;
9212   return 0;
9213 }
9214 _ACEOF
9215 if ac_fn_c_try_link "$LINENO"; then :
9216
9217 lt_aix_libpath_sed='
9218     /Import File Strings/,/^$/ {
9219         /^0/ {
9220             s/^0  *\(.*\)$/\1/
9221             p
9222         }
9223     }'
9224 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9225 # Check for a 64-bit object if we didn't find anything.
9226 if test -z "$aix_libpath"; then
9227   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9228 fi
9229 fi
9230 rm -f core conftest.err conftest.$ac_objext \
9231     conftest$ac_exeext conftest.$ac_ext
9232 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9233
9234         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9235         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"
9236       else
9237         if test "$host_cpu" = ia64; then
9238           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9239           allow_undefined_flag="-z nodefs"
9240           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"
9241         else
9242          # Determine the default libpath from the value encoded in an
9243          # empty executable.
9244          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9245 /* end confdefs.h.  */
9246
9247 int
9248 main ()
9249 {
9250
9251   ;
9252   return 0;
9253 }
9254 _ACEOF
9255 if ac_fn_c_try_link "$LINENO"; then :
9256
9257 lt_aix_libpath_sed='
9258     /Import File Strings/,/^$/ {
9259         /^0/ {
9260             s/^0  *\(.*\)$/\1/
9261             p
9262         }
9263     }'
9264 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9265 # Check for a 64-bit object if we didn't find anything.
9266 if test -z "$aix_libpath"; then
9267   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9268 fi
9269 fi
9270 rm -f core conftest.err conftest.$ac_objext \
9271     conftest$ac_exeext conftest.$ac_ext
9272 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9273
9274          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9275           # Warning - without using the other run time loading flags,
9276           # -berok will link without error, but may produce a broken library.
9277           no_undefined_flag=' ${wl}-bernotok'
9278           allow_undefined_flag=' ${wl}-berok'
9279           # Exported symbols can be pulled into shared objects from archives
9280           whole_archive_flag_spec='$convenience'
9281           archive_cmds_need_lc=yes
9282           # This is similar to how AIX traditionally builds its shared libraries.
9283           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'
9284         fi
9285       fi
9286       ;;
9287
9288     amigaos*)
9289       case $host_cpu in
9290       powerpc)
9291             # see comment about AmigaOS4 .so support
9292             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9293             archive_expsym_cmds=''
9294         ;;
9295       m68k)
9296             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)'
9297             hardcode_libdir_flag_spec='-L$libdir'
9298             hardcode_minus_L=yes
9299         ;;
9300       esac
9301       ;;
9302
9303     bsdi[45]*)
9304       export_dynamic_flag_spec=-rdynamic
9305       ;;
9306
9307     cygwin* | mingw* | pw32* | cegcc*)
9308       # When not using gcc, we currently assume that we are using
9309       # Microsoft Visual C++.
9310       # hardcode_libdir_flag_spec is actually meaningless, as there is
9311       # no search path for DLLs.
9312       hardcode_libdir_flag_spec=' '
9313       allow_undefined_flag=unsupported
9314       # Tell ltmain to make .lib files, not .a files.
9315       libext=lib
9316       # Tell ltmain to make .dll files, not .so files.
9317       shrext_cmds=".dll"
9318       # FIXME: Setting linknames here is a bad hack.
9319       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9320       # The linker will automatically build a .lib file if we build a DLL.
9321       old_archive_from_new_cmds='true'
9322       # FIXME: Should let the user specify the lib program.
9323       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9324       fix_srcfile_path='`cygpath -w "$srcfile"`'
9325       enable_shared_with_static_runtimes=yes
9326       ;;
9327
9328     darwin* | rhapsody*)
9329
9330
9331   archive_cmds_need_lc=no
9332   hardcode_direct=no
9333   hardcode_automatic=yes
9334   hardcode_shlibpath_var=unsupported
9335   whole_archive_flag_spec=''
9336   link_all_deplibs=yes
9337   allow_undefined_flag="$_lt_dar_allow_undefined"
9338   case $cc_basename in
9339      ifort*) _lt_dar_can_shared=yes ;;
9340      *) _lt_dar_can_shared=$GCC ;;
9341   esac
9342   if test "$_lt_dar_can_shared" = "yes"; then
9343     output_verbose_link_cmd=echo
9344     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9345     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9346     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}"
9347     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}"
9348
9349   else
9350   ld_shlibs=no
9351   fi
9352
9353       ;;
9354
9355     dgux*)
9356       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9357       hardcode_libdir_flag_spec='-L$libdir'
9358       hardcode_shlibpath_var=no
9359       ;;
9360
9361     freebsd1*)
9362       ld_shlibs=no
9363       ;;
9364
9365     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9366     # support.  Future versions do this automatically, but an explicit c++rt0.o
9367     # does not break anything, and helps significantly (at the cost of a little
9368     # extra space).
9369     freebsd2.2*)
9370       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9371       hardcode_libdir_flag_spec='-R$libdir'
9372       hardcode_direct=yes
9373       hardcode_shlibpath_var=no
9374       ;;
9375
9376     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9377     freebsd2*)
9378       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9379       hardcode_direct=yes
9380       hardcode_minus_L=yes
9381       hardcode_shlibpath_var=no
9382       ;;
9383
9384     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9385     freebsd* | dragonfly*)
9386       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9387       hardcode_libdir_flag_spec='-R$libdir'
9388       hardcode_direct=yes
9389       hardcode_shlibpath_var=no
9390       ;;
9391
9392     hpux9*)
9393       if test "$GCC" = yes; then
9394         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'
9395       else
9396         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'
9397       fi
9398       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9399       hardcode_libdir_separator=:
9400       hardcode_direct=yes
9401
9402       # hardcode_minus_L: Not really in the search PATH,
9403       # but as the default location of the library.
9404       hardcode_minus_L=yes
9405       export_dynamic_flag_spec='${wl}-E'
9406       ;;
9407
9408     hpux10*)
9409       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9410         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9411       else
9412         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9413       fi
9414       if test "$with_gnu_ld" = no; then
9415         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9416         hardcode_libdir_flag_spec_ld='+b $libdir'
9417         hardcode_libdir_separator=:
9418         hardcode_direct=yes
9419         hardcode_direct_absolute=yes
9420         export_dynamic_flag_spec='${wl}-E'
9421         # hardcode_minus_L: Not really in the search PATH,
9422         # but as the default location of the library.
9423         hardcode_minus_L=yes
9424       fi
9425       ;;
9426
9427     hpux11*)
9428       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9429         case $host_cpu in
9430         hppa*64*)
9431           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9432           ;;
9433         ia64*)
9434           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9435           ;;
9436         *)
9437           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9438           ;;
9439         esac
9440       else
9441         case $host_cpu in
9442         hppa*64*)
9443           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9444           ;;
9445         ia64*)
9446           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9447           ;;
9448         *)
9449           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9450           ;;
9451         esac
9452       fi
9453       if test "$with_gnu_ld" = no; then
9454         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9455         hardcode_libdir_separator=:
9456
9457         case $host_cpu in
9458         hppa*64*|ia64*)
9459           hardcode_direct=no
9460           hardcode_shlibpath_var=no
9461           ;;
9462         *)
9463           hardcode_direct=yes
9464           hardcode_direct_absolute=yes
9465           export_dynamic_flag_spec='${wl}-E'
9466
9467           # hardcode_minus_L: Not really in the search PATH,
9468           # but as the default location of the library.
9469           hardcode_minus_L=yes
9470           ;;
9471         esac
9472       fi
9473       ;;
9474
9475     irix5* | irix6* | nonstopux*)
9476       if test "$GCC" = yes; then
9477         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'
9478         # Try to use the -exported_symbol ld option, if it does not
9479         # work, assume that -exports_file does not work either and
9480         # implicitly export all symbols.
9481         save_LDFLAGS="$LDFLAGS"
9482         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9483         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h.  */
9485 int foo(void) {}
9486 _ACEOF
9487 if ac_fn_c_try_link "$LINENO"; then :
9488   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'
9489
9490 fi
9491 rm -f core conftest.err conftest.$ac_objext \
9492     conftest$ac_exeext conftest.$ac_ext
9493         LDFLAGS="$save_LDFLAGS"
9494       else
9495         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'
9496         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'
9497       fi
9498       archive_cmds_need_lc='no'
9499       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9500       hardcode_libdir_separator=:
9501       inherit_rpath=yes
9502       link_all_deplibs=yes
9503       ;;
9504
9505     netbsd* | netbsdelf*-gnu)
9506       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9507         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9508       else
9509         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9510       fi
9511       hardcode_libdir_flag_spec='-R$libdir'
9512       hardcode_direct=yes
9513       hardcode_shlibpath_var=no
9514       ;;
9515
9516     newsos6)
9517       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9518       hardcode_direct=yes
9519       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9520       hardcode_libdir_separator=:
9521       hardcode_shlibpath_var=no
9522       ;;
9523
9524     *nto* | *qnx*)
9525       ;;
9526
9527     openbsd*)
9528       if test -f /usr/libexec/ld.so; then
9529         hardcode_direct=yes
9530         hardcode_shlibpath_var=no
9531         hardcode_direct_absolute=yes
9532         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9533           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9534           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9535           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9536           export_dynamic_flag_spec='${wl}-E'
9537         else
9538           case $host_os in
9539            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9540              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9541              hardcode_libdir_flag_spec='-R$libdir'
9542              ;;
9543            *)
9544              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9545              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9546              ;;
9547           esac
9548         fi
9549       else
9550         ld_shlibs=no
9551       fi
9552       ;;
9553
9554     os2*)
9555       hardcode_libdir_flag_spec='-L$libdir'
9556       hardcode_minus_L=yes
9557       allow_undefined_flag=unsupported
9558       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'
9559       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9560       ;;
9561
9562     osf3*)
9563       if test "$GCC" = yes; then
9564         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9565         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'
9566       else
9567         allow_undefined_flag=' -expect_unresolved \*'
9568         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'
9569       fi
9570       archive_cmds_need_lc='no'
9571       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9572       hardcode_libdir_separator=:
9573       ;;
9574
9575     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9576       if test "$GCC" = yes; then
9577         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9578         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'
9579         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9580       else
9581         allow_undefined_flag=' -expect_unresolved \*'
9582         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'
9583         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~
9584         $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'
9585
9586         # Both c and cxx compiler support -rpath directly
9587         hardcode_libdir_flag_spec='-rpath $libdir'
9588       fi
9589       archive_cmds_need_lc='no'
9590       hardcode_libdir_separator=:
9591       ;;
9592
9593     solaris*)
9594       no_undefined_flag=' -z defs'
9595       if test "$GCC" = yes; then
9596         wlarc='${wl}'
9597         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9598         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9599           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9600       else
9601         case `$CC -V 2>&1` in
9602         *"Compilers 5.0"*)
9603           wlarc=''
9604           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9605           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9606           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9607           ;;
9608         *)
9609           wlarc='${wl}'
9610           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9611           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9612           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9613           ;;
9614         esac
9615       fi
9616       hardcode_libdir_flag_spec='-R$libdir'
9617       hardcode_shlibpath_var=no
9618       case $host_os in
9619       solaris2.[0-5] | solaris2.[0-5].*) ;;
9620       *)
9621         # The compiler driver will combine and reorder linker options,
9622         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9623         # but is careful enough not to reorder.
9624         # Supported since Solaris 2.6 (maybe 2.5.1?)
9625         if test "$GCC" = yes; then
9626           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9627         else
9628           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9629         fi
9630         ;;
9631       esac
9632       link_all_deplibs=yes
9633       ;;
9634
9635     sunos4*)
9636       if test "x$host_vendor" = xsequent; then
9637         # Use $CC to link under sequent, because it throws in some extra .o
9638         # files that make .init and .fini sections work.
9639         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9640       else
9641         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9642       fi
9643       hardcode_libdir_flag_spec='-L$libdir'
9644       hardcode_direct=yes
9645       hardcode_minus_L=yes
9646       hardcode_shlibpath_var=no
9647       ;;
9648
9649     sysv4)
9650       case $host_vendor in
9651         sni)
9652           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9653           hardcode_direct=yes # is this really true???
9654         ;;
9655         siemens)
9656           ## LD is ld it makes a PLAMLIB
9657           ## CC just makes a GrossModule.
9658           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9659           reload_cmds='$CC -r -o $output$reload_objs'
9660           hardcode_direct=no
9661         ;;
9662         motorola)
9663           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9665         ;;
9666       esac
9667       runpath_var='LD_RUN_PATH'
9668       hardcode_shlibpath_var=no
9669       ;;
9670
9671     sysv4.3*)
9672       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9673       hardcode_shlibpath_var=no
9674       export_dynamic_flag_spec='-Bexport'
9675       ;;
9676
9677     sysv4*MP*)
9678       if test -d /usr/nec; then
9679         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9680         hardcode_shlibpath_var=no
9681         runpath_var=LD_RUN_PATH
9682         hardcode_runpath_var=yes
9683         ld_shlibs=yes
9684       fi
9685       ;;
9686
9687     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9688       no_undefined_flag='${wl}-z,text'
9689       archive_cmds_need_lc=no
9690       hardcode_shlibpath_var=no
9691       runpath_var='LD_RUN_PATH'
9692
9693       if test "$GCC" = yes; then
9694         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9695         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9696       else
9697         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9698         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699       fi
9700       ;;
9701
9702     sysv5* | sco3.2v5* | sco5v6*)
9703       # Note: We can NOT use -z defs as we might desire, because we do not
9704       # link with -lc, and that would cause any symbols used from libc to
9705       # always be unresolved, which means just about no library would
9706       # ever link correctly.  If we're not using GNU ld we use -z text
9707       # though, which does catch some bad symbols but isn't as heavy-handed
9708       # as -z defs.
9709       no_undefined_flag='${wl}-z,text'
9710       allow_undefined_flag='${wl}-z,nodefs'
9711       archive_cmds_need_lc=no
9712       hardcode_shlibpath_var=no
9713       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9714       hardcode_libdir_separator=':'
9715       link_all_deplibs=yes
9716       export_dynamic_flag_spec='${wl}-Bexport'
9717       runpath_var='LD_RUN_PATH'
9718
9719       if test "$GCC" = yes; then
9720         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722       else
9723         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725       fi
9726       ;;
9727
9728     uts4*)
9729       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730       hardcode_libdir_flag_spec='-L$libdir'
9731       hardcode_shlibpath_var=no
9732       ;;
9733
9734     *)
9735       ld_shlibs=no
9736       ;;
9737     esac
9738
9739     if test x$host_vendor = xsni; then
9740       case $host in
9741       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9742         export_dynamic_flag_spec='${wl}-Blargedynsym'
9743         ;;
9744       esac
9745     fi
9746   fi
9747
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9749 $as_echo "$ld_shlibs" >&6; }
9750 test "$ld_shlibs" = no && can_build_shared=no
9751
9752 with_gnu_ld=$with_gnu_ld
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768 #
9769 # Do we need to explicitly link libc?
9770 #
9771 case "x$archive_cmds_need_lc" in
9772 x|xyes)
9773   # Assume -lc should be added
9774   archive_cmds_need_lc=yes
9775
9776   if test "$enable_shared" = yes && test "$GCC" = yes; then
9777     case $archive_cmds in
9778     *'~'*)
9779       # FIXME: we may have to deal with multi-command sequences.
9780       ;;
9781     '$CC '*)
9782       # Test whether the compiler implicitly links with -lc since on some
9783       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9784       # to ld, don't add -lc before -lgcc.
9785       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9786 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9787       $RM conftest*
9788       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9789
9790       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9791   (eval $ac_compile) 2>&5
9792   ac_status=$?
9793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9794   test $ac_status = 0; } 2>conftest.err; then
9795         soname=conftest
9796         lib=conftest
9797         libobjs=conftest.$ac_objext
9798         deplibs=
9799         wl=$lt_prog_compiler_wl
9800         pic_flag=$lt_prog_compiler_pic
9801         compiler_flags=-v
9802         linker_flags=-v
9803         verstring=
9804         output_objdir=.
9805         libname=conftest
9806         lt_save_allow_undefined_flag=$allow_undefined_flag
9807         allow_undefined_flag=
9808         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9809   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9810   ac_status=$?
9811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9812   test $ac_status = 0; }
9813         then
9814           archive_cmds_need_lc=no
9815         else
9816           archive_cmds_need_lc=yes
9817         fi
9818         allow_undefined_flag=$lt_save_allow_undefined_flag
9819       else
9820         cat conftest.err 1>&5
9821       fi
9822       $RM conftest*
9823       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9824 $as_echo "$archive_cmds_need_lc" >&6; }
9825       ;;
9826     esac
9827   fi
9828   ;;
9829 esac
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9988 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9989
9990 if test "$GCC" = yes; then
9991   case $host_os in
9992     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9993     *) lt_awk_arg="/^libraries:/" ;;
9994   esac
9995   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9996   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9997     # if the path contains ";" then we assume it to be the separator
9998     # otherwise default to the standard path separator (i.e. ":") - it is
9999     # assumed that no part of a normal pathname contains ";" but that should
10000     # okay in the real world where ";" in dirpaths is itself problematic.
10001     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10002   else
10003     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10004   fi
10005   # Ok, now we have the path, separated by spaces, we can step through it
10006   # and add multilib dir if necessary.
10007   lt_tmp_lt_search_path_spec=
10008   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10009   for lt_sys_path in $lt_search_path_spec; do
10010     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10011       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10012     else
10013       test -d "$lt_sys_path" && \
10014         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10015     fi
10016   done
10017   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10018 BEGIN {RS=" "; FS="/|\n";} {
10019   lt_foo="";
10020   lt_count=0;
10021   for (lt_i = NF; lt_i > 0; lt_i--) {
10022     if ($lt_i != "" && $lt_i != ".") {
10023       if ($lt_i == "..") {
10024         lt_count++;
10025       } else {
10026         if (lt_count == 0) {
10027           lt_foo="/" $lt_i lt_foo;
10028         } else {
10029           lt_count--;
10030         }
10031       }
10032     }
10033   }
10034   if (lt_foo != "") { lt_freq[lt_foo]++; }
10035   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10036 }'`
10037   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10038 else
10039   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10040 fi
10041 library_names_spec=
10042 libname_spec='lib$name'
10043 soname_spec=
10044 shrext_cmds=".so"
10045 postinstall_cmds=
10046 postuninstall_cmds=
10047 finish_cmds=
10048 finish_eval=
10049 shlibpath_var=
10050 shlibpath_overrides_runpath=unknown
10051 version_type=none
10052 dynamic_linker="$host_os ld.so"
10053 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10054 need_lib_prefix=unknown
10055 hardcode_into_libs=no
10056
10057 # when you set need_version to no, make sure it does not cause -set_version
10058 # flags to be left without arguments
10059 need_version=unknown
10060
10061 case $host_os in
10062 aix3*)
10063   version_type=linux
10064   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10065   shlibpath_var=LIBPATH
10066
10067   # AIX 3 has no versioning support, so we append a major version to the name.
10068   soname_spec='${libname}${release}${shared_ext}$major'
10069   ;;
10070
10071 aix[4-9]*)
10072   version_type=linux
10073   need_lib_prefix=no
10074   need_version=no
10075   hardcode_into_libs=yes
10076   if test "$host_cpu" = ia64; then
10077     # AIX 5 supports IA64
10078     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10079     shlibpath_var=LD_LIBRARY_PATH
10080   else
10081     # With GCC up to 2.95.x, collect2 would create an import file
10082     # for dependence libraries.  The import file would start with
10083     # the line `#! .'.  This would cause the generated library to
10084     # depend on `.', always an invalid library.  This was fixed in
10085     # development snapshots of GCC prior to 3.0.
10086     case $host_os in
10087       aix4 | aix4.[01] | aix4.[01].*)
10088       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10089            echo ' yes '
10090            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10091         :
10092       else
10093         can_build_shared=no
10094       fi
10095       ;;
10096     esac
10097     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10098     # soname into executable. Probably we can add versioning support to
10099     # collect2, so additional links can be useful in future.
10100     if test "$aix_use_runtimelinking" = yes; then
10101       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10102       # instead of lib<name>.a to let people know that these are not
10103       # typical AIX shared libraries.
10104       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105     else
10106       # We preserve .a as extension for shared libraries through AIX4.2
10107       # and later when we are not doing run time linking.
10108       library_names_spec='${libname}${release}.a $libname.a'
10109       soname_spec='${libname}${release}${shared_ext}$major'
10110     fi
10111     shlibpath_var=LIBPATH
10112   fi
10113   ;;
10114
10115 amigaos*)
10116   case $host_cpu in
10117   powerpc)
10118     # Since July 2007 AmigaOS4 officially supports .so libraries.
10119     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10120     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121     ;;
10122   m68k)
10123     library_names_spec='$libname.ixlibrary $libname.a'
10124     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10125     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'
10126     ;;
10127   esac
10128   ;;
10129
10130 beos*)
10131   library_names_spec='${libname}${shared_ext}'
10132   dynamic_linker="$host_os ld.so"
10133   shlibpath_var=LIBRARY_PATH
10134   ;;
10135
10136 bsdi[45]*)
10137   version_type=linux
10138   need_version=no
10139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140   soname_spec='${libname}${release}${shared_ext}$major'
10141   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10142   shlibpath_var=LD_LIBRARY_PATH
10143   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10144   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10145   # the default ld.so.conf also contains /usr/contrib/lib and
10146   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10147   # libtool to hard-code these into programs
10148   ;;
10149
10150 cygwin* | mingw* | pw32* | cegcc*)
10151   version_type=windows
10152   shrext_cmds=".dll"
10153   need_version=no
10154   need_lib_prefix=no
10155
10156   case $GCC,$host_os in
10157   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10158     library_names_spec='$libname.dll.a'
10159     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10160     postinstall_cmds='base_file=`basename \${file}`~
10161       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10162       dldir=$destdir/`dirname \$dlpath`~
10163       test -d \$dldir || mkdir -p \$dldir~
10164       $install_prog $dir/$dlname \$dldir/$dlname~
10165       chmod a+x \$dldir/$dlname~
10166       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10167         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10168       fi'
10169     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10170       dlpath=$dir/\$dldll~
10171        $RM \$dlpath'
10172     shlibpath_overrides_runpath=yes
10173
10174     case $host_os in
10175     cygwin*)
10176       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10177       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10178       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10179       ;;
10180     mingw* | cegcc*)
10181       # MinGW DLLs use traditional 'lib' prefix
10182       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10183       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10184       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10185         # It is most probably a Windows format PATH printed by
10186         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10187         # path with ; separators, and with drive letters. We can handle the
10188         # drive letters (cygwin fileutils understands them), so leave them,
10189         # especially as we might pass files found there to a mingw objdump,
10190         # which wouldn't understand a cygwinified path. Ahh.
10191         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10192       else
10193         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10194       fi
10195       ;;
10196     pw32*)
10197       # pw32 DLLs use 'pw' prefix rather than 'lib'
10198       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10199       ;;
10200     esac
10201     ;;
10202
10203   *)
10204     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10205     ;;
10206   esac
10207   dynamic_linker='Win32 ld.exe'
10208   # FIXME: first we should search . and the directory the executable is in
10209   shlibpath_var=PATH
10210   ;;
10211
10212 darwin* | rhapsody*)
10213   dynamic_linker="$host_os dyld"
10214   version_type=darwin
10215   need_lib_prefix=no
10216   need_version=no
10217   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10218   soname_spec='${libname}${release}${major}$shared_ext'
10219   shlibpath_overrides_runpath=yes
10220   shlibpath_var=DYLD_LIBRARY_PATH
10221   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10222
10223   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10224   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10225   ;;
10226
10227 dgux*)
10228   version_type=linux
10229   need_lib_prefix=no
10230   need_version=no
10231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10232   soname_spec='${libname}${release}${shared_ext}$major'
10233   shlibpath_var=LD_LIBRARY_PATH
10234   ;;
10235
10236 freebsd1*)
10237   dynamic_linker=no
10238   ;;
10239
10240 freebsd* | dragonfly*)
10241   # DragonFly does not have aout.  When/if they implement a new
10242   # versioning mechanism, adjust this.
10243   if test -x /usr/bin/objformat; then
10244     objformat=`/usr/bin/objformat`
10245   else
10246     case $host_os in
10247     freebsd[123]*) objformat=aout ;;
10248     *) objformat=elf ;;
10249     esac
10250   fi
10251   version_type=freebsd-$objformat
10252   case $version_type in
10253     freebsd-elf*)
10254       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10255       need_version=no
10256       need_lib_prefix=no
10257       ;;
10258     freebsd-*)
10259       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10260       need_version=yes
10261       ;;
10262   esac
10263   shlibpath_var=LD_LIBRARY_PATH
10264   case $host_os in
10265   freebsd2*)
10266     shlibpath_overrides_runpath=yes
10267     ;;
10268   freebsd3.[01]* | freebsdelf3.[01]*)
10269     shlibpath_overrides_runpath=yes
10270     hardcode_into_libs=yes
10271     ;;
10272   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10273   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10274     shlibpath_overrides_runpath=no
10275     hardcode_into_libs=yes
10276     ;;
10277   *) # from 4.6 on, and DragonFly
10278     shlibpath_overrides_runpath=yes
10279     hardcode_into_libs=yes
10280     ;;
10281   esac
10282   ;;
10283
10284 gnu*)
10285   version_type=linux
10286   need_lib_prefix=no
10287   need_version=no
10288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10289   soname_spec='${libname}${release}${shared_ext}$major'
10290   shlibpath_var=LD_LIBRARY_PATH
10291   hardcode_into_libs=yes
10292   ;;
10293
10294 hpux9* | hpux10* | hpux11*)
10295   # Give a soname corresponding to the major version so that dld.sl refuses to
10296   # link against other versions.
10297   version_type=sunos
10298   need_lib_prefix=no
10299   need_version=no
10300   case $host_cpu in
10301   ia64*)
10302     shrext_cmds='.so'
10303     hardcode_into_libs=yes
10304     dynamic_linker="$host_os dld.so"
10305     shlibpath_var=LD_LIBRARY_PATH
10306     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10307     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308     soname_spec='${libname}${release}${shared_ext}$major'
10309     if test "X$HPUX_IA64_MODE" = X32; then
10310       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10311     else
10312       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10313     fi
10314     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10315     ;;
10316   hppa*64*)
10317     shrext_cmds='.sl'
10318     hardcode_into_libs=yes
10319     dynamic_linker="$host_os dld.sl"
10320     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10321     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10322     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323     soname_spec='${libname}${release}${shared_ext}$major'
10324     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10325     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10326     ;;
10327   *)
10328     shrext_cmds='.sl'
10329     dynamic_linker="$host_os dld.sl"
10330     shlibpath_var=SHLIB_PATH
10331     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10332     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333     soname_spec='${libname}${release}${shared_ext}$major'
10334     ;;
10335   esac
10336   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10337   postinstall_cmds='chmod 555 $lib'
10338   ;;
10339
10340 interix[3-9]*)
10341   version_type=linux
10342   need_lib_prefix=no
10343   need_version=no
10344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10345   soname_spec='${libname}${release}${shared_ext}$major'
10346   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10347   shlibpath_var=LD_LIBRARY_PATH
10348   shlibpath_overrides_runpath=no
10349   hardcode_into_libs=yes
10350   ;;
10351
10352 irix5* | irix6* | nonstopux*)
10353   case $host_os in
10354     nonstopux*) version_type=nonstopux ;;
10355     *)
10356         if test "$lt_cv_prog_gnu_ld" = yes; then
10357                 version_type=linux
10358         else
10359                 version_type=irix
10360         fi ;;
10361   esac
10362   need_lib_prefix=no
10363   need_version=no
10364   soname_spec='${libname}${release}${shared_ext}$major'
10365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10366   case $host_os in
10367   irix5* | nonstopux*)
10368     libsuff= shlibsuff=
10369     ;;
10370   *)
10371     case $LD in # libtool.m4 will add one of these switches to LD
10372     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10373       libsuff= shlibsuff= libmagic=32-bit;;
10374     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10375       libsuff=32 shlibsuff=N32 libmagic=N32;;
10376     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10377       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10378     *) libsuff= shlibsuff= libmagic=never-match;;
10379     esac
10380     ;;
10381   esac
10382   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10383   shlibpath_overrides_runpath=no
10384   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10385   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10386   hardcode_into_libs=yes
10387   ;;
10388
10389 # No shared lib support for Linux oldld, aout, or coff.
10390 linux*oldld* | linux*aout* | linux*coff*)
10391   dynamic_linker=no
10392   ;;
10393
10394 # This must be Linux ELF.
10395 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10396   version_type=linux
10397   need_lib_prefix=no
10398   need_version=no
10399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400   soname_spec='${libname}${release}${shared_ext}$major'
10401   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10402   shlibpath_var=LD_LIBRARY_PATH
10403   shlibpath_overrides_runpath=no
10404   # Some binutils ld are patched to set DT_RUNPATH
10405   save_LDFLAGS=$LDFLAGS
10406   save_libdir=$libdir
10407   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10408        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h.  */
10411
10412 int
10413 main ()
10414 {
10415
10416   ;
10417   return 0;
10418 }
10419 _ACEOF
10420 if ac_fn_c_try_link "$LINENO"; then :
10421   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10422   shlibpath_overrides_runpath=yes
10423 fi
10424 fi
10425 rm -f core conftest.err conftest.$ac_objext \
10426     conftest$ac_exeext conftest.$ac_ext
10427   LDFLAGS=$save_LDFLAGS
10428   libdir=$save_libdir
10429
10430   # This implies no fast_install, which is unacceptable.
10431   # Some rework will be needed to allow for fast_install
10432   # before this can be enabled.
10433   hardcode_into_libs=yes
10434
10435   # Append ld.so.conf contents to the search path
10436   if test -f /etc/ld.so.conf; then
10437     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' ' '`
10438     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10439   fi
10440
10441   # We used to test for /lib/ld.so.1 and disable shared libraries on
10442   # powerpc, because MkLinux only supported shared libraries with the
10443   # GNU dynamic linker.  Since this was broken with cross compilers,
10444   # most powerpc-linux boxes support dynamic linking these days and
10445   # people can always --disable-shared, the test was removed, and we
10446   # assume the GNU/Linux dynamic linker is in use.
10447   dynamic_linker='GNU/Linux ld.so'
10448   ;;
10449
10450 netbsdelf*-gnu)
10451   version_type=linux
10452   need_lib_prefix=no
10453   need_version=no
10454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10455   soname_spec='${libname}${release}${shared_ext}$major'
10456   shlibpath_var=LD_LIBRARY_PATH
10457   shlibpath_overrides_runpath=no
10458   hardcode_into_libs=yes
10459   dynamic_linker='NetBSD ld.elf_so'
10460   ;;
10461
10462 netbsd*)
10463   version_type=sunos
10464   need_lib_prefix=no
10465   need_version=no
10466   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10467     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10468     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10469     dynamic_linker='NetBSD (a.out) ld.so'
10470   else
10471     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10472     soname_spec='${libname}${release}${shared_ext}$major'
10473     dynamic_linker='NetBSD ld.elf_so'
10474   fi
10475   shlibpath_var=LD_LIBRARY_PATH
10476   shlibpath_overrides_runpath=yes
10477   hardcode_into_libs=yes
10478   ;;
10479
10480 newsos6)
10481   version_type=linux
10482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10483   shlibpath_var=LD_LIBRARY_PATH
10484   shlibpath_overrides_runpath=yes
10485   ;;
10486
10487 *nto* | *qnx*)
10488   version_type=qnx
10489   need_lib_prefix=no
10490   need_version=no
10491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10492   soname_spec='${libname}${release}${shared_ext}$major'
10493   shlibpath_var=LD_LIBRARY_PATH
10494   shlibpath_overrides_runpath=no
10495   hardcode_into_libs=yes
10496   dynamic_linker='ldqnx.so'
10497   ;;
10498
10499 openbsd*)
10500   version_type=sunos
10501   sys_lib_dlsearch_path_spec="/usr/lib"
10502   need_lib_prefix=no
10503   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10504   case $host_os in
10505     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10506     *)                          need_version=no  ;;
10507   esac
10508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10509   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10510   shlibpath_var=LD_LIBRARY_PATH
10511   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10512     case $host_os in
10513       openbsd2.[89] | openbsd2.[89].*)
10514         shlibpath_overrides_runpath=no
10515         ;;
10516       *)
10517         shlibpath_overrides_runpath=yes
10518         ;;
10519       esac
10520   else
10521     shlibpath_overrides_runpath=yes
10522   fi
10523   ;;
10524
10525 os2*)
10526   libname_spec='$name'
10527   shrext_cmds=".dll"
10528   need_lib_prefix=no
10529   library_names_spec='$libname${shared_ext} $libname.a'
10530   dynamic_linker='OS/2 ld.exe'
10531   shlibpath_var=LIBPATH
10532   ;;
10533
10534 osf3* | osf4* | osf5*)
10535   version_type=osf
10536   need_lib_prefix=no
10537   need_version=no
10538   soname_spec='${libname}${release}${shared_ext}$major'
10539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10540   shlibpath_var=LD_LIBRARY_PATH
10541   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10542   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10543   ;;
10544
10545 rdos*)
10546   dynamic_linker=no
10547   ;;
10548
10549 solaris*)
10550   version_type=linux
10551   need_lib_prefix=no
10552   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
10556   shlibpath_overrides_runpath=yes
10557   hardcode_into_libs=yes
10558   # ldd complains unless libraries are executable
10559   postinstall_cmds='chmod +x $lib'
10560   ;;
10561
10562 sunos4*)
10563   version_type=sunos
10564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10565   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10566   shlibpath_var=LD_LIBRARY_PATH
10567   shlibpath_overrides_runpath=yes
10568   if test "$with_gnu_ld" = yes; then
10569     need_lib_prefix=no
10570   fi
10571   need_version=yes
10572   ;;
10573
10574 sysv4 | sysv4.3*)
10575   version_type=linux
10576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10577   soname_spec='${libname}${release}${shared_ext}$major'
10578   shlibpath_var=LD_LIBRARY_PATH
10579   case $host_vendor in
10580     sni)
10581       shlibpath_overrides_runpath=no
10582       need_lib_prefix=no
10583       runpath_var=LD_RUN_PATH
10584       ;;
10585     siemens)
10586       need_lib_prefix=no
10587       ;;
10588     motorola)
10589       need_lib_prefix=no
10590       need_version=no
10591       shlibpath_overrides_runpath=no
10592       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10593       ;;
10594   esac
10595   ;;
10596
10597 sysv4*MP*)
10598   if test -d /usr/nec ;then
10599     version_type=linux
10600     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10601     soname_spec='$libname${shared_ext}.$major'
10602     shlibpath_var=LD_LIBRARY_PATH
10603   fi
10604   ;;
10605
10606 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10607   version_type=freebsd-elf
10608   need_lib_prefix=no
10609   need_version=no
10610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10611   soname_spec='${libname}${release}${shared_ext}$major'
10612   shlibpath_var=LD_LIBRARY_PATH
10613   shlibpath_overrides_runpath=yes
10614   hardcode_into_libs=yes
10615   if test "$with_gnu_ld" = yes; then
10616     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10617   else
10618     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10619     case $host_os in
10620       sco3.2v5*)
10621         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10622         ;;
10623     esac
10624   fi
10625   sys_lib_dlsearch_path_spec='/usr/lib'
10626   ;;
10627
10628 tpf*)
10629   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10630   version_type=linux
10631   need_lib_prefix=no
10632   need_version=no
10633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10634   shlibpath_var=LD_LIBRARY_PATH
10635   shlibpath_overrides_runpath=no
10636   hardcode_into_libs=yes
10637   ;;
10638
10639 uts4*)
10640   version_type=linux
10641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10642   soname_spec='${libname}${release}${shared_ext}$major'
10643   shlibpath_var=LD_LIBRARY_PATH
10644   ;;
10645
10646 *)
10647   dynamic_linker=no
10648   ;;
10649 esac
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10651 $as_echo "$dynamic_linker" >&6; }
10652 test "$dynamic_linker" = no && can_build_shared=no
10653
10654 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10655 if test "$GCC" = yes; then
10656   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10657 fi
10658
10659 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10660   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10661 fi
10662 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10663   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10664 fi
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10753 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10754 hardcode_action=
10755 if test -n "$hardcode_libdir_flag_spec" ||
10756    test -n "$runpath_var" ||
10757    test "X$hardcode_automatic" = "Xyes" ; then
10758
10759   # We can hardcode non-existent directories.
10760   if test "$hardcode_direct" != no &&
10761      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10762      # have to relink, otherwise we might link with an installed library
10763      # when we should be linking with a yet-to-be-installed one
10764      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10765      test "$hardcode_minus_L" != no; then
10766     # Linking always hardcodes the temporary library directory.
10767     hardcode_action=relink
10768   else
10769     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10770     hardcode_action=immediate
10771   fi
10772 else
10773   # We cannot hardcode anything, or else we can only hardcode existing
10774   # directories.
10775   hardcode_action=unsupported
10776 fi
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10778 $as_echo "$hardcode_action" >&6; }
10779
10780 if test "$hardcode_action" = relink ||
10781    test "$inherit_rpath" = yes; then
10782   # Fast installation is not supported
10783   enable_fast_install=no
10784 elif test "$shlibpath_overrides_runpath" = yes ||
10785      test "$enable_shared" = no; then
10786   # Fast installation is not necessary
10787   enable_fast_install=needless
10788 fi
10789
10790
10791
10792
10793
10794
10795   if test "x$enable_dlopen" != xyes; then
10796   enable_dlopen=unknown
10797   enable_dlopen_self=unknown
10798   enable_dlopen_self_static=unknown
10799 else
10800   lt_cv_dlopen=no
10801   lt_cv_dlopen_libs=
10802
10803   case $host_os in
10804   beos*)
10805     lt_cv_dlopen="load_add_on"
10806     lt_cv_dlopen_libs=
10807     lt_cv_dlopen_self=yes
10808     ;;
10809
10810   mingw* | pw32* | cegcc*)
10811     lt_cv_dlopen="LoadLibrary"
10812     lt_cv_dlopen_libs=
10813     ;;
10814
10815   cygwin*)
10816     lt_cv_dlopen="dlopen"
10817     lt_cv_dlopen_libs=
10818     ;;
10819
10820   darwin*)
10821   # if libdl is installed we need to link against it
10822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10823 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10824 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10825   $as_echo_n "(cached) " >&6
10826 else
10827   ac_check_lib_save_LIBS=$LIBS
10828 LIBS="-ldl  $LIBS"
10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h.  */
10831
10832 /* Override any GCC internal prototype to avoid an error.
10833    Use char because int might match the return type of a GCC
10834    builtin and then its argument prototype would still apply.  */
10835 #ifdef __cplusplus
10836 extern "C"
10837 #endif
10838 char dlopen ();
10839 int
10840 main ()
10841 {
10842 return dlopen ();
10843   ;
10844   return 0;
10845 }
10846 _ACEOF
10847 if ac_fn_c_try_link "$LINENO"; then :
10848   ac_cv_lib_dl_dlopen=yes
10849 else
10850   ac_cv_lib_dl_dlopen=no
10851 fi
10852 rm -f core conftest.err conftest.$ac_objext \
10853     conftest$ac_exeext conftest.$ac_ext
10854 LIBS=$ac_check_lib_save_LIBS
10855 fi
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10857 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10858 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10859   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10860 else
10861
10862     lt_cv_dlopen="dyld"
10863     lt_cv_dlopen_libs=
10864     lt_cv_dlopen_self=yes
10865
10866 fi
10867
10868     ;;
10869
10870   *)
10871     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10872 if test "x$ac_cv_func_shl_load" = x""yes; then :
10873   lt_cv_dlopen="shl_load"
10874 else
10875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10876 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10877 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10878   $as_echo_n "(cached) " >&6
10879 else
10880   ac_check_lib_save_LIBS=$LIBS
10881 LIBS="-ldld  $LIBS"
10882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883 /* end confdefs.h.  */
10884
10885 /* Override any GCC internal prototype to avoid an error.
10886    Use char because int might match the return type of a GCC
10887    builtin and then its argument prototype would still apply.  */
10888 #ifdef __cplusplus
10889 extern "C"
10890 #endif
10891 char shl_load ();
10892 int
10893 main ()
10894 {
10895 return shl_load ();
10896   ;
10897   return 0;
10898 }
10899 _ACEOF
10900 if ac_fn_c_try_link "$LINENO"; then :
10901   ac_cv_lib_dld_shl_load=yes
10902 else
10903   ac_cv_lib_dld_shl_load=no
10904 fi
10905 rm -f core conftest.err conftest.$ac_objext \
10906     conftest$ac_exeext conftest.$ac_ext
10907 LIBS=$ac_check_lib_save_LIBS
10908 fi
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10910 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10911 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10912   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10913 else
10914   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10915 if test "x$ac_cv_func_dlopen" = x""yes; then :
10916   lt_cv_dlopen="dlopen"
10917 else
10918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10919 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10920 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10921   $as_echo_n "(cached) " >&6
10922 else
10923   ac_check_lib_save_LIBS=$LIBS
10924 LIBS="-ldl  $LIBS"
10925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10926 /* end confdefs.h.  */
10927
10928 /* Override any GCC internal prototype to avoid an error.
10929    Use char because int might match the return type of a GCC
10930    builtin and then its argument prototype would still apply.  */
10931 #ifdef __cplusplus
10932 extern "C"
10933 #endif
10934 char dlopen ();
10935 int
10936 main ()
10937 {
10938 return dlopen ();
10939   ;
10940   return 0;
10941 }
10942 _ACEOF
10943 if ac_fn_c_try_link "$LINENO"; then :
10944   ac_cv_lib_dl_dlopen=yes
10945 else
10946   ac_cv_lib_dl_dlopen=no
10947 fi
10948 rm -f core conftest.err conftest.$ac_objext \
10949     conftest$ac_exeext conftest.$ac_ext
10950 LIBS=$ac_check_lib_save_LIBS
10951 fi
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10953 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10954 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10955   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10956 else
10957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10958 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10959 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10960   $as_echo_n "(cached) " >&6
10961 else
10962   ac_check_lib_save_LIBS=$LIBS
10963 LIBS="-lsvld  $LIBS"
10964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10965 /* end confdefs.h.  */
10966
10967 /* Override any GCC internal prototype to avoid an error.
10968    Use char because int might match the return type of a GCC
10969    builtin and then its argument prototype would still apply.  */
10970 #ifdef __cplusplus
10971 extern "C"
10972 #endif
10973 char dlopen ();
10974 int
10975 main ()
10976 {
10977 return dlopen ();
10978   ;
10979   return 0;
10980 }
10981 _ACEOF
10982 if ac_fn_c_try_link "$LINENO"; then :
10983   ac_cv_lib_svld_dlopen=yes
10984 else
10985   ac_cv_lib_svld_dlopen=no
10986 fi
10987 rm -f core conftest.err conftest.$ac_objext \
10988     conftest$ac_exeext conftest.$ac_ext
10989 LIBS=$ac_check_lib_save_LIBS
10990 fi
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10992 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10993 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10994   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10995 else
10996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10997 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10998 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10999   $as_echo_n "(cached) " >&6
11000 else
11001   ac_check_lib_save_LIBS=$LIBS
11002 LIBS="-ldld  $LIBS"
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h.  */
11005
11006 /* Override any GCC internal prototype to avoid an error.
11007    Use char because int might match the return type of a GCC
11008    builtin and then its argument prototype would still apply.  */
11009 #ifdef __cplusplus
11010 extern "C"
11011 #endif
11012 char dld_link ();
11013 int
11014 main ()
11015 {
11016 return dld_link ();
11017   ;
11018   return 0;
11019 }
11020 _ACEOF
11021 if ac_fn_c_try_link "$LINENO"; then :
11022   ac_cv_lib_dld_dld_link=yes
11023 else
11024   ac_cv_lib_dld_dld_link=no
11025 fi
11026 rm -f core conftest.err conftest.$ac_objext \
11027     conftest$ac_exeext conftest.$ac_ext
11028 LIBS=$ac_check_lib_save_LIBS
11029 fi
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11031 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11032 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11033   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11034 fi
11035
11036
11037 fi
11038
11039
11040 fi
11041
11042
11043 fi
11044
11045
11046 fi
11047
11048
11049 fi
11050
11051     ;;
11052   esac
11053
11054   if test "x$lt_cv_dlopen" != xno; then
11055     enable_dlopen=yes
11056   else
11057     enable_dlopen=no
11058   fi
11059
11060   case $lt_cv_dlopen in
11061   dlopen)
11062     save_CPPFLAGS="$CPPFLAGS"
11063     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11064
11065     save_LDFLAGS="$LDFLAGS"
11066     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11067
11068     save_LIBS="$LIBS"
11069     LIBS="$lt_cv_dlopen_libs $LIBS"
11070
11071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11072 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11073 if test "${lt_cv_dlopen_self+set}" = set; then :
11074   $as_echo_n "(cached) " >&6
11075 else
11076           if test "$cross_compiling" = yes; then :
11077   lt_cv_dlopen_self=cross
11078 else
11079   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11080   lt_status=$lt_dlunknown
11081   cat > conftest.$ac_ext <<_LT_EOF
11082 #line 11082 "configure"
11083 #include "confdefs.h"
11084
11085 #if HAVE_DLFCN_H
11086 #include <dlfcn.h>
11087 #endif
11088
11089 #include <stdio.h>
11090
11091 #ifdef RTLD_GLOBAL
11092 #  define LT_DLGLOBAL           RTLD_GLOBAL
11093 #else
11094 #  ifdef DL_GLOBAL
11095 #    define LT_DLGLOBAL         DL_GLOBAL
11096 #  else
11097 #    define LT_DLGLOBAL         0
11098 #  endif
11099 #endif
11100
11101 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11102    find out it does not work in some platform. */
11103 #ifndef LT_DLLAZY_OR_NOW
11104 #  ifdef RTLD_LAZY
11105 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11106 #  else
11107 #    ifdef DL_LAZY
11108 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11109 #    else
11110 #      ifdef RTLD_NOW
11111 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11112 #      else
11113 #        ifdef DL_NOW
11114 #          define LT_DLLAZY_OR_NOW      DL_NOW
11115 #        else
11116 #          define LT_DLLAZY_OR_NOW      0
11117 #        endif
11118 #      endif
11119 #    endif
11120 #  endif
11121 #endif
11122
11123 void fnord() { int i=42;}
11124 int main ()
11125 {
11126   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11127   int status = $lt_dlunknown;
11128
11129   if (self)
11130     {
11131       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11132       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11133       /* dlclose (self); */
11134     }
11135   else
11136     puts (dlerror ());
11137
11138   return status;
11139 }
11140 _LT_EOF
11141   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11142   (eval $ac_link) 2>&5
11143   ac_status=$?
11144   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11145   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11146     (./conftest; exit; ) >&5 2>/dev/null
11147     lt_status=$?
11148     case x$lt_status in
11149       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11150       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11151       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11152     esac
11153   else :
11154     # compilation failed
11155     lt_cv_dlopen_self=no
11156   fi
11157 fi
11158 rm -fr conftest*
11159
11160
11161 fi
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11163 $as_echo "$lt_cv_dlopen_self" >&6; }
11164
11165     if test "x$lt_cv_dlopen_self" = xyes; then
11166       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11167       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11168 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11169 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11170   $as_echo_n "(cached) " >&6
11171 else
11172           if test "$cross_compiling" = yes; then :
11173   lt_cv_dlopen_self_static=cross
11174 else
11175   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11176   lt_status=$lt_dlunknown
11177   cat > conftest.$ac_ext <<_LT_EOF
11178 #line 11178 "configure"
11179 #include "confdefs.h"
11180
11181 #if HAVE_DLFCN_H
11182 #include <dlfcn.h>
11183 #endif
11184
11185 #include <stdio.h>
11186
11187 #ifdef RTLD_GLOBAL
11188 #  define LT_DLGLOBAL           RTLD_GLOBAL
11189 #else
11190 #  ifdef DL_GLOBAL
11191 #    define LT_DLGLOBAL         DL_GLOBAL
11192 #  else
11193 #    define LT_DLGLOBAL         0
11194 #  endif
11195 #endif
11196
11197 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11198    find out it does not work in some platform. */
11199 #ifndef LT_DLLAZY_OR_NOW
11200 #  ifdef RTLD_LAZY
11201 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11202 #  else
11203 #    ifdef DL_LAZY
11204 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11205 #    else
11206 #      ifdef RTLD_NOW
11207 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11208 #      else
11209 #        ifdef DL_NOW
11210 #          define LT_DLLAZY_OR_NOW      DL_NOW
11211 #        else
11212 #          define LT_DLLAZY_OR_NOW      0
11213 #        endif
11214 #      endif
11215 #    endif
11216 #  endif
11217 #endif
11218
11219 void fnord() { int i=42;}
11220 int main ()
11221 {
11222   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11223   int status = $lt_dlunknown;
11224
11225   if (self)
11226     {
11227       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11228       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11229       /* dlclose (self); */
11230     }
11231   else
11232     puts (dlerror ());
11233
11234   return status;
11235 }
11236 _LT_EOF
11237   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11238   (eval $ac_link) 2>&5
11239   ac_status=$?
11240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11241   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11242     (./conftest; exit; ) >&5 2>/dev/null
11243     lt_status=$?
11244     case x$lt_status in
11245       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11246       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11247       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11248     esac
11249   else :
11250     # compilation failed
11251     lt_cv_dlopen_self_static=no
11252   fi
11253 fi
11254 rm -fr conftest*
11255
11256
11257 fi
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11259 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11260     fi
11261
11262     CPPFLAGS="$save_CPPFLAGS"
11263     LDFLAGS="$save_LDFLAGS"
11264     LIBS="$save_LIBS"
11265     ;;
11266   esac
11267
11268   case $lt_cv_dlopen_self in
11269   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11270   *) enable_dlopen_self=unknown ;;
11271   esac
11272
11273   case $lt_cv_dlopen_self_static in
11274   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11275   *) enable_dlopen_self_static=unknown ;;
11276   esac
11277 fi
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295 striplib=
11296 old_striplib=
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11298 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11299 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11300   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11301   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11303 $as_echo "yes" >&6; }
11304 else
11305 # FIXME - insert some real tests, host_os isn't really good enough
11306   case $host_os in
11307   darwin*)
11308     if test -n "$STRIP" ; then
11309       striplib="$STRIP -x"
11310       old_striplib="$STRIP -S"
11311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11312 $as_echo "yes" >&6; }
11313     else
11314       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315 $as_echo "no" >&6; }
11316     fi
11317     ;;
11318   *)
11319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320 $as_echo "no" >&6; }
11321     ;;
11322   esac
11323 fi
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336   # Report which library types will actually be built
11337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11338 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11340 $as_echo "$can_build_shared" >&6; }
11341
11342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11343 $as_echo_n "checking whether to build shared libraries... " >&6; }
11344   test "$can_build_shared" = "no" && enable_shared=no
11345
11346   # On AIX, shared libraries and static libraries use the same namespace, and
11347   # are all built from PIC.
11348   case $host_os in
11349   aix3*)
11350     test "$enable_shared" = yes && enable_static=no
11351     if test -n "$RANLIB"; then
11352       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11353       postinstall_cmds='$RANLIB $lib'
11354     fi
11355     ;;
11356
11357   aix[4-9]*)
11358     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11359       test "$enable_shared" = yes && enable_static=no
11360     fi
11361     ;;
11362   esac
11363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11364 $as_echo "$enable_shared" >&6; }
11365
11366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11367 $as_echo_n "checking whether to build static libraries... " >&6; }
11368   # Make sure either enable_shared or enable_static is yes.
11369   test "$enable_shared" = yes || enable_static=yes
11370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11371 $as_echo "$enable_static" >&6; }
11372
11373
11374
11375
11376 fi
11377 ac_ext=c
11378 ac_cpp='$CPP $CPPFLAGS'
11379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11382
11383 CC="$lt_save_CC"
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397         ac_config_commands="$ac_config_commands libtool"
11398
11399
11400
11401
11402 # Only expand once:
11403
11404
11405
11406 # Check whether --enable-sdk was given.
11407 if test "${enable_sdk+set}" = set; then :
11408   enableval=$enable_sdk;
11409          case "${enableval}" in
11410           yes) IS_SDK=yes ;;
11411           no)  IS_SDK=no ;;
11412           *)   as_fn_error $? "bad value ${enableval} for --enable-sdk" "$LINENO" 5  ;;
11413          esac
11414
11415 else
11416   IS_SDK=no
11417 fi
11418
11419  if test "x$IS_SDK" = "xyes"; then
11420   IS_SDK_TRUE=
11421   IS_SDK_FALSE='#'
11422 else
11423   IS_SDK_TRUE='#'
11424   IS_SDK_FALSE=
11425 fi
11426
11427
11428 # Checks for libraries.
11429
11430
11431
11432
11433
11434
11435 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11436         if test -n "$ac_tool_prefix"; then
11437   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11438 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11440 $as_echo_n "checking for $ac_word... " >&6; }
11441 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11442   $as_echo_n "(cached) " >&6
11443 else
11444   case $PKG_CONFIG in
11445   [\\/]* | ?:[\\/]*)
11446   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11447   ;;
11448   *)
11449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11450 for as_dir in $PATH
11451 do
11452   IFS=$as_save_IFS
11453   test -z "$as_dir" && as_dir=.
11454     for ac_exec_ext in '' $ac_executable_extensions; do
11455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11456     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11458     break 2
11459   fi
11460 done
11461   done
11462 IFS=$as_save_IFS
11463
11464   ;;
11465 esac
11466 fi
11467 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11468 if test -n "$PKG_CONFIG"; then
11469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11470 $as_echo "$PKG_CONFIG" >&6; }
11471 else
11472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473 $as_echo "no" >&6; }
11474 fi
11475
11476
11477 fi
11478 if test -z "$ac_cv_path_PKG_CONFIG"; then
11479   ac_pt_PKG_CONFIG=$PKG_CONFIG
11480   # Extract the first word of "pkg-config", so it can be a program name with args.
11481 set dummy pkg-config; ac_word=$2
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11483 $as_echo_n "checking for $ac_word... " >&6; }
11484 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
11485   $as_echo_n "(cached) " >&6
11486 else
11487   case $ac_pt_PKG_CONFIG in
11488   [\\/]* | ?:[\\/]*)
11489   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11490   ;;
11491   *)
11492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11493 for as_dir in $PATH
11494 do
11495   IFS=$as_save_IFS
11496   test -z "$as_dir" && as_dir=.
11497     for ac_exec_ext in '' $ac_executable_extensions; do
11498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11499     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11501     break 2
11502   fi
11503 done
11504   done
11505 IFS=$as_save_IFS
11506
11507   ;;
11508 esac
11509 fi
11510 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11511 if test -n "$ac_pt_PKG_CONFIG"; then
11512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11513 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11514 else
11515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11516 $as_echo "no" >&6; }
11517 fi
11518
11519   if test "x$ac_pt_PKG_CONFIG" = x; then
11520     PKG_CONFIG=""
11521   else
11522     case $cross_compiling:$ac_tool_warned in
11523 yes:)
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11526 ac_tool_warned=yes ;;
11527 esac
11528     PKG_CONFIG=$ac_pt_PKG_CONFIG
11529   fi
11530 else
11531   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11532 fi
11533
11534 fi
11535 if test -n "$PKG_CONFIG"; then
11536         _pkg_min_version=0.9.0
11537         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11538 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11539         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11540                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11541 $as_echo "yes" >&6; }
11542         else
11543                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544 $as_echo "no" >&6; }
11545                 PKG_CONFIG=""
11546         fi
11547 fi
11548
11549 pkg_failed=no
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AVSYSTEM" >&5
11551 $as_echo_n "checking for AVSYSTEM... " >&6; }
11552
11553 if test -n "$AVSYSTEM_CFLAGS"; then
11554     pkg_cv_AVSYSTEM_CFLAGS="$AVSYSTEM_CFLAGS"
11555  elif test -n "$PKG_CONFIG"; then
11556     if test -n "$PKG_CONFIG" && \
11557     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avsysaudio\""; } >&5
11558   ($PKG_CONFIG --exists --print-errors "avsysaudio") 2>&5
11559   ac_status=$?
11560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11561   test $ac_status = 0; }; then
11562   pkg_cv_AVSYSTEM_CFLAGS=`$PKG_CONFIG --cflags "avsysaudio" 2>/dev/null`
11563 else
11564   pkg_failed=yes
11565 fi
11566  else
11567     pkg_failed=untried
11568 fi
11569 if test -n "$AVSYSTEM_LIBS"; then
11570     pkg_cv_AVSYSTEM_LIBS="$AVSYSTEM_LIBS"
11571  elif test -n "$PKG_CONFIG"; then
11572     if test -n "$PKG_CONFIG" && \
11573     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avsysaudio\""; } >&5
11574   ($PKG_CONFIG --exists --print-errors "avsysaudio") 2>&5
11575   ac_status=$?
11576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11577   test $ac_status = 0; }; then
11578   pkg_cv_AVSYSTEM_LIBS=`$PKG_CONFIG --libs "avsysaudio" 2>/dev/null`
11579 else
11580   pkg_failed=yes
11581 fi
11582  else
11583     pkg_failed=untried
11584 fi
11585
11586
11587
11588 if test $pkg_failed = yes; then
11589         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11590 $as_echo "no" >&6; }
11591
11592 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11593         _pkg_short_errors_supported=yes
11594 else
11595         _pkg_short_errors_supported=no
11596 fi
11597         if test $_pkg_short_errors_supported = yes; then
11598                 AVSYSTEM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "avsysaudio" 2>&1`
11599         else
11600                 AVSYSTEM_PKG_ERRORS=`$PKG_CONFIG --print-errors "avsysaudio" 2>&1`
11601         fi
11602         # Put the nasty error message in config.log where it belongs
11603         echo "$AVSYSTEM_PKG_ERRORS" >&5
11604
11605         as_fn_error $? "Package requirements (avsysaudio) were not met:
11606
11607 $AVSYSTEM_PKG_ERRORS
11608
11609 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11610 installed software in a non-standard prefix.
11611
11612 Alternatively, you may set the environment variables AVSYSTEM_CFLAGS
11613 and AVSYSTEM_LIBS to avoid the need to call pkg-config.
11614 See the pkg-config man page for more details." "$LINENO" 5
11615 elif test $pkg_failed = untried; then
11616         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11618         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11620 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11621 is in your PATH or set the PKG_CONFIG environment variable to the full
11622 path to pkg-config.
11623
11624 Alternatively, you may set the environment variables AVSYSTEM_CFLAGS
11625 and AVSYSTEM_LIBS to avoid the need to call pkg-config.
11626 See the pkg-config man page for more details.
11627
11628 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11629 See \`config.log' for more details" "$LINENO" 5 ; }
11630 else
11631         AVSYSTEM_CFLAGS=$pkg_cv_AVSYSTEM_CFLAGS
11632         AVSYSTEM_LIBS=$pkg_cv_AVSYSTEM_LIBS
11633         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11634 $as_echo "yes" >&6; }
11635
11636 fi
11637
11638
11639
11640
11641 pkg_failed=no
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMCOMMON" >&5
11643 $as_echo_n "checking for MMCOMMON... " >&6; }
11644
11645 if test -n "$MMCOMMON_CFLAGS"; then
11646     pkg_cv_MMCOMMON_CFLAGS="$MMCOMMON_CFLAGS"
11647  elif test -n "$PKG_CONFIG"; then
11648     if test -n "$PKG_CONFIG" && \
11649     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mm-common\""; } >&5
11650   ($PKG_CONFIG --exists --print-errors "mm-common") 2>&5
11651   ac_status=$?
11652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11653   test $ac_status = 0; }; then
11654   pkg_cv_MMCOMMON_CFLAGS=`$PKG_CONFIG --cflags "mm-common" 2>/dev/null`
11655 else
11656   pkg_failed=yes
11657 fi
11658  else
11659     pkg_failed=untried
11660 fi
11661 if test -n "$MMCOMMON_LIBS"; then
11662     pkg_cv_MMCOMMON_LIBS="$MMCOMMON_LIBS"
11663  elif test -n "$PKG_CONFIG"; then
11664     if test -n "$PKG_CONFIG" && \
11665     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mm-common\""; } >&5
11666   ($PKG_CONFIG --exists --print-errors "mm-common") 2>&5
11667   ac_status=$?
11668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11669   test $ac_status = 0; }; then
11670   pkg_cv_MMCOMMON_LIBS=`$PKG_CONFIG --libs "mm-common" 2>/dev/null`
11671 else
11672   pkg_failed=yes
11673 fi
11674  else
11675     pkg_failed=untried
11676 fi
11677
11678
11679
11680 if test $pkg_failed = yes; then
11681         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11682 $as_echo "no" >&6; }
11683
11684 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11685         _pkg_short_errors_supported=yes
11686 else
11687         _pkg_short_errors_supported=no
11688 fi
11689         if test $_pkg_short_errors_supported = yes; then
11690                 MMCOMMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "mm-common" 2>&1`
11691         else
11692                 MMCOMMON_PKG_ERRORS=`$PKG_CONFIG --print-errors "mm-common" 2>&1`
11693         fi
11694         # Put the nasty error message in config.log where it belongs
11695         echo "$MMCOMMON_PKG_ERRORS" >&5
11696
11697         as_fn_error $? "Package requirements (mm-common) were not met:
11698
11699 $MMCOMMON_PKG_ERRORS
11700
11701 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11702 installed software in a non-standard prefix.
11703
11704 Alternatively, you may set the environment variables MMCOMMON_CFLAGS
11705 and MMCOMMON_LIBS to avoid the need to call pkg-config.
11706 See the pkg-config man page for more details." "$LINENO" 5
11707 elif test $pkg_failed = untried; then
11708         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709 $as_echo "no" >&6; }
11710         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11712 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11713 is in your PATH or set the PKG_CONFIG environment variable to the full
11714 path to pkg-config.
11715
11716 Alternatively, you may set the environment variables MMCOMMON_CFLAGS
11717 and MMCOMMON_LIBS to avoid the need to call pkg-config.
11718 See the pkg-config man page for more details.
11719
11720 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11721 See \`config.log' for more details" "$LINENO" 5 ; }
11722 else
11723         MMCOMMON_CFLAGS=$pkg_cv_MMCOMMON_CFLAGS
11724         MMCOMMON_LIBS=$pkg_cv_MMCOMMON_LIBS
11725         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11726 $as_echo "yes" >&6; }
11727
11728 fi
11729
11730
11731
11732 if test "x$IS_SDK" = "xyes";
11733 then
11734 echo "SDK build does not use mm-log"
11735 else
11736
11737 pkg_failed=no
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMLOG" >&5
11739 $as_echo_n "checking for MMLOG... " >&6; }
11740
11741 if test -n "$MMLOG_CFLAGS"; then
11742     pkg_cv_MMLOG_CFLAGS="$MMLOG_CFLAGS"
11743  elif test -n "$PKG_CONFIG"; then
11744     if test -n "$PKG_CONFIG" && \
11745     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mm-log\""; } >&5
11746   ($PKG_CONFIG --exists --print-errors "mm-log") 2>&5
11747   ac_status=$?
11748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11749   test $ac_status = 0; }; then
11750   pkg_cv_MMLOG_CFLAGS=`$PKG_CONFIG --cflags "mm-log" 2>/dev/null`
11751 else
11752   pkg_failed=yes
11753 fi
11754  else
11755     pkg_failed=untried
11756 fi
11757 if test -n "$MMLOG_LIBS"; then
11758     pkg_cv_MMLOG_LIBS="$MMLOG_LIBS"
11759  elif test -n "$PKG_CONFIG"; then
11760     if test -n "$PKG_CONFIG" && \
11761     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mm-log\""; } >&5
11762   ($PKG_CONFIG --exists --print-errors "mm-log") 2>&5
11763   ac_status=$?
11764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11765   test $ac_status = 0; }; then
11766   pkg_cv_MMLOG_LIBS=`$PKG_CONFIG --libs "mm-log" 2>/dev/null`
11767 else
11768   pkg_failed=yes
11769 fi
11770  else
11771     pkg_failed=untried
11772 fi
11773
11774
11775
11776 if test $pkg_failed = yes; then
11777         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11778 $as_echo "no" >&6; }
11779
11780 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11781         _pkg_short_errors_supported=yes
11782 else
11783         _pkg_short_errors_supported=no
11784 fi
11785         if test $_pkg_short_errors_supported = yes; then
11786                 MMLOG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "mm-log" 2>&1`
11787         else
11788                 MMLOG_PKG_ERRORS=`$PKG_CONFIG --print-errors "mm-log" 2>&1`
11789         fi
11790         # Put the nasty error message in config.log where it belongs
11791         echo "$MMLOG_PKG_ERRORS" >&5
11792
11793         as_fn_error $? "Package requirements (mm-log) were not met:
11794
11795 $MMLOG_PKG_ERRORS
11796
11797 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11798 installed software in a non-standard prefix.
11799
11800 Alternatively, you may set the environment variables MMLOG_CFLAGS
11801 and MMLOG_LIBS to avoid the need to call pkg-config.
11802 See the pkg-config man page for more details." "$LINENO" 5
11803 elif test $pkg_failed = untried; then
11804         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805 $as_echo "no" >&6; }
11806         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11808 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11809 is in your PATH or set the PKG_CONFIG environment variable to the full
11810 path to pkg-config.
11811
11812 Alternatively, you may set the environment variables MMLOG_CFLAGS
11813 and MMLOG_LIBS to avoid the need to call pkg-config.
11814 See the pkg-config man page for more details.
11815
11816 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11817 See \`config.log' for more details" "$LINENO" 5 ; }
11818 else
11819         MMLOG_CFLAGS=$pkg_cv_MMLOG_CFLAGS
11820         MMLOG_LIBS=$pkg_cv_MMLOG_LIBS
11821         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11822 $as_echo "yes" >&6; }
11823
11824 fi
11825
11826
11827 fi
11828
11829
11830 pkg_failed=no
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMSESSION" >&5
11832 $as_echo_n "checking for MMSESSION... " >&6; }
11833
11834 if test -n "$MMSESSION_CFLAGS"; then
11835     pkg_cv_MMSESSION_CFLAGS="$MMSESSION_CFLAGS"
11836  elif test -n "$PKG_CONFIG"; then
11837     if test -n "$PKG_CONFIG" && \
11838     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mm-session\""; } >&5
11839   ($PKG_CONFIG --exists --print-errors "mm-session") 2>&5
11840   ac_status=$?
11841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11842   test $ac_status = 0; }; then
11843   pkg_cv_MMSESSION_CFLAGS=`$PKG_CONFIG --cflags "mm-session" 2>/dev/null`
11844 else
11845   pkg_failed=yes
11846 fi
11847  else
11848     pkg_failed=untried
11849 fi
11850 if test -n "$MMSESSION_LIBS"; then
11851     pkg_cv_MMSESSION_LIBS="$MMSESSION_LIBS"
11852  elif test -n "$PKG_CONFIG"; then
11853     if test -n "$PKG_CONFIG" && \
11854     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mm-session\""; } >&5
11855   ($PKG_CONFIG --exists --print-errors "mm-session") 2>&5
11856   ac_status=$?
11857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11858   test $ac_status = 0; }; then
11859   pkg_cv_MMSESSION_LIBS=`$PKG_CONFIG --libs "mm-session" 2>/dev/null`
11860 else
11861   pkg_failed=yes
11862 fi
11863  else
11864     pkg_failed=untried
11865 fi
11866
11867
11868
11869 if test $pkg_failed = yes; then
11870         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11871 $as_echo "no" >&6; }
11872
11873 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11874         _pkg_short_errors_supported=yes
11875 else
11876         _pkg_short_errors_supported=no
11877 fi
11878         if test $_pkg_short_errors_supported = yes; then
11879                 MMSESSION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "mm-session" 2>&1`
11880         else
11881                 MMSESSION_PKG_ERRORS=`$PKG_CONFIG --print-errors "mm-session" 2>&1`
11882         fi
11883         # Put the nasty error message in config.log where it belongs
11884         echo "$MMSESSION_PKG_ERRORS" >&5
11885
11886         as_fn_error $? "Package requirements (mm-session) were not met:
11887
11888 $MMSESSION_PKG_ERRORS
11889
11890 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11891 installed software in a non-standard prefix.
11892
11893 Alternatively, you may set the environment variables MMSESSION_CFLAGS
11894 and MMSESSION_LIBS to avoid the need to call pkg-config.
11895 See the pkg-config man page for more details." "$LINENO" 5
11896 elif test $pkg_failed = untried; then
11897         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 $as_echo "no" >&6; }
11899         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11901 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11902 is in your PATH or set the PKG_CONFIG environment variable to the full
11903 path to pkg-config.
11904
11905 Alternatively, you may set the environment variables MMSESSION_CFLAGS
11906 and MMSESSION_LIBS to avoid the need to call pkg-config.
11907 See the pkg-config man page for more details.
11908
11909 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11910 See \`config.log' for more details" "$LINENO" 5 ; }
11911 else
11912         MMSESSION_CFLAGS=$pkg_cv_MMSESSION_CFLAGS
11913         MMSESSION_LIBS=$pkg_cv_MMSESSION_LIBS
11914         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11915 $as_echo "yes" >&6; }
11916
11917 fi
11918
11919
11920
11921
11922 pkg_failed=no
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUDIOSESSIONMGR" >&5
11924 $as_echo_n "checking for AUDIOSESSIONMGR... " >&6; }
11925
11926 if test -n "$AUDIOSESSIONMGR_CFLAGS"; then
11927     pkg_cv_AUDIOSESSIONMGR_CFLAGS="$AUDIOSESSIONMGR_CFLAGS"
11928  elif test -n "$PKG_CONFIG"; then
11929     if test -n "$PKG_CONFIG" && \
11930     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"audio-session-mgr\""; } >&5
11931   ($PKG_CONFIG --exists --print-errors "audio-session-mgr") 2>&5
11932   ac_status=$?
11933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11934   test $ac_status = 0; }; then
11935   pkg_cv_AUDIOSESSIONMGR_CFLAGS=`$PKG_CONFIG --cflags "audio-session-mgr" 2>/dev/null`
11936 else
11937   pkg_failed=yes
11938 fi
11939  else
11940     pkg_failed=untried
11941 fi
11942 if test -n "$AUDIOSESSIONMGR_LIBS"; then
11943     pkg_cv_AUDIOSESSIONMGR_LIBS="$AUDIOSESSIONMGR_LIBS"
11944  elif test -n "$PKG_CONFIG"; then
11945     if test -n "$PKG_CONFIG" && \
11946     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"audio-session-mgr\""; } >&5
11947   ($PKG_CONFIG --exists --print-errors "audio-session-mgr") 2>&5
11948   ac_status=$?
11949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11950   test $ac_status = 0; }; then
11951   pkg_cv_AUDIOSESSIONMGR_LIBS=`$PKG_CONFIG --libs "audio-session-mgr" 2>/dev/null`
11952 else
11953   pkg_failed=yes
11954 fi
11955  else
11956     pkg_failed=untried
11957 fi
11958
11959
11960
11961 if test $pkg_failed = yes; then
11962         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963 $as_echo "no" >&6; }
11964
11965 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11966         _pkg_short_errors_supported=yes
11967 else
11968         _pkg_short_errors_supported=no
11969 fi
11970         if test $_pkg_short_errors_supported = yes; then
11971                 AUDIOSESSIONMGR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "audio-session-mgr" 2>&1`
11972         else
11973                 AUDIOSESSIONMGR_PKG_ERRORS=`$PKG_CONFIG --print-errors "audio-session-mgr" 2>&1`
11974         fi
11975         # Put the nasty error message in config.log where it belongs
11976         echo "$AUDIOSESSIONMGR_PKG_ERRORS" >&5
11977
11978         as_fn_error $? "Package requirements (audio-session-mgr) were not met:
11979
11980 $AUDIOSESSIONMGR_PKG_ERRORS
11981
11982 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11983 installed software in a non-standard prefix.
11984
11985 Alternatively, you may set the environment variables AUDIOSESSIONMGR_CFLAGS
11986 and AUDIOSESSIONMGR_LIBS to avoid the need to call pkg-config.
11987 See the pkg-config man page for more details." "$LINENO" 5
11988 elif test $pkg_failed = untried; then
11989         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
11991         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11993 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11994 is in your PATH or set the PKG_CONFIG environment variable to the full
11995 path to pkg-config.
11996
11997 Alternatively, you may set the environment variables AUDIOSESSIONMGR_CFLAGS
11998 and AUDIOSESSIONMGR_LIBS to avoid the need to call pkg-config.
11999 See the pkg-config man page for more details.
12000
12001 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12002 See \`config.log' for more details" "$LINENO" 5 ; }
12003 else
12004         AUDIOSESSIONMGR_CFLAGS=$pkg_cv_AUDIOSESSIONMGR_CFLAGS
12005         AUDIOSESSIONMGR_LIBS=$pkg_cv_AUDIOSESSIONMGR_LIBS
12006         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12007 $as_echo "yes" >&6; }
12008
12009 fi
12010
12011
12012
12013
12014 pkg_failed=no
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB2" >&5
12016 $as_echo_n "checking for GLIB2... " >&6; }
12017
12018 if test -n "$GLIB2_CFLAGS"; then
12019     pkg_cv_GLIB2_CFLAGS="$GLIB2_CFLAGS"
12020  elif test -n "$PKG_CONFIG"; then
12021     if test -n "$PKG_CONFIG" && \
12022     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gthread-2.0\""; } >&5
12023   ($PKG_CONFIG --exists --print-errors "glib-2.0 gthread-2.0") 2>&5
12024   ac_status=$?
12025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12026   test $ac_status = 0; }; then
12027   pkg_cv_GLIB2_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 gthread-2.0" 2>/dev/null`
12028 else
12029   pkg_failed=yes
12030 fi
12031  else
12032     pkg_failed=untried
12033 fi
12034 if test -n "$GLIB2_LIBS"; then
12035     pkg_cv_GLIB2_LIBS="$GLIB2_LIBS"
12036  elif test -n "$PKG_CONFIG"; then
12037     if test -n "$PKG_CONFIG" && \
12038     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gthread-2.0\""; } >&5
12039   ($PKG_CONFIG --exists --print-errors "glib-2.0 gthread-2.0") 2>&5
12040   ac_status=$?
12041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12042   test $ac_status = 0; }; then
12043   pkg_cv_GLIB2_LIBS=`$PKG_CONFIG --libs "glib-2.0 gthread-2.0" 2>/dev/null`
12044 else
12045   pkg_failed=yes
12046 fi
12047  else
12048     pkg_failed=untried
12049 fi
12050
12051
12052
12053 if test $pkg_failed = yes; then
12054         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055 $as_echo "no" >&6; }
12056
12057 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12058         _pkg_short_errors_supported=yes
12059 else
12060         _pkg_short_errors_supported=no
12061 fi
12062         if test $_pkg_short_errors_supported = yes; then
12063                 GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 gthread-2.0" 2>&1`
12064         else
12065                 GLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 gthread-2.0" 2>&1`
12066         fi
12067         # Put the nasty error message in config.log where it belongs
12068         echo "$GLIB2_PKG_ERRORS" >&5
12069
12070         as_fn_error $? "Package requirements (glib-2.0 gthread-2.0) were not met:
12071
12072 $GLIB2_PKG_ERRORS
12073
12074 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12075 installed software in a non-standard prefix.
12076
12077 Alternatively, you may set the environment variables GLIB2_CFLAGS
12078 and GLIB2_LIBS to avoid the need to call pkg-config.
12079 See the pkg-config man page for more details." "$LINENO" 5
12080 elif test $pkg_failed = untried; then
12081         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12083         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12085 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12086 is in your PATH or set the PKG_CONFIG environment variable to the full
12087 path to pkg-config.
12088
12089 Alternatively, you may set the environment variables GLIB2_CFLAGS
12090 and GLIB2_LIBS to avoid the need to call pkg-config.
12091 See the pkg-config man page for more details.
12092
12093 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12094 See \`config.log' for more details" "$LINENO" 5 ; }
12095 else
12096         GLIB2_CFLAGS=$pkg_cv_GLIB2_CFLAGS
12097         GLIB2_LIBS=$pkg_cv_GLIB2_LIBS
12098         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12099 $as_echo "yes" >&6; }
12100
12101 fi
12102
12103
12104
12105
12106 pkg_failed=no
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VCONF" >&5
12108 $as_echo_n "checking for VCONF... " >&6; }
12109
12110 if test -n "$VCONF_CFLAGS"; then
12111     pkg_cv_VCONF_CFLAGS="$VCONF_CFLAGS"
12112  elif test -n "$PKG_CONFIG"; then
12113     if test -n "$PKG_CONFIG" && \
12114     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vconf\""; } >&5
12115   ($PKG_CONFIG --exists --print-errors "vconf") 2>&5
12116   ac_status=$?
12117   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12118   test $ac_status = 0; }; then
12119   pkg_cv_VCONF_CFLAGS=`$PKG_CONFIG --cflags "vconf" 2>/dev/null`
12120 else
12121   pkg_failed=yes
12122 fi
12123  else
12124     pkg_failed=untried
12125 fi
12126 if test -n "$VCONF_LIBS"; then
12127     pkg_cv_VCONF_LIBS="$VCONF_LIBS"
12128  elif test -n "$PKG_CONFIG"; then
12129     if test -n "$PKG_CONFIG" && \
12130     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vconf\""; } >&5
12131   ($PKG_CONFIG --exists --print-errors "vconf") 2>&5
12132   ac_status=$?
12133   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12134   test $ac_status = 0; }; then
12135   pkg_cv_VCONF_LIBS=`$PKG_CONFIG --libs "vconf" 2>/dev/null`
12136 else
12137   pkg_failed=yes
12138 fi
12139  else
12140     pkg_failed=untried
12141 fi
12142
12143
12144
12145 if test $pkg_failed = yes; then
12146         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147 $as_echo "no" >&6; }
12148
12149 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12150         _pkg_short_errors_supported=yes
12151 else
12152         _pkg_short_errors_supported=no
12153 fi
12154         if test $_pkg_short_errors_supported = yes; then
12155                 VCONF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "vconf" 2>&1`
12156         else
12157                 VCONF_PKG_ERRORS=`$PKG_CONFIG --print-errors "vconf" 2>&1`
12158         fi
12159         # Put the nasty error message in config.log where it belongs
12160         echo "$VCONF_PKG_ERRORS" >&5
12161
12162         as_fn_error $? "Package requirements (vconf) were not met:
12163
12164 $VCONF_PKG_ERRORS
12165
12166 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12167 installed software in a non-standard prefix.
12168
12169 Alternatively, you may set the environment variables VCONF_CFLAGS
12170 and VCONF_LIBS to avoid the need to call pkg-config.
12171 See the pkg-config man page for more details." "$LINENO" 5
12172 elif test $pkg_failed = untried; then
12173         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174 $as_echo "no" >&6; }
12175         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12177 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12178 is in your PATH or set the PKG_CONFIG environment variable to the full
12179 path to pkg-config.
12180
12181 Alternatively, you may set the environment variables VCONF_CFLAGS
12182 and VCONF_LIBS to avoid the need to call pkg-config.
12183 See the pkg-config man page for more details.
12184
12185 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12186 See \`config.log' for more details" "$LINENO" 5 ; }
12187 else
12188         VCONF_CFLAGS=$pkg_cv_VCONF_CFLAGS
12189         VCONF_LIBS=$pkg_cv_VCONF_LIBS
12190         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12191 $as_echo "yes" >&6; }
12192
12193 fi
12194
12195
12196
12197
12198 pkg_failed=no
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEYNOTI" >&5
12200 $as_echo_n "checking for HEYNOTI... " >&6; }
12201
12202 if test -n "$HEYNOTI_CFLAGS"; then
12203     pkg_cv_HEYNOTI_CFLAGS="$HEYNOTI_CFLAGS"
12204  elif test -n "$PKG_CONFIG"; then
12205     if test -n "$PKG_CONFIG" && \
12206     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"heynoti\""; } >&5
12207   ($PKG_CONFIG --exists --print-errors "heynoti") 2>&5
12208   ac_status=$?
12209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12210   test $ac_status = 0; }; then
12211   pkg_cv_HEYNOTI_CFLAGS=`$PKG_CONFIG --cflags "heynoti" 2>/dev/null`
12212 else
12213   pkg_failed=yes
12214 fi
12215  else
12216     pkg_failed=untried
12217 fi
12218 if test -n "$HEYNOTI_LIBS"; then
12219     pkg_cv_HEYNOTI_LIBS="$HEYNOTI_LIBS"
12220  elif test -n "$PKG_CONFIG"; then
12221     if test -n "$PKG_CONFIG" && \
12222     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"heynoti\""; } >&5
12223   ($PKG_CONFIG --exists --print-errors "heynoti") 2>&5
12224   ac_status=$?
12225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12226   test $ac_status = 0; }; then
12227   pkg_cv_HEYNOTI_LIBS=`$PKG_CONFIG --libs "heynoti" 2>/dev/null`
12228 else
12229   pkg_failed=yes
12230 fi
12231  else
12232     pkg_failed=untried
12233 fi
12234
12235
12236
12237 if test $pkg_failed = yes; then
12238         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239 $as_echo "no" >&6; }
12240
12241 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12242         _pkg_short_errors_supported=yes
12243 else
12244         _pkg_short_errors_supported=no
12245 fi
12246         if test $_pkg_short_errors_supported = yes; then
12247                 HEYNOTI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "heynoti" 2>&1`
12248         else
12249                 HEYNOTI_PKG_ERRORS=`$PKG_CONFIG --print-errors "heynoti" 2>&1`
12250         fi
12251         # Put the nasty error message in config.log where it belongs
12252         echo "$HEYNOTI_PKG_ERRORS" >&5
12253
12254         as_fn_error $? "Package requirements (heynoti) were not met:
12255
12256 $HEYNOTI_PKG_ERRORS
12257
12258 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12259 installed software in a non-standard prefix.
12260
12261 Alternatively, you may set the environment variables HEYNOTI_CFLAGS
12262 and HEYNOTI_LIBS to avoid the need to call pkg-config.
12263 See the pkg-config man page for more details." "$LINENO" 5
12264 elif test $pkg_failed = untried; then
12265         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12267         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12269 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12270 is in your PATH or set the PKG_CONFIG environment variable to the full
12271 path to pkg-config.
12272
12273 Alternatively, you may set the environment variables HEYNOTI_CFLAGS
12274 and HEYNOTI_LIBS to avoid the need to call pkg-config.
12275 See the pkg-config man page for more details.
12276
12277 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12278 See \`config.log' for more details" "$LINENO" 5 ; }
12279 else
12280         HEYNOTI_CFLAGS=$pkg_cv_HEYNOTI_CFLAGS
12281         HEYNOTI_LIBS=$pkg_cv_HEYNOTI_LIBS
12282         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12283 $as_echo "yes" >&6; }
12284
12285 fi
12286
12287
12288
12289
12290 # Check whether --enable-pulse was given.
12291 if test "${enable_pulse+set}" = set; then :
12292   enableval=$enable_pulse;
12293  case "${enableval}" in
12294          yes) USE_PULSE=yes ;;
12295          no)  USE_PULSE=no ;;
12296          *)   as_fn_error $? "bad value ${enableval} for --enable-pulse" "$LINENO" 5  ;;
12297  esac
12298
12299 else
12300   USE_PULSE=no
12301 fi
12302
12303 if test "x$USE_PULSE" = "xyes"; then
12304
12305 pkg_failed=no
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSE" >&5
12307 $as_echo_n "checking for PULSE... " >&6; }
12308
12309 if test -n "$PULSE_CFLAGS"; then
12310     pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
12311  elif test -n "$PKG_CONFIG"; then
12312     if test -n "$PKG_CONFIG" && \
12313     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse\""; } >&5
12314   ($PKG_CONFIG --exists --print-errors "libpulse") 2>&5
12315   ac_status=$?
12316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12317   test $ac_status = 0; }; then
12318   pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse" 2>/dev/null`
12319 else
12320   pkg_failed=yes
12321 fi
12322  else
12323     pkg_failed=untried
12324 fi
12325 if test -n "$PULSE_LIBS"; then
12326     pkg_cv_PULSE_LIBS="$PULSE_LIBS"
12327  elif test -n "$PKG_CONFIG"; then
12328     if test -n "$PKG_CONFIG" && \
12329     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse\""; } >&5
12330   ($PKG_CONFIG --exists --print-errors "libpulse") 2>&5
12331   ac_status=$?
12332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12333   test $ac_status = 0; }; then
12334   pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse" 2>/dev/null`
12335 else
12336   pkg_failed=yes
12337 fi
12338  else
12339     pkg_failed=untried
12340 fi
12341
12342
12343
12344 if test $pkg_failed = yes; then
12345         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346 $as_echo "no" >&6; }
12347
12348 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12349         _pkg_short_errors_supported=yes
12350 else
12351         _pkg_short_errors_supported=no
12352 fi
12353         if test $_pkg_short_errors_supported = yes; then
12354                 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse" 2>&1`
12355         else
12356                 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse" 2>&1`
12357         fi
12358         # Put the nasty error message in config.log where it belongs
12359         echo "$PULSE_PKG_ERRORS" >&5
12360
12361         as_fn_error $? "Package requirements (libpulse) were not met:
12362
12363 $PULSE_PKG_ERRORS
12364
12365 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12366 installed software in a non-standard prefix.
12367
12368 Alternatively, you may set the environment variables PULSE_CFLAGS
12369 and PULSE_LIBS to avoid the need to call pkg-config.
12370 See the pkg-config man page for more details." "$LINENO" 5
12371 elif test $pkg_failed = untried; then
12372         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373 $as_echo "no" >&6; }
12374         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12376 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12377 is in your PATH or set the PKG_CONFIG environment variable to the full
12378 path to pkg-config.
12379
12380 Alternatively, you may set the environment variables PULSE_CFLAGS
12381 and PULSE_LIBS to avoid the need to call pkg-config.
12382 See the pkg-config man page for more details.
12383
12384 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12385 See \`config.log' for more details" "$LINENO" 5 ; }
12386 else
12387         PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
12388         PULSE_LIBS=$pkg_cv_PULSE_LIBS
12389         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12390 $as_echo "yes" >&6; }
12391
12392 fi
12393
12394
12395 fi
12396  if test "x$USE_PULSE" = "xyes"; then
12397   USE_PULSE_TRUE=
12398   USE_PULSE_FALSE='#'
12399 else
12400   USE_PULSE_TRUE='#'
12401   USE_PULSE_FALSE=
12402 fi
12403
12404
12405
12406 # Checks for header files.
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12408 $as_echo_n "checking for ANSI C header files... " >&6; }
12409 if test "${ac_cv_header_stdc+set}" = set; then :
12410   $as_echo_n "(cached) " >&6
12411 else
12412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12413 /* end confdefs.h.  */
12414 #include <stdlib.h>
12415 #include <stdarg.h>
12416 #include <string.h>
12417 #include <float.h>
12418
12419 int
12420 main ()
12421 {
12422
12423   ;
12424   return 0;
12425 }
12426 _ACEOF
12427 if ac_fn_c_try_compile "$LINENO"; then :
12428   ac_cv_header_stdc=yes
12429 else
12430   ac_cv_header_stdc=no
12431 fi
12432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12433
12434 if test $ac_cv_header_stdc = yes; then
12435   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h.  */
12438 #include <string.h>
12439
12440 _ACEOF
12441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12442   $EGREP "memchr" >/dev/null 2>&1; then :
12443
12444 else
12445   ac_cv_header_stdc=no
12446 fi
12447 rm -f conftest*
12448
12449 fi
12450
12451 if test $ac_cv_header_stdc = yes; then
12452   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12454 /* end confdefs.h.  */
12455 #include <stdlib.h>
12456
12457 _ACEOF
12458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12459   $EGREP "free" >/dev/null 2>&1; then :
12460
12461 else
12462   ac_cv_header_stdc=no
12463 fi
12464 rm -f conftest*
12465
12466 fi
12467
12468 if test $ac_cv_header_stdc = yes; then
12469   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12470   if test "$cross_compiling" = yes; then :
12471   :
12472 else
12473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474 /* end confdefs.h.  */
12475 #include <ctype.h>
12476 #include <stdlib.h>
12477 #if ((' ' & 0x0FF) == 0x020)
12478 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12479 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12480 #else
12481 # define ISLOWER(c) \
12482                    (('a' <= (c) && (c) <= 'i') \
12483                      || ('j' <= (c) && (c) <= 'r') \
12484                      || ('s' <= (c) && (c) <= 'z'))
12485 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12486 #endif
12487
12488 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12489 int
12490 main ()
12491 {
12492   int i;
12493   for (i = 0; i < 256; i++)
12494     if (XOR (islower (i), ISLOWER (i))
12495         || toupper (i) != TOUPPER (i))
12496       return 2;
12497   return 0;
12498 }
12499 _ACEOF
12500 if ac_fn_c_try_run "$LINENO"; then :
12501
12502 else
12503   ac_cv_header_stdc=no
12504 fi
12505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12506   conftest.$ac_objext conftest.beam conftest.$ac_ext
12507 fi
12508
12509 fi
12510 fi
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12512 $as_echo "$ac_cv_header_stdc" >&6; }
12513 if test $ac_cv_header_stdc = yes; then
12514
12515 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12516
12517 fi
12518
12519 for ac_header in fcntl.h memory.h stdlib.h string.h sys/time.h unistd.h errno.h sys/types.h sys/stat.h
12520 do :
12521   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12522 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12523 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12524   cat >>confdefs.h <<_ACEOF
12525 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12526 _ACEOF
12527
12528 fi
12529
12530 done
12531
12532
12533 # Checks for typedefs, structures, and compiler characteristics.
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12535 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12536 if test "${ac_cv_c_const+set}" = set; then :
12537   $as_echo_n "(cached) " >&6
12538 else
12539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h.  */
12541
12542 int
12543 main ()
12544 {
12545 /* FIXME: Include the comments suggested by Paul. */
12546 #ifndef __cplusplus
12547   /* Ultrix mips cc rejects this.  */
12548   typedef int charset[2];
12549   const charset cs;
12550   /* SunOS 4.1.1 cc rejects this.  */
12551   char const *const *pcpcc;
12552   char **ppc;
12553   /* NEC SVR4.0.2 mips cc rejects this.  */
12554   struct point {int x, y;};
12555   static struct point const zero = {0,0};
12556   /* AIX XL C 1.02.0.0 rejects this.
12557      It does not let you subtract one const X* pointer from another in
12558      an arm of an if-expression whose if-part is not a constant
12559      expression */
12560   const char *g = "string";
12561   pcpcc = &g + (g ? g-g : 0);
12562   /* HPUX 7.0 cc rejects these. */
12563   ++pcpcc;
12564   ppc = (char**) pcpcc;
12565   pcpcc = (char const *const *) ppc;
12566   { /* SCO 3.2v4 cc rejects this.  */
12567     char *t;
12568     char const *s = 0 ? (char *) 0 : (char const *) 0;
12569
12570     *t++ = 0;
12571     if (s) return 0;
12572   }
12573   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12574     int x[] = {25, 17};
12575     const int *foo = &x[0];
12576     ++foo;
12577   }
12578   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12579     typedef const int *iptr;
12580     iptr p = 0;
12581     ++p;
12582   }
12583   { /* AIX XL C 1.02.0.0 rejects this saying
12584        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12585     struct s { int j; const int *ap[3]; };
12586     struct s *b; b->j = 5;
12587   }
12588   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12589     const int foo = 10;
12590     if (!foo) return 0;
12591   }
12592   return !cs[0] && !zero.x;
12593 #endif
12594
12595   ;
12596   return 0;
12597 }
12598 _ACEOF
12599 if ac_fn_c_try_compile "$LINENO"; then :
12600   ac_cv_c_const=yes
12601 else
12602   ac_cv_c_const=no
12603 fi
12604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12605 fi
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12607 $as_echo "$ac_cv_c_const" >&6; }
12608 if test $ac_cv_c_const = no; then
12609
12610 $as_echo "#define const /**/" >>confdefs.h
12611
12612 fi
12613
12614 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12615 if test "x$ac_cv_type_pid_t" = x""yes; then :
12616
12617 else
12618
12619 cat >>confdefs.h <<_ACEOF
12620 #define pid_t int
12621 _ACEOF
12622
12623 fi
12624
12625 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12626 if test "x$ac_cv_type_size_t" = x""yes; then :
12627
12628 else
12629
12630 cat >>confdefs.h <<_ACEOF
12631 #define size_t unsigned int
12632 _ACEOF
12633
12634 fi
12635
12636
12637 # Checks for library functions.
12638 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12639 # for constant arguments.  Useless!
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12641 $as_echo_n "checking for working alloca.h... " >&6; }
12642 if test "${ac_cv_working_alloca_h+set}" = set; then :
12643   $as_echo_n "(cached) " >&6
12644 else
12645   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h.  */
12647 #include <alloca.h>
12648 int
12649 main ()
12650 {
12651 char *p = (char *) alloca (2 * sizeof (int));
12652                           if (p) return 0;
12653   ;
12654   return 0;
12655 }
12656 _ACEOF
12657 if ac_fn_c_try_link "$LINENO"; then :
12658   ac_cv_working_alloca_h=yes
12659 else
12660   ac_cv_working_alloca_h=no
12661 fi
12662 rm -f core conftest.err conftest.$ac_objext \
12663     conftest$ac_exeext conftest.$ac_ext
12664 fi
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12666 $as_echo "$ac_cv_working_alloca_h" >&6; }
12667 if test $ac_cv_working_alloca_h = yes; then
12668
12669 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12670
12671 fi
12672
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12674 $as_echo_n "checking for alloca... " >&6; }
12675 if test "${ac_cv_func_alloca_works+set}" = set; then :
12676   $as_echo_n "(cached) " >&6
12677 else
12678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12679 /* end confdefs.h.  */
12680 #ifdef __GNUC__
12681 # define alloca __builtin_alloca
12682 #else
12683 # ifdef _MSC_VER
12684 #  include <malloc.h>
12685 #  define alloca _alloca
12686 # else
12687 #  ifdef HAVE_ALLOCA_H
12688 #   include <alloca.h>
12689 #  else
12690 #   ifdef _AIX
12691  #pragma alloca
12692 #   else
12693 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12694 char *alloca ();
12695 #    endif
12696 #   endif
12697 #  endif
12698 # endif
12699 #endif
12700
12701 int
12702 main ()
12703 {
12704 char *p = (char *) alloca (1);
12705                                     if (p) return 0;
12706   ;
12707   return 0;
12708 }
12709 _ACEOF
12710 if ac_fn_c_try_link "$LINENO"; then :
12711   ac_cv_func_alloca_works=yes
12712 else
12713   ac_cv_func_alloca_works=no
12714 fi
12715 rm -f core conftest.err conftest.$ac_objext \
12716     conftest$ac_exeext conftest.$ac_ext
12717 fi
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12719 $as_echo "$ac_cv_func_alloca_works" >&6; }
12720
12721 if test $ac_cv_func_alloca_works = yes; then
12722
12723 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12724
12725 else
12726   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12727 # that cause trouble.  Some versions do not even contain alloca or
12728 # contain a buggy version.  If you still want to use their alloca,
12729 # use ar to extract alloca.o from them instead of compiling alloca.c.
12730
12731 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12732
12733 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12734
12735
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12737 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12738 if test "${ac_cv_os_cray+set}" = set; then :
12739   $as_echo_n "(cached) " >&6
12740 else
12741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12742 /* end confdefs.h.  */
12743 #if defined CRAY && ! defined CRAY2
12744 webecray
12745 #else
12746 wenotbecray
12747 #endif
12748
12749 _ACEOF
12750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12751   $EGREP "webecray" >/dev/null 2>&1; then :
12752   ac_cv_os_cray=yes
12753 else
12754   ac_cv_os_cray=no
12755 fi
12756 rm -f conftest*
12757
12758 fi
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12760 $as_echo "$ac_cv_os_cray" >&6; }
12761 if test $ac_cv_os_cray = yes; then
12762   for ac_func in _getb67 GETB67 getb67; do
12763     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12764 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12765 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12766
12767 cat >>confdefs.h <<_ACEOF
12768 #define CRAY_STACKSEG_END $ac_func
12769 _ACEOF
12770
12771     break
12772 fi
12773
12774   done
12775 fi
12776
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12778 $as_echo_n "checking stack direction for C alloca... " >&6; }
12779 if test "${ac_cv_c_stack_direction+set}" = set; then :
12780   $as_echo_n "(cached) " >&6
12781 else
12782   if test "$cross_compiling" = yes; then :
12783   ac_cv_c_stack_direction=0
12784 else
12785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12786 /* end confdefs.h.  */
12787 $ac_includes_default
12788 int
12789 find_stack_direction ()
12790 {
12791   static char *addr = 0;
12792   auto char dummy;
12793   if (addr == 0)
12794     {
12795       addr = &dummy;
12796       return find_stack_direction ();
12797     }
12798   else
12799     return (&dummy > addr) ? 1 : -1;
12800 }
12801
12802 int
12803 main ()
12804 {
12805   return find_stack_direction () < 0;
12806 }
12807 _ACEOF
12808 if ac_fn_c_try_run "$LINENO"; then :
12809   ac_cv_c_stack_direction=1
12810 else
12811   ac_cv_c_stack_direction=-1
12812 fi
12813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12814   conftest.$ac_objext conftest.beam conftest.$ac_ext
12815 fi
12816
12817 fi
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12819 $as_echo "$ac_cv_c_stack_direction" >&6; }
12820 cat >>confdefs.h <<_ACEOF
12821 #define STACK_DIRECTION $ac_cv_c_stack_direction
12822 _ACEOF
12823
12824
12825 fi
12826
12827 for ac_header in vfork.h
12828 do :
12829   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12830 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12831   cat >>confdefs.h <<_ACEOF
12832 #define HAVE_VFORK_H 1
12833 _ACEOF
12834
12835 fi
12836
12837 done
12838
12839 for ac_func in fork vfork
12840 do :
12841   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12842 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12843 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12844   cat >>confdefs.h <<_ACEOF
12845 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12846 _ACEOF
12847
12848 fi
12849 done
12850
12851 if test "x$ac_cv_func_fork" = xyes; then
12852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12853 $as_echo_n "checking for working fork... " >&6; }
12854 if test "${ac_cv_func_fork_works+set}" = set; then :
12855   $as_echo_n "(cached) " >&6
12856 else
12857   if test "$cross_compiling" = yes; then :
12858   ac_cv_func_fork_works=cross
12859 else
12860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h.  */
12862 $ac_includes_default
12863 int
12864 main ()
12865 {
12866
12867           /* By Ruediger Kuhlmann. */
12868           return fork () < 0;
12869
12870   ;
12871   return 0;
12872 }
12873 _ACEOF
12874 if ac_fn_c_try_run "$LINENO"; then :
12875   ac_cv_func_fork_works=yes
12876 else
12877   ac_cv_func_fork_works=no
12878 fi
12879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12880   conftest.$ac_objext conftest.beam conftest.$ac_ext
12881 fi
12882
12883 fi
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12885 $as_echo "$ac_cv_func_fork_works" >&6; }
12886
12887 else
12888   ac_cv_func_fork_works=$ac_cv_func_fork
12889 fi
12890 if test "x$ac_cv_func_fork_works" = xcross; then
12891   case $host in
12892     *-*-amigaos* | *-*-msdosdjgpp*)
12893       # Override, as these systems have only a dummy fork() stub
12894       ac_cv_func_fork_works=no
12895       ;;
12896     *)
12897       ac_cv_func_fork_works=yes
12898       ;;
12899   esac
12900   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12901 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12902 fi
12903 ac_cv_func_vfork_works=$ac_cv_func_vfork
12904 if test "x$ac_cv_func_vfork" = xyes; then
12905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12906 $as_echo_n "checking for working vfork... " >&6; }
12907 if test "${ac_cv_func_vfork_works+set}" = set; then :
12908   $as_echo_n "(cached) " >&6
12909 else
12910   if test "$cross_compiling" = yes; then :
12911   ac_cv_func_vfork_works=cross
12912 else
12913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h.  */
12915 /* Thanks to Paul Eggert for this test.  */
12916 $ac_includes_default
12917 #include <sys/wait.h>
12918 #ifdef HAVE_VFORK_H
12919 # include <vfork.h>
12920 #endif
12921 /* On some sparc systems, changes by the child to local and incoming
12922    argument registers are propagated back to the parent.  The compiler
12923    is told about this with #include <vfork.h>, but some compilers
12924    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
12925    static variable whose address is put into a register that is
12926    clobbered by the vfork.  */
12927 static void
12928 #ifdef __cplusplus
12929 sparc_address_test (int arg)
12930 # else
12931 sparc_address_test (arg) int arg;
12932 #endif
12933 {
12934   static pid_t child;
12935   if (!child) {
12936     child = vfork ();
12937     if (child < 0) {
12938       perror ("vfork");
12939       _exit(2);
12940     }
12941     if (!child) {
12942       arg = getpid();
12943       write(-1, "", 0);
12944       _exit (arg);
12945     }
12946   }
12947 }
12948
12949 int
12950 main ()
12951 {
12952   pid_t parent = getpid ();
12953   pid_t child;
12954
12955   sparc_address_test (0);
12956
12957   child = vfork ();
12958
12959   if (child == 0) {
12960     /* Here is another test for sparc vfork register problems.  This
12961        test uses lots of local variables, at least as many local
12962        variables as main has allocated so far including compiler
12963        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
12964        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
12965        reuse the register of parent for one of the local variables,
12966        since it will think that parent can't possibly be used any more
12967        in this routine.  Assigning to the local variable will thus
12968        munge parent in the parent process.  */
12969     pid_t
12970       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12971       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12972     /* Convince the compiler that p..p7 are live; otherwise, it might
12973        use the same hardware register for all 8 local variables.  */
12974     if (p != p1 || p != p2 || p != p3 || p != p4
12975         || p != p5 || p != p6 || p != p7)
12976       _exit(1);
12977
12978     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12979        from child file descriptors.  If the child closes a descriptor
12980        before it execs or exits, this munges the parent's descriptor
12981        as well.  Test for this by closing stdout in the child.  */
12982     _exit(close(fileno(stdout)) != 0);
12983   } else {
12984     int status;
12985     struct stat st;
12986
12987     while (wait(&status) != child)
12988       ;
12989     return (
12990          /* Was there some problem with vforking?  */
12991          child < 0
12992
12993          /* Did the child fail?  (This shouldn't happen.)  */
12994          || status
12995
12996          /* Did the vfork/compiler bug occur?  */
12997          || parent != getpid()
12998
12999          /* Did the file descriptor bug occur?  */
13000          || fstat(fileno(stdout), &st) != 0
13001          );
13002   }
13003 }
13004 _ACEOF
13005 if ac_fn_c_try_run "$LINENO"; then :
13006   ac_cv_func_vfork_works=yes
13007 else
13008   ac_cv_func_vfork_works=no
13009 fi
13010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13011   conftest.$ac_objext conftest.beam conftest.$ac_ext
13012 fi
13013
13014 fi
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13016 $as_echo "$ac_cv_func_vfork_works" >&6; }
13017
13018 fi;
13019 if test "x$ac_cv_func_fork_works" = xcross; then
13020   ac_cv_func_vfork_works=$ac_cv_func_vfork
13021   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13022 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13023 fi
13024
13025 if test "x$ac_cv_func_vfork_works" = xyes; then
13026
13027 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13028
13029 else
13030
13031 $as_echo "#define vfork fork" >>confdefs.h
13032
13033 fi
13034 if test "x$ac_cv_func_fork_works" = xyes; then
13035
13036 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13037
13038 fi
13039
13040 for ac_header in stdlib.h
13041 do :
13042   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13043 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
13044   cat >>confdefs.h <<_ACEOF
13045 #define HAVE_STDLIB_H 1
13046 _ACEOF
13047
13048 fi
13049
13050 done
13051
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
13053 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
13054 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
13055   $as_echo_n "(cached) " >&6
13056 else
13057   if test "$cross_compiling" = yes; then :
13058   ac_cv_func_malloc_0_nonnull=no
13059 else
13060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h.  */
13062 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
13063 # include <stdlib.h>
13064 #else
13065 char *malloc ();
13066 #endif
13067
13068 int
13069 main ()
13070 {
13071 return ! malloc (0);
13072   ;
13073   return 0;
13074 }
13075 _ACEOF
13076 if ac_fn_c_try_run "$LINENO"; then :
13077   ac_cv_func_malloc_0_nonnull=yes
13078 else
13079   ac_cv_func_malloc_0_nonnull=no
13080 fi
13081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13082   conftest.$ac_objext conftest.beam conftest.$ac_ext
13083 fi
13084
13085 fi
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13087 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
13088 if test $ac_cv_func_malloc_0_nonnull = yes; then :
13089
13090 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
13091
13092 else
13093   $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
13094
13095    case " $LIBOBJS " in
13096   *" malloc.$ac_objext "* ) ;;
13097   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
13098  ;;
13099 esac
13100
13101
13102 $as_echo "#define malloc rpl_malloc" >>confdefs.h
13103
13104 fi
13105
13106
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
13108 $as_echo_n "checking for working memcmp... " >&6; }
13109 if test "${ac_cv_func_memcmp_working+set}" = set; then :
13110   $as_echo_n "(cached) " >&6
13111 else
13112   if test "$cross_compiling" = yes; then :
13113   ac_cv_func_memcmp_working=no
13114 else
13115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h.  */
13117 $ac_includes_default
13118 int
13119 main ()
13120 {
13121
13122   /* Some versions of memcmp are not 8-bit clean.  */
13123   char c0 = '\100', c1 = '\200', c2 = '\201';
13124   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
13125     return 1;
13126
13127   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
13128      or more and with at least one buffer not starting on a 4-byte boundary.
13129      William Lewis provided this test program.   */
13130   {
13131     char foo[21];
13132     char bar[21];
13133     int i;
13134     for (i = 0; i < 4; i++)
13135       {
13136         char *a = foo + i;
13137         char *b = bar + i;
13138         strcpy (a, "--------01111111");
13139         strcpy (b, "--------10000000");
13140         if (memcmp (a, b, 16) >= 0)
13141           return 1;
13142       }
13143     return 0;
13144   }
13145
13146   ;
13147   return 0;
13148 }
13149 _ACEOF
13150 if ac_fn_c_try_run "$LINENO"; then :
13151   ac_cv_func_memcmp_working=yes
13152 else
13153   ac_cv_func_memcmp_working=no
13154 fi
13155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13156   conftest.$ac_objext conftest.beam conftest.$ac_ext
13157 fi
13158
13159 fi
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
13161 $as_echo "$ac_cv_func_memcmp_working" >&6; }
13162 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
13163   *" memcmp.$ac_objext "* ) ;;
13164   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
13165  ;;
13166 esac
13167
13168
13169 for ac_header in sys/select.h sys/socket.h
13170 do :
13171   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13172 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13173 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13174   cat >>confdefs.h <<_ACEOF
13175 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13176 _ACEOF
13177
13178 fi
13179
13180 done
13181
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
13183 $as_echo_n "checking types of arguments for select... " >&6; }
13184 if test "${ac_cv_func_select_args+set}" = set; then :
13185   $as_echo_n "(cached) " >&6
13186 else
13187   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
13188  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
13189   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
13190    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191 /* end confdefs.h.  */
13192 $ac_includes_default
13193 #ifdef HAVE_SYS_SELECT_H
13194 # include <sys/select.h>
13195 #endif
13196 #ifdef HAVE_SYS_SOCKET_H
13197 # include <sys/socket.h>
13198 #endif
13199
13200 int
13201 main ()
13202 {
13203 extern int select ($ac_arg1,
13204                                             $ac_arg234, $ac_arg234, $ac_arg234,
13205                                             $ac_arg5);
13206   ;
13207   return 0;
13208 }
13209 _ACEOF
13210 if ac_fn_c_try_compile "$LINENO"; then :
13211   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
13212 fi
13213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13214   done
13215  done
13216 done
13217 # Provide a safe default value.
13218 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
13219
13220 fi
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
13222 $as_echo "$ac_cv_func_select_args" >&6; }
13223 ac_save_IFS=$IFS; IFS=','
13224 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
13225 IFS=$ac_save_IFS
13226 shift
13227
13228 cat >>confdefs.h <<_ACEOF
13229 #define SELECT_TYPE_ARG1 $1
13230 _ACEOF
13231
13232
13233 cat >>confdefs.h <<_ACEOF
13234 #define SELECT_TYPE_ARG234 ($2)
13235 _ACEOF
13236
13237
13238 cat >>confdefs.h <<_ACEOF
13239 #define SELECT_TYPE_ARG5 ($3)
13240 _ACEOF
13241
13242 rm -f conftest*
13243
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
13245 $as_echo_n "checking return type of signal handlers... " >&6; }
13246 if test "${ac_cv_type_signal+set}" = set; then :
13247   $as_echo_n "(cached) " >&6
13248 else
13249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h.  */
13251 #include <sys/types.h>
13252 #include <signal.h>
13253
13254 int
13255 main ()
13256 {
13257 return *(signal (0, 0)) (0) == 1;
13258   ;
13259   return 0;
13260 }
13261 _ACEOF
13262 if ac_fn_c_try_compile "$LINENO"; then :
13263   ac_cv_type_signal=int
13264 else
13265   ac_cv_type_signal=void
13266 fi
13267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13268 fi
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
13270 $as_echo "$ac_cv_type_signal" >&6; }
13271
13272 cat >>confdefs.h <<_ACEOF
13273 #define RETSIGTYPE $ac_cv_type_signal
13274 _ACEOF
13275
13276
13277 for ac_func in memset select
13278 do :
13279   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13280 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13281 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13282   cat >>confdefs.h <<_ACEOF
13283 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13284 _ACEOF
13285
13286 fi
13287 done
13288
13289 ac_config_files="$ac_config_files common/Makefile Makefile server/Makefile server/plugin/Makefile server/plugin/wav/Makefile server/plugin/keytone/Makefile server/plugin/headset/Makefile server/plugin/tone/Makefile pkgconfig/Makefile pkgconfig/mm-sound.pc pkgconfig/mm-keysound.pc pkgconfig-sdk/Makefile pkgconfig-sdk/mm-sound.pc pkgconfig-sdk/mm-keysound.pc testsuite/Makefile init/Makefile"
13290
13291 cat >confcache <<\_ACEOF
13292 # This file is a shell script that caches the results of configure
13293 # tests run on this system so they can be shared between configure
13294 # scripts and configure runs, see configure's option --config-cache.
13295 # It is not useful on other systems.  If it contains results you don't
13296 # want to keep, you may remove or edit it.
13297 #
13298 # config.status only pays attention to the cache file if you give it
13299 # the --recheck option to rerun configure.
13300 #
13301 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13302 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13303 # following values.
13304
13305 _ACEOF
13306
13307 # The following way of writing the cache mishandles newlines in values,
13308 # but we know of no workaround that is simple, portable, and efficient.
13309 # So, we kill variables containing newlines.
13310 # Ultrix sh set writes to stderr and can't be redirected directly,
13311 # and sets the high bit in the cache file unless we assign to the vars.
13312 (
13313   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13314     eval ac_val=\$$ac_var
13315     case $ac_val in #(
13316     *${as_nl}*)
13317       case $ac_var in #(
13318       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13319 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13320       esac
13321       case $ac_var in #(
13322       _ | IFS | as_nl) ;; #(
13323       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13324       *) { eval $ac_var=; unset $ac_var;} ;;
13325       esac ;;
13326     esac
13327   done
13328
13329   (set) 2>&1 |
13330     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13331     *${as_nl}ac_space=\ *)
13332       # `set' does not quote correctly, so add quotes: double-quote
13333       # substitution turns \\\\ into \\, and sed turns \\ into \.
13334       sed -n \
13335         "s/'/'\\\\''/g;
13336           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13337       ;; #(
13338     *)
13339       # `set' quotes correctly as required by POSIX, so do not add quotes.
13340       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13341       ;;
13342     esac |
13343     sort
13344 ) |
13345   sed '
13346      /^ac_cv_env_/b end
13347      t clear
13348      :clear
13349      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13350      t end
13351      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13352      :end' >>confcache
13353 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13354   if test -w "$cache_file"; then
13355     test "x$cache_file" != "x/dev/null" &&
13356       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13357 $as_echo "$as_me: updating cache $cache_file" >&6;}
13358     cat confcache >$cache_file
13359   else
13360     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13361 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13362   fi
13363 fi
13364 rm -f confcache
13365
13366 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13367 # Let make expand exec_prefix.
13368 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13369
13370 DEFS=-DHAVE_CONFIG_H
13371
13372 ac_libobjs=
13373 ac_ltlibobjs=
13374 U=
13375 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13376   # 1. Remove the extension, and $U if already installed.
13377   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13378   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13379   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13380   #    will be set to the directory where LIBOBJS objects are built.
13381   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13382   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13383 done
13384 LIBOBJS=$ac_libobjs
13385
13386 LTLIBOBJS=$ac_ltlibobjs
13387
13388
13389  if test -n "$EXEEXT"; then
13390   am__EXEEXT_TRUE=
13391   am__EXEEXT_FALSE='#'
13392 else
13393   am__EXEEXT_TRUE='#'
13394   am__EXEEXT_FALSE=
13395 fi
13396
13397 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13398   as_fn_error $? "conditional \"AMDEP\" was never defined.
13399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13400 fi
13401 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13402   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13404 fi
13405 if test -z "${IS_SDK_TRUE}" && test -z "${IS_SDK_FALSE}"; then
13406   as_fn_error $? "conditional \"IS_SDK\" was never defined.
13407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13408 fi
13409 if test -z "${USE_PULSE_TRUE}" && test -z "${USE_PULSE_FALSE}"; then
13410   as_fn_error $? "conditional \"USE_PULSE\" was never defined.
13411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13412 fi
13413
13414 : ${CONFIG_STATUS=./config.status}
13415 ac_write_fail=0
13416 ac_clean_files_save=$ac_clean_files
13417 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13419 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13420 as_write_fail=0
13421 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13422 #! $SHELL
13423 # Generated by $as_me.
13424 # Run this file to recreate the current configuration.
13425 # Compiler output produced by configure, useful for debugging
13426 # configure, is in config.log if it exists.
13427
13428 debug=false
13429 ac_cs_recheck=false
13430 ac_cs_silent=false
13431
13432 SHELL=\${CONFIG_SHELL-$SHELL}
13433 export SHELL
13434 _ASEOF
13435 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13436 ## -------------------- ##
13437 ## M4sh Initialization. ##
13438 ## -------------------- ##
13439
13440 # Be more Bourne compatible
13441 DUALCASE=1; export DUALCASE # for MKS sh
13442 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13443   emulate sh
13444   NULLCMD=:
13445   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13446   # is contrary to our usage.  Disable this feature.
13447   alias -g '${1+"$@"}'='"$@"'
13448   setopt NO_GLOB_SUBST
13449 else
13450   case `(set -o) 2>/dev/null` in #(
13451   *posix*) :
13452     set -o posix ;; #(
13453   *) :
13454      ;;
13455 esac
13456 fi
13457
13458
13459 as_nl='
13460 '
13461 export as_nl
13462 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13463 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13464 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13465 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13466 # Prefer a ksh shell builtin over an external printf program on Solaris,
13467 # but without wasting forks for bash or zsh.
13468 if test -z "$BASH_VERSION$ZSH_VERSION" \
13469     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13470   as_echo='print -r --'
13471   as_echo_n='print -rn --'
13472 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13473   as_echo='printf %s\n'
13474   as_echo_n='printf %s'
13475 else
13476   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13477     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13478     as_echo_n='/usr/ucb/echo -n'
13479   else
13480     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13481     as_echo_n_body='eval
13482       arg=$1;
13483       case $arg in #(
13484       *"$as_nl"*)
13485         expr "X$arg" : "X\\(.*\\)$as_nl";
13486         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13487       esac;
13488       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13489     '
13490     export as_echo_n_body
13491     as_echo_n='sh -c $as_echo_n_body as_echo'
13492   fi
13493   export as_echo_body
13494   as_echo='sh -c $as_echo_body as_echo'
13495 fi
13496
13497 # The user is always right.
13498 if test "${PATH_SEPARATOR+set}" != set; then
13499   PATH_SEPARATOR=:
13500   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13501     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13502       PATH_SEPARATOR=';'
13503   }
13504 fi
13505
13506
13507 # IFS
13508 # We need space, tab and new line, in precisely that order.  Quoting is
13509 # there to prevent editors from complaining about space-tab.
13510 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13511 # splitting by setting IFS to empty value.)
13512 IFS=" ""        $as_nl"
13513
13514 # Find who we are.  Look in the path if we contain no directory separator.
13515 case $0 in #((
13516   *[\\/]* ) as_myself=$0 ;;
13517   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13518 for as_dir in $PATH
13519 do
13520   IFS=$as_save_IFS
13521   test -z "$as_dir" && as_dir=.
13522     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13523   done
13524 IFS=$as_save_IFS
13525
13526      ;;
13527 esac
13528 # We did not find ourselves, most probably we were run as `sh COMMAND'
13529 # in which case we are not to be found in the path.
13530 if test "x$as_myself" = x; then
13531   as_myself=$0
13532 fi
13533 if test ! -f "$as_myself"; then
13534   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13535   exit 1
13536 fi
13537
13538 # Unset variables that we do not need and which cause bugs (e.g. in
13539 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13540 # suppresses any "Segmentation fault" message there.  '((' could
13541 # trigger a bug in pdksh 5.2.14.
13542 for as_var in BASH_ENV ENV MAIL MAILPATH
13543 do eval test x\${$as_var+set} = xset \
13544   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13545 done
13546 PS1='$ '
13547 PS2='> '
13548 PS4='+ '
13549
13550 # NLS nuisances.
13551 LC_ALL=C
13552 export LC_ALL
13553 LANGUAGE=C
13554 export LANGUAGE
13555
13556 # CDPATH.
13557 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13558
13559
13560 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13561 # ----------------------------------------
13562 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13563 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13564 # script with STATUS, using 1 if that was 0.
13565 as_fn_error ()
13566 {
13567   as_status=$1; test $as_status -eq 0 && as_status=1
13568   if test "$4"; then
13569     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13570     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13571   fi
13572   $as_echo "$as_me: error: $2" >&2
13573   as_fn_exit $as_status
13574 } # as_fn_error
13575
13576
13577 # as_fn_set_status STATUS
13578 # -----------------------
13579 # Set $? to STATUS, without forking.
13580 as_fn_set_status ()
13581 {
13582   return $1
13583 } # as_fn_set_status
13584
13585 # as_fn_exit STATUS
13586 # -----------------
13587 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13588 as_fn_exit ()
13589 {
13590   set +e
13591   as_fn_set_status $1
13592   exit $1
13593 } # as_fn_exit
13594
13595 # as_fn_unset VAR
13596 # ---------------
13597 # Portably unset VAR.
13598 as_fn_unset ()
13599 {
13600   { eval $1=; unset $1;}
13601 }
13602 as_unset=as_fn_unset
13603 # as_fn_append VAR VALUE
13604 # ----------------------
13605 # Append the text in VALUE to the end of the definition contained in VAR. Take
13606 # advantage of any shell optimizations that allow amortized linear growth over
13607 # repeated appends, instead of the typical quadratic growth present in naive
13608 # implementations.
13609 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13610   eval 'as_fn_append ()
13611   {
13612     eval $1+=\$2
13613   }'
13614 else
13615   as_fn_append ()
13616   {
13617     eval $1=\$$1\$2
13618   }
13619 fi # as_fn_append
13620
13621 # as_fn_arith ARG...
13622 # ------------------
13623 # Perform arithmetic evaluation on the ARGs, and store the result in the
13624 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13625 # must be portable across $(()) and expr.
13626 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13627   eval 'as_fn_arith ()
13628   {
13629     as_val=$(( $* ))
13630   }'
13631 else
13632   as_fn_arith ()
13633   {
13634     as_val=`expr "$@" || test $? -eq 1`
13635   }
13636 fi # as_fn_arith
13637
13638
13639 if expr a : '\(a\)' >/dev/null 2>&1 &&
13640    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13641   as_expr=expr
13642 else
13643   as_expr=false
13644 fi
13645
13646 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13647   as_basename=basename
13648 else
13649   as_basename=false
13650 fi
13651
13652 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13653   as_dirname=dirname
13654 else
13655   as_dirname=false
13656 fi
13657
13658 as_me=`$as_basename -- "$0" ||
13659 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13660          X"$0" : 'X\(//\)$' \| \
13661          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13662 $as_echo X/"$0" |
13663     sed '/^.*\/\([^/][^/]*\)\/*$/{
13664             s//\1/
13665             q
13666           }
13667           /^X\/\(\/\/\)$/{
13668             s//\1/
13669             q
13670           }
13671           /^X\/\(\/\).*/{
13672             s//\1/
13673             q
13674           }
13675           s/.*/./; q'`
13676
13677 # Avoid depending upon Character Ranges.
13678 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13679 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13680 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13681 as_cr_digits='0123456789'
13682 as_cr_alnum=$as_cr_Letters$as_cr_digits
13683
13684 ECHO_C= ECHO_N= ECHO_T=
13685 case `echo -n x` in #(((((
13686 -n*)
13687   case `echo 'xy\c'` in
13688   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13689   xy)  ECHO_C='\c';;
13690   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13691        ECHO_T=' ';;
13692   esac;;
13693 *)
13694   ECHO_N='-n';;
13695 esac
13696
13697 rm -f conf$$ conf$$.exe conf$$.file
13698 if test -d conf$$.dir; then
13699   rm -f conf$$.dir/conf$$.file
13700 else
13701   rm -f conf$$.dir
13702   mkdir conf$$.dir 2>/dev/null
13703 fi
13704 if (echo >conf$$.file) 2>/dev/null; then
13705   if ln -s conf$$.file conf$$ 2>/dev/null; then
13706     as_ln_s='ln -s'
13707     # ... but there are two gotchas:
13708     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13709     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13710     # In both cases, we have to default to `cp -p'.
13711     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13712       as_ln_s='cp -p'
13713   elif ln conf$$.file conf$$ 2>/dev/null; then
13714     as_ln_s=ln
13715   else
13716     as_ln_s='cp -p'
13717   fi
13718 else
13719   as_ln_s='cp -p'
13720 fi
13721 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13722 rmdir conf$$.dir 2>/dev/null
13723
13724
13725 # as_fn_mkdir_p
13726 # -------------
13727 # Create "$as_dir" as a directory, including parents if necessary.
13728 as_fn_mkdir_p ()
13729 {
13730
13731   case $as_dir in #(
13732   -*) as_dir=./$as_dir;;
13733   esac
13734   test -d "$as_dir" || eval $as_mkdir_p || {
13735     as_dirs=
13736     while :; do
13737       case $as_dir in #(
13738       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13739       *) as_qdir=$as_dir;;
13740       esac
13741       as_dirs="'$as_qdir' $as_dirs"
13742       as_dir=`$as_dirname -- "$as_dir" ||
13743 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13744          X"$as_dir" : 'X\(//\)[^/]' \| \
13745          X"$as_dir" : 'X\(//\)$' \| \
13746          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13747 $as_echo X"$as_dir" |
13748     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13749             s//\1/
13750             q
13751           }
13752           /^X\(\/\/\)[^/].*/{
13753             s//\1/
13754             q
13755           }
13756           /^X\(\/\/\)$/{
13757             s//\1/
13758             q
13759           }
13760           /^X\(\/\).*/{
13761             s//\1/
13762             q
13763           }
13764           s/.*/./; q'`
13765       test -d "$as_dir" && break
13766     done
13767     test -z "$as_dirs" || eval "mkdir $as_dirs"
13768   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13769
13770
13771 } # as_fn_mkdir_p
13772 if mkdir -p . 2>/dev/null; then
13773   as_mkdir_p='mkdir -p "$as_dir"'
13774 else
13775   test -d ./-p && rmdir ./-p
13776   as_mkdir_p=false
13777 fi
13778
13779 if test -x / >/dev/null 2>&1; then
13780   as_test_x='test -x'
13781 else
13782   if ls -dL / >/dev/null 2>&1; then
13783     as_ls_L_option=L
13784   else
13785     as_ls_L_option=
13786   fi
13787   as_test_x='
13788     eval sh -c '\''
13789       if test -d "$1"; then
13790         test -d "$1/.";
13791       else
13792         case $1 in #(
13793         -*)set "./$1";;
13794         esac;
13795         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13796         ???[sx]*):;;*)false;;esac;fi
13797     '\'' sh
13798   '
13799 fi
13800 as_executable_p=$as_test_x
13801
13802 # Sed expression to map a string onto a valid CPP name.
13803 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13804
13805 # Sed expression to map a string onto a valid variable name.
13806 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13807
13808
13809 exec 6>&1
13810 ## ----------------------------------- ##
13811 ## Main body of $CONFIG_STATUS script. ##
13812 ## ----------------------------------- ##
13813 _ASEOF
13814 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13815
13816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13817 # Save the log message, to keep $0 and so on meaningful, and to
13818 # report actual input values of CONFIG_FILES etc. instead of their
13819 # values after options handling.
13820 ac_log="
13821 This file was extended by avsystem $as_me 1.0, which was
13822 generated by GNU Autoconf 2.67.  Invocation command line was
13823
13824   CONFIG_FILES    = $CONFIG_FILES
13825   CONFIG_HEADERS  = $CONFIG_HEADERS
13826   CONFIG_LINKS    = $CONFIG_LINKS
13827   CONFIG_COMMANDS = $CONFIG_COMMANDS
13828   $ $0 $@
13829
13830 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13831 "
13832
13833 _ACEOF
13834
13835 case $ac_config_files in *"
13836 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13837 esac
13838
13839 case $ac_config_headers in *"
13840 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13841 esac
13842
13843
13844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13845 # Files that config.status was made for.
13846 config_files="$ac_config_files"
13847 config_headers="$ac_config_headers"
13848 config_commands="$ac_config_commands"
13849
13850 _ACEOF
13851
13852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13853 ac_cs_usage="\
13854 \`$as_me' instantiates files and other configuration actions
13855 from templates according to the current configuration.  Unless the files
13856 and actions are specified as TAGs, all are instantiated by default.
13857
13858 Usage: $0 [OPTION]... [TAG]...
13859
13860   -h, --help       print this help, then exit
13861   -V, --version    print version number and configuration settings, then exit
13862       --config     print configuration, then exit
13863   -q, --quiet, --silent
13864                    do not print progress messages
13865   -d, --debug      don't remove temporary files
13866       --recheck    update $as_me by reconfiguring in the same conditions
13867       --file=FILE[:TEMPLATE]
13868                    instantiate the configuration file FILE
13869       --header=FILE[:TEMPLATE]
13870                    instantiate the configuration header FILE
13871
13872 Configuration files:
13873 $config_files
13874
13875 Configuration headers:
13876 $config_headers
13877
13878 Configuration commands:
13879 $config_commands
13880
13881 Report bugs to the package provider."
13882
13883 _ACEOF
13884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13885 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13886 ac_cs_version="\\
13887 avsystem config.status 1.0
13888 configured by $0, generated by GNU Autoconf 2.67,
13889   with options \\"\$ac_cs_config\\"
13890
13891 Copyright (C) 2010 Free Software Foundation, Inc.
13892 This config.status script is free software; the Free Software Foundation
13893 gives unlimited permission to copy, distribute and modify it."
13894
13895 ac_pwd='$ac_pwd'
13896 srcdir='$srcdir'
13897 INSTALL='$INSTALL'
13898 MKDIR_P='$MKDIR_P'
13899 AWK='$AWK'
13900 test -n "\$AWK" || AWK=awk
13901 _ACEOF
13902
13903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13904 # The default lists apply if the user does not specify any file.
13905 ac_need_defaults=:
13906 while test $# != 0
13907 do
13908   case $1 in
13909   --*=?*)
13910     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13911     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13912     ac_shift=:
13913     ;;
13914   --*=)
13915     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13916     ac_optarg=
13917     ac_shift=:
13918     ;;
13919   *)
13920     ac_option=$1
13921     ac_optarg=$2
13922     ac_shift=shift
13923     ;;
13924   esac
13925
13926   case $ac_option in
13927   # Handling of the options.
13928   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13929     ac_cs_recheck=: ;;
13930   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13931     $as_echo "$ac_cs_version"; exit ;;
13932   --config | --confi | --conf | --con | --co | --c )
13933     $as_echo "$ac_cs_config"; exit ;;
13934   --debug | --debu | --deb | --de | --d | -d )
13935     debug=: ;;
13936   --file | --fil | --fi | --f )
13937     $ac_shift
13938     case $ac_optarg in
13939     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13940     '') as_fn_error $? "missing file argument" ;;
13941     esac
13942     as_fn_append CONFIG_FILES " '$ac_optarg'"
13943     ac_need_defaults=false;;
13944   --header | --heade | --head | --hea )
13945     $ac_shift
13946     case $ac_optarg in
13947     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13948     esac
13949     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13950     ac_need_defaults=false;;
13951   --he | --h)
13952     # Conflict between --help and --header
13953     as_fn_error $? "ambiguous option: \`$1'
13954 Try \`$0 --help' for more information.";;
13955   --help | --hel | -h )
13956     $as_echo "$ac_cs_usage"; exit ;;
13957   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13958   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13959     ac_cs_silent=: ;;
13960
13961   # This is an error.
13962   -*) as_fn_error $? "unrecognized option: \`$1'
13963 Try \`$0 --help' for more information." ;;
13964
13965   *) as_fn_append ac_config_targets " $1"
13966      ac_need_defaults=false ;;
13967
13968   esac
13969   shift
13970 done
13971
13972 ac_configure_extra_args=
13973
13974 if $ac_cs_silent; then
13975   exec 6>/dev/null
13976   ac_configure_extra_args="$ac_configure_extra_args --silent"
13977 fi
13978
13979 _ACEOF
13980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13981 if \$ac_cs_recheck; then
13982   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13983   shift
13984   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13985   CONFIG_SHELL='$SHELL'
13986   export CONFIG_SHELL
13987   exec "\$@"
13988 fi
13989
13990 _ACEOF
13991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13992 exec 5>>config.log
13993 {
13994   echo
13995   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13996 ## Running $as_me. ##
13997 _ASBOX
13998   $as_echo "$ac_log"
13999 } >&5
14000
14001 _ACEOF
14002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14003 #
14004 # INIT-COMMANDS
14005 #
14006 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14007
14008
14009 # The HP-UX ksh and POSIX shell print the target directory to stdout
14010 # if CDPATH is set.
14011 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14012
14013 sed_quote_subst='$sed_quote_subst'
14014 double_quote_subst='$double_quote_subst'
14015 delay_variable_subst='$delay_variable_subst'
14016 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14017 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14018 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14019 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14020 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14021 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14022 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14023 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14024 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14025 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14026 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14027 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14028 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14029 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14030 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14031 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14032 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14033 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14034 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14035 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14036 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14037 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14038 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14039 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14040 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14041 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14042 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14043 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14044 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14045 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14046 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14047 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14048 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14049 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14050 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14051 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14052 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14053 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14054 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14055 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14056 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14057 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14058 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14059 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14060 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"`'
14061 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"`'
14062 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14063 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14064 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14065 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14066 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14067 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14068 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14069 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14070 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14071 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14072 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14073 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14074 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14075 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14076 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14077 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14078 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14079 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14080 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14081 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14082 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14083 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14084 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14085 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14086 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14087 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14088 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14089 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14090 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14091 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14092 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14093 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14094 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14095 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14096 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14097 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14098 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14099 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14100 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14101 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14102 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14103 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14104 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14105 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14106 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14107 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14108 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14109 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14110 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14111 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14112 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14113 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14114 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14115 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14116 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14117 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14118 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14119 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14120 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14121 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14122 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14123 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14124 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14125 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14126 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14127 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14128 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14129 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14130 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14131 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14132 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14133 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14134
14135 LTCC='$LTCC'
14136 LTCFLAGS='$LTCFLAGS'
14137 compiler='$compiler_DEFAULT'
14138
14139 # Quote evaled strings.
14140 for var in SED \
14141 GREP \
14142 EGREP \
14143 FGREP \
14144 LD \
14145 NM \
14146 LN_S \
14147 lt_SP2NL \
14148 lt_NL2SP \
14149 reload_flag \
14150 OBJDUMP \
14151 deplibs_check_method \
14152 file_magic_cmd \
14153 AR \
14154 AR_FLAGS \
14155 STRIP \
14156 RANLIB \
14157 CC \
14158 CFLAGS \
14159 compiler \
14160 lt_cv_sys_global_symbol_pipe \
14161 lt_cv_sys_global_symbol_to_cdecl \
14162 lt_cv_sys_global_symbol_to_c_name_address \
14163 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14164 SHELL \
14165 ECHO \
14166 lt_prog_compiler_no_builtin_flag \
14167 lt_prog_compiler_wl \
14168 lt_prog_compiler_pic \
14169 lt_prog_compiler_static \
14170 lt_cv_prog_compiler_c_o \
14171 need_locks \
14172 DSYMUTIL \
14173 NMEDIT \
14174 LIPO \
14175 OTOOL \
14176 OTOOL64 \
14177 shrext_cmds \
14178 export_dynamic_flag_spec \
14179 whole_archive_flag_spec \
14180 compiler_needs_object \
14181 with_gnu_ld \
14182 allow_undefined_flag \
14183 no_undefined_flag \
14184 hardcode_libdir_flag_spec \
14185 hardcode_libdir_flag_spec_ld \
14186 hardcode_libdir_separator \
14187 fix_srcfile_path \
14188 exclude_expsyms \
14189 include_expsyms \
14190 file_list_spec \
14191 variables_saved_for_relink \
14192 libname_spec \
14193 library_names_spec \
14194 soname_spec \
14195 finish_eval \
14196 old_striplib \
14197 striplib; do
14198     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14199     *[\\\\\\\`\\"\\\$]*)
14200       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14201       ;;
14202     *)
14203       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14204       ;;
14205     esac
14206 done
14207
14208 # Double-quote double-evaled strings.
14209 for var in reload_cmds \
14210 old_postinstall_cmds \
14211 old_postuninstall_cmds \
14212 old_archive_cmds \
14213 extract_expsyms_cmds \
14214 old_archive_from_new_cmds \
14215 old_archive_from_expsyms_cmds \
14216 archive_cmds \
14217 archive_expsym_cmds \
14218 module_cmds \
14219 module_expsym_cmds \
14220 export_symbols_cmds \
14221 prelink_cmds \
14222 postinstall_cmds \
14223 postuninstall_cmds \
14224 finish_cmds \
14225 sys_lib_search_path_spec \
14226 sys_lib_dlsearch_path_spec; do
14227     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14228     *[\\\\\\\`\\"\\\$]*)
14229       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14230       ;;
14231     *)
14232       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14233       ;;
14234     esac
14235 done
14236
14237 # Fix-up fallback echo if it was mangled by the above quoting rules.
14238 case \$lt_ECHO in
14239 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14240   ;;
14241 esac
14242
14243 ac_aux_dir='$ac_aux_dir'
14244 xsi_shell='$xsi_shell'
14245 lt_shell_append='$lt_shell_append'
14246
14247 # See if we are running on zsh, and set the options which allow our
14248 # commands through without removal of \ escapes INIT.
14249 if test -n "\${ZSH_VERSION+set}" ; then
14250    setopt NO_GLOB_SUBST
14251 fi
14252
14253
14254     PACKAGE='$PACKAGE'
14255     VERSION='$VERSION'
14256     TIMESTAMP='$TIMESTAMP'
14257     RM='$RM'
14258     ofile='$ofile'
14259
14260
14261
14262
14263 _ACEOF
14264
14265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14266
14267 # Handling of arguments.
14268 for ac_config_target in $ac_config_targets
14269 do
14270   case $ac_config_target in
14271     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
14272     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14273     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14274     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
14275     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14276     "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
14277     "server/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES server/plugin/Makefile" ;;
14278     "server/plugin/wav/Makefile") CONFIG_FILES="$CONFIG_FILES server/plugin/wav/Makefile" ;;
14279     "server/plugin/keytone/Makefile") CONFIG_FILES="$CONFIG_FILES server/plugin/keytone/Makefile" ;;
14280     "server/plugin/headset/Makefile") CONFIG_FILES="$CONFIG_FILES server/plugin/headset/Makefile" ;;
14281     "server/plugin/tone/Makefile") CONFIG_FILES="$CONFIG_FILES server/plugin/tone/Makefile" ;;
14282     "pkgconfig/Makefile") CONFIG_FILES="$CONFIG_FILES pkgconfig/Makefile" ;;
14283     "pkgconfig/mm-sound.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/mm-sound.pc" ;;
14284     "pkgconfig/mm-keysound.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/mm-keysound.pc" ;;
14285     "pkgconfig-sdk/Makefile") CONFIG_FILES="$CONFIG_FILES pkgconfig-sdk/Makefile" ;;
14286     "pkgconfig-sdk/mm-sound.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig-sdk/mm-sound.pc" ;;
14287     "pkgconfig-sdk/mm-keysound.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig-sdk/mm-keysound.pc" ;;
14288     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14289     "init/Makefile") CONFIG_FILES="$CONFIG_FILES init/Makefile" ;;
14290
14291   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
14292   esac
14293 done
14294
14295
14296 # If the user did not use the arguments to specify the items to instantiate,
14297 # then the envvar interface is used.  Set only those that are not.
14298 # We use the long form for the default assignment because of an extremely
14299 # bizarre bug on SunOS 4.1.3.
14300 if $ac_need_defaults; then
14301   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14302   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14303   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14304 fi
14305
14306 # Have a temporary directory for convenience.  Make it in the build tree
14307 # simply because there is no reason against having it here, and in addition,
14308 # creating and moving files from /tmp can sometimes cause problems.
14309 # Hook for its removal unless debugging.
14310 # Note that there is a small window in which the directory will not be cleaned:
14311 # after its creation but before its name has been assigned to `$tmp'.
14312 $debug ||
14313 {
14314   tmp=
14315   trap 'exit_status=$?
14316   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14317 ' 0
14318   trap 'as_fn_exit 1' 1 2 13 15
14319 }
14320 # Create a (secure) tmp directory for tmp files.
14321
14322 {
14323   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14324   test -n "$tmp" && test -d "$tmp"
14325 }  ||
14326 {
14327   tmp=./conf$$-$RANDOM
14328   (umask 077 && mkdir "$tmp")
14329 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14330
14331 # Set up the scripts for CONFIG_FILES section.
14332 # No need to generate them if there are no CONFIG_FILES.
14333 # This happens for instance with `./config.status config.h'.
14334 if test -n "$CONFIG_FILES"; then
14335
14336
14337 ac_cr=`echo X | tr X '\015'`
14338 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14339 # But we know of no other shell where ac_cr would be empty at this
14340 # point, so we can use a bashism as a fallback.
14341 if test "x$ac_cr" = x; then
14342   eval ac_cr=\$\'\\r\'
14343 fi
14344 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14345 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14346   ac_cs_awk_cr='\\r'
14347 else
14348   ac_cs_awk_cr=$ac_cr
14349 fi
14350
14351 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14352 _ACEOF
14353
14354
14355 {
14356   echo "cat >conf$$subs.awk <<_ACEOF" &&
14357   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14358   echo "_ACEOF"
14359 } >conf$$subs.sh ||
14360   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14361 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14362 ac_delim='%!_!# '
14363 for ac_last_try in false false false false false :; do
14364   . ./conf$$subs.sh ||
14365     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14366
14367   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14368   if test $ac_delim_n = $ac_delim_num; then
14369     break
14370   elif $ac_last_try; then
14371     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14372   else
14373     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14374   fi
14375 done
14376 rm -f conf$$subs.sh
14377
14378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14379 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14380 _ACEOF
14381 sed -n '
14382 h
14383 s/^/S["/; s/!.*/"]=/
14384 p
14385 g
14386 s/^[^!]*!//
14387 :repl
14388 t repl
14389 s/'"$ac_delim"'$//
14390 t delim
14391 :nl
14392 h
14393 s/\(.\{148\}\)..*/\1/
14394 t more1
14395 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14396 p
14397 n
14398 b repl
14399 :more1
14400 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14401 p
14402 g
14403 s/.\{148\}//
14404 t nl
14405 :delim
14406 h
14407 s/\(.\{148\}\)..*/\1/
14408 t more2
14409 s/["\\]/\\&/g; s/^/"/; s/$/"/
14410 p
14411 b
14412 :more2
14413 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14414 p
14415 g
14416 s/.\{148\}//
14417 t delim
14418 ' <conf$$subs.awk | sed '
14419 /^[^""]/{
14420   N
14421   s/\n//
14422 }
14423 ' >>$CONFIG_STATUS || ac_write_fail=1
14424 rm -f conf$$subs.awk
14425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14426 _ACAWK
14427 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14428   for (key in S) S_is_set[key] = 1
14429   FS = "\a"
14430
14431 }
14432 {
14433   line = $ 0
14434   nfields = split(line, field, "@")
14435   substed = 0
14436   len = length(field[1])
14437   for (i = 2; i < nfields; i++) {
14438     key = field[i]
14439     keylen = length(key)
14440     if (S_is_set[key]) {
14441       value = S[key]
14442       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14443       len += length(value) + length(field[++i])
14444       substed = 1
14445     } else
14446       len += 1 + keylen
14447   }
14448
14449   print line
14450 }
14451
14452 _ACAWK
14453 _ACEOF
14454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14455 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14456   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14457 else
14458   cat
14459 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14460   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14461 _ACEOF
14462
14463 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14464 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14465 # trailing colons and then remove the whole line if VPATH becomes empty
14466 # (actually we leave an empty line to preserve line numbers).
14467 if test "x$srcdir" = x.; then
14468   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14469 h
14470 s///
14471 s/^/:/
14472 s/[      ]*$/:/
14473 s/:\$(srcdir):/:/g
14474 s/:\${srcdir}:/:/g
14475 s/:@srcdir@:/:/g
14476 s/^:*//
14477 s/:*$//
14478 x
14479 s/\(=[   ]*\).*/\1/
14480 G
14481 s/\n//
14482 s/^[^=]*=[       ]*$//
14483 }'
14484 fi
14485
14486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14487 fi # test -n "$CONFIG_FILES"
14488
14489 # Set up the scripts for CONFIG_HEADERS section.
14490 # No need to generate them if there are no CONFIG_HEADERS.
14491 # This happens for instance with `./config.status Makefile'.
14492 if test -n "$CONFIG_HEADERS"; then
14493 cat >"$tmp/defines.awk" <<\_ACAWK ||
14494 BEGIN {
14495 _ACEOF
14496
14497 # Transform confdefs.h into an awk script `defines.awk', embedded as
14498 # here-document in config.status, that substitutes the proper values into
14499 # config.h.in to produce config.h.
14500
14501 # Create a delimiter string that does not exist in confdefs.h, to ease
14502 # handling of long lines.
14503 ac_delim='%!_!# '
14504 for ac_last_try in false false :; do
14505   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14506   if test -z "$ac_t"; then
14507     break
14508   elif $ac_last_try; then
14509     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14510   else
14511     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14512   fi
14513 done
14514
14515 # For the awk script, D is an array of macro values keyed by name,
14516 # likewise P contains macro parameters if any.  Preserve backslash
14517 # newline sequences.
14518
14519 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14520 sed -n '
14521 s/.\{148\}/&'"$ac_delim"'/g
14522 t rset
14523 :rset
14524 s/^[     ]*#[    ]*define[       ][      ]*/ /
14525 t def
14526 d
14527 :def
14528 s/\\$//
14529 t bsnl
14530 s/["\\]/\\&/g
14531 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14532 D["\1"]=" \3"/p
14533 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14534 d
14535 :bsnl
14536 s/["\\]/\\&/g
14537 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14538 D["\1"]=" \3\\\\\\n"\\/p
14539 t cont
14540 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14541 t cont
14542 d
14543 :cont
14544 n
14545 s/.\{148\}/&'"$ac_delim"'/g
14546 t clear
14547 :clear
14548 s/\\$//
14549 t bsnlc
14550 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14551 d
14552 :bsnlc
14553 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14554 b cont
14555 ' <confdefs.h | sed '
14556 s/'"$ac_delim"'/"\\\
14557 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14558
14559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14560   for (key in D) D_is_set[key] = 1
14561   FS = "\a"
14562 }
14563 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14564   line = \$ 0
14565   split(line, arg, " ")
14566   if (arg[1] == "#") {
14567     defundef = arg[2]
14568     mac1 = arg[3]
14569   } else {
14570     defundef = substr(arg[1], 2)
14571     mac1 = arg[2]
14572   }
14573   split(mac1, mac2, "(") #)
14574   macro = mac2[1]
14575   prefix = substr(line, 1, index(line, defundef) - 1)
14576   if (D_is_set[macro]) {
14577     # Preserve the white space surrounding the "#".
14578     print prefix "define", macro P[macro] D[macro]
14579     next
14580   } else {
14581     # Replace #undef with comments.  This is necessary, for example,
14582     # in the case of _POSIX_SOURCE, which is predefined and required
14583     # on some systems where configure will not decide to define it.
14584     if (defundef == "undef") {
14585       print "/*", prefix defundef, macro, "*/"
14586       next
14587     }
14588   }
14589 }
14590 { print }
14591 _ACAWK
14592 _ACEOF
14593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14594   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14595 fi # test -n "$CONFIG_HEADERS"
14596
14597
14598 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14599 shift
14600 for ac_tag
14601 do
14602   case $ac_tag in
14603   :[FHLC]) ac_mode=$ac_tag; continue;;
14604   esac
14605   case $ac_mode$ac_tag in
14606   :[FHL]*:*);;
14607   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
14608   :[FH]-) ac_tag=-:-;;
14609   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14610   esac
14611   ac_save_IFS=$IFS
14612   IFS=:
14613   set x $ac_tag
14614   IFS=$ac_save_IFS
14615   shift
14616   ac_file=$1
14617   shift
14618
14619   case $ac_mode in
14620   :L) ac_source=$1;;
14621   :[FH])
14622     ac_file_inputs=
14623     for ac_f
14624     do
14625       case $ac_f in
14626       -) ac_f="$tmp/stdin";;
14627       *) # Look for the file first in the build tree, then in the source tree
14628          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14629          # because $ac_f cannot contain `:'.
14630          test -f "$ac_f" ||
14631            case $ac_f in
14632            [\\/$]*) false;;
14633            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14634            esac ||
14635            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
14636       esac
14637       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14638       as_fn_append ac_file_inputs " '$ac_f'"
14639     done
14640
14641     # Let's still pretend it is `configure' which instantiates (i.e., don't
14642     # use $as_me), people would be surprised to read:
14643     #    /* config.h.  Generated by config.status.  */
14644     configure_input='Generated from '`
14645           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14646         `' by configure.'
14647     if test x"$ac_file" != x-; then
14648       configure_input="$ac_file.  $configure_input"
14649       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14650 $as_echo "$as_me: creating $ac_file" >&6;}
14651     fi
14652     # Neutralize special characters interpreted by sed in replacement strings.
14653     case $configure_input in #(
14654     *\&* | *\|* | *\\* )
14655        ac_sed_conf_input=`$as_echo "$configure_input" |
14656        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14657     *) ac_sed_conf_input=$configure_input;;
14658     esac
14659
14660     case $ac_tag in
14661     *:-:* | *:-) cat >"$tmp/stdin" \
14662       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
14663     esac
14664     ;;
14665   esac
14666
14667   ac_dir=`$as_dirname -- "$ac_file" ||
14668 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14669          X"$ac_file" : 'X\(//\)[^/]' \| \
14670          X"$ac_file" : 'X\(//\)$' \| \
14671          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14672 $as_echo X"$ac_file" |
14673     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14674             s//\1/
14675             q
14676           }
14677           /^X\(\/\/\)[^/].*/{
14678             s//\1/
14679             q
14680           }
14681           /^X\(\/\/\)$/{
14682             s//\1/
14683             q
14684           }
14685           /^X\(\/\).*/{
14686             s//\1/
14687             q
14688           }
14689           s/.*/./; q'`
14690   as_dir="$ac_dir"; as_fn_mkdir_p
14691   ac_builddir=.
14692
14693 case "$ac_dir" in
14694 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14695 *)
14696   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14697   # A ".." for each directory in $ac_dir_suffix.
14698   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14699   case $ac_top_builddir_sub in
14700   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14701   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14702   esac ;;
14703 esac
14704 ac_abs_top_builddir=$ac_pwd
14705 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14706 # for backward compatibility:
14707 ac_top_builddir=$ac_top_build_prefix
14708
14709 case $srcdir in
14710   .)  # We are building in place.
14711     ac_srcdir=.
14712     ac_top_srcdir=$ac_top_builddir_sub
14713     ac_abs_top_srcdir=$ac_pwd ;;
14714   [\\/]* | ?:[\\/]* )  # Absolute name.
14715     ac_srcdir=$srcdir$ac_dir_suffix;
14716     ac_top_srcdir=$srcdir
14717     ac_abs_top_srcdir=$srcdir ;;
14718   *) # Relative name.
14719     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14720     ac_top_srcdir=$ac_top_build_prefix$srcdir
14721     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14722 esac
14723 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14724
14725
14726   case $ac_mode in
14727   :F)
14728   #
14729   # CONFIG_FILE
14730   #
14731
14732   case $INSTALL in
14733   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14734   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14735   esac
14736   ac_MKDIR_P=$MKDIR_P
14737   case $MKDIR_P in
14738   [\\/$]* | ?:[\\/]* ) ;;
14739   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14740   esac
14741 _ACEOF
14742
14743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14744 # If the template does not know about datarootdir, expand it.
14745 # FIXME: This hack should be removed a few years after 2.60.
14746 ac_datarootdir_hack=; ac_datarootdir_seen=
14747 ac_sed_dataroot='
14748 /datarootdir/ {
14749   p
14750   q
14751 }
14752 /@datadir@/p
14753 /@docdir@/p
14754 /@infodir@/p
14755 /@localedir@/p
14756 /@mandir@/p'
14757 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14758 *datarootdir*) ac_datarootdir_seen=yes;;
14759 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14760   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14761 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14762 _ACEOF
14763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14764   ac_datarootdir_hack='
14765   s&@datadir@&$datadir&g
14766   s&@docdir@&$docdir&g
14767   s&@infodir@&$infodir&g
14768   s&@localedir@&$localedir&g
14769   s&@mandir@&$mandir&g
14770   s&\\\${datarootdir}&$datarootdir&g' ;;
14771 esac
14772 _ACEOF
14773
14774 # Neutralize VPATH when `$srcdir' = `.'.
14775 # Shell code in configure.ac might set extrasub.
14776 # FIXME: do we really want to maintain this feature?
14777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14778 ac_sed_extra="$ac_vpsub
14779 $extrasub
14780 _ACEOF
14781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14782 :t
14783 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14784 s|@configure_input@|$ac_sed_conf_input|;t t
14785 s&@top_builddir@&$ac_top_builddir_sub&;t t
14786 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14787 s&@srcdir@&$ac_srcdir&;t t
14788 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14789 s&@top_srcdir@&$ac_top_srcdir&;t t
14790 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14791 s&@builddir@&$ac_builddir&;t t
14792 s&@abs_builddir@&$ac_abs_builddir&;t t
14793 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14794 s&@INSTALL@&$ac_INSTALL&;t t
14795 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14796 $ac_datarootdir_hack
14797 "
14798 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14799   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14800
14801 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14802   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14803   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14804   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14805 which seems to be undefined.  Please make sure it is defined" >&5
14806 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14807 which seems to be undefined.  Please make sure it is defined" >&2;}
14808
14809   rm -f "$tmp/stdin"
14810   case $ac_file in
14811   -) cat "$tmp/out" && rm -f "$tmp/out";;
14812   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14813   esac \
14814   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14815  ;;
14816   :H)
14817   #
14818   # CONFIG_HEADER
14819   #
14820   if test x"$ac_file" != x-; then
14821     {
14822       $as_echo "/* $configure_input  */" \
14823       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14824     } >"$tmp/config.h" \
14825       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14826     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14827       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14828 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14829     else
14830       rm -f "$ac_file"
14831       mv "$tmp/config.h" "$ac_file" \
14832         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14833     fi
14834   else
14835     $as_echo "/* $configure_input  */" \
14836       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14837       || as_fn_error $? "could not create -" "$LINENO" 5
14838   fi
14839 # Compute "$ac_file"'s index in $config_headers.
14840 _am_arg="$ac_file"
14841 _am_stamp_count=1
14842 for _am_header in $config_headers :; do
14843   case $_am_header in
14844     $_am_arg | $_am_arg:* )
14845       break ;;
14846     * )
14847       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14848   esac
14849 done
14850 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14851 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14852          X"$_am_arg" : 'X\(//\)[^/]' \| \
14853          X"$_am_arg" : 'X\(//\)$' \| \
14854          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14855 $as_echo X"$_am_arg" |
14856     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14857             s//\1/
14858             q
14859           }
14860           /^X\(\/\/\)[^/].*/{
14861             s//\1/
14862             q
14863           }
14864           /^X\(\/\/\)$/{
14865             s//\1/
14866             q
14867           }
14868           /^X\(\/\).*/{
14869             s//\1/
14870             q
14871           }
14872           s/.*/./; q'`/stamp-h$_am_stamp_count
14873  ;;
14874
14875   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14876 $as_echo "$as_me: executing $ac_file commands" >&6;}
14877  ;;
14878   esac
14879
14880
14881   case $ac_file$ac_mode in
14882     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14883   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14884   # are listed without --file.  Let's play safe and only enable the eval
14885   # if we detect the quoting.
14886   case $CONFIG_FILES in
14887   *\'*) eval set x "$CONFIG_FILES" ;;
14888   *)   set x $CONFIG_FILES ;;
14889   esac
14890   shift
14891   for mf
14892   do
14893     # Strip MF so we end up with the name of the file.
14894     mf=`echo "$mf" | sed -e 's/:.*$//'`
14895     # Check whether this is an Automake generated Makefile or not.
14896     # We used to match only the files named `Makefile.in', but
14897     # some people rename them; so instead we look at the file content.
14898     # Grep'ing the first line is not enough: some people post-process
14899     # each Makefile.in and add a new line on top of each file to say so.
14900     # Grep'ing the whole file is not good either: AIX grep has a line
14901     # limit of 2048, but all sed's we know have understand at least 4000.
14902     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14903       dirpart=`$as_dirname -- "$mf" ||
14904 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14905          X"$mf" : 'X\(//\)[^/]' \| \
14906          X"$mf" : 'X\(//\)$' \| \
14907          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14908 $as_echo X"$mf" |
14909     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14910             s//\1/
14911             q
14912           }
14913           /^X\(\/\/\)[^/].*/{
14914             s//\1/
14915             q
14916           }
14917           /^X\(\/\/\)$/{
14918             s//\1/
14919             q
14920           }
14921           /^X\(\/\).*/{
14922             s//\1/
14923             q
14924           }
14925           s/.*/./; q'`
14926     else
14927       continue
14928     fi
14929     # Extract the definition of DEPDIR, am__include, and am__quote
14930     # from the Makefile without running `make'.
14931     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14932     test -z "$DEPDIR" && continue
14933     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14934     test -z "am__include" && continue
14935     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14936     # When using ansi2knr, U may be empty or an underscore; expand it
14937     U=`sed -n 's/^U = //p' < "$mf"`
14938     # Find all dependency output files, they are included files with
14939     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14940     # simplest approach to changing $(DEPDIR) to its actual value in the
14941     # expansion.
14942     for file in `sed -n "
14943       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14944          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14945       # Make sure the directory exists.
14946       test -f "$dirpart/$file" && continue
14947       fdir=`$as_dirname -- "$file" ||
14948 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14949          X"$file" : 'X\(//\)[^/]' \| \
14950          X"$file" : 'X\(//\)$' \| \
14951          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14952 $as_echo X"$file" |
14953     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14954             s//\1/
14955             q
14956           }
14957           /^X\(\/\/\)[^/].*/{
14958             s//\1/
14959             q
14960           }
14961           /^X\(\/\/\)$/{
14962             s//\1/
14963             q
14964           }
14965           /^X\(\/\).*/{
14966             s//\1/
14967             q
14968           }
14969           s/.*/./; q'`
14970       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14971       # echo "creating $dirpart/$file"
14972       echo '# dummy' > "$dirpart/$file"
14973     done
14974   done
14975 }
14976  ;;
14977     "libtool":C)
14978
14979     # See if we are running on zsh, and set the options which allow our
14980     # commands through without removal of \ escapes.
14981     if test -n "${ZSH_VERSION+set}" ; then
14982       setopt NO_GLOB_SUBST
14983     fi
14984
14985     cfgfile="${ofile}T"
14986     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14987     $RM "$cfgfile"
14988
14989     cat <<_LT_EOF >> "$cfgfile"
14990 #! $SHELL
14991
14992 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14993 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14994 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14995 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14996 #
14997 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14998 #                 2006, 2007, 2008 Free Software Foundation, Inc.
14999 #   Written by Gordon Matzigkeit, 1996
15000 #
15001 #   This file is part of GNU Libtool.
15002 #
15003 # GNU Libtool is free software; you can redistribute it and/or
15004 # modify it under the terms of the GNU General Public License as
15005 # published by the Free Software Foundation; either version 2 of
15006 # the License, or (at your option) any later version.
15007 #
15008 # As a special exception to the GNU General Public License,
15009 # if you distribute this file as part of a program or library that
15010 # is built using GNU Libtool, you may include this file under the
15011 # same distribution terms that you use for the rest of that program.
15012 #
15013 # GNU Libtool is distributed in the hope that it will be useful,
15014 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15015 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15016 # GNU General Public License for more details.
15017 #
15018 # You should have received a copy of the GNU General Public License
15019 # along with GNU Libtool; see the file COPYING.  If not, a copy
15020 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15021 # obtained by writing to the Free Software Foundation, Inc.,
15022 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15023
15024
15025 # The names of the tagged configurations supported by this script.
15026 available_tags=""
15027
15028 # ### BEGIN LIBTOOL CONFIG
15029
15030 # Which release of libtool.m4 was used?
15031 macro_version=$macro_version
15032 macro_revision=$macro_revision
15033
15034 # Whether or not to build shared libraries.
15035 build_libtool_libs=$enable_shared
15036
15037 # Whether or not to build static libraries.
15038 build_old_libs=$enable_static
15039
15040 # What type of objects to build.
15041 pic_mode=$pic_mode
15042
15043 # Whether or not to optimize for fast installation.
15044 fast_install=$enable_fast_install
15045
15046 # The host system.
15047 host_alias=$host_alias
15048 host=$host
15049 host_os=$host_os
15050
15051 # The build system.
15052 build_alias=$build_alias
15053 build=$build
15054 build_os=$build_os
15055
15056 # A sed program that does not truncate output.
15057 SED=$lt_SED
15058
15059 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15060 Xsed="\$SED -e 1s/^X//"
15061
15062 # A grep program that handles long lines.
15063 GREP=$lt_GREP
15064
15065 # An ERE matcher.
15066 EGREP=$lt_EGREP
15067
15068 # A literal string matcher.
15069 FGREP=$lt_FGREP
15070
15071 # A BSD- or MS-compatible name lister.
15072 NM=$lt_NM
15073
15074 # Whether we need soft or hard links.
15075 LN_S=$lt_LN_S
15076
15077 # What is the maximum length of a command?
15078 max_cmd_len=$max_cmd_len
15079
15080 # Object file suffix (normally "o").
15081 objext=$ac_objext
15082
15083 # Executable file suffix (normally "").
15084 exeext=$exeext
15085
15086 # whether the shell understands "unset".
15087 lt_unset=$lt_unset
15088
15089 # turn spaces into newlines.
15090 SP2NL=$lt_lt_SP2NL
15091
15092 # turn newlines into spaces.
15093 NL2SP=$lt_lt_NL2SP
15094
15095 # How to create reloadable object files.
15096 reload_flag=$lt_reload_flag
15097 reload_cmds=$lt_reload_cmds
15098
15099 # An object symbol dumper.
15100 OBJDUMP=$lt_OBJDUMP
15101
15102 # Method to check whether dependent libraries are shared objects.
15103 deplibs_check_method=$lt_deplibs_check_method
15104
15105 # Command to use when deplibs_check_method == "file_magic".
15106 file_magic_cmd=$lt_file_magic_cmd
15107
15108 # The archiver.
15109 AR=$lt_AR
15110 AR_FLAGS=$lt_AR_FLAGS
15111
15112 # A symbol stripping program.
15113 STRIP=$lt_STRIP
15114
15115 # Commands used to install an old-style archive.
15116 RANLIB=$lt_RANLIB
15117 old_postinstall_cmds=$lt_old_postinstall_cmds
15118 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15119
15120 # A C compiler.
15121 LTCC=$lt_CC
15122
15123 # LTCC compiler flags.
15124 LTCFLAGS=$lt_CFLAGS
15125
15126 # Take the output of nm and produce a listing of raw symbols and C names.
15127 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15128
15129 # Transform the output of nm in a proper C declaration.
15130 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15131
15132 # Transform the output of nm in a C name address pair.
15133 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15134
15135 # Transform the output of nm in a C name address pair when lib prefix is needed.
15136 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15137
15138 # The name of the directory that contains temporary libtool files.
15139 objdir=$objdir
15140
15141 # Shell to use when invoking shell scripts.
15142 SHELL=$lt_SHELL
15143
15144 # An echo program that does not interpret backslashes.
15145 ECHO=$lt_ECHO
15146
15147 # Used to examine libraries when file_magic_cmd begins with "file".
15148 MAGIC_CMD=$MAGIC_CMD
15149
15150 # Must we lock files when doing compilation?
15151 need_locks=$lt_need_locks
15152
15153 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15154 DSYMUTIL=$lt_DSYMUTIL
15155
15156 # Tool to change global to local symbols on Mac OS X.
15157 NMEDIT=$lt_NMEDIT
15158
15159 # Tool to manipulate fat objects and archives on Mac OS X.
15160 LIPO=$lt_LIPO
15161
15162 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15163 OTOOL=$lt_OTOOL
15164
15165 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15166 OTOOL64=$lt_OTOOL64
15167
15168 # Old archive suffix (normally "a").
15169 libext=$libext
15170
15171 # Shared library suffix (normally ".so").
15172 shrext_cmds=$lt_shrext_cmds
15173
15174 # The commands to extract the exported symbol list from a shared archive.
15175 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15176
15177 # Variables whose values should be saved in libtool wrapper scripts and
15178 # restored at link time.
15179 variables_saved_for_relink=$lt_variables_saved_for_relink
15180
15181 # Do we need the "lib" prefix for modules?
15182 need_lib_prefix=$need_lib_prefix
15183
15184 # Do we need a version for libraries?
15185 need_version=$need_version
15186
15187 # Library versioning type.
15188 version_type=$version_type
15189
15190 # Shared library runtime path variable.
15191 runpath_var=$runpath_var
15192
15193 # Shared library path variable.
15194 shlibpath_var=$shlibpath_var
15195
15196 # Is shlibpath searched before the hard-coded library search path?
15197 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15198
15199 # Format of library name prefix.
15200 libname_spec=$lt_libname_spec
15201
15202 # List of archive names.  First name is the real one, the rest are links.
15203 # The last name is the one that the linker finds with -lNAME
15204 library_names_spec=$lt_library_names_spec
15205
15206 # The coded name of the library, if different from the real name.
15207 soname_spec=$lt_soname_spec
15208
15209 # Command to use after installation of a shared archive.
15210 postinstall_cmds=$lt_postinstall_cmds
15211
15212 # Command to use after uninstallation of a shared archive.
15213 postuninstall_cmds=$lt_postuninstall_cmds
15214
15215 # Commands used to finish a libtool library installation in a directory.
15216 finish_cmds=$lt_finish_cmds
15217
15218 # As "finish_cmds", except a single script fragment to be evaled but
15219 # not shown.
15220 finish_eval=$lt_finish_eval
15221
15222 # Whether we should hardcode library paths into libraries.
15223 hardcode_into_libs=$hardcode_into_libs
15224
15225 # Compile-time system search path for libraries.
15226 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15227
15228 # Run-time system search path for libraries.
15229 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15230
15231 # Whether dlopen is supported.
15232 dlopen_support=$enable_dlopen
15233
15234 # Whether dlopen of programs is supported.
15235 dlopen_self=$enable_dlopen_self
15236
15237 # Whether dlopen of statically linked programs is supported.
15238 dlopen_self_static=$enable_dlopen_self_static
15239
15240 # Commands to strip libraries.
15241 old_striplib=$lt_old_striplib
15242 striplib=$lt_striplib
15243
15244
15245 # The linker used to build libraries.
15246 LD=$lt_LD
15247
15248 # Commands used to build an old-style archive.
15249 old_archive_cmds=$lt_old_archive_cmds
15250
15251 # A language specific compiler.
15252 CC=$lt_compiler
15253
15254 # Is the compiler the GNU compiler?
15255 with_gcc=$GCC
15256
15257 # Compiler flag to turn off builtin functions.
15258 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15259
15260 # How to pass a linker flag through the compiler.
15261 wl=$lt_lt_prog_compiler_wl
15262
15263 # Additional compiler flags for building library objects.
15264 pic_flag=$lt_lt_prog_compiler_pic
15265
15266 # Compiler flag to prevent dynamic linking.
15267 link_static_flag=$lt_lt_prog_compiler_static
15268
15269 # Does compiler simultaneously support -c and -o options?
15270 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15271
15272 # Whether or not to add -lc for building shared libraries.
15273 build_libtool_need_lc=$archive_cmds_need_lc
15274
15275 # Whether or not to disallow shared libs when runtime libs are static.
15276 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15277
15278 # Compiler flag to allow reflexive dlopens.
15279 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15280
15281 # Compiler flag to generate shared objects directly from archives.
15282 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15283
15284 # Whether the compiler copes with passing no objects directly.
15285 compiler_needs_object=$lt_compiler_needs_object
15286
15287 # Create an old-style archive from a shared archive.
15288 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15289
15290 # Create a temporary old-style archive to link instead of a shared archive.
15291 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15292
15293 # Commands used to build a shared archive.
15294 archive_cmds=$lt_archive_cmds
15295 archive_expsym_cmds=$lt_archive_expsym_cmds
15296
15297 # Commands used to build a loadable module if different from building
15298 # a shared archive.
15299 module_cmds=$lt_module_cmds
15300 module_expsym_cmds=$lt_module_expsym_cmds
15301
15302 # Whether we are building with GNU ld or not.
15303 with_gnu_ld=$lt_with_gnu_ld
15304
15305 # Flag that allows shared libraries with undefined symbols to be built.
15306 allow_undefined_flag=$lt_allow_undefined_flag
15307
15308 # Flag that enforces no undefined symbols.
15309 no_undefined_flag=$lt_no_undefined_flag
15310
15311 # Flag to hardcode \$libdir into a binary during linking.
15312 # This must work even if \$libdir does not exist
15313 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15314
15315 # If ld is used when linking, flag to hardcode \$libdir into a binary
15316 # during linking.  This must work even if \$libdir does not exist.
15317 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15318
15319 # Whether we need a single "-rpath" flag with a separated argument.
15320 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15321
15322 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15323 # DIR into the resulting binary.
15324 hardcode_direct=$hardcode_direct
15325
15326 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15327 # DIR into the resulting binary and the resulting library dependency is
15328 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15329 # library is relocated.
15330 hardcode_direct_absolute=$hardcode_direct_absolute
15331
15332 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15333 # into the resulting binary.
15334 hardcode_minus_L=$hardcode_minus_L
15335
15336 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15337 # into the resulting binary.
15338 hardcode_shlibpath_var=$hardcode_shlibpath_var
15339
15340 # Set to "yes" if building a shared library automatically hardcodes DIR
15341 # into the library and all subsequent libraries and executables linked
15342 # against it.
15343 hardcode_automatic=$hardcode_automatic
15344
15345 # Set to yes if linker adds runtime paths of dependent libraries
15346 # to runtime path list.
15347 inherit_rpath=$inherit_rpath
15348
15349 # Whether libtool must link a program against all its dependency libraries.
15350 link_all_deplibs=$link_all_deplibs
15351
15352 # Fix the shell variable \$srcfile for the compiler.
15353 fix_srcfile_path=$lt_fix_srcfile_path
15354
15355 # Set to "yes" if exported symbols are required.
15356 always_export_symbols=$always_export_symbols
15357
15358 # The commands to list exported symbols.
15359 export_symbols_cmds=$lt_export_symbols_cmds
15360
15361 # Symbols that should not be listed in the preloaded symbols.
15362 exclude_expsyms=$lt_exclude_expsyms
15363
15364 # Symbols that must always be exported.
15365 include_expsyms=$lt_include_expsyms
15366
15367 # Commands necessary for linking programs (against libraries) with templates.
15368 prelink_cmds=$lt_prelink_cmds
15369
15370 # Specify filename containing input files.
15371 file_list_spec=$lt_file_list_spec
15372
15373 # How to hardcode a shared library path into an executable.
15374 hardcode_action=$hardcode_action
15375
15376 # ### END LIBTOOL CONFIG
15377
15378 _LT_EOF
15379
15380   case $host_os in
15381   aix3*)
15382     cat <<\_LT_EOF >> "$cfgfile"
15383 # AIX sometimes has problems with the GCC collect2 program.  For some
15384 # reason, if we set the COLLECT_NAMES environment variable, the problems
15385 # vanish in a puff of smoke.
15386 if test "X${COLLECT_NAMES+set}" != Xset; then
15387   COLLECT_NAMES=
15388   export COLLECT_NAMES
15389 fi
15390 _LT_EOF
15391     ;;
15392   esac
15393
15394
15395 ltmain="$ac_aux_dir/ltmain.sh"
15396
15397
15398   # We use sed instead of cat because bash on DJGPP gets confused if
15399   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15400   # text mode, it properly converts lines to CR/LF.  This bash problem
15401   # is reportedly fixed, but why not run on old versions too?
15402   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15403     || (rm -f "$cfgfile"; exit 1)
15404
15405   case $xsi_shell in
15406   yes)
15407     cat << \_LT_EOF >> "$cfgfile"
15408
15409 # func_dirname file append nondir_replacement
15410 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15411 # otherwise set result to NONDIR_REPLACEMENT.
15412 func_dirname ()
15413 {
15414   case ${1} in
15415     */*) func_dirname_result="${1%/*}${2}" ;;
15416     *  ) func_dirname_result="${3}" ;;
15417   esac
15418 }
15419
15420 # func_basename file
15421 func_basename ()
15422 {
15423   func_basename_result="${1##*/}"
15424 }
15425
15426 # func_dirname_and_basename file append nondir_replacement
15427 # perform func_basename and func_dirname in a single function
15428 # call:
15429 #   dirname:  Compute the dirname of FILE.  If nonempty,
15430 #             add APPEND to the result, otherwise set result
15431 #             to NONDIR_REPLACEMENT.
15432 #             value returned in "$func_dirname_result"
15433 #   basename: Compute filename of FILE.
15434 #             value retuned in "$func_basename_result"
15435 # Implementation must be kept synchronized with func_dirname
15436 # and func_basename. For efficiency, we do not delegate to
15437 # those functions but instead duplicate the functionality here.
15438 func_dirname_and_basename ()
15439 {
15440   case ${1} in
15441     */*) func_dirname_result="${1%/*}${2}" ;;
15442     *  ) func_dirname_result="${3}" ;;
15443   esac
15444   func_basename_result="${1##*/}"
15445 }
15446
15447 # func_stripname prefix suffix name
15448 # strip PREFIX and SUFFIX off of NAME.
15449 # PREFIX and SUFFIX must not contain globbing or regex special
15450 # characters, hashes, percent signs, but SUFFIX may contain a leading
15451 # dot (in which case that matches only a dot).
15452 func_stripname ()
15453 {
15454   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15455   # positional parameters, so assign one to ordinary parameter first.
15456   func_stripname_result=${3}
15457   func_stripname_result=${func_stripname_result#"${1}"}
15458   func_stripname_result=${func_stripname_result%"${2}"}
15459 }
15460
15461 # func_opt_split
15462 func_opt_split ()
15463 {
15464   func_opt_split_opt=${1%%=*}
15465   func_opt_split_arg=${1#*=}
15466 }
15467
15468 # func_lo2o object
15469 func_lo2o ()
15470 {
15471   case ${1} in
15472     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15473     *)    func_lo2o_result=${1} ;;
15474   esac
15475 }
15476
15477 # func_xform libobj-or-source
15478 func_xform ()
15479 {
15480   func_xform_result=${1%.*}.lo
15481 }
15482
15483 # func_arith arithmetic-term...
15484 func_arith ()
15485 {
15486   func_arith_result=$(( $* ))
15487 }
15488
15489 # func_len string
15490 # STRING may not start with a hyphen.
15491 func_len ()
15492 {
15493   func_len_result=${#1}
15494 }
15495
15496 _LT_EOF
15497     ;;
15498   *) # Bourne compatible functions.
15499     cat << \_LT_EOF >> "$cfgfile"
15500
15501 # func_dirname file append nondir_replacement
15502 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15503 # otherwise set result to NONDIR_REPLACEMENT.
15504 func_dirname ()
15505 {
15506   # Extract subdirectory from the argument.
15507   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15508   if test "X$func_dirname_result" = "X${1}"; then
15509     func_dirname_result="${3}"
15510   else
15511     func_dirname_result="$func_dirname_result${2}"
15512   fi
15513 }
15514
15515 # func_basename file
15516 func_basename ()
15517 {
15518   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15519 }
15520
15521
15522 # func_stripname prefix suffix name
15523 # strip PREFIX and SUFFIX off of NAME.
15524 # PREFIX and SUFFIX must not contain globbing or regex special
15525 # characters, hashes, percent signs, but SUFFIX may contain a leading
15526 # dot (in which case that matches only a dot).
15527 # func_strip_suffix prefix name
15528 func_stripname ()
15529 {
15530   case ${2} in
15531     .*) func_stripname_result=`$ECHO "X${3}" \
15532            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15533     *)  func_stripname_result=`$ECHO "X${3}" \
15534            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15535   esac
15536 }
15537
15538 # sed scripts:
15539 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15540 my_sed_long_arg='1s/^-[^=]*=//'
15541
15542 # func_opt_split
15543 func_opt_split ()
15544 {
15545   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15546   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15547 }
15548
15549 # func_lo2o object
15550 func_lo2o ()
15551 {
15552   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15553 }
15554
15555 # func_xform libobj-or-source
15556 func_xform ()
15557 {
15558   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15559 }
15560
15561 # func_arith arithmetic-term...
15562 func_arith ()
15563 {
15564   func_arith_result=`expr "$@"`
15565 }
15566
15567 # func_len string
15568 # STRING may not start with a hyphen.
15569 func_len ()
15570 {
15571   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15572 }
15573
15574 _LT_EOF
15575 esac
15576
15577 case $lt_shell_append in
15578   yes)
15579     cat << \_LT_EOF >> "$cfgfile"
15580
15581 # func_append var value
15582 # Append VALUE to the end of shell variable VAR.
15583 func_append ()
15584 {
15585   eval "$1+=\$2"
15586 }
15587 _LT_EOF
15588     ;;
15589   *)
15590     cat << \_LT_EOF >> "$cfgfile"
15591
15592 # func_append var value
15593 # Append VALUE to the end of shell variable VAR.
15594 func_append ()
15595 {
15596   eval "$1=\$$1\$2"
15597 }
15598
15599 _LT_EOF
15600     ;;
15601   esac
15602
15603
15604   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15605     || (rm -f "$cfgfile"; exit 1)
15606
15607   mv -f "$cfgfile" "$ofile" ||
15608     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15609   chmod +x "$ofile"
15610
15611  ;;
15612
15613   esac
15614 done # for ac_tag
15615
15616
15617 as_fn_exit 0
15618 _ACEOF
15619 ac_clean_files=$ac_clean_files_save
15620
15621 test $ac_write_fail = 0 ||
15622   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15623
15624
15625 # configure is writing to config.log, and then calls config.status.
15626 # config.status does its own redirection, appending to config.log.
15627 # Unfortunately, on DOS this fails, as config.log is still kept open
15628 # by configure, so config.status won't be able to write to it; its
15629 # output is simply discarded.  So we exec the FD to /dev/null,
15630 # effectively closing config.log, so it can be properly (re)opened and
15631 # appended to by config.status.  When coming back to configure, we
15632 # need to make the FD available again.
15633 if test "$no_create" != yes; then
15634   ac_cs_success=:
15635   ac_config_status_args=
15636   test "$silent" = yes &&
15637     ac_config_status_args="$ac_config_status_args --quiet"
15638   exec 5>/dev/null
15639   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15640   exec 5>>config.log
15641   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15642   # would make configure fail if this is the last instruction.
15643   $ac_cs_success || as_fn_exit 1
15644 fi
15645 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15646   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15647 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15648 fi
15649