sync with master : add emergency
[framework/multimedia/libmm-common.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libmm-common 0.0.1.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $ECHO works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<_LT_EOF
582 $*
583 _LT_EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592   if test "X${echo_test_string+set}" != Xset; then
593     # find a string as large as possible, as long as the shell can cope with it
594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598       then
599         break
600       fi
601     done
602   fi
603
604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606      test "X$echo_testing_string" = "X$echo_test_string"; then
607     :
608   else
609     # The Solaris, AIX, and Digital Unix default echo programs unquote
610     # backslashes.  This makes it impossible to quote backslashes using
611     #   echo "$something" | sed 's/\\/\\\\/g'
612     #
613     # So, first we look for a working echo in the user's PATH.
614
615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616     for dir in $PATH /usr/ucb; do
617       IFS="$lt_save_ifs"
618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621          test "X$echo_testing_string" = "X$echo_test_string"; then
622         ECHO="$dir/echo"
623         break
624       fi
625     done
626     IFS="$lt_save_ifs"
627
628     if test "X$ECHO" = Xecho; then
629       # We didn't find a better echo, so look for alternatives.
630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632          test "X$echo_testing_string" = "X$echo_test_string"; then
633         # This shell has a builtin print -r that does the trick.
634         ECHO='print -r'
635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636            test "X$CONFIG_SHELL" != X/bin/ksh; then
637         # If we have ksh, try running configure again with it.
638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639         export ORIGINAL_CONFIG_SHELL
640         CONFIG_SHELL=/bin/ksh
641         export CONFIG_SHELL
642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643       else
644         # Try using printf.
645         ECHO='printf %s\n'
646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648            test "X$echo_testing_string" = "X$echo_test_string"; then
649           # Cool, printf works
650           :
651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652              test "X$echo_testing_string" = 'X\t' &&
653              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654              test "X$echo_testing_string" = "X$echo_test_string"; then
655           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656           export CONFIG_SHELL
657           SHELL="$CONFIG_SHELL"
658           export SHELL
659           ECHO="$CONFIG_SHELL $0 --fallback-echo"
660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661              test "X$echo_testing_string" = 'X\t' &&
662              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663              test "X$echo_testing_string" = "X$echo_test_string"; then
664           ECHO="$CONFIG_SHELL $0 --fallback-echo"
665         else
666           # maybe with a smaller string...
667           prev=:
668
669           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671             then
672               break
673             fi
674             prev="$cmd"
675           done
676
677           if test "$prev" != 'sed 50q "$0"'; then
678             echo_test_string=`eval $prev`
679             export echo_test_string
680             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681           else
682             # Oops.  We lost completely, so just stick with echo.
683             ECHO=echo
684           fi
685         fi
686       fi
687     fi
688   fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME='libmm-common'
723 PACKAGE_TARNAME='libmm-common'
724 PACKAGE_VERSION='0.0.1'
725 PACKAGE_STRING='libmm-common 0.0.1'
726 PACKAGE_BUGREPORT=''
727
728 ac_unique_file="mm_object.c"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 INSTALL_PROGRAM
803 INSTALL_SCRIPT
804 INSTALL_DATA
805 am__isrc
806 CYGPATH_W
807 PACKAGE
808 VERSION
809 ACLOCAL
810 AUTOCONF
811 AUTOMAKE
812 AUTOHEADER
813 MAKEINFO
814 install_sh
815 STRIP
816 INSTALL_STRIP_PROGRAM
817 mkdir_p
818 AWK
819 SET_MAKE
820 am__leading_dot
821 AMTAR
822 am__tar
823 am__untar
824 CC
825 CFLAGS
826 LDFLAGS
827 CPPFLAGS
828 ac_ct_CC
829 EXEEXT
830 OBJEXT
831 DEPDIR
832 am__include
833 am__quote
834 AMDEP_TRUE
835 AMDEP_FALSE
836 AMDEPBACKSLASH
837 CCDEPMODE
838 am__fastdepCC_TRUE
839 am__fastdepCC_FALSE
840 LIBTOOL
841 build
842 build_cpu
843 build_vendor
844 build_os
845 host
846 host_cpu
847 host_vendor
848 host_os
849 SED
850 GREP
851 EGREP
852 FGREP
853 LD
854 DUMPBIN
855 ac_ct_DUMPBIN
856 NM
857 LN_S
858 AR
859 RANLIB
860 lt_ECHO
861 DSYMUTIL
862 NMEDIT
863 LIPO
864 OTOOL
865 OTOOL64
866 CPP
867 LIBOBJS
868 PKG_CONFIG
869 GLIB_CFLAGS
870 GLIB_LIBS
871 MMLOG_CFLAGS
872 MMLOG_LIBS
873 LTLIBOBJS'
874 ac_subst_files=''
875       ac_precious_vars='build_alias
876 host_alias
877 target_alias
878 CC
879 CFLAGS
880 LDFLAGS
881 LIBS
882 CPPFLAGS
883 CPP
884 PKG_CONFIG
885 GLIB_CFLAGS
886 GLIB_LIBS
887 MMLOG_CFLAGS
888 MMLOG_LIBS'
889
890
891 # Initialize some variables set by options.
892 ac_init_help=
893 ac_init_version=false
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
896 cache_file=/dev/null
897 exec_prefix=NONE
898 no_create=
899 no_recursion=
900 prefix=NONE
901 program_prefix=NONE
902 program_suffix=NONE
903 program_transform_name=s,x,x,
904 silent=
905 site=
906 srcdir=
907 verbose=
908 x_includes=NONE
909 x_libraries=NONE
910
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928 infodir='${datarootdir}/info'
929 htmldir='${docdir}'
930 dvidir='${docdir}'
931 pdfdir='${docdir}'
932 psdir='${docdir}'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
936
937 ac_prev=
938 ac_dashdash=
939 for ac_option
940 do
941   # If the previous option needs an argument, assign it.
942   if test -n "$ac_prev"; then
943     eval $ac_prev=\$ac_option
944     ac_prev=
945     continue
946   fi
947
948   case $ac_option in
949   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950   *)    ac_optarg=yes ;;
951   esac
952
953   # Accept the important Cygnus configure options, so we can diagnose typos.
954
955   case $ac_dashdash$ac_option in
956   --)
957     ac_dashdash=yes ;;
958
959   -bindir | --bindir | --bindi | --bind | --bin | --bi)
960     ac_prev=bindir ;;
961   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
962     bindir=$ac_optarg ;;
963
964   -build | --build | --buil | --bui | --bu)
965     ac_prev=build_alias ;;
966   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
967     build_alias=$ac_optarg ;;
968
969   -cache-file | --cache-file | --cache-fil | --cache-fi \
970   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971     ac_prev=cache_file ;;
972   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974     cache_file=$ac_optarg ;;
975
976   --config-cache | -C)
977     cache_file=config.cache ;;
978
979   -datadir | --datadir | --datadi | --datad)
980     ac_prev=datadir ;;
981   -datadir=* | --datadir=* | --datadi=* | --datad=*)
982     datadir=$ac_optarg ;;
983
984   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985   | --dataroo | --dataro | --datar)
986     ac_prev=datarootdir ;;
987   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989     datarootdir=$ac_optarg ;;
990
991   -disable-* | --disable-*)
992     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993     # Reject names that are not valid shell variable names.
994     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
995       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
996    { (exit 1); exit 1; }; }
997     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
998     eval enable_$ac_feature=no ;;
999
1000   -docdir | --docdir | --docdi | --doc | --do)
1001     ac_prev=docdir ;;
1002   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003     docdir=$ac_optarg ;;
1004
1005   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006     ac_prev=dvidir ;;
1007   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008     dvidir=$ac_optarg ;;
1009
1010   -enable-* | --enable-*)
1011     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012     # Reject names that are not valid shell variable names.
1013     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1014       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1015    { (exit 1); exit 1; }; }
1016     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1017     eval enable_$ac_feature=\$ac_optarg ;;
1018
1019   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021   | --exec | --exe | --ex)
1022     ac_prev=exec_prefix ;;
1023   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025   | --exec=* | --exe=* | --ex=*)
1026     exec_prefix=$ac_optarg ;;
1027
1028   -gas | --gas | --ga | --g)
1029     # Obsolete; use --with-gas.
1030     with_gas=yes ;;
1031
1032   -help | --help | --hel | --he | -h)
1033     ac_init_help=long ;;
1034   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035     ac_init_help=recursive ;;
1036   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037     ac_init_help=short ;;
1038
1039   -host | --host | --hos | --ho)
1040     ac_prev=host_alias ;;
1041   -host=* | --host=* | --hos=* | --ho=*)
1042     host_alias=$ac_optarg ;;
1043
1044   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045     ac_prev=htmldir ;;
1046   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047   | --ht=*)
1048     htmldir=$ac_optarg ;;
1049
1050   -includedir | --includedir | --includedi | --included | --include \
1051   | --includ | --inclu | --incl | --inc)
1052     ac_prev=includedir ;;
1053   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054   | --includ=* | --inclu=* | --incl=* | --inc=*)
1055     includedir=$ac_optarg ;;
1056
1057   -infodir | --infodir | --infodi | --infod | --info | --inf)
1058     ac_prev=infodir ;;
1059   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060     infodir=$ac_optarg ;;
1061
1062   -libdir | --libdir | --libdi | --libd)
1063     ac_prev=libdir ;;
1064   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065     libdir=$ac_optarg ;;
1066
1067   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068   | --libexe | --libex | --libe)
1069     ac_prev=libexecdir ;;
1070   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071   | --libexe=* | --libex=* | --libe=*)
1072     libexecdir=$ac_optarg ;;
1073
1074   -localedir | --localedir | --localedi | --localed | --locale)
1075     ac_prev=localedir ;;
1076   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077     localedir=$ac_optarg ;;
1078
1079   -localstatedir | --localstatedir | --localstatedi | --localstated \
1080   | --localstate | --localstat | --localsta | --localst | --locals)
1081     ac_prev=localstatedir ;;
1082   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084     localstatedir=$ac_optarg ;;
1085
1086   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087     ac_prev=mandir ;;
1088   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089     mandir=$ac_optarg ;;
1090
1091   -nfp | --nfp | --nf)
1092     # Obsolete; use --without-fp.
1093     with_fp=no ;;
1094
1095   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096   | --no-cr | --no-c | -n)
1097     no_create=yes ;;
1098
1099   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101     no_recursion=yes ;;
1102
1103   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105   | --oldin | --oldi | --old | --ol | --o)
1106     ac_prev=oldincludedir ;;
1107   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110     oldincludedir=$ac_optarg ;;
1111
1112   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113     ac_prev=prefix ;;
1114   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115     prefix=$ac_optarg ;;
1116
1117   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118   | --program-pre | --program-pr | --program-p)
1119     ac_prev=program_prefix ;;
1120   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122     program_prefix=$ac_optarg ;;
1123
1124   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125   | --program-suf | --program-su | --program-s)
1126     ac_prev=program_suffix ;;
1127   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129     program_suffix=$ac_optarg ;;
1130
1131   -program-transform-name | --program-transform-name \
1132   | --program-transform-nam | --program-transform-na \
1133   | --program-transform-n | --program-transform- \
1134   | --program-transform | --program-transfor \
1135   | --program-transfo | --program-transf \
1136   | --program-trans | --program-tran \
1137   | --progr-tra | --program-tr | --program-t)
1138     ac_prev=program_transform_name ;;
1139   -program-transform-name=* | --program-transform-name=* \
1140   | --program-transform-nam=* | --program-transform-na=* \
1141   | --program-transform-n=* | --program-transform-=* \
1142   | --program-transform=* | --program-transfor=* \
1143   | --program-transfo=* | --program-transf=* \
1144   | --program-trans=* | --program-tran=* \
1145   | --progr-tra=* | --program-tr=* | --program-t=*)
1146     program_transform_name=$ac_optarg ;;
1147
1148   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149     ac_prev=pdfdir ;;
1150   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151     pdfdir=$ac_optarg ;;
1152
1153   -psdir | --psdir | --psdi | --psd | --ps)
1154     ac_prev=psdir ;;
1155   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156     psdir=$ac_optarg ;;
1157
1158   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159   | -silent | --silent | --silen | --sile | --sil)
1160     silent=yes ;;
1161
1162   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163     ac_prev=sbindir ;;
1164   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165   | --sbi=* | --sb=*)
1166     sbindir=$ac_optarg ;;
1167
1168   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170   | --sharedst | --shareds | --shared | --share | --shar \
1171   | --sha | --sh)
1172     ac_prev=sharedstatedir ;;
1173   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176   | --sha=* | --sh=*)
1177     sharedstatedir=$ac_optarg ;;
1178
1179   -site | --site | --sit)
1180     ac_prev=site ;;
1181   -site=* | --site=* | --sit=*)
1182     site=$ac_optarg ;;
1183
1184   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185     ac_prev=srcdir ;;
1186   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187     srcdir=$ac_optarg ;;
1188
1189   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190   | --syscon | --sysco | --sysc | --sys | --sy)
1191     ac_prev=sysconfdir ;;
1192   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194     sysconfdir=$ac_optarg ;;
1195
1196   -target | --target | --targe | --targ | --tar | --ta | --t)
1197     ac_prev=target_alias ;;
1198   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199     target_alias=$ac_optarg ;;
1200
1201   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202     verbose=yes ;;
1203
1204   -version | --version | --versio | --versi | --vers | -V)
1205     ac_init_version=: ;;
1206
1207   -with-* | --with-*)
1208     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209     # Reject names that are not valid shell variable names.
1210     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211       { echo "$as_me: error: invalid package name: $ac_package" >&2
1212    { (exit 1); exit 1; }; }
1213     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1214     eval with_$ac_package=\$ac_optarg ;;
1215
1216   -without-* | --without-*)
1217     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218     # Reject names that are not valid shell variable names.
1219     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220       { echo "$as_me: error: invalid package name: $ac_package" >&2
1221    { (exit 1); exit 1; }; }
1222     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1223     eval with_$ac_package=no ;;
1224
1225   --x)
1226     # Obsolete; use --with-x.
1227     with_x=yes ;;
1228
1229   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230   | --x-incl | --x-inc | --x-in | --x-i)
1231     ac_prev=x_includes ;;
1232   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234     x_includes=$ac_optarg ;;
1235
1236   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238     ac_prev=x_libraries ;;
1239   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241     x_libraries=$ac_optarg ;;
1242
1243   -*) { echo "$as_me: error: unrecognized option: $ac_option
1244 Try \`$0 --help' for more information." >&2
1245    { (exit 1); exit 1; }; }
1246     ;;
1247
1248   *=*)
1249     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250     # Reject names that are not valid shell variable names.
1251     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1252       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1253    { (exit 1); exit 1; }; }
1254     eval $ac_envvar=\$ac_optarg
1255     export $ac_envvar ;;
1256
1257   *)
1258     # FIXME: should be removed in autoconf 3.0.
1259     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1263     ;;
1264
1265   esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270   { echo "$as_me: error: missing argument to $ac_option" >&2
1271    { (exit 1); exit 1; }; }
1272 fi
1273
1274 # Be sure to have absolute directory names.
1275 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276                 datadir sysconfdir sharedstatedir localstatedir includedir \
1277                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278                 libdir localedir mandir
1279 do
1280   eval ac_val=\$$ac_var
1281   case $ac_val in
1282     [\\/$]* | ?:[\\/]* )  continue;;
1283     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284   esac
1285   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1286    { (exit 1); exit 1; }; }
1287 done
1288
1289 # There might be people who depend on the old broken behavior: `$host'
1290 # used to hold the argument of --host etc.
1291 # FIXME: To remove some day.
1292 build=$build_alias
1293 host=$host_alias
1294 target=$target_alias
1295
1296 # FIXME: To remove some day.
1297 if test "x$host_alias" != x; then
1298   if test "x$build_alias" = x; then
1299     cross_compiling=maybe
1300     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1301     If a cross compiler is detected then cross compile mode will be used." >&2
1302   elif test "x$build_alias" != "x$host_alias"; then
1303     cross_compiling=yes
1304   fi
1305 fi
1306
1307 ac_tool_prefix=
1308 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310 test "$silent" = yes && exec 6>/dev/null
1311
1312
1313 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314 ac_ls_di=`ls -di .` &&
1315 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316   { echo "$as_me: error: Working directory cannot be determined" >&2
1317    { (exit 1); exit 1; }; }
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319   { echo "$as_me: error: pwd does not report name of working directory" >&2
1320    { (exit 1); exit 1; }; }
1321
1322
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325   ac_srcdir_defaulted=yes
1326   # Try the directory containing this script, then the parent directory.
1327   ac_confdir=`$as_dirname -- "$0" ||
1328 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329          X"$0" : 'X\(//\)[^/]' \| \
1330          X"$0" : 'X\(//\)$' \| \
1331          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1332 echo X"$0" |
1333     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1334             s//\1/
1335             q
1336           }
1337           /^X\(\/\/\)[^/].*/{
1338             s//\1/
1339             q
1340           }
1341           /^X\(\/\/\)$/{
1342             s//\1/
1343             q
1344           }
1345           /^X\(\/\).*/{
1346             s//\1/
1347             q
1348           }
1349           s/.*/./; q'`
1350   srcdir=$ac_confdir
1351   if test ! -r "$srcdir/$ac_unique_file"; then
1352     srcdir=..
1353   fi
1354 else
1355   ac_srcdir_defaulted=no
1356 fi
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1360    { (exit 1); exit 1; }; }
1361 fi
1362 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 ac_abs_confdir=`(
1364         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1365    { (exit 1); exit 1; }; }
1366         pwd)`
1367 # When building in place, set srcdir=.
1368 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369   srcdir=.
1370 fi
1371 # Remove unnecessary trailing slashes from srcdir.
1372 # Double slashes in file names in object file debugging info
1373 # mess up M-x gdb in Emacs.
1374 case $srcdir in
1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 esac
1377 for ac_var in $ac_precious_vars; do
1378   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379   eval ac_env_${ac_var}_value=\$${ac_var}
1380   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382 done
1383
1384 #
1385 # Report the --help message.
1386 #
1387 if test "$ac_init_help" = "long"; then
1388   # Omit some internal or obsolete options to make the list less imposing.
1389   # This message is too long to be a string in the A/UX 3.1 sh.
1390   cat <<_ACEOF
1391 \`configure' configures libmm-common 0.0.1 to adapt to many kinds of systems.
1392
1393 Usage: $0 [OPTION]... [VAR=VALUE]...
1394
1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396 VAR=VALUE.  See below for descriptions of some of the useful variables.
1397
1398 Defaults for the options are specified in brackets.
1399
1400 Configuration:
1401   -h, --help              display this help and exit
1402       --help=short        display options specific to this package
1403       --help=recursive    display the short help of all the included packages
1404   -V, --version           display version information and exit
1405   -q, --quiet, --silent   do not print \`checking...' messages
1406       --cache-file=FILE   cache test results in FILE [disabled]
1407   -C, --config-cache      alias for \`--cache-file=config.cache'
1408   -n, --no-create         do not create output files
1409       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1410
1411 Installation directories:
1412   --prefix=PREFIX         install architecture-independent files in PREFIX
1413                           [$ac_default_prefix]
1414   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1415                           [PREFIX]
1416
1417 By default, \`make install' will install all the files in
1418 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1419 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1420 for instance \`--prefix=\$HOME'.
1421
1422 For better control, use the options below.
1423
1424 Fine tuning of the installation directories:
1425   --bindir=DIR           user executables [EPREFIX/bin]
1426   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1427   --libexecdir=DIR       program executables [EPREFIX/libexec]
1428   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1429   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1430   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1431   --libdir=DIR           object code libraries [EPREFIX/lib]
1432   --includedir=DIR       C header files [PREFIX/include]
1433   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1434   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1435   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1436   --infodir=DIR          info documentation [DATAROOTDIR/info]
1437   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1438   --mandir=DIR           man documentation [DATAROOTDIR/man]
1439   --docdir=DIR           documentation root [DATAROOTDIR/doc/libmm-common]
1440   --htmldir=DIR          html documentation [DOCDIR]
1441   --dvidir=DIR           dvi documentation [DOCDIR]
1442   --pdfdir=DIR           pdf documentation [DOCDIR]
1443   --psdir=DIR            ps documentation [DOCDIR]
1444 _ACEOF
1445
1446   cat <<\_ACEOF
1447
1448 Program names:
1449   --program-prefix=PREFIX            prepend PREFIX to installed program names
1450   --program-suffix=SUFFIX            append SUFFIX to installed program names
1451   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1452
1453 System types:
1454   --build=BUILD     configure for building on BUILD [guessed]
1455   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1456 _ACEOF
1457 fi
1458
1459 if test -n "$ac_init_help"; then
1460   case $ac_init_help in
1461      short | recursive ) echo "Configuration of libmm-common 0.0.1:";;
1462    esac
1463   cat <<\_ACEOF
1464
1465 Optional Features:
1466   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1467   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1468   --disable-dependency-tracking  speeds up one-time build
1469   --enable-dependency-tracking   do not reject slow dependency extractors
1470   --enable-shared[=PKGS]  build shared libraries [default=yes]
1471   --enable-static[=PKGS]  build static libraries [default=yes]
1472   --enable-fast-install[=PKGS]
1473                           optimize for fast installation [default=yes]
1474   --disable-libtool-lock  avoid locking (might break parallel builds)
1475
1476 Optional Packages:
1477   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1478   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1479   --with-pic              try to use only PIC/non-PIC objects [default=use
1480                           both]
1481   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1482
1483 Some influential environment variables:
1484   CC          C compiler command
1485   CFLAGS      C compiler flags
1486   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1487               nonstandard directory <lib dir>
1488   LIBS        libraries to pass to the linker, e.g. -l<library>
1489   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1490               you have headers in a nonstandard directory <include dir>
1491   CPP         C preprocessor
1492   PKG_CONFIG  path to pkg-config utility
1493   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1494   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1495   MMLOG_CFLAGS
1496               C compiler flags for MMLOG, overriding pkg-config
1497   MMLOG_LIBS  linker flags for MMLOG, overriding pkg-config
1498
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1501
1502 _ACEOF
1503 ac_status=$?
1504 fi
1505
1506 if test "$ac_init_help" = "recursive"; then
1507   # If there are subdirs, report their specific --help.
1508   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509     test -d "$ac_dir" || continue
1510     ac_builddir=.
1511
1512 case "$ac_dir" in
1513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *)
1515   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1516   # A ".." for each directory in $ac_dir_suffix.
1517   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1518   case $ac_top_builddir_sub in
1519   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521   esac ;;
1522 esac
1523 ac_abs_top_builddir=$ac_pwd
1524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1525 # for backward compatibility:
1526 ac_top_builddir=$ac_top_build_prefix
1527
1528 case $srcdir in
1529   .)  # We are building in place.
1530     ac_srcdir=.
1531     ac_top_srcdir=$ac_top_builddir_sub
1532     ac_abs_top_srcdir=$ac_pwd ;;
1533   [\\/]* | ?:[\\/]* )  # Absolute name.
1534     ac_srcdir=$srcdir$ac_dir_suffix;
1535     ac_top_srcdir=$srcdir
1536     ac_abs_top_srcdir=$srcdir ;;
1537   *) # Relative name.
1538     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1539     ac_top_srcdir=$ac_top_build_prefix$srcdir
1540     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1541 esac
1542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543
1544     cd "$ac_dir" || { ac_status=$?; continue; }
1545     # Check for guested configure.
1546     if test -f "$ac_srcdir/configure.gnu"; then
1547       echo &&
1548       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1549     elif test -f "$ac_srcdir/configure"; then
1550       echo &&
1551       $SHELL "$ac_srcdir/configure" --help=recursive
1552     else
1553       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1554     fi || ac_status=$?
1555     cd "$ac_pwd" || { ac_status=$?; break; }
1556   done
1557 fi
1558
1559 test -n "$ac_init_help" && exit $ac_status
1560 if $ac_init_version; then
1561   cat <<\_ACEOF
1562 libmm-common configure 0.0.1
1563 generated by GNU Autoconf 2.61
1564
1565 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1566 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569 _ACEOF
1570   exit
1571 fi
1572 cat >config.log <<_ACEOF
1573 This file contains any messages produced by compilers while
1574 running configure, to aid debugging if configure makes a mistake.
1575
1576 It was created by libmm-common $as_me 0.0.1, which was
1577 generated by GNU Autoconf 2.61.  Invocation command line was
1578
1579   $ $0 $@
1580
1581 _ACEOF
1582 exec 5>>config.log
1583 {
1584 cat <<_ASUNAME
1585 ## --------- ##
1586 ## Platform. ##
1587 ## --------- ##
1588
1589 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1590 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1591 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1592 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1593 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1594
1595 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1596 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1597
1598 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1599 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1600 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1601 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1602 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1603 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1604 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1605
1606 _ASUNAME
1607
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1609 for as_dir in $PATH
1610 do
1611   IFS=$as_save_IFS
1612   test -z "$as_dir" && as_dir=.
1613   echo "PATH: $as_dir"
1614 done
1615 IFS=$as_save_IFS
1616
1617 } >&5
1618
1619 cat >&5 <<_ACEOF
1620
1621
1622 ## ----------- ##
1623 ## Core tests. ##
1624 ## ----------- ##
1625
1626 _ACEOF
1627
1628
1629 # Keep a trace of the command line.
1630 # Strip out --no-create and --no-recursion so they do not pile up.
1631 # Strip out --silent because we don't want to record it for future runs.
1632 # Also quote any args containing shell meta-characters.
1633 # Make two passes to allow for proper duplicate-argument suppression.
1634 ac_configure_args=
1635 ac_configure_args0=
1636 ac_configure_args1=
1637 ac_must_keep_next=false
1638 for ac_pass in 1 2
1639 do
1640   for ac_arg
1641   do
1642     case $ac_arg in
1643     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1644     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1645     | -silent | --silent | --silen | --sile | --sil)
1646       continue ;;
1647     *\'*)
1648       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1649     esac
1650     case $ac_pass in
1651     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1652     2)
1653       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1654       if test $ac_must_keep_next = true; then
1655         ac_must_keep_next=false # Got value, back to normal.
1656       else
1657         case $ac_arg in
1658           *=* | --config-cache | -C | -disable-* | --disable-* \
1659           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1660           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1661           | -with-* | --with-* | -without-* | --without-* | --x)
1662             case "$ac_configure_args0 " in
1663               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1664             esac
1665             ;;
1666           -* ) ac_must_keep_next=true ;;
1667         esac
1668       fi
1669       ac_configure_args="$ac_configure_args '$ac_arg'"
1670       ;;
1671     esac
1672   done
1673 done
1674 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1675 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1676
1677 # When interrupted or exit'd, cleanup temporary files, and complete
1678 # config.log.  We remove comments because anyway the quotes in there
1679 # would cause problems or look ugly.
1680 # WARNING: Use '\'' to represent an apostrophe within the trap.
1681 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1682 trap 'exit_status=$?
1683   # Save into config.log some information that might help in debugging.
1684   {
1685     echo
1686
1687     cat <<\_ASBOX
1688 ## ---------------- ##
1689 ## Cache variables. ##
1690 ## ---------------- ##
1691 _ASBOX
1692     echo
1693     # The following way of writing the cache mishandles newlines in values,
1694 (
1695   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1696     eval ac_val=\$$ac_var
1697     case $ac_val in #(
1698     *${as_nl}*)
1699       case $ac_var in #(
1700       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1701 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1702       esac
1703       case $ac_var in #(
1704       _ | IFS | as_nl) ;; #(
1705       *) $as_unset $ac_var ;;
1706       esac ;;
1707     esac
1708   done
1709   (set) 2>&1 |
1710     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1711     *${as_nl}ac_space=\ *)
1712       sed -n \
1713         "s/'\''/'\''\\\\'\'''\''/g;
1714           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1715       ;; #(
1716     *)
1717       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1718       ;;
1719     esac |
1720     sort
1721 )
1722     echo
1723
1724     cat <<\_ASBOX
1725 ## ----------------- ##
1726 ## Output variables. ##
1727 ## ----------------- ##
1728 _ASBOX
1729     echo
1730     for ac_var in $ac_subst_vars
1731     do
1732       eval ac_val=\$$ac_var
1733       case $ac_val in
1734       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1735       esac
1736       echo "$ac_var='\''$ac_val'\''"
1737     done | sort
1738     echo
1739
1740     if test -n "$ac_subst_files"; then
1741       cat <<\_ASBOX
1742 ## ------------------- ##
1743 ## File substitutions. ##
1744 ## ------------------- ##
1745 _ASBOX
1746       echo
1747       for ac_var in $ac_subst_files
1748       do
1749         eval ac_val=\$$ac_var
1750         case $ac_val in
1751         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1752         esac
1753         echo "$ac_var='\''$ac_val'\''"
1754       done | sort
1755       echo
1756     fi
1757
1758     if test -s confdefs.h; then
1759       cat <<\_ASBOX
1760 ## ----------- ##
1761 ## confdefs.h. ##
1762 ## ----------- ##
1763 _ASBOX
1764       echo
1765       cat confdefs.h
1766       echo
1767     fi
1768     test "$ac_signal" != 0 &&
1769       echo "$as_me: caught signal $ac_signal"
1770     echo "$as_me: exit $exit_status"
1771   } >&5
1772   rm -f core *.core core.conftest.* &&
1773     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1774     exit $exit_status
1775 ' 0
1776 for ac_signal in 1 2 13 15; do
1777   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1778 done
1779 ac_signal=0
1780
1781 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1782 rm -f -r conftest* confdefs.h
1783
1784 # Predefined preprocessor variables.
1785
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_NAME "$PACKAGE_NAME"
1788 _ACEOF
1789
1790
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1793 _ACEOF
1794
1795
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1798 _ACEOF
1799
1800
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_STRING "$PACKAGE_STRING"
1803 _ACEOF
1804
1805
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1808 _ACEOF
1809
1810
1811 # Let the site file select an alternate cache file if it wants to.
1812 # Prefer explicitly selected file to automatically selected ones.
1813 if test -n "$CONFIG_SITE"; then
1814   set x "$CONFIG_SITE"
1815 elif test "x$prefix" != xNONE; then
1816   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1817 else
1818   set x "$ac_default_prefix/share/config.site" \
1819         "$ac_default_prefix/etc/config.site"
1820 fi
1821 shift
1822 for ac_site_file
1823 do
1824   if test -r "$ac_site_file"; then
1825     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1826 echo "$as_me: loading site script $ac_site_file" >&6;}
1827     sed 's/^/| /' "$ac_site_file" >&5
1828     . "$ac_site_file"
1829   fi
1830 done
1831
1832 if test -r "$cache_file"; then
1833   # Some versions of bash will fail to source /dev/null (special
1834   # files actually), so we avoid doing that.
1835   if test -f "$cache_file"; then
1836     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1837 echo "$as_me: loading cache $cache_file" >&6;}
1838     case $cache_file in
1839       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1840       *)                      . "./$cache_file";;
1841     esac
1842   fi
1843 else
1844   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1845 echo "$as_me: creating cache $cache_file" >&6;}
1846   >$cache_file
1847 fi
1848
1849 # Check that the precious variables saved in the cache have kept the same
1850 # value.
1851 ac_cache_corrupted=false
1852 for ac_var in $ac_precious_vars; do
1853   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1854   eval ac_new_set=\$ac_env_${ac_var}_set
1855   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1856   eval ac_new_val=\$ac_env_${ac_var}_value
1857   case $ac_old_set,$ac_new_set in
1858     set,)
1859       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1861       ac_cache_corrupted=: ;;
1862     ,set)
1863       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1865       ac_cache_corrupted=: ;;
1866     ,);;
1867     *)
1868       if test "x$ac_old_val" != "x$ac_new_val"; then
1869         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1870 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1871         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1872 echo "$as_me:   former value:  $ac_old_val" >&2;}
1873         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1874 echo "$as_me:   current value: $ac_new_val" >&2;}
1875         ac_cache_corrupted=:
1876       fi;;
1877   esac
1878   # Pass precious variables to config.status.
1879   if test "$ac_new_set" = set; then
1880     case $ac_new_val in
1881     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1882     *) ac_arg=$ac_var=$ac_new_val ;;
1883     esac
1884     case " $ac_configure_args " in
1885       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1886       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1887     esac
1888   fi
1889 done
1890 if $ac_cache_corrupted; then
1891   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1892 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1893   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1894 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1895    { (exit 1); exit 1; }; }
1896 fi
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922 ac_ext=c
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1927
1928
1929
1930 ac_config_headers="$ac_config_headers config.h"
1931
1932 am__api_version='1.10'
1933
1934 ac_aux_dir=
1935 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1936   if test -f "$ac_dir/install-sh"; then
1937     ac_aux_dir=$ac_dir
1938     ac_install_sh="$ac_aux_dir/install-sh -c"
1939     break
1940   elif test -f "$ac_dir/install.sh"; then
1941     ac_aux_dir=$ac_dir
1942     ac_install_sh="$ac_aux_dir/install.sh -c"
1943     break
1944   elif test -f "$ac_dir/shtool"; then
1945     ac_aux_dir=$ac_dir
1946     ac_install_sh="$ac_aux_dir/shtool install -c"
1947     break
1948   fi
1949 done
1950 if test -z "$ac_aux_dir"; then
1951   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1952 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1953    { (exit 1); exit 1; }; }
1954 fi
1955
1956 # These three variables are undocumented and unsupported,
1957 # and are intended to be withdrawn in a future Autoconf release.
1958 # They can cause serious problems if a builder's source tree is in a directory
1959 # whose full name contains unusual characters.
1960 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1961 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1962 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1963
1964
1965 # Find a good install program.  We prefer a C program (faster),
1966 # so one script is as good as another.  But avoid the broken or
1967 # incompatible versions:
1968 # SysV /etc/install, /usr/sbin/install
1969 # SunOS /usr/etc/install
1970 # IRIX /sbin/install
1971 # AIX /bin/install
1972 # AmigaOS /C/install, which installs bootblocks on floppy discs
1973 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1974 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1975 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1976 # OS/2's system install, which has a completely different semantic
1977 # ./install, which can be erroneously created by make from ./install.sh.
1978 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1979 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1980 if test -z "$INSTALL"; then
1981 if test "${ac_cv_path_install+set}" = set; then
1982   echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 for as_dir in $PATH
1986 do
1987   IFS=$as_save_IFS
1988   test -z "$as_dir" && as_dir=.
1989   # Account for people who put trailing slashes in PATH elements.
1990 case $as_dir/ in
1991   ./ | .// | /cC/* | \
1992   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1993   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1994   /usr/ucb/* ) ;;
1995   *)
1996     # OSF1 and SCO ODT 3.0 have their own names for install.
1997     # Don't use installbsd from OSF since it installs stuff as root
1998     # by default.
1999     for ac_prog in ginstall scoinst install; do
2000       for ac_exec_ext in '' $ac_executable_extensions; do
2001         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2002           if test $ac_prog = install &&
2003             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2004             # AIX install.  It has an incompatible calling convention.
2005             :
2006           elif test $ac_prog = install &&
2007             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2008             # program-specific install script used by HP pwplus--don't use.
2009             :
2010           else
2011             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2012             break 3
2013           fi
2014         fi
2015       done
2016     done
2017     ;;
2018 esac
2019 done
2020 IFS=$as_save_IFS
2021
2022
2023 fi
2024   if test "${ac_cv_path_install+set}" = set; then
2025     INSTALL=$ac_cv_path_install
2026   else
2027     # As a last resort, use the slow shell script.  Don't cache a
2028     # value for INSTALL within a source directory, because that will
2029     # break other packages using the cache if that directory is
2030     # removed, or if the value is a relative name.
2031     INSTALL=$ac_install_sh
2032   fi
2033 fi
2034 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2035 echo "${ECHO_T}$INSTALL" >&6; }
2036
2037 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2038 # It thinks the first close brace ends the variable substitution.
2039 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2040
2041 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2042
2043 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2044
2045 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2046 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2047 # Just in case
2048 sleep 1
2049 echo timestamp > conftest.file
2050 # Do `set' in a subshell so we don't clobber the current shell's
2051 # arguments.  Must try -L first in case configure is actually a
2052 # symlink; some systems play weird games with the mod time of symlinks
2053 # (eg FreeBSD returns the mod time of the symlink's containing
2054 # directory).
2055 if (
2056    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2057    if test "$*" = "X"; then
2058       # -L didn't work.
2059       set X `ls -t $srcdir/configure conftest.file`
2060    fi
2061    rm -f conftest.file
2062    if test "$*" != "X $srcdir/configure conftest.file" \
2063       && test "$*" != "X conftest.file $srcdir/configure"; then
2064
2065       # If neither matched, then we have a broken ls.  This can happen
2066       # if, for instance, CONFIG_SHELL is bash and it inherits a
2067       # broken ls alias from the environment.  This has actually
2068       # happened.  Such a system could not be considered "sane".
2069       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2070 alias in your environment" >&5
2071 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2072 alias in your environment" >&2;}
2073    { (exit 1); exit 1; }; }
2074    fi
2075
2076    test "$2" = conftest.file
2077    )
2078 then
2079    # Ok.
2080    :
2081 else
2082    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2083 Check your system clock" >&5
2084 echo "$as_me: error: newly created file is older than distributed files!
2085 Check your system clock" >&2;}
2086    { (exit 1); exit 1; }; }
2087 fi
2088 { echo "$as_me:$LINENO: result: yes" >&5
2089 echo "${ECHO_T}yes" >&6; }
2090 test "$program_prefix" != NONE &&
2091   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2092 # Use a double $ so make ignores it.
2093 test "$program_suffix" != NONE &&
2094   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2095 # Double any \ or $.  echo might interpret backslashes.
2096 # By default was `s,x,x', remove it if useless.
2097 cat <<\_ACEOF >conftest.sed
2098 s/[\\$]/&&/g;s/;s,x,x,$//
2099 _ACEOF
2100 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2101 rm -f conftest.sed
2102
2103 # expand $ac_aux_dir to an absolute path
2104 am_aux_dir=`cd $ac_aux_dir && pwd`
2105
2106 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2107 # Use eval to expand $SHELL
2108 if eval "$MISSING --run true"; then
2109   am_missing_run="$MISSING --run "
2110 else
2111   am_missing_run=
2112   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2113 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2114 fi
2115
2116 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2117 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2118 if test -z "$MKDIR_P"; then
2119   if test "${ac_cv_path_mkdir+set}" = set; then
2120   echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2124 do
2125   IFS=$as_save_IFS
2126   test -z "$as_dir" && as_dir=.
2127   for ac_prog in mkdir gmkdir; do
2128          for ac_exec_ext in '' $ac_executable_extensions; do
2129            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2130            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2131              'mkdir (GNU coreutils) '* | \
2132              'mkdir (coreutils) '* | \
2133              'mkdir (fileutils) '4.1*)
2134                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2135                break 3;;
2136            esac
2137          done
2138        done
2139 done
2140 IFS=$as_save_IFS
2141
2142 fi
2143
2144   if test "${ac_cv_path_mkdir+set}" = set; then
2145     MKDIR_P="$ac_cv_path_mkdir -p"
2146   else
2147     # As a last resort, use the slow shell script.  Don't cache a
2148     # value for MKDIR_P within a source directory, because that will
2149     # break other packages using the cache if that directory is
2150     # removed, or if the value is a relative name.
2151     test -d ./--version && rmdir ./--version
2152     MKDIR_P="$ac_install_sh -d"
2153   fi
2154 fi
2155 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2156 echo "${ECHO_T}$MKDIR_P" >&6; }
2157
2158 mkdir_p="$MKDIR_P"
2159 case $mkdir_p in
2160   [\\/$]* | ?:[\\/]*) ;;
2161   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2162 esac
2163
2164 for ac_prog in gawk mawk nawk awk
2165 do
2166   # Extract the first word of "$ac_prog", so it can be a program name with args.
2167 set dummy $ac_prog; ac_word=$2
2168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2170 if test "${ac_cv_prog_AWK+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   if test -n "$AWK"; then
2174   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2175 else
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH
2178 do
2179   IFS=$as_save_IFS
2180   test -z "$as_dir" && as_dir=.
2181   for ac_exec_ext in '' $ac_executable_extensions; do
2182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2183     ac_cv_prog_AWK="$ac_prog"
2184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185     break 2
2186   fi
2187 done
2188 done
2189 IFS=$as_save_IFS
2190
2191 fi
2192 fi
2193 AWK=$ac_cv_prog_AWK
2194 if test -n "$AWK"; then
2195   { echo "$as_me:$LINENO: result: $AWK" >&5
2196 echo "${ECHO_T}$AWK" >&6; }
2197 else
2198   { echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6; }
2200 fi
2201
2202
2203   test -n "$AWK" && break
2204 done
2205
2206 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2207 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2208 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2209 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2210   echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212   cat >conftest.make <<\_ACEOF
2213 SHELL = /bin/sh
2214 all:
2215         @echo '@@@%%%=$(MAKE)=@@@%%%'
2216 _ACEOF
2217 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2218 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2219   *@@@%%%=?*=@@@%%%*)
2220     eval ac_cv_prog_make_${ac_make}_set=yes;;
2221   *)
2222     eval ac_cv_prog_make_${ac_make}_set=no;;
2223 esac
2224 rm -f conftest.make
2225 fi
2226 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2227   { echo "$as_me:$LINENO: result: yes" >&5
2228 echo "${ECHO_T}yes" >&6; }
2229   SET_MAKE=
2230 else
2231   { echo "$as_me:$LINENO: result: no" >&5
2232 echo "${ECHO_T}no" >&6; }
2233   SET_MAKE="MAKE=${MAKE-make}"
2234 fi
2235
2236 rm -rf .tst 2>/dev/null
2237 mkdir .tst 2>/dev/null
2238 if test -d .tst; then
2239   am__leading_dot=.
2240 else
2241   am__leading_dot=_
2242 fi
2243 rmdir .tst 2>/dev/null
2244
2245 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2246   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2247   # is not polluted with repeated "-I."
2248   am__isrc=' -I$(srcdir)'
2249   # test to see if srcdir already configured
2250   if test -f $srcdir/config.status; then
2251     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2252 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2253    { (exit 1); exit 1; }; }
2254   fi
2255 fi
2256
2257 # test whether we have cygpath
2258 if test -z "$CYGPATH_W"; then
2259   if (cygpath --version) >/dev/null 2>/dev/null; then
2260     CYGPATH_W='cygpath -w'
2261   else
2262     CYGPATH_W=echo
2263   fi
2264 fi
2265
2266
2267 # Define the identity of the package.
2268  PACKAGE='libmm-common'
2269  VERSION='0.0.1'
2270
2271
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE "$PACKAGE"
2274 _ACEOF
2275
2276
2277 cat >>confdefs.h <<_ACEOF
2278 #define VERSION "$VERSION"
2279 _ACEOF
2280
2281 # Some tools Automake needs.
2282
2283 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2284
2285
2286 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2287
2288
2289 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2290
2291
2292 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2293
2294
2295 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2296
2297 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2298
2299 # Installed binaries are usually stripped using `strip' when the user
2300 # run `make install-strip'.  However `strip' might not be the right
2301 # tool to use in cross-compilation environments, therefore Automake
2302 # will honor the `STRIP' environment variable to overrule this program.
2303 if test "$cross_compiling" != no; then
2304   if test -n "$ac_tool_prefix"; then
2305   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2306 set dummy ${ac_tool_prefix}strip; ac_word=$2
2307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2309 if test "${ac_cv_prog_STRIP+set}" = set; then
2310   echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312   if test -n "$STRIP"; then
2313   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2314 else
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 for as_dir in $PATH
2317 do
2318   IFS=$as_save_IFS
2319   test -z "$as_dir" && as_dir=.
2320   for ac_exec_ext in '' $ac_executable_extensions; do
2321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2322     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324     break 2
2325   fi
2326 done
2327 done
2328 IFS=$as_save_IFS
2329
2330 fi
2331 fi
2332 STRIP=$ac_cv_prog_STRIP
2333 if test -n "$STRIP"; then
2334   { echo "$as_me:$LINENO: result: $STRIP" >&5
2335 echo "${ECHO_T}$STRIP" >&6; }
2336 else
2337   { echo "$as_me:$LINENO: result: no" >&5
2338 echo "${ECHO_T}no" >&6; }
2339 fi
2340
2341
2342 fi
2343 if test -z "$ac_cv_prog_STRIP"; then
2344   ac_ct_STRIP=$STRIP
2345   # Extract the first word of "strip", so it can be a program name with args.
2346 set dummy strip; ac_word=$2
2347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2350   echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352   if test -n "$ac_ct_STRIP"; then
2353   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358   IFS=$as_save_IFS
2359   test -z "$as_dir" && as_dir=.
2360   for ac_exec_ext in '' $ac_executable_extensions; do
2361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2362     ac_cv_prog_ac_ct_STRIP="strip"
2363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364     break 2
2365   fi
2366 done
2367 done
2368 IFS=$as_save_IFS
2369
2370 fi
2371 fi
2372 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2373 if test -n "$ac_ct_STRIP"; then
2374   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2375 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2376 else
2377   { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2379 fi
2380
2381   if test "x$ac_ct_STRIP" = x; then
2382     STRIP=":"
2383   else
2384     case $cross_compiling:$ac_tool_warned in
2385 yes:)
2386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2387 whose name does not start with the host triplet.  If you think this
2388 configuration is useful to you, please write to autoconf@gnu.org." >&5
2389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2390 whose name does not start with the host triplet.  If you think this
2391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2392 ac_tool_warned=yes ;;
2393 esac
2394     STRIP=$ac_ct_STRIP
2395   fi
2396 else
2397   STRIP="$ac_cv_prog_STRIP"
2398 fi
2399
2400 fi
2401 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2402
2403 # We need awk for the "check" target.  The system "awk" is bad on
2404 # some platforms.
2405 # Always define AMTAR for backward compatibility.
2406
2407 AMTAR=${AMTAR-"${am_missing_run}tar"}
2408
2409 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2410
2411
2412
2413
2414
2415
2416 # Checks for programs.
2417 ac_ext=c
2418 ac_cpp='$CPP $CPPFLAGS'
2419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422 if test -n "$ac_tool_prefix"; then
2423   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2424 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2427 if test "${ac_cv_prog_CC+set}" = set; then
2428   echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430   if test -n "$CC"; then
2431   ac_cv_prog_CC="$CC" # Let the user override the test.
2432 else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2435 do
2436   IFS=$as_save_IFS
2437   test -z "$as_dir" && as_dir=.
2438   for ac_exec_ext in '' $ac_executable_extensions; do
2439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2440     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442     break 2
2443   fi
2444 done
2445 done
2446 IFS=$as_save_IFS
2447
2448 fi
2449 fi
2450 CC=$ac_cv_prog_CC
2451 if test -n "$CC"; then
2452   { echo "$as_me:$LINENO: result: $CC" >&5
2453 echo "${ECHO_T}$CC" >&6; }
2454 else
2455   { echo "$as_me:$LINENO: result: no" >&5
2456 echo "${ECHO_T}no" >&6; }
2457 fi
2458
2459
2460 fi
2461 if test -z "$ac_cv_prog_CC"; then
2462   ac_ct_CC=$CC
2463   # Extract the first word of "gcc", so it can be a program name with args.
2464 set dummy gcc; ac_word=$2
2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2468   echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470   if test -n "$ac_ct_CC"; then
2471   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476   IFS=$as_save_IFS
2477   test -z "$as_dir" && as_dir=.
2478   for ac_exec_ext in '' $ac_executable_extensions; do
2479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480     ac_cv_prog_ac_ct_CC="gcc"
2481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482     break 2
2483   fi
2484 done
2485 done
2486 IFS=$as_save_IFS
2487
2488 fi
2489 fi
2490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491 if test -n "$ac_ct_CC"; then
2492   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2493 echo "${ECHO_T}$ac_ct_CC" >&6; }
2494 else
2495   { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2497 fi
2498
2499   if test "x$ac_ct_CC" = x; then
2500     CC=""
2501   else
2502     case $cross_compiling:$ac_tool_warned in
2503 yes:)
2504 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2505 whose name does not start with the host triplet.  If you think this
2506 configuration is useful to you, please write to autoconf@gnu.org." >&5
2507 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2508 whose name does not start with the host triplet.  If you think this
2509 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2510 ac_tool_warned=yes ;;
2511 esac
2512     CC=$ac_ct_CC
2513   fi
2514 else
2515   CC="$ac_cv_prog_CC"
2516 fi
2517
2518 if test -z "$CC"; then
2519           if test -n "$ac_tool_prefix"; then
2520     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2521 set dummy ${ac_tool_prefix}cc; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_CC+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   if test -n "$CC"; then
2528   ac_cv_prog_CC="$CC" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535   for ac_exec_ext in '' $ac_executable_extensions; do
2536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537     ac_cv_prog_CC="${ac_tool_prefix}cc"
2538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540   fi
2541 done
2542 done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 CC=$ac_cv_prog_CC
2548 if test -n "$CC"; then
2549   { echo "$as_me:$LINENO: result: $CC" >&5
2550 echo "${ECHO_T}$CC" >&6; }
2551 else
2552   { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2554 fi
2555
2556
2557   fi
2558 fi
2559 if test -z "$CC"; then
2560   # Extract the first word of "cc", so it can be a program name with args.
2561 set dummy cc; ac_word=$2
2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_CC+set}" = set; then
2565   echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567   if test -n "$CC"; then
2568   ac_cv_prog_CC="$CC" # Let the user override the test.
2569 else
2570   ac_prog_rejected=no
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574   IFS=$as_save_IFS
2575   test -z "$as_dir" && as_dir=.
2576   for ac_exec_ext in '' $ac_executable_extensions; do
2577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2579        ac_prog_rejected=yes
2580        continue
2581      fi
2582     ac_cv_prog_CC="cc"
2583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584     break 2
2585   fi
2586 done
2587 done
2588 IFS=$as_save_IFS
2589
2590 if test $ac_prog_rejected = yes; then
2591   # We found a bogon in the path, so make sure we never use it.
2592   set dummy $ac_cv_prog_CC
2593   shift
2594   if test $# != 0; then
2595     # We chose a different compiler from the bogus one.
2596     # However, it has the same basename, so the bogon will be chosen
2597     # first if we set CC to just the basename; use the full file name.
2598     shift
2599     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2600   fi
2601 fi
2602 fi
2603 fi
2604 CC=$ac_cv_prog_CC
2605 if test -n "$CC"; then
2606   { echo "$as_me:$LINENO: result: $CC" >&5
2607 echo "${ECHO_T}$CC" >&6; }
2608 else
2609   { echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6; }
2611 fi
2612
2613
2614 fi
2615 if test -z "$CC"; then
2616   if test -n "$ac_tool_prefix"; then
2617   for ac_prog in cl.exe
2618   do
2619     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2623 if test "${ac_cv_prog_CC+set}" = set; then
2624   echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626   if test -n "$CC"; then
2627   ac_cv_prog_CC="$CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632   IFS=$as_save_IFS
2633   test -z "$as_dir" && as_dir=.
2634   for ac_exec_ext in '' $ac_executable_extensions; do
2635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638     break 2
2639   fi
2640 done
2641 done
2642 IFS=$as_save_IFS
2643
2644 fi
2645 fi
2646 CC=$ac_cv_prog_CC
2647 if test -n "$CC"; then
2648   { echo "$as_me:$LINENO: result: $CC" >&5
2649 echo "${ECHO_T}$CC" >&6; }
2650 else
2651   { echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6; }
2653 fi
2654
2655
2656     test -n "$CC" && break
2657   done
2658 fi
2659 if test -z "$CC"; then
2660   ac_ct_CC=$CC
2661   for ac_prog in cl.exe
2662 do
2663   # Extract the first word of "$ac_prog", so it can be a program name with args.
2664 set dummy $ac_prog; ac_word=$2
2665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2668   echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670   if test -n "$ac_ct_CC"; then
2671   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676   IFS=$as_save_IFS
2677   test -z "$as_dir" && as_dir=.
2678   for ac_exec_ext in '' $ac_executable_extensions; do
2679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680     ac_cv_prog_ac_ct_CC="$ac_prog"
2681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682     break 2
2683   fi
2684 done
2685 done
2686 IFS=$as_save_IFS
2687
2688 fi
2689 fi
2690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2691 if test -n "$ac_ct_CC"; then
2692   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2693 echo "${ECHO_T}$ac_ct_CC" >&6; }
2694 else
2695   { echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6; }
2697 fi
2698
2699
2700   test -n "$ac_ct_CC" && break
2701 done
2702
2703   if test "x$ac_ct_CC" = x; then
2704     CC=""
2705   else
2706     case $cross_compiling:$ac_tool_warned in
2707 yes:)
2708 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2709 whose name does not start with the host triplet.  If you think this
2710 configuration is useful to you, please write to autoconf@gnu.org." >&5
2711 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2712 whose name does not start with the host triplet.  If you think this
2713 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2714 ac_tool_warned=yes ;;
2715 esac
2716     CC=$ac_ct_CC
2717   fi
2718 fi
2719
2720 fi
2721
2722
2723 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2724 See \`config.log' for more details." >&5
2725 echo "$as_me: error: no acceptable C compiler found in \$PATH
2726 See \`config.log' for more details." >&2;}
2727    { (exit 1); exit 1; }; }
2728
2729 # Provide some information about the compiler.
2730 echo "$as_me:$LINENO: checking for C compiler version" >&5
2731 ac_compiler=`set X $ac_compile; echo $2`
2732 { (ac_try="$ac_compiler --version >&5"
2733 case "(($ac_try" in
2734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735   *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738   (eval "$ac_compiler --version >&5") 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }
2742 { (ac_try="$ac_compiler -v >&5"
2743 case "(($ac_try" in
2744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745   *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748   (eval "$ac_compiler -v >&5") 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }
2752 { (ac_try="$ac_compiler -V >&5"
2753 case "(($ac_try" in
2754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755   *) ac_try_echo=$ac_try;;
2756 esac
2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2758   (eval "$ac_compiler -V >&5") 2>&5
2759   ac_status=$?
2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); }
2762
2763 cat >conftest.$ac_ext <<_ACEOF
2764 /* confdefs.h.  */
2765 _ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h.  */
2769
2770 int
2771 main ()
2772 {
2773
2774   ;
2775   return 0;
2776 }
2777 _ACEOF
2778 ac_clean_files_save=$ac_clean_files
2779 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2780 # Try to create an executable without -o first, disregard a.out.
2781 # It will help us diagnose broken compilers, and finding out an intuition
2782 # of exeext.
2783 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2784 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2785 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2786 #
2787 # List of possible output files, starting from the most likely.
2788 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2789 # only as a last resort.  b.out is created by i960 compilers.
2790 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2791 #
2792 # The IRIX 6 linker writes into existing files which may not be
2793 # executable, retaining their permissions.  Remove them first so a
2794 # subsequent execution test works.
2795 ac_rmfiles=
2796 for ac_file in $ac_files
2797 do
2798   case $ac_file in
2799     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2800     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2801   esac
2802 done
2803 rm -f $ac_rmfiles
2804
2805 if { (ac_try="$ac_link_default"
2806 case "(($ac_try" in
2807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808   *) ac_try_echo=$ac_try;;
2809 esac
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811   (eval "$ac_link_default") 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); }; then
2815   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2816 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2817 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2818 # so that the user can short-circuit this test for compilers unknown to
2819 # Autoconf.
2820 for ac_file in $ac_files ''
2821 do
2822   test -f "$ac_file" || continue
2823   case $ac_file in
2824     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2825         ;;
2826     [ab].out )
2827         # We found the default executable, but exeext='' is most
2828         # certainly right.
2829         break;;
2830     *.* )
2831         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2832         then :; else
2833            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2834         fi
2835         # We set ac_cv_exeext here because the later test for it is not
2836         # safe: cross compilers may not add the suffix if given an `-o'
2837         # argument, so we may need to know it at that point already.
2838         # Even if this section looks crufty: it has the advantage of
2839         # actually working.
2840         break;;
2841     * )
2842         break;;
2843   esac
2844 done
2845 test "$ac_cv_exeext" = no && ac_cv_exeext=
2846
2847 else
2848   ac_file=''
2849 fi
2850
2851 { echo "$as_me:$LINENO: result: $ac_file" >&5
2852 echo "${ECHO_T}$ac_file" >&6; }
2853 if test -z "$ac_file"; then
2854   echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2856
2857 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: C compiler cannot create executables
2860 See \`config.log' for more details." >&2;}
2861    { (exit 77); exit 77; }; }
2862 fi
2863
2864 ac_exeext=$ac_cv_exeext
2865
2866 # Check that the compiler produces executables we can run.  If not, either
2867 # the compiler is broken, or we cross compile.
2868 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2869 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2870 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2871 # If not cross compiling, check that we can run a simple program.
2872 if test "$cross_compiling" != yes; then
2873   if { ac_try='./$ac_file'
2874   { (case "(($ac_try" in
2875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876   *) ac_try_echo=$ac_try;;
2877 esac
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879   (eval "$ac_try") 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }; }; then
2883     cross_compiling=no
2884   else
2885     if test "$cross_compiling" = maybe; then
2886         cross_compiling=yes
2887     else
2888         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2889 If you meant to cross compile, use \`--host'.
2890 See \`config.log' for more details." >&5
2891 echo "$as_me: error: cannot run C compiled programs.
2892 If you meant to cross compile, use \`--host'.
2893 See \`config.log' for more details." >&2;}
2894    { (exit 1); exit 1; }; }
2895     fi
2896   fi
2897 fi
2898 { echo "$as_me:$LINENO: result: yes" >&5
2899 echo "${ECHO_T}yes" >&6; }
2900
2901 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2902 ac_clean_files=$ac_clean_files_save
2903 # Check that the compiler produces executables we can run.  If not, either
2904 # the compiler is broken, or we cross compile.
2905 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2906 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2907 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2908 echo "${ECHO_T}$cross_compiling" >&6; }
2909
2910 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2911 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2912 if { (ac_try="$ac_link"
2913 case "(($ac_try" in
2914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915   *) ac_try_echo=$ac_try;;
2916 esac
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918   (eval "$ac_link") 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); }; then
2922   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2923 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2924 # work properly (i.e., refer to `conftest.exe'), while it won't with
2925 # `rm'.
2926 for ac_file in conftest.exe conftest conftest.*; do
2927   test -f "$ac_file" || continue
2928   case $ac_file in
2929     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2930     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2931           break;;
2932     * ) break;;
2933   esac
2934 done
2935 else
2936   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2937 See \`config.log' for more details." >&5
2938 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2939 See \`config.log' for more details." >&2;}
2940    { (exit 1); exit 1; }; }
2941 fi
2942
2943 rm -f conftest$ac_cv_exeext
2944 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2945 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2946
2947 rm -f conftest.$ac_ext
2948 EXEEXT=$ac_cv_exeext
2949 ac_exeext=$EXEEXT
2950 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2951 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2952 if test "${ac_cv_objext+set}" = set; then
2953   echo $ECHO_N "(cached) $ECHO_C" >&6
2954 else
2955   cat >conftest.$ac_ext <<_ACEOF
2956 /* confdefs.h.  */
2957 _ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h.  */
2961
2962 int
2963 main ()
2964 {
2965
2966   ;
2967   return 0;
2968 }
2969 _ACEOF
2970 rm -f conftest.o conftest.obj
2971 if { (ac_try="$ac_compile"
2972 case "(($ac_try" in
2973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974   *) ac_try_echo=$ac_try;;
2975 esac
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977   (eval "$ac_compile") 2>&5
2978   ac_status=$?
2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980   (exit $ac_status); }; then
2981   for ac_file in conftest.o conftest.obj conftest.*; do
2982   test -f "$ac_file" || continue;
2983   case $ac_file in
2984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2985     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2986        break;;
2987   esac
2988 done
2989 else
2990   echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2992
2993 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2994 See \`config.log' for more details." >&5
2995 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2996 See \`config.log' for more details." >&2;}
2997    { (exit 1); exit 1; }; }
2998 fi
2999
3000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3001 fi
3002 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3003 echo "${ECHO_T}$ac_cv_objext" >&6; }
3004 OBJEXT=$ac_cv_objext
3005 ac_objext=$OBJEXT
3006 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3007 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3008 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3009   echo $ECHO_N "(cached) $ECHO_C" >&6
3010 else
3011   cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h.  */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h.  */
3017
3018 int
3019 main ()
3020 {
3021 #ifndef __GNUC__
3022        choke me
3023 #endif
3024
3025   ;
3026   return 0;
3027 }
3028 _ACEOF
3029 rm -f conftest.$ac_objext
3030 if { (ac_try="$ac_compile"
3031 case "(($ac_try" in
3032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033   *) ac_try_echo=$ac_try;;
3034 esac
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036   (eval "$ac_compile") 2>conftest.er1
3037   ac_status=$?
3038   grep -v '^ *+' conftest.er1 >conftest.err
3039   rm -f conftest.er1
3040   cat conftest.err >&5
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); } && {
3043          test -z "$ac_c_werror_flag" ||
3044          test ! -s conftest.err
3045        } && test -s conftest.$ac_objext; then
3046   ac_compiler_gnu=yes
3047 else
3048   echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3050
3051         ac_compiler_gnu=no
3052 fi
3053
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3056
3057 fi
3058 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3059 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3060 GCC=`test $ac_compiler_gnu = yes && echo yes`
3061 ac_test_CFLAGS=${CFLAGS+set}
3062 ac_save_CFLAGS=$CFLAGS
3063 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3065 if test "${ac_cv_prog_cc_g+set}" = set; then
3066   echo $ECHO_N "(cached) $ECHO_C" >&6
3067 else
3068   ac_save_c_werror_flag=$ac_c_werror_flag
3069    ac_c_werror_flag=yes
3070    ac_cv_prog_cc_g=no
3071    CFLAGS="-g"
3072    cat >conftest.$ac_ext <<_ACEOF
3073 /* confdefs.h.  */
3074 _ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h.  */
3078
3079 int
3080 main ()
3081 {
3082
3083   ;
3084   return 0;
3085 }
3086 _ACEOF
3087 rm -f conftest.$ac_objext
3088 if { (ac_try="$ac_compile"
3089 case "(($ac_try" in
3090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091   *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094   (eval "$ac_compile") 2>conftest.er1
3095   ac_status=$?
3096   grep -v '^ *+' conftest.er1 >conftest.err
3097   rm -f conftest.er1
3098   cat conftest.err >&5
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); } && {
3101          test -z "$ac_c_werror_flag" ||
3102          test ! -s conftest.err
3103        } && test -s conftest.$ac_objext; then
3104   ac_cv_prog_cc_g=yes
3105 else
3106   echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109         CFLAGS=""
3110       cat >conftest.$ac_ext <<_ACEOF
3111 /* confdefs.h.  */
3112 _ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h.  */
3116
3117 int
3118 main ()
3119 {
3120
3121   ;
3122   return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132   (eval "$ac_compile") 2>conftest.er1
3133   ac_status=$?
3134   grep -v '^ *+' conftest.er1 >conftest.err
3135   rm -f conftest.er1
3136   cat conftest.err >&5
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); } && {
3139          test -z "$ac_c_werror_flag" ||
3140          test ! -s conftest.err
3141        } && test -s conftest.$ac_objext; then
3142   :
3143 else
3144   echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147         ac_c_werror_flag=$ac_save_c_werror_flag
3148          CFLAGS="-g"
3149          cat >conftest.$ac_ext <<_ACEOF
3150 /* confdefs.h.  */
3151 _ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h.  */
3155
3156 int
3157 main ()
3158 {
3159
3160   ;
3161   return 0;
3162 }
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3166 case "(($ac_try" in
3167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168   *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171   (eval "$ac_compile") 2>conftest.er1
3172   ac_status=$?
3173   grep -v '^ *+' conftest.er1 >conftest.err
3174   rm -f conftest.er1
3175   cat conftest.err >&5
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); } && {
3178          test -z "$ac_c_werror_flag" ||
3179          test ! -s conftest.err
3180        } && test -s conftest.$ac_objext; then
3181   ac_cv_prog_cc_g=yes
3182 else
3183   echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3185
3186
3187 fi
3188
3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 fi
3191
3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 fi
3194
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196    ac_c_werror_flag=$ac_save_c_werror_flag
3197 fi
3198 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3199 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3200 if test "$ac_test_CFLAGS" = set; then
3201   CFLAGS=$ac_save_CFLAGS
3202 elif test $ac_cv_prog_cc_g = yes; then
3203   if test "$GCC" = yes; then
3204     CFLAGS="-g -O2"
3205   else
3206     CFLAGS="-g"
3207   fi
3208 else
3209   if test "$GCC" = yes; then
3210     CFLAGS="-O2"
3211   else
3212     CFLAGS=
3213   fi
3214 fi
3215 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3216 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3217 if test "${ac_cv_prog_cc_c89+set}" = set; then
3218   echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220   ac_cv_prog_cc_c89=no
3221 ac_save_CC=$CC
3222 cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h.  */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h.  */
3228 #include <stdarg.h>
3229 #include <stdio.h>
3230 #include <sys/types.h>
3231 #include <sys/stat.h>
3232 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3233 struct buf { int x; };
3234 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3235 static char *e (p, i)
3236      char **p;
3237      int i;
3238 {
3239   return p[i];
3240 }
3241 static char *f (char * (*g) (char **, int), char **p, ...)
3242 {
3243   char *s;
3244   va_list v;
3245   va_start (v,p);
3246   s = g (p, va_arg (v,int));
3247   va_end (v);
3248   return s;
3249 }
3250
3251 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3252    function prototypes and stuff, but not '\xHH' hex character constants.
3253    These don't provoke an error unfortunately, instead are silently treated
3254    as 'x'.  The following induces an error, until -std is added to get
3255    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3256    array size at least.  It's necessary to write '\x00'==0 to get something
3257    that's true only with -std.  */
3258 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3259
3260 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3261    inside strings and character constants.  */
3262 #define FOO(x) 'x'
3263 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3264
3265 int test (int i, double x);
3266 struct s1 {int (*f) (int a);};
3267 struct s2 {int (*f) (double a);};
3268 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3269 int argc;
3270 char **argv;
3271 int
3272 main ()
3273 {
3274 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3275   ;
3276   return 0;
3277 }
3278 _ACEOF
3279 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3280         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3281 do
3282   CC="$ac_save_CC $ac_arg"
3283   rm -f conftest.$ac_objext
3284 if { (ac_try="$ac_compile"
3285 case "(($ac_try" in
3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287   *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290   (eval "$ac_compile") 2>conftest.er1
3291   ac_status=$?
3292   grep -v '^ *+' conftest.er1 >conftest.err
3293   rm -f conftest.er1
3294   cat conftest.err >&5
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); } && {
3297          test -z "$ac_c_werror_flag" ||
3298          test ! -s conftest.err
3299        } && test -s conftest.$ac_objext; then
3300   ac_cv_prog_cc_c89=$ac_arg
3301 else
3302   echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305
3306 fi
3307
3308 rm -f core conftest.err conftest.$ac_objext
3309   test "x$ac_cv_prog_cc_c89" != "xno" && break
3310 done
3311 rm -f conftest.$ac_ext
3312 CC=$ac_save_CC
3313
3314 fi
3315 # AC_CACHE_VAL
3316 case "x$ac_cv_prog_cc_c89" in
3317   x)
3318     { echo "$as_me:$LINENO: result: none needed" >&5
3319 echo "${ECHO_T}none needed" >&6; } ;;
3320   xno)
3321     { echo "$as_me:$LINENO: result: unsupported" >&5
3322 echo "${ECHO_T}unsupported" >&6; } ;;
3323   *)
3324     CC="$CC $ac_cv_prog_cc_c89"
3325     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3326 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3327 esac
3328
3329
3330 ac_ext=c
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335 DEPDIR="${am__leading_dot}deps"
3336
3337 ac_config_commands="$ac_config_commands depfiles"
3338
3339
3340 am_make=${MAKE-make}
3341 cat > confinc << 'END'
3342 am__doit:
3343         @echo done
3344 .PHONY: am__doit
3345 END
3346 # If we don't find an include directive, just comment out the code.
3347 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3348 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3349 am__include="#"
3350 am__quote=
3351 _am_result=none
3352 # First try GNU make style include.
3353 echo "include confinc" > confmf
3354 # We grep out `Entering directory' and `Leaving directory'
3355 # messages which can occur if `w' ends up in MAKEFLAGS.
3356 # In particular we don't look at `^make:' because GNU make might
3357 # be invoked under some other name (usually "gmake"), in which
3358 # case it prints its new name instead of `make'.
3359 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3360    am__include=include
3361    am__quote=
3362    _am_result=GNU
3363 fi
3364 # Now try BSD make style include.
3365 if test "$am__include" = "#"; then
3366    echo '.include "confinc"' > confmf
3367    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3368       am__include=.include
3369       am__quote="\""
3370       _am_result=BSD
3371    fi
3372 fi
3373
3374
3375 { echo "$as_me:$LINENO: result: $_am_result" >&5
3376 echo "${ECHO_T}$_am_result" >&6; }
3377 rm -f confinc confmf
3378
3379 # Check whether --enable-dependency-tracking was given.
3380 if test "${enable_dependency_tracking+set}" = set; then
3381   enableval=$enable_dependency_tracking;
3382 fi
3383
3384 if test "x$enable_dependency_tracking" != xno; then
3385   am_depcomp="$ac_aux_dir/depcomp"
3386   AMDEPBACKSLASH='\'
3387 fi
3388  if test "x$enable_dependency_tracking" != xno; then
3389   AMDEP_TRUE=
3390   AMDEP_FALSE='#'
3391 else
3392   AMDEP_TRUE='#'
3393   AMDEP_FALSE=
3394 fi
3395
3396
3397
3398 depcc="$CC"   am_compiler_list=
3399
3400 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3401 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3402 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3403   echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3406   # We make a subdir and do the tests there.  Otherwise we can end up
3407   # making bogus files that we don't know about and never remove.  For
3408   # instance it was reported that on HP-UX the gcc test will end up
3409   # making a dummy file named `D' -- because `-MD' means `put the output
3410   # in D'.
3411   mkdir conftest.dir
3412   # Copy depcomp to subdir because otherwise we won't find it if we're
3413   # using a relative directory.
3414   cp "$am_depcomp" conftest.dir
3415   cd conftest.dir
3416   # We will build objects and dependencies in a subdirectory because
3417   # it helps to detect inapplicable dependency modes.  For instance
3418   # both Tru64's cc and ICC support -MD to output dependencies as a
3419   # side effect of compilation, but ICC will put the dependencies in
3420   # the current directory while Tru64 will put them in the object
3421   # directory.
3422   mkdir sub
3423
3424   am_cv_CC_dependencies_compiler_type=none
3425   if test "$am_compiler_list" = ""; then
3426      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3427   fi
3428   for depmode in $am_compiler_list; do
3429     # Setup a source with many dependencies, because some compilers
3430     # like to wrap large dependency lists on column 80 (with \), and
3431     # we should not choose a depcomp mode which is confused by this.
3432     #
3433     # We need to recreate these files for each test, as the compiler may
3434     # overwrite some of them when testing with obscure command lines.
3435     # This happens at least with the AIX C compiler.
3436     : > sub/conftest.c
3437     for i in 1 2 3 4 5 6; do
3438       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3439       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3440       # Solaris 8's {/usr,}/bin/sh.
3441       touch sub/conftst$i.h
3442     done
3443     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3444
3445     case $depmode in
3446     nosideeffect)
3447       # after this tag, mechanisms are not by side-effect, so they'll
3448       # only be used when explicitly requested
3449       if test "x$enable_dependency_tracking" = xyes; then
3450         continue
3451       else
3452         break
3453       fi
3454       ;;
3455     none) break ;;
3456     esac
3457     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3458     # mode.  It turns out that the SunPro C++ compiler does not properly
3459     # handle `-M -o', and we need to detect this.
3460     if depmode=$depmode \
3461        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3462        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3463        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3464          >/dev/null 2>conftest.err &&
3465        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3466        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3467        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3468        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3469       # icc doesn't choke on unknown options, it will just issue warnings
3470       # or remarks (even with -Werror).  So we grep stderr for any message
3471       # that says an option was ignored or not supported.
3472       # When given -MP, icc 7.0 and 7.1 complain thusly:
3473       #   icc: Command line warning: ignoring option '-M'; no argument required
3474       # The diagnosis changed in icc 8.0:
3475       #   icc: Command line remark: option '-MP' not supported
3476       if (grep 'ignoring option' conftest.err ||
3477           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3478         am_cv_CC_dependencies_compiler_type=$depmode
3479         break
3480       fi
3481     fi
3482   done
3483
3484   cd ..
3485   rm -rf conftest.dir
3486 else
3487   am_cv_CC_dependencies_compiler_type=none
3488 fi
3489
3490 fi
3491 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3492 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3493 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3494
3495  if
3496   test "x$enable_dependency_tracking" != xno \
3497   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3498   am__fastdepCC_TRUE=
3499   am__fastdepCC_FALSE='#'
3500 else
3501   am__fastdepCC_TRUE='#'
3502   am__fastdepCC_FALSE=
3503 fi
3504
3505
3506 case `pwd` in
3507   *\ * | *\     *)
3508     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3509 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3510 esac
3511
3512
3513
3514 macro_version='2.2.4'
3515 macro_revision='1.2976'
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529 ltmain="$ac_aux_dir/ltmain.sh"
3530
3531 # Make sure we can run config.sub.
3532 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3533   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3534 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3535    { (exit 1); exit 1; }; }
3536
3537 { echo "$as_me:$LINENO: checking build system type" >&5
3538 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3539 if test "${ac_cv_build+set}" = set; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542   ac_build_alias=$build_alias
3543 test "x$ac_build_alias" = x &&
3544   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3545 test "x$ac_build_alias" = x &&
3546   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3547 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3548    { (exit 1); exit 1; }; }
3549 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3550   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3551 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3552    { (exit 1); exit 1; }; }
3553
3554 fi
3555 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3556 echo "${ECHO_T}$ac_cv_build" >&6; }
3557 case $ac_cv_build in
3558 *-*-*) ;;
3559 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3560 echo "$as_me: error: invalid value of canonical build" >&2;}
3561    { (exit 1); exit 1; }; };;
3562 esac
3563 build=$ac_cv_build
3564 ac_save_IFS=$IFS; IFS='-'
3565 set x $ac_cv_build
3566 shift
3567 build_cpu=$1
3568 build_vendor=$2
3569 shift; shift
3570 # Remember, the first character of IFS is used to create $*,
3571 # except with old shells:
3572 build_os=$*
3573 IFS=$ac_save_IFS
3574 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3575
3576
3577 { echo "$as_me:$LINENO: checking host system type" >&5
3578 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3579 if test "${ac_cv_host+set}" = set; then
3580   echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582   if test "x$host_alias" = x; then
3583   ac_cv_host=$ac_cv_build
3584 else
3585   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3586     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3587 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3588    { (exit 1); exit 1; }; }
3589 fi
3590
3591 fi
3592 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3593 echo "${ECHO_T}$ac_cv_host" >&6; }
3594 case $ac_cv_host in
3595 *-*-*) ;;
3596 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3597 echo "$as_me: error: invalid value of canonical host" >&2;}
3598    { (exit 1); exit 1; }; };;
3599 esac
3600 host=$ac_cv_host
3601 ac_save_IFS=$IFS; IFS='-'
3602 set x $ac_cv_host
3603 shift
3604 host_cpu=$1
3605 host_vendor=$2
3606 shift; shift
3607 # Remember, the first character of IFS is used to create $*,
3608 # except with old shells:
3609 host_os=$*
3610 IFS=$ac_save_IFS
3611 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3612
3613
3614 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3615 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3616 if test "${ac_cv_path_SED+set}" = set; then
3617   echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3620      for ac_i in 1 2 3 4 5 6 7; do
3621        ac_script="$ac_script$as_nl$ac_script"
3622      done
3623      echo "$ac_script" | sed 99q >conftest.sed
3624      $as_unset ac_script || ac_script=
3625      # Extract the first word of "sed gsed" to use in msg output
3626 if test -z "$SED"; then
3627 set dummy sed gsed; ac_prog_name=$2
3628 if test "${ac_cv_path_SED+set}" = set; then
3629   echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631   ac_path_SED_found=false
3632 # Loop through the user's path and test for each of PROGNAME-LIST
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3635 do
3636   IFS=$as_save_IFS
3637   test -z "$as_dir" && as_dir=.
3638   for ac_prog in sed gsed; do
3639   for ac_exec_ext in '' $ac_executable_extensions; do
3640     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3641     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3642     # Check for GNU ac_path_SED and select it if it is found.
3643   # Check for GNU $ac_path_SED
3644 case `"$ac_path_SED" --version 2>&1` in
3645 *GNU*)
3646   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3647 *)
3648   ac_count=0
3649   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3650   while :
3651   do
3652     cat "conftest.in" "conftest.in" >"conftest.tmp"
3653     mv "conftest.tmp" "conftest.in"
3654     cp "conftest.in" "conftest.nl"
3655     echo '' >> "conftest.nl"
3656     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3657     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3658     ac_count=`expr $ac_count + 1`
3659     if test $ac_count -gt ${ac_path_SED_max-0}; then
3660       # Best one so far, save it but keep looking for a better one
3661       ac_cv_path_SED="$ac_path_SED"
3662       ac_path_SED_max=$ac_count
3663     fi
3664     # 10*(2^10) chars as input seems more than enough
3665     test $ac_count -gt 10 && break
3666   done
3667   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3668 esac
3669
3670
3671     $ac_path_SED_found && break 3
3672   done
3673 done
3674
3675 done
3676 IFS=$as_save_IFS
3677
3678
3679 fi
3680
3681 SED="$ac_cv_path_SED"
3682 if test -z "$SED"; then
3683   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3684 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3685    { (exit 1); exit 1; }; }
3686 fi
3687
3688 else
3689   ac_cv_path_SED=$SED
3690 fi
3691
3692 fi
3693 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3694 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3695  SED="$ac_cv_path_SED"
3696   rm -f conftest.sed
3697
3698 test -z "$SED" && SED=sed
3699 Xsed="$SED -e 1s/^X//"
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3712 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3713 if test "${ac_cv_path_GREP+set}" = set; then
3714   echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716   # Extract the first word of "grep ggrep" to use in msg output
3717 if test -z "$GREP"; then
3718 set dummy grep ggrep; ac_prog_name=$2
3719 if test "${ac_cv_path_GREP+set}" = set; then
3720   echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722   ac_path_GREP_found=false
3723 # Loop through the user's path and test for each of PROGNAME-LIST
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3726 do
3727   IFS=$as_save_IFS
3728   test -z "$as_dir" && as_dir=.
3729   for ac_prog in grep ggrep; do
3730   for ac_exec_ext in '' $ac_executable_extensions; do
3731     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3732     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3733     # Check for GNU ac_path_GREP and select it if it is found.
3734   # Check for GNU $ac_path_GREP
3735 case `"$ac_path_GREP" --version 2>&1` in
3736 *GNU*)
3737   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3738 *)
3739   ac_count=0
3740   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3741   while :
3742   do
3743     cat "conftest.in" "conftest.in" >"conftest.tmp"
3744     mv "conftest.tmp" "conftest.in"
3745     cp "conftest.in" "conftest.nl"
3746     echo 'GREP' >> "conftest.nl"
3747     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3748     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3749     ac_count=`expr $ac_count + 1`
3750     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3751       # Best one so far, save it but keep looking for a better one
3752       ac_cv_path_GREP="$ac_path_GREP"
3753       ac_path_GREP_max=$ac_count
3754     fi
3755     # 10*(2^10) chars as input seems more than enough
3756     test $ac_count -gt 10 && break
3757   done
3758   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3759 esac
3760
3761
3762     $ac_path_GREP_found && break 3
3763   done
3764 done
3765
3766 done
3767 IFS=$as_save_IFS
3768
3769
3770 fi
3771
3772 GREP="$ac_cv_path_GREP"
3773 if test -z "$GREP"; then
3774   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3775 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3776    { (exit 1); exit 1; }; }
3777 fi
3778
3779 else
3780   ac_cv_path_GREP=$GREP
3781 fi
3782
3783
3784 fi
3785 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3786 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3787  GREP="$ac_cv_path_GREP"
3788
3789
3790 { echo "$as_me:$LINENO: checking for egrep" >&5
3791 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3792 if test "${ac_cv_path_EGREP+set}" = set; then
3793   echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3796    then ac_cv_path_EGREP="$GREP -E"
3797    else
3798      # Extract the first word of "egrep" to use in msg output
3799 if test -z "$EGREP"; then
3800 set dummy egrep; ac_prog_name=$2
3801 if test "${ac_cv_path_EGREP+set}" = set; then
3802   echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804   ac_path_EGREP_found=false
3805 # Loop through the user's path and test for each of PROGNAME-LIST
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3808 do
3809   IFS=$as_save_IFS
3810   test -z "$as_dir" && as_dir=.
3811   for ac_prog in egrep; do
3812   for ac_exec_ext in '' $ac_executable_extensions; do
3813     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3814     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3815     # Check for GNU ac_path_EGREP and select it if it is found.
3816   # Check for GNU $ac_path_EGREP
3817 case `"$ac_path_EGREP" --version 2>&1` in
3818 *GNU*)
3819   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3820 *)
3821   ac_count=0
3822   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3823   while :
3824   do
3825     cat "conftest.in" "conftest.in" >"conftest.tmp"
3826     mv "conftest.tmp" "conftest.in"
3827     cp "conftest.in" "conftest.nl"
3828     echo 'EGREP' >> "conftest.nl"
3829     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3830     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3831     ac_count=`expr $ac_count + 1`
3832     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3833       # Best one so far, save it but keep looking for a better one
3834       ac_cv_path_EGREP="$ac_path_EGREP"
3835       ac_path_EGREP_max=$ac_count
3836     fi
3837     # 10*(2^10) chars as input seems more than enough
3838     test $ac_count -gt 10 && break
3839   done
3840   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3841 esac
3842
3843
3844     $ac_path_EGREP_found && break 3
3845   done
3846 done
3847
3848 done
3849 IFS=$as_save_IFS
3850
3851
3852 fi
3853
3854 EGREP="$ac_cv_path_EGREP"
3855 if test -z "$EGREP"; then
3856   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3857 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3858    { (exit 1); exit 1; }; }
3859 fi
3860
3861 else
3862   ac_cv_path_EGREP=$EGREP
3863 fi
3864
3865
3866    fi
3867 fi
3868 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3869 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3870  EGREP="$ac_cv_path_EGREP"
3871
3872
3873 { echo "$as_me:$LINENO: checking for fgrep" >&5
3874 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3875 if test "${ac_cv_path_FGREP+set}" = set; then
3876   echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3879    then ac_cv_path_FGREP="$GREP -F"
3880    else
3881      # Extract the first word of "fgrep" to use in msg output
3882 if test -z "$FGREP"; then
3883 set dummy fgrep; ac_prog_name=$2
3884 if test "${ac_cv_path_FGREP+set}" = set; then
3885   echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887   ac_path_FGREP_found=false
3888 # Loop through the user's path and test for each of PROGNAME-LIST
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3891 do
3892   IFS=$as_save_IFS
3893   test -z "$as_dir" && as_dir=.
3894   for ac_prog in fgrep; do
3895   for ac_exec_ext in '' $ac_executable_extensions; do
3896     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3897     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3898     # Check for GNU ac_path_FGREP and select it if it is found.
3899   # Check for GNU $ac_path_FGREP
3900 case `"$ac_path_FGREP" --version 2>&1` in
3901 *GNU*)
3902   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3903 *)
3904   ac_count=0
3905   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3906   while :
3907   do
3908     cat "conftest.in" "conftest.in" >"conftest.tmp"
3909     mv "conftest.tmp" "conftest.in"
3910     cp "conftest.in" "conftest.nl"
3911     echo 'FGREP' >> "conftest.nl"
3912     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3913     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3914     ac_count=`expr $ac_count + 1`
3915     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3916       # Best one so far, save it but keep looking for a better one
3917       ac_cv_path_FGREP="$ac_path_FGREP"
3918       ac_path_FGREP_max=$ac_count
3919     fi
3920     # 10*(2^10) chars as input seems more than enough
3921     test $ac_count -gt 10 && break
3922   done
3923   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3924 esac
3925
3926
3927     $ac_path_FGREP_found && break 3
3928   done
3929 done
3930
3931 done
3932 IFS=$as_save_IFS
3933
3934
3935 fi
3936
3937 FGREP="$ac_cv_path_FGREP"
3938 if test -z "$FGREP"; then
3939   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3940 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3941    { (exit 1); exit 1; }; }
3942 fi
3943
3944 else
3945   ac_cv_path_FGREP=$FGREP
3946 fi
3947
3948
3949    fi
3950 fi
3951 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3952 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
3953  FGREP="$ac_cv_path_FGREP"
3954
3955
3956 test -z "$GREP" && GREP=grep
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976 # Check whether --with-gnu-ld was given.
3977 if test "${with_gnu_ld+set}" = set; then
3978   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3979 else
3980   with_gnu_ld=no
3981 fi
3982
3983 ac_prog=ld
3984 if test "$GCC" = yes; then
3985   # Check if gcc -print-prog-name=ld gives a path.
3986   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3987 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3988   case $host in
3989   *-*-mingw*)
3990     # gcc leaves a trailing carriage return which upsets mingw
3991     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3992   *)
3993     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3994   esac
3995   case $ac_prog in
3996     # Accept absolute paths.
3997     [\\/]* | ?:[\\/]*)
3998       re_direlt='/[^/][^/]*/\.\./'
3999       # Canonicalize the pathname of ld
4000       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4001       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4002         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4003       done
4004       test -z "$LD" && LD="$ac_prog"
4005       ;;
4006   "")
4007     # If it fails, then pretend we aren't using GCC.
4008     ac_prog=ld
4009     ;;
4010   *)
4011     # If it is relative, then search for the first ld in PATH.
4012     with_gnu_ld=unknown
4013     ;;
4014   esac
4015 elif test "$with_gnu_ld" = yes; then
4016   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4017 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4018 else
4019   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4020 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4021 fi
4022 if test "${lt_cv_path_LD+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   if test -z "$LD"; then
4026   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4027   for ac_dir in $PATH; do
4028     IFS="$lt_save_ifs"
4029     test -z "$ac_dir" && ac_dir=.
4030     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4031       lt_cv_path_LD="$ac_dir/$ac_prog"
4032       # Check to see if the program is GNU ld.  I'd rather use --version,
4033       # but apparently some variants of GNU ld only accept -v.
4034       # Break only if it was the GNU/non-GNU ld that we prefer.
4035       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4036       *GNU* | *'with BFD'*)
4037         test "$with_gnu_ld" != no && break
4038         ;;
4039       *)
4040         test "$with_gnu_ld" != yes && break
4041         ;;
4042       esac
4043     fi
4044   done
4045   IFS="$lt_save_ifs"
4046 else
4047   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4048 fi
4049 fi
4050
4051 LD="$lt_cv_path_LD"
4052 if test -n "$LD"; then
4053   { echo "$as_me:$LINENO: result: $LD" >&5
4054 echo "${ECHO_T}$LD" >&6; }
4055 else
4056   { echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6; }
4058 fi
4059 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4060 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4061    { (exit 1); exit 1; }; }
4062 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4063 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4064 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4068 case `$LD -v 2>&1 </dev/null` in
4069 *GNU* | *'with BFD'*)
4070   lt_cv_prog_gnu_ld=yes
4071   ;;
4072 *)
4073   lt_cv_prog_gnu_ld=no
4074   ;;
4075 esac
4076 fi
4077 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4078 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4079 with_gnu_ld=$lt_cv_prog_gnu_ld
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4090 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4091 if test "${lt_cv_path_NM+set}" = set; then
4092   echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094   if test -n "$NM"; then
4095   # Let the user override the test.
4096   lt_cv_path_NM="$NM"
4097 else
4098   lt_nm_to_check="${ac_tool_prefix}nm"
4099   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4100     lt_nm_to_check="$lt_nm_to_check nm"
4101   fi
4102   for lt_tmp_nm in $lt_nm_to_check; do
4103     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4104     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4105       IFS="$lt_save_ifs"
4106       test -z "$ac_dir" && ac_dir=.
4107       tmp_nm="$ac_dir/$lt_tmp_nm"
4108       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4109         # Check to see if the nm accepts a BSD-compat flag.
4110         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4111         #   nm: unknown option "B" ignored
4112         # Tru64's nm complains that /dev/null is an invalid object file
4113         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4114         */dev/null* | *'Invalid file or object type'*)
4115           lt_cv_path_NM="$tmp_nm -B"
4116           break
4117           ;;
4118         *)
4119           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4120           */dev/null*)
4121             lt_cv_path_NM="$tmp_nm -p"
4122             break
4123             ;;
4124           *)
4125             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4126             continue # so that we can try to find one that supports BSD flags
4127             ;;
4128           esac
4129           ;;
4130         esac
4131       fi
4132     done
4133     IFS="$lt_save_ifs"
4134   done
4135   : ${lt_cv_path_NM=no}
4136 fi
4137 fi
4138 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4139 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4140 if test "$lt_cv_path_NM" != "no"; then
4141   NM="$lt_cv_path_NM"
4142 else
4143   # Didn't find any BSD compatible name lister, look for dumpbin.
4144   if test -n "$ac_tool_prefix"; then
4145   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4146   do
4147     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4148 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4151 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4152   echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154   if test -n "$DUMPBIN"; then
4155   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160   IFS=$as_save_IFS
4161   test -z "$as_dir" && as_dir=.
4162   for ac_exec_ext in '' $ac_executable_extensions; do
4163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4164     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166     break 2
4167   fi
4168 done
4169 done
4170 IFS=$as_save_IFS
4171
4172 fi
4173 fi
4174 DUMPBIN=$ac_cv_prog_DUMPBIN
4175 if test -n "$DUMPBIN"; then
4176   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4177 echo "${ECHO_T}$DUMPBIN" >&6; }
4178 else
4179   { echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6; }
4181 fi
4182
4183
4184     test -n "$DUMPBIN" && break
4185   done
4186 fi
4187 if test -z "$DUMPBIN"; then
4188   ac_ct_DUMPBIN=$DUMPBIN
4189   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4190 do
4191   # Extract the first word of "$ac_prog", so it can be a program name with args.
4192 set dummy $ac_prog; ac_word=$2
4193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4195 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4196   echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4198   if test -n "$ac_ct_DUMPBIN"; then
4199   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4203 do
4204   IFS=$as_save_IFS
4205   test -z "$as_dir" && as_dir=.
4206   for ac_exec_ext in '' $ac_executable_extensions; do
4207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210     break 2
4211   fi
4212 done
4213 done
4214 IFS=$as_save_IFS
4215
4216 fi
4217 fi
4218 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4219 if test -n "$ac_ct_DUMPBIN"; then
4220   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4221 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4222 else
4223   { echo "$as_me:$LINENO: result: no" >&5
4224 echo "${ECHO_T}no" >&6; }
4225 fi
4226
4227
4228   test -n "$ac_ct_DUMPBIN" && break
4229 done
4230
4231   if test "x$ac_ct_DUMPBIN" = x; then
4232     DUMPBIN=":"
4233   else
4234     case $cross_compiling:$ac_tool_warned in
4235 yes:)
4236 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4237 whose name does not start with the host triplet.  If you think this
4238 configuration is useful to you, please write to autoconf@gnu.org." >&5
4239 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4240 whose name does not start with the host triplet.  If you think this
4241 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4242 ac_tool_warned=yes ;;
4243 esac
4244     DUMPBIN=$ac_ct_DUMPBIN
4245   fi
4246 fi
4247
4248
4249   if test "$DUMPBIN" != ":"; then
4250     NM="$DUMPBIN"
4251   fi
4252 fi
4253 test -z "$NM" && NM=nm
4254
4255
4256
4257
4258
4259
4260 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4261 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4262 if test "${lt_cv_nm_interface+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   lt_cv_nm_interface="BSD nm"
4266   echo "int some_variable = 0;" > conftest.$ac_ext
4267   (eval echo "\"\$as_me:4267: $ac_compile\"" >&5)
4268   (eval "$ac_compile" 2>conftest.err)
4269   cat conftest.err >&5
4270   (eval echo "\"\$as_me:4270: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4271   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4272   cat conftest.err >&5
4273   (eval echo "\"\$as_me:4273: output\"" >&5)
4274   cat conftest.out >&5
4275   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4276     lt_cv_nm_interface="MS dumpbin"
4277   fi
4278   rm -f conftest*
4279 fi
4280 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4281 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4282
4283 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4284 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4285 LN_S=$as_ln_s
4286 if test "$LN_S" = "ln -s"; then
4287   { echo "$as_me:$LINENO: result: yes" >&5
4288 echo "${ECHO_T}yes" >&6; }
4289 else
4290   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4291 echo "${ECHO_T}no, using $LN_S" >&6; }
4292 fi
4293
4294 # find the maximum length of command line arguments
4295 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4296 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4297 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4298   echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300     i=0
4301   teststring="ABCD"
4302
4303   case $build_os in
4304   msdosdjgpp*)
4305     # On DJGPP, this test can blow up pretty badly due to problems in libc
4306     # (any single argument exceeding 2000 bytes causes a buffer overrun
4307     # during glob expansion).  Even if it were fixed, the result of this
4308     # check would be larger than it should be.
4309     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4310     ;;
4311
4312   gnu*)
4313     # Under GNU Hurd, this test is not required because there is
4314     # no limit to the length of command line arguments.
4315     # Libtool will interpret -1 as no limit whatsoever
4316     lt_cv_sys_max_cmd_len=-1;
4317     ;;
4318
4319   cygwin* | mingw*)
4320     # On Win9x/ME, this test blows up -- it succeeds, but takes
4321     # about 5 minutes as the teststring grows exponentially.
4322     # Worse, since 9x/ME are not pre-emptively multitasking,
4323     # you end up with a "frozen" computer, even though with patience
4324     # the test eventually succeeds (with a max line length of 256k).
4325     # Instead, let's just punt: use the minimum linelength reported by
4326     # all of the supported platforms: 8192 (on NT/2K/XP).
4327     lt_cv_sys_max_cmd_len=8192;
4328     ;;
4329
4330   amigaos*)
4331     # On AmigaOS with pdksh, this test takes hours, literally.
4332     # So we just punt and use a minimum line length of 8192.
4333     lt_cv_sys_max_cmd_len=8192;
4334     ;;
4335
4336   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4337     # This has been around since 386BSD, at least.  Likely further.
4338     if test -x /sbin/sysctl; then
4339       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4340     elif test -x /usr/sbin/sysctl; then
4341       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4342     else
4343       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4344     fi
4345     # And add a safety zone
4346     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4347     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4348     ;;
4349
4350   interix*)
4351     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4352     lt_cv_sys_max_cmd_len=196608
4353     ;;
4354
4355   osf*)
4356     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4357     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4358     # nice to cause kernel panics so lets avoid the loop below.
4359     # First set a reasonable default.
4360     lt_cv_sys_max_cmd_len=16384
4361     #
4362     if test -x /sbin/sysconfig; then
4363       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4364         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4365       esac
4366     fi
4367     ;;
4368   sco3.2v5*)
4369     lt_cv_sys_max_cmd_len=102400
4370     ;;
4371   sysv5* | sco5v6* | sysv4.2uw2*)
4372     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4373     if test -n "$kargmax"; then
4374       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4375     else
4376       lt_cv_sys_max_cmd_len=32768
4377     fi
4378     ;;
4379   *)
4380     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4381     if test -n "$lt_cv_sys_max_cmd_len"; then
4382       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4383       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4384     else
4385       # Make teststring a little bigger before we do anything with it.
4386       # a 1K string should be a reasonable start.
4387       for i in 1 2 3 4 5 6 7 8 ; do
4388         teststring=$teststring$teststring
4389       done
4390       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4391       # If test is not a shell built-in, we'll probably end up computing a
4392       # maximum length that is only half of the actual maximum length, but
4393       # we can't tell.
4394       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4395                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4396               test $i != 17 # 1/2 MB should be enough
4397       do
4398         i=`expr $i + 1`
4399         teststring=$teststring$teststring
4400       done
4401       # Only check the string length outside the loop.
4402       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4403       teststring=
4404       # Add a significant safety factor because C++ compilers can tack on
4405       # massive amounts of additional arguments before passing them to the
4406       # linker.  It appears as though 1/2 is a usable value.
4407       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4408     fi
4409     ;;
4410   esac
4411
4412 fi
4413
4414 if test -n $lt_cv_sys_max_cmd_len ; then
4415   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4416 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4417 else
4418   { echo "$as_me:$LINENO: result: none" >&5
4419 echo "${ECHO_T}none" >&6; }
4420 fi
4421 max_cmd_len=$lt_cv_sys_max_cmd_len
4422
4423
4424
4425
4426
4427
4428 : ${CP="cp -f"}
4429 : ${MV="mv -f"}
4430 : ${RM="rm -f"}
4431
4432 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4433 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4434 # Try some XSI features
4435 xsi_shell=no
4436 ( _lt_dummy="a/b/c"
4437   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4438       = c,a/b,, \
4439     && eval 'test $(( 1 + 1 )) -eq 2 \
4440     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4441   && xsi_shell=yes
4442 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
4443 echo "${ECHO_T}$xsi_shell" >&6; }
4444
4445
4446 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4447 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4448 lt_shell_append=no
4449 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4450     >/dev/null 2>&1 \
4451   && lt_shell_append=yes
4452 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4453 echo "${ECHO_T}$lt_shell_append" >&6; }
4454
4455
4456 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4457   lt_unset=unset
4458 else
4459   lt_unset=false
4460 fi
4461
4462
4463
4464
4465
4466 # test EBCDIC or ASCII
4467 case `echo X|tr X '\101'` in
4468  A) # ASCII based system
4469     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4470   lt_SP2NL='tr \040 \012'
4471   lt_NL2SP='tr \015\012 \040\040'
4472   ;;
4473  *) # EBCDIC based system
4474   lt_SP2NL='tr \100 \n'
4475   lt_NL2SP='tr \r\n \100\100'
4476   ;;
4477 esac
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4488 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4489 if test "${lt_cv_ld_reload_flag+set}" = set; then
4490   echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492   lt_cv_ld_reload_flag='-r'
4493 fi
4494 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4495 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4496 reload_flag=$lt_cv_ld_reload_flag
4497 case $reload_flag in
4498 "" | " "*) ;;
4499 *) reload_flag=" $reload_flag" ;;
4500 esac
4501 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4502 case $host_os in
4503   darwin*)
4504     if test "$GCC" = yes; then
4505       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4506     else
4507       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4508     fi
4509     ;;
4510 esac
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4522 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4523 if test "${lt_cv_deplibs_check_method+set}" = set; then
4524   echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526   lt_cv_file_magic_cmd='$MAGIC_CMD'
4527 lt_cv_file_magic_test_file=
4528 lt_cv_deplibs_check_method='unknown'
4529 # Need to set the preceding variable on all platforms that support
4530 # interlibrary dependencies.
4531 # 'none' -- dependencies not supported.
4532 # `unknown' -- same as none, but documents that we really don't know.
4533 # 'pass_all' -- all dependencies passed with no checks.
4534 # 'test_compile' -- check by making test program.
4535 # 'file_magic [[regex]]' -- check by looking for files in library path
4536 # which responds to the $file_magic_cmd with a given extended regex.
4537 # If you have `file' or equivalent on your system and you're not sure
4538 # whether `pass_all' will *always* work, you probably want this one.
4539
4540 case $host_os in
4541 aix[4-9]*)
4542   lt_cv_deplibs_check_method=pass_all
4543   ;;
4544
4545 beos*)
4546   lt_cv_deplibs_check_method=pass_all
4547   ;;
4548
4549 bsdi[45]*)
4550   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4551   lt_cv_file_magic_cmd='/usr/bin/file -L'
4552   lt_cv_file_magic_test_file=/shlib/libc.so
4553   ;;
4554
4555 cygwin*)
4556   # func_win32_libid is a shell function defined in ltmain.sh
4557   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4558   lt_cv_file_magic_cmd='func_win32_libid'
4559   ;;
4560
4561 mingw* | pw32*)
4562   # Base MSYS/MinGW do not provide the 'file' command needed by
4563   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4564   # unless we find 'file', for example because we are cross-compiling.
4565   if ( file / ) >/dev/null 2>&1; then
4566     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4567     lt_cv_file_magic_cmd='func_win32_libid'
4568   else
4569     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4570     lt_cv_file_magic_cmd='$OBJDUMP -f'
4571   fi
4572   ;;
4573
4574 darwin* | rhapsody*)
4575   lt_cv_deplibs_check_method=pass_all
4576   ;;
4577
4578 freebsd* | dragonfly*)
4579   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4580     case $host_cpu in
4581     i*86 )
4582       # Not sure whether the presence of OpenBSD here was a mistake.
4583       # Let's accept both of them until this is cleared up.
4584       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4585       lt_cv_file_magic_cmd=/usr/bin/file
4586       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4587       ;;
4588     esac
4589   else
4590     lt_cv_deplibs_check_method=pass_all
4591   fi
4592   ;;
4593
4594 gnu*)
4595   lt_cv_deplibs_check_method=pass_all
4596   ;;
4597
4598 hpux10.20* | hpux11*)
4599   lt_cv_file_magic_cmd=/usr/bin/file
4600   case $host_cpu in
4601   ia64*)
4602     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4603     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4604     ;;
4605   hppa*64*)
4606     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]'
4607     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4608     ;;
4609   *)
4610     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4611     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4612     ;;
4613   esac
4614   ;;
4615
4616 interix[3-9]*)
4617   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4618   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4619   ;;
4620
4621 irix5* | irix6* | nonstopux*)
4622   case $LD in
4623   *-32|*"-32 ") libmagic=32-bit;;
4624   *-n32|*"-n32 ") libmagic=N32;;
4625   *-64|*"-64 ") libmagic=64-bit;;
4626   *) libmagic=never-match;;
4627   esac
4628   lt_cv_deplibs_check_method=pass_all
4629   ;;
4630
4631 # This must be Linux ELF.
4632 linux* | k*bsd*-gnu)
4633   lt_cv_deplibs_check_method=pass_all
4634   ;;
4635
4636 netbsd*)
4637   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4638     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4639   else
4640     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4641   fi
4642   ;;
4643
4644 newos6*)
4645   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4646   lt_cv_file_magic_cmd=/usr/bin/file
4647   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4648   ;;
4649
4650 *nto* | *qnx*)
4651   lt_cv_deplibs_check_method=pass_all
4652   ;;
4653
4654 openbsd*)
4655   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4656     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4657   else
4658     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4659   fi
4660   ;;
4661
4662 osf3* | osf4* | osf5*)
4663   lt_cv_deplibs_check_method=pass_all
4664   ;;
4665
4666 rdos*)
4667   lt_cv_deplibs_check_method=pass_all
4668   ;;
4669
4670 solaris*)
4671   lt_cv_deplibs_check_method=pass_all
4672   ;;
4673
4674 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4675   lt_cv_deplibs_check_method=pass_all
4676   ;;
4677
4678 sysv4 | sysv4.3*)
4679   case $host_vendor in
4680   motorola)
4681     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]'
4682     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4683     ;;
4684   ncr)
4685     lt_cv_deplibs_check_method=pass_all
4686     ;;
4687   sequent)
4688     lt_cv_file_magic_cmd='/bin/file'
4689     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4690     ;;
4691   sni)
4692     lt_cv_file_magic_cmd='/bin/file'
4693     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4694     lt_cv_file_magic_test_file=/lib/libc.so
4695     ;;
4696   siemens)
4697     lt_cv_deplibs_check_method=pass_all
4698     ;;
4699   pc)
4700     lt_cv_deplibs_check_method=pass_all
4701     ;;
4702   esac
4703   ;;
4704
4705 tpf*)
4706   lt_cv_deplibs_check_method=pass_all
4707   ;;
4708 esac
4709
4710 fi
4711 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4712 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4713 file_magic_cmd=$lt_cv_file_magic_cmd
4714 deplibs_check_method=$lt_cv_deplibs_check_method
4715 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728 if test -n "$ac_tool_prefix"; then
4729   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4730 set dummy ${ac_tool_prefix}ar; ac_word=$2
4731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4733 if test "${ac_cv_prog_AR+set}" = set; then
4734   echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736   if test -n "$AR"; then
4737   ac_cv_prog_AR="$AR" # Let the user override the test.
4738 else
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH
4741 do
4742   IFS=$as_save_IFS
4743   test -z "$as_dir" && as_dir=.
4744   for ac_exec_ext in '' $ac_executable_extensions; do
4745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746     ac_cv_prog_AR="${ac_tool_prefix}ar"
4747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4748     break 2
4749   fi
4750 done
4751 done
4752 IFS=$as_save_IFS
4753
4754 fi
4755 fi
4756 AR=$ac_cv_prog_AR
4757 if test -n "$AR"; then
4758   { echo "$as_me:$LINENO: result: $AR" >&5
4759 echo "${ECHO_T}$AR" >&6; }
4760 else
4761   { echo "$as_me:$LINENO: result: no" >&5
4762 echo "${ECHO_T}no" >&6; }
4763 fi
4764
4765
4766 fi
4767 if test -z "$ac_cv_prog_AR"; then
4768   ac_ct_AR=$AR
4769   # Extract the first word of "ar", so it can be a program name with args.
4770 set dummy ar; ac_word=$2
4771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4773 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4774   echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776   if test -n "$ac_ct_AR"; then
4777   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782   IFS=$as_save_IFS
4783   test -z "$as_dir" && as_dir=.
4784   for ac_exec_ext in '' $ac_executable_extensions; do
4785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786     ac_cv_prog_ac_ct_AR="ar"
4787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4788     break 2
4789   fi
4790 done
4791 done
4792 IFS=$as_save_IFS
4793
4794 fi
4795 fi
4796 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4797 if test -n "$ac_ct_AR"; then
4798   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4799 echo "${ECHO_T}$ac_ct_AR" >&6; }
4800 else
4801   { echo "$as_me:$LINENO: result: no" >&5
4802 echo "${ECHO_T}no" >&6; }
4803 fi
4804
4805   if test "x$ac_ct_AR" = x; then
4806     AR="false"
4807   else
4808     case $cross_compiling:$ac_tool_warned in
4809 yes:)
4810 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4811 whose name does not start with the host triplet.  If you think this
4812 configuration is useful to you, please write to autoconf@gnu.org." >&5
4813 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4814 whose name does not start with the host triplet.  If you think this
4815 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4816 ac_tool_warned=yes ;;
4817 esac
4818     AR=$ac_ct_AR
4819   fi
4820 else
4821   AR="$ac_cv_prog_AR"
4822 fi
4823
4824 test -z "$AR" && AR=ar
4825 test -z "$AR_FLAGS" && AR_FLAGS=cru
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837 if test -n "$ac_tool_prefix"; then
4838   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4839 set dummy ${ac_tool_prefix}strip; ac_word=$2
4840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4842 if test "${ac_cv_prog_STRIP+set}" = set; then
4843   echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845   if test -n "$STRIP"; then
4846   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4847 else
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4850 do
4851   IFS=$as_save_IFS
4852   test -z "$as_dir" && as_dir=.
4853   for ac_exec_ext in '' $ac_executable_extensions; do
4854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4855     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4857     break 2
4858   fi
4859 done
4860 done
4861 IFS=$as_save_IFS
4862
4863 fi
4864 fi
4865 STRIP=$ac_cv_prog_STRIP
4866 if test -n "$STRIP"; then
4867   { echo "$as_me:$LINENO: result: $STRIP" >&5
4868 echo "${ECHO_T}$STRIP" >&6; }
4869 else
4870   { echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6; }
4872 fi
4873
4874
4875 fi
4876 if test -z "$ac_cv_prog_STRIP"; then
4877   ac_ct_STRIP=$STRIP
4878   # Extract the first word of "strip", so it can be a program name with args.
4879 set dummy strip; ac_word=$2
4880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4882 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4883   echo $ECHO_N "(cached) $ECHO_C" >&6
4884 else
4885   if test -n "$ac_ct_STRIP"; then
4886   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891   IFS=$as_save_IFS
4892   test -z "$as_dir" && as_dir=.
4893   for ac_exec_ext in '' $ac_executable_extensions; do
4894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895     ac_cv_prog_ac_ct_STRIP="strip"
4896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897     break 2
4898   fi
4899 done
4900 done
4901 IFS=$as_save_IFS
4902
4903 fi
4904 fi
4905 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4906 if test -n "$ac_ct_STRIP"; then
4907   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4908 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
4909 else
4910   { echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6; }
4912 fi
4913
4914   if test "x$ac_ct_STRIP" = x; then
4915     STRIP=":"
4916   else
4917     case $cross_compiling:$ac_tool_warned in
4918 yes:)
4919 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4920 whose name does not start with the host triplet.  If you think this
4921 configuration is useful to you, please write to autoconf@gnu.org." >&5
4922 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4923 whose name does not start with the host triplet.  If you think this
4924 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4925 ac_tool_warned=yes ;;
4926 esac
4927     STRIP=$ac_ct_STRIP
4928   fi
4929 else
4930   STRIP="$ac_cv_prog_STRIP"
4931 fi
4932
4933 test -z "$STRIP" && STRIP=:
4934
4935
4936
4937
4938
4939
4940 if test -n "$ac_tool_prefix"; then
4941   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4942 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4945 if test "${ac_cv_prog_RANLIB+set}" = set; then
4946   echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948   if test -n "$RANLIB"; then
4949   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954   IFS=$as_save_IFS
4955   test -z "$as_dir" && as_dir=.
4956   for ac_exec_ext in '' $ac_executable_extensions; do
4957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960     break 2
4961   fi
4962 done
4963 done
4964 IFS=$as_save_IFS
4965
4966 fi
4967 fi
4968 RANLIB=$ac_cv_prog_RANLIB
4969 if test -n "$RANLIB"; then
4970   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4971 echo "${ECHO_T}$RANLIB" >&6; }
4972 else
4973   { echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6; }
4975 fi
4976
4977
4978 fi
4979 if test -z "$ac_cv_prog_RANLIB"; then
4980   ac_ct_RANLIB=$RANLIB
4981   # Extract the first word of "ranlib", so it can be a program name with args.
4982 set dummy ranlib; ac_word=$2
4983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4985 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4986   echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988   if test -n "$ac_ct_RANLIB"; then
4989   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4990 else
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4993 do
4994   IFS=$as_save_IFS
4995   test -z "$as_dir" && as_dir=.
4996   for ac_exec_ext in '' $ac_executable_extensions; do
4997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4998     ac_cv_prog_ac_ct_RANLIB="ranlib"
4999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5000     break 2
5001   fi
5002 done
5003 done
5004 IFS=$as_save_IFS
5005
5006 fi
5007 fi
5008 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5009 if test -n "$ac_ct_RANLIB"; then
5010   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5011 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5012 else
5013   { echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6; }
5015 fi
5016
5017   if test "x$ac_ct_RANLIB" = x; then
5018     RANLIB=":"
5019   else
5020     case $cross_compiling:$ac_tool_warned in
5021 yes:)
5022 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5023 whose name does not start with the host triplet.  If you think this
5024 configuration is useful to you, please write to autoconf@gnu.org." >&5
5025 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5026 whose name does not start with the host triplet.  If you think this
5027 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5028 ac_tool_warned=yes ;;
5029 esac
5030     RANLIB=$ac_ct_RANLIB
5031   fi
5032 else
5033   RANLIB="$ac_cv_prog_RANLIB"
5034 fi
5035
5036 test -z "$RANLIB" && RANLIB=:
5037
5038
5039
5040
5041
5042
5043 # Determine commands to create old-style static archives.
5044 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5045 old_postinstall_cmds='chmod 644 $oldlib'
5046 old_postuninstall_cmds=
5047
5048 if test -n "$RANLIB"; then
5049   case $host_os in
5050   openbsd*)
5051     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5052     ;;
5053   *)
5054     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5055     ;;
5056   esac
5057   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5058 fi
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093 # If no C compiler was specified, use CC.
5094 LTCC=${LTCC-"$CC"}
5095
5096 # If no C compiler flags were specified, use CFLAGS.
5097 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5098
5099 # Allow CC to be a program name with arguments.
5100 compiler=$CC
5101
5102
5103 # Check for command to grab the raw symbol name followed by C symbol from nm.
5104 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5105 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5106 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5107   echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109
5110 # These are sane defaults that work on at least a few old systems.
5111 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5112
5113 # Character class describing NM global symbol codes.
5114 symcode='[BCDEGRST]'
5115
5116 # Regexp to match symbols that can be accessed directly from C.
5117 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5118
5119 # Define system-specific variables.
5120 case $host_os in
5121 aix*)
5122   symcode='[BCDT]'
5123   ;;
5124 cygwin* | mingw* | pw32*)
5125   symcode='[ABCDGISTW]'
5126   ;;
5127 hpux*)
5128   if test "$host_cpu" = ia64; then
5129     symcode='[ABCDEGRST]'
5130   fi
5131   ;;
5132 irix* | nonstopux*)
5133   symcode='[BCDEGRST]'
5134   ;;
5135 osf*)
5136   symcode='[BCDEGQRST]'
5137   ;;
5138 solaris*)
5139   symcode='[BDRT]'
5140   ;;
5141 sco3.2v5*)
5142   symcode='[DT]'
5143   ;;
5144 sysv4.2uw2*)
5145   symcode='[DT]'
5146   ;;
5147 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5148   symcode='[ABDT]'
5149   ;;
5150 sysv4)
5151   symcode='[DFNSTU]'
5152   ;;
5153 esac
5154
5155 # If we're using GNU nm, then use its standard symbol codes.
5156 case `$NM -V 2>&1` in
5157 *GNU* | *'with BFD'*)
5158   symcode='[ABCDGIRSTW]' ;;
5159 esac
5160
5161 # Transform an extracted symbol line into a proper C declaration.
5162 # Some systems (esp. on ia64) link data and code symbols differently,
5163 # so use this general approach.
5164 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5165
5166 # Transform an extracted symbol line into symbol name and symbol address
5167 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5168 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'"
5169
5170 # Handle CRLF in mingw tool chain
5171 opt_cr=
5172 case $build_os in
5173 mingw*)
5174   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5175   ;;
5176 esac
5177
5178 # Try without a prefix underscore, then with it.
5179 for ac_symprfx in "" "_"; do
5180
5181   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5182   symxfrm="\\1 $ac_symprfx\\2 \\2"
5183
5184   # Write the raw and C identifiers.
5185   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5186     # Fake it for dumpbin and say T for any non-static function
5187     # and D for any global variable.
5188     # Also find C++ and __fastcall symbols from MSVC++,
5189     # which start with @ or ?.
5190     lt_cv_sys_global_symbol_pipe="$AWK '"\
5191 "     {last_section=section; section=\$ 3};"\
5192 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5193 "     \$ 0!~/External *\|/{next};"\
5194 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5195 "     {if(hide[section]) next};"\
5196 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5197 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5198 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5199 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5200 "     ' prfx=^$ac_symprfx"
5201   else
5202     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5203   fi
5204
5205   # Check to see that the pipe works correctly.
5206   pipe_works=no
5207
5208   rm -f conftest*
5209   cat > conftest.$ac_ext <<_LT_EOF
5210 #ifdef __cplusplus
5211 extern "C" {
5212 #endif
5213 char nm_test_var;
5214 void nm_test_func(void);
5215 void nm_test_func(void){}
5216 #ifdef __cplusplus
5217 }
5218 #endif
5219 int main(){nm_test_var='a';nm_test_func();return(0);}
5220 _LT_EOF
5221
5222   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5223   (eval $ac_compile) 2>&5
5224   ac_status=$?
5225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226   (exit $ac_status); }; then
5227     # Now try to grab the symbols.
5228     nlist=conftest.nm
5229     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5230   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5231   ac_status=$?
5232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233   (exit $ac_status); } && test -s "$nlist"; then
5234       # Try sorting and uniquifying the output.
5235       if sort "$nlist" | uniq > "$nlist"T; then
5236         mv -f "$nlist"T "$nlist"
5237       else
5238         rm -f "$nlist"T
5239       fi
5240
5241       # Make sure that we snagged all the symbols we need.
5242       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5243         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5244           cat <<_LT_EOF > conftest.$ac_ext
5245 #ifdef __cplusplus
5246 extern "C" {
5247 #endif
5248
5249 _LT_EOF
5250           # Now generate the symbol file.
5251           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5252
5253           cat <<_LT_EOF >> conftest.$ac_ext
5254
5255 /* The mapping between symbol names and symbols.  */
5256 const struct {
5257   const char *name;
5258   void       *address;
5259 }
5260 lt__PROGRAM__LTX_preloaded_symbols[] =
5261 {
5262   { "@PROGRAM@", (void *) 0 },
5263 _LT_EOF
5264           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5265           cat <<\_LT_EOF >> conftest.$ac_ext
5266   {0, (void *) 0}
5267 };
5268
5269 /* This works around a problem in FreeBSD linker */
5270 #ifdef FREEBSD_WORKAROUND
5271 static const void *lt_preloaded_setup() {
5272   return lt__PROGRAM__LTX_preloaded_symbols;
5273 }
5274 #endif
5275
5276 #ifdef __cplusplus
5277 }
5278 #endif
5279 _LT_EOF
5280           # Now try linking the two files.
5281           mv conftest.$ac_objext conftstm.$ac_objext
5282           lt_save_LIBS="$LIBS"
5283           lt_save_CFLAGS="$CFLAGS"
5284           LIBS="conftstm.$ac_objext"
5285           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5286           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5287   (eval $ac_link) 2>&5
5288   ac_status=$?
5289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5291             pipe_works=yes
5292           fi
5293           LIBS="$lt_save_LIBS"
5294           CFLAGS="$lt_save_CFLAGS"
5295         else
5296           echo "cannot find nm_test_func in $nlist" >&5
5297         fi
5298       else
5299         echo "cannot find nm_test_var in $nlist" >&5
5300       fi
5301     else
5302       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5303     fi
5304   else
5305     echo "$progname: failed program was:" >&5
5306     cat conftest.$ac_ext >&5
5307   fi
5308   rm -rf conftest* conftst*
5309
5310   # Do not use the global_symbol_pipe unless it works.
5311   if test "$pipe_works" = yes; then
5312     break
5313   else
5314     lt_cv_sys_global_symbol_pipe=
5315   fi
5316 done
5317
5318 fi
5319
5320 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5321   lt_cv_sys_global_symbol_to_cdecl=
5322 fi
5323 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5324   { echo "$as_me:$LINENO: result: failed" >&5
5325 echo "${ECHO_T}failed" >&6; }
5326 else
5327   { echo "$as_me:$LINENO: result: ok" >&5
5328 echo "${ECHO_T}ok" >&6; }
5329 fi
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353 # Check whether --enable-libtool-lock was given.
5354 if test "${enable_libtool_lock+set}" = set; then
5355   enableval=$enable_libtool_lock;
5356 fi
5357
5358 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5359
5360 # Some flags need to be propagated to the compiler or linker for good
5361 # libtool support.
5362 case $host in
5363 ia64-*-hpux*)
5364   # Find out which ABI we are using.
5365   echo 'int i;' > conftest.$ac_ext
5366   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5367   (eval $ac_compile) 2>&5
5368   ac_status=$?
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); }; then
5371     case `/usr/bin/file conftest.$ac_objext` in
5372       *ELF-32*)
5373         HPUX_IA64_MODE="32"
5374         ;;
5375       *ELF-64*)
5376         HPUX_IA64_MODE="64"
5377         ;;
5378     esac
5379   fi
5380   rm -rf conftest*
5381   ;;
5382 *-*-irix6*)
5383   # Find out which ABI we are using.
5384   echo '#line 5384 "configure"' > conftest.$ac_ext
5385   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5386   (eval $ac_compile) 2>&5
5387   ac_status=$?
5388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389   (exit $ac_status); }; then
5390     if test "$lt_cv_prog_gnu_ld" = yes; then
5391       case `/usr/bin/file conftest.$ac_objext` in
5392         *32-bit*)
5393           LD="${LD-ld} -melf32bsmip"
5394           ;;
5395         *N32*)
5396           LD="${LD-ld} -melf32bmipn32"
5397           ;;
5398         *64-bit*)
5399           LD="${LD-ld} -melf64bmip"
5400         ;;
5401       esac
5402     else
5403       case `/usr/bin/file conftest.$ac_objext` in
5404         *32-bit*)
5405           LD="${LD-ld} -32"
5406           ;;
5407         *N32*)
5408           LD="${LD-ld} -n32"
5409           ;;
5410         *64-bit*)
5411           LD="${LD-ld} -64"
5412           ;;
5413       esac
5414     fi
5415   fi
5416   rm -rf conftest*
5417   ;;
5418
5419 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5420 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5421   # Find out which ABI we are using.
5422   echo 'int i;' > conftest.$ac_ext
5423   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5424   (eval $ac_compile) 2>&5
5425   ac_status=$?
5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); }; then
5428     case `/usr/bin/file conftest.o` in
5429       *32-bit*)
5430         case $host in
5431           x86_64-*kfreebsd*-gnu)
5432             LD="${LD-ld} -m elf_i386_fbsd"
5433             ;;
5434           x86_64-*linux*)
5435             LD="${LD-ld} -m elf_i386"
5436             ;;
5437           ppc64-*linux*|powerpc64-*linux*)
5438             LD="${LD-ld} -m elf32ppclinux"
5439             ;;
5440           s390x-*linux*)
5441             LD="${LD-ld} -m elf_s390"
5442             ;;
5443           sparc64-*linux*)
5444             LD="${LD-ld} -m elf32_sparc"
5445             ;;
5446         esac
5447         ;;
5448       *64-bit*)
5449         case $host in
5450           x86_64-*kfreebsd*-gnu)
5451             LD="${LD-ld} -m elf_x86_64_fbsd"
5452             ;;
5453           x86_64-*linux*)
5454             LD="${LD-ld} -m elf_x86_64"
5455             ;;
5456           ppc*-*linux*|powerpc*-*linux*)
5457             LD="${LD-ld} -m elf64ppc"
5458             ;;
5459           s390*-*linux*|s390*-*tpf*)
5460             LD="${LD-ld} -m elf64_s390"
5461             ;;
5462           sparc*-*linux*)
5463             LD="${LD-ld} -m elf64_sparc"
5464             ;;
5465         esac
5466         ;;
5467     esac
5468   fi
5469   rm -rf conftest*
5470   ;;
5471
5472 *-*-sco3.2v5*)
5473   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5474   SAVE_CFLAGS="$CFLAGS"
5475   CFLAGS="$CFLAGS -belf"
5476   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5477 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5478 if test "${lt_cv_cc_needs_belf+set}" = set; then
5479   echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481   ac_ext=c
5482 ac_cpp='$CPP $CPPFLAGS'
5483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5486
5487      cat >conftest.$ac_ext <<_ACEOF
5488 /* confdefs.h.  */
5489 _ACEOF
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h.  */
5493
5494 int
5495 main ()
5496 {
5497
5498   ;
5499   return 0;
5500 }
5501 _ACEOF
5502 rm -f conftest.$ac_objext conftest$ac_exeext
5503 if { (ac_try="$ac_link"
5504 case "(($ac_try" in
5505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506   *) ac_try_echo=$ac_try;;
5507 esac
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509   (eval "$ac_link") 2>conftest.er1
5510   ac_status=$?
5511   grep -v '^ *+' conftest.er1 >conftest.err
5512   rm -f conftest.er1
5513   cat conftest.err >&5
5514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515   (exit $ac_status); } && {
5516          test -z "$ac_c_werror_flag" ||
5517          test ! -s conftest.err
5518        } && test -s conftest$ac_exeext &&
5519        $as_test_x conftest$ac_exeext; then
5520   lt_cv_cc_needs_belf=yes
5521 else
5522   echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.$ac_ext >&5
5524
5525         lt_cv_cc_needs_belf=no
5526 fi
5527
5528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5529       conftest$ac_exeext conftest.$ac_ext
5530      ac_ext=c
5531 ac_cpp='$CPP $CPPFLAGS'
5532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5535
5536 fi
5537 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5538 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5539   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5540     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5541     CFLAGS="$SAVE_CFLAGS"
5542   fi
5543   ;;
5544 sparc*-*solaris*)
5545   # Find out which ABI we are using.
5546   echo 'int i;' > conftest.$ac_ext
5547   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5548   (eval $ac_compile) 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); }; then
5552     case `/usr/bin/file conftest.o` in
5553     *64-bit*)
5554       case $lt_cv_prog_gnu_ld in
5555       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5556       *)
5557         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5558           LD="${LD-ld} -64"
5559         fi
5560         ;;
5561       esac
5562       ;;
5563     esac
5564   fi
5565   rm -rf conftest*
5566   ;;
5567 esac
5568
5569 need_locks="$enable_libtool_lock"
5570
5571
5572   case $host_os in
5573     rhapsody* | darwin*)
5574     if test -n "$ac_tool_prefix"; then
5575   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5576 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5579 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5580   echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582   if test -n "$DSYMUTIL"; then
5583   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5584 else
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5587 do
5588   IFS=$as_save_IFS
5589   test -z "$as_dir" && as_dir=.
5590   for ac_exec_ext in '' $ac_executable_extensions; do
5591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5592     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5594     break 2
5595   fi
5596 done
5597 done
5598 IFS=$as_save_IFS
5599
5600 fi
5601 fi
5602 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5603 if test -n "$DSYMUTIL"; then
5604   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5605 echo "${ECHO_T}$DSYMUTIL" >&6; }
5606 else
5607   { echo "$as_me:$LINENO: result: no" >&5
5608 echo "${ECHO_T}no" >&6; }
5609 fi
5610
5611
5612 fi
5613 if test -z "$ac_cv_prog_DSYMUTIL"; then
5614   ac_ct_DSYMUTIL=$DSYMUTIL
5615   # Extract the first word of "dsymutil", so it can be a program name with args.
5616 set dummy dsymutil; ac_word=$2
5617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5619 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5620   echo $ECHO_N "(cached) $ECHO_C" >&6
5621 else
5622   if test -n "$ac_ct_DSYMUTIL"; then
5623   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5624 else
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628   IFS=$as_save_IFS
5629   test -z "$as_dir" && as_dir=.
5630   for ac_exec_ext in '' $ac_executable_extensions; do
5631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5634     break 2
5635   fi
5636 done
5637 done
5638 IFS=$as_save_IFS
5639
5640 fi
5641 fi
5642 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5643 if test -n "$ac_ct_DSYMUTIL"; then
5644   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5645 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5646 else
5647   { echo "$as_me:$LINENO: result: no" >&5
5648 echo "${ECHO_T}no" >&6; }
5649 fi
5650
5651   if test "x$ac_ct_DSYMUTIL" = x; then
5652     DSYMUTIL=":"
5653   else
5654     case $cross_compiling:$ac_tool_warned in
5655 yes:)
5656 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5657 whose name does not start with the host triplet.  If you think this
5658 configuration is useful to you, please write to autoconf@gnu.org." >&5
5659 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5660 whose name does not start with the host triplet.  If you think this
5661 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5662 ac_tool_warned=yes ;;
5663 esac
5664     DSYMUTIL=$ac_ct_DSYMUTIL
5665   fi
5666 else
5667   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5668 fi
5669
5670     if test -n "$ac_tool_prefix"; then
5671   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5672 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5675 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5676   echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678   if test -n "$NMEDIT"; then
5679   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5680 else
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5683 do
5684   IFS=$as_save_IFS
5685   test -z "$as_dir" && as_dir=.
5686   for ac_exec_ext in '' $ac_executable_extensions; do
5687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5688     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5690     break 2
5691   fi
5692 done
5693 done
5694 IFS=$as_save_IFS
5695
5696 fi
5697 fi
5698 NMEDIT=$ac_cv_prog_NMEDIT
5699 if test -n "$NMEDIT"; then
5700   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5701 echo "${ECHO_T}$NMEDIT" >&6; }
5702 else
5703   { echo "$as_me:$LINENO: result: no" >&5
5704 echo "${ECHO_T}no" >&6; }
5705 fi
5706
5707
5708 fi
5709 if test -z "$ac_cv_prog_NMEDIT"; then
5710   ac_ct_NMEDIT=$NMEDIT
5711   # Extract the first word of "nmedit", so it can be a program name with args.
5712 set dummy nmedit; ac_word=$2
5713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5715 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718   if test -n "$ac_ct_NMEDIT"; then
5719   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5720 else
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 for as_dir in $PATH
5723 do
5724   IFS=$as_save_IFS
5725   test -z "$as_dir" && as_dir=.
5726   for ac_exec_ext in '' $ac_executable_extensions; do
5727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5728     ac_cv_prog_ac_ct_NMEDIT="nmedit"
5729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5730     break 2
5731   fi
5732 done
5733 done
5734 IFS=$as_save_IFS
5735
5736 fi
5737 fi
5738 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5739 if test -n "$ac_ct_NMEDIT"; then
5740   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5741 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5742 else
5743   { echo "$as_me:$LINENO: result: no" >&5
5744 echo "${ECHO_T}no" >&6; }
5745 fi
5746
5747   if test "x$ac_ct_NMEDIT" = x; then
5748     NMEDIT=":"
5749   else
5750     case $cross_compiling:$ac_tool_warned in
5751 yes:)
5752 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5753 whose name does not start with the host triplet.  If you think this
5754 configuration is useful to you, please write to autoconf@gnu.org." >&5
5755 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5756 whose name does not start with the host triplet.  If you think this
5757 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5758 ac_tool_warned=yes ;;
5759 esac
5760     NMEDIT=$ac_ct_NMEDIT
5761   fi
5762 else
5763   NMEDIT="$ac_cv_prog_NMEDIT"
5764 fi
5765
5766     if test -n "$ac_tool_prefix"; then
5767   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5768 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5771 if test "${ac_cv_prog_LIPO+set}" = set; then
5772   echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774   if test -n "$LIPO"; then
5775   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5776 else
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780   IFS=$as_save_IFS
5781   test -z "$as_dir" && as_dir=.
5782   for ac_exec_ext in '' $ac_executable_extensions; do
5783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5784     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5786     break 2
5787   fi
5788 done
5789 done
5790 IFS=$as_save_IFS
5791
5792 fi
5793 fi
5794 LIPO=$ac_cv_prog_LIPO
5795 if test -n "$LIPO"; then
5796   { echo "$as_me:$LINENO: result: $LIPO" >&5
5797 echo "${ECHO_T}$LIPO" >&6; }
5798 else
5799   { echo "$as_me:$LINENO: result: no" >&5
5800 echo "${ECHO_T}no" >&6; }
5801 fi
5802
5803
5804 fi
5805 if test -z "$ac_cv_prog_LIPO"; then
5806   ac_ct_LIPO=$LIPO
5807   # Extract the first word of "lipo", so it can be a program name with args.
5808 set dummy lipo; ac_word=$2
5809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5811 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5812   echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814   if test -n "$ac_ct_LIPO"; then
5815   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820   IFS=$as_save_IFS
5821   test -z "$as_dir" && as_dir=.
5822   for ac_exec_ext in '' $ac_executable_extensions; do
5823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824     ac_cv_prog_ac_ct_LIPO="lipo"
5825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5826     break 2
5827   fi
5828 done
5829 done
5830 IFS=$as_save_IFS
5831
5832 fi
5833 fi
5834 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5835 if test -n "$ac_ct_LIPO"; then
5836   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5837 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5838 else
5839   { echo "$as_me:$LINENO: result: no" >&5
5840 echo "${ECHO_T}no" >&6; }
5841 fi
5842
5843   if test "x$ac_ct_LIPO" = x; then
5844     LIPO=":"
5845   else
5846     case $cross_compiling:$ac_tool_warned in
5847 yes:)
5848 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5849 whose name does not start with the host triplet.  If you think this
5850 configuration is useful to you, please write to autoconf@gnu.org." >&5
5851 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5852 whose name does not start with the host triplet.  If you think this
5853 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5854 ac_tool_warned=yes ;;
5855 esac
5856     LIPO=$ac_ct_LIPO
5857   fi
5858 else
5859   LIPO="$ac_cv_prog_LIPO"
5860 fi
5861
5862     if test -n "$ac_tool_prefix"; then
5863   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5864 set dummy ${ac_tool_prefix}otool; ac_word=$2
5865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5867 if test "${ac_cv_prog_OTOOL+set}" = set; then
5868   echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870   if test -n "$OTOOL"; then
5871   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5872 else
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH
5875 do
5876   IFS=$as_save_IFS
5877   test -z "$as_dir" && as_dir=.
5878   for ac_exec_ext in '' $ac_executable_extensions; do
5879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5880     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882     break 2
5883   fi
5884 done
5885 done
5886 IFS=$as_save_IFS
5887
5888 fi
5889 fi
5890 OTOOL=$ac_cv_prog_OTOOL
5891 if test -n "$OTOOL"; then
5892   { echo "$as_me:$LINENO: result: $OTOOL" >&5
5893 echo "${ECHO_T}$OTOOL" >&6; }
5894 else
5895   { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5897 fi
5898
5899
5900 fi
5901 if test -z "$ac_cv_prog_OTOOL"; then
5902   ac_ct_OTOOL=$OTOOL
5903   # Extract the first word of "otool", so it can be a program name with args.
5904 set dummy otool; ac_word=$2
5905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5907 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5908   echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910   if test -n "$ac_ct_OTOOL"; then
5911   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5912 else
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5915 do
5916   IFS=$as_save_IFS
5917   test -z "$as_dir" && as_dir=.
5918   for ac_exec_ext in '' $ac_executable_extensions; do
5919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5920     ac_cv_prog_ac_ct_OTOOL="otool"
5921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922     break 2
5923   fi
5924 done
5925 done
5926 IFS=$as_save_IFS
5927
5928 fi
5929 fi
5930 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5931 if test -n "$ac_ct_OTOOL"; then
5932   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5933 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
5934 else
5935   { echo "$as_me:$LINENO: result: no" >&5
5936 echo "${ECHO_T}no" >&6; }
5937 fi
5938
5939   if test "x$ac_ct_OTOOL" = x; then
5940     OTOOL=":"
5941   else
5942     case $cross_compiling:$ac_tool_warned in
5943 yes:)
5944 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5945 whose name does not start with the host triplet.  If you think this
5946 configuration is useful to you, please write to autoconf@gnu.org." >&5
5947 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5948 whose name does not start with the host triplet.  If you think this
5949 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5950 ac_tool_warned=yes ;;
5951 esac
5952     OTOOL=$ac_ct_OTOOL
5953   fi
5954 else
5955   OTOOL="$ac_cv_prog_OTOOL"
5956 fi
5957
5958     if test -n "$ac_tool_prefix"; then
5959   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5960 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5963 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5964   echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966   if test -n "$OTOOL64"; then
5967   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5968 else
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5971 do
5972   IFS=$as_save_IFS
5973   test -z "$as_dir" && as_dir=.
5974   for ac_exec_ext in '' $ac_executable_extensions; do
5975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5976     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5978     break 2
5979   fi
5980 done
5981 done
5982 IFS=$as_save_IFS
5983
5984 fi
5985 fi
5986 OTOOL64=$ac_cv_prog_OTOOL64
5987 if test -n "$OTOOL64"; then
5988   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
5989 echo "${ECHO_T}$OTOOL64" >&6; }
5990 else
5991   { echo "$as_me:$LINENO: result: no" >&5
5992 echo "${ECHO_T}no" >&6; }
5993 fi
5994
5995
5996 fi
5997 if test -z "$ac_cv_prog_OTOOL64"; then
5998   ac_ct_OTOOL64=$OTOOL64
5999   # Extract the first word of "otool64", so it can be a program name with args.
6000 set dummy otool64; ac_word=$2
6001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6003 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6004   echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006   if test -n "$ac_ct_OTOOL64"; then
6007   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012   IFS=$as_save_IFS
6013   test -z "$as_dir" && as_dir=.
6014   for ac_exec_ext in '' $ac_executable_extensions; do
6015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016     ac_cv_prog_ac_ct_OTOOL64="otool64"
6017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018     break 2
6019   fi
6020 done
6021 done
6022 IFS=$as_save_IFS
6023
6024 fi
6025 fi
6026 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6027 if test -n "$ac_ct_OTOOL64"; then
6028   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6029 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6030 else
6031   { echo "$as_me:$LINENO: result: no" >&5
6032 echo "${ECHO_T}no" >&6; }
6033 fi
6034
6035   if test "x$ac_ct_OTOOL64" = x; then
6036     OTOOL64=":"
6037   else
6038     case $cross_compiling:$ac_tool_warned in
6039 yes:)
6040 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6041 whose name does not start with the host triplet.  If you think this
6042 configuration is useful to you, please write to autoconf@gnu.org." >&5
6043 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6044 whose name does not start with the host triplet.  If you think this
6045 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6046 ac_tool_warned=yes ;;
6047 esac
6048     OTOOL64=$ac_ct_OTOOL64
6049   fi
6050 else
6051   OTOOL64="$ac_cv_prog_OTOOL64"
6052 fi
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6081 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6082 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6083   echo $ECHO_N "(cached) $ECHO_C" >&6
6084 else
6085   lt_cv_apple_cc_single_mod=no
6086       if test -z "${LT_MULTI_MODULE}"; then
6087         # By default we will add the -single_module flag. You can override
6088         # by either setting the environment variable LT_MULTI_MODULE
6089         # non-empty at configure time, or by adding -multi_module to the
6090         # link flags.
6091         rm -rf libconftest.dylib*
6092         echo "int foo(void){return 1;}" > conftest.c
6093         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6094 -dynamiclib -Wl,-single_module conftest.c" >&5
6095         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6096           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6097         _lt_result=$?
6098         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6099           lt_cv_apple_cc_single_mod=yes
6100         else
6101           cat conftest.err >&5
6102         fi
6103         rm -rf libconftest.dylib*
6104         rm -f conftest.*
6105       fi
6106 fi
6107 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6108 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6109     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6110 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6111 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6112   echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114   lt_cv_ld_exported_symbols_list=no
6115       save_LDFLAGS=$LDFLAGS
6116       echo "_main" > conftest.sym
6117       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6118       cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h.  */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h.  */
6124
6125 int
6126 main ()
6127 {
6128
6129   ;
6130   return 0;
6131 }
6132 _ACEOF
6133 rm -f conftest.$ac_objext conftest$ac_exeext
6134 if { (ac_try="$ac_link"
6135 case "(($ac_try" in
6136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137   *) ac_try_echo=$ac_try;;
6138 esac
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140   (eval "$ac_link") 2>conftest.er1
6141   ac_status=$?
6142   grep -v '^ *+' conftest.er1 >conftest.err
6143   rm -f conftest.er1
6144   cat conftest.err >&5
6145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146   (exit $ac_status); } && {
6147          test -z "$ac_c_werror_flag" ||
6148          test ! -s conftest.err
6149        } && test -s conftest$ac_exeext &&
6150        $as_test_x conftest$ac_exeext; then
6151   lt_cv_ld_exported_symbols_list=yes
6152 else
6153   echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6155
6156         lt_cv_ld_exported_symbols_list=no
6157 fi
6158
6159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6160       conftest$ac_exeext conftest.$ac_ext
6161         LDFLAGS="$save_LDFLAGS"
6162
6163 fi
6164 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6165 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6166     case $host_os in
6167     rhapsody* | darwin1.[012])
6168       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6169     darwin1.*)
6170       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6171     darwin*) # darwin 5.x on
6172       # if running on 10.5 or later, the deployment target defaults
6173       # to the OS version, if on x86, and 10.4, the deployment
6174       # target defaults to 10.4. Don't you love it?
6175       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6176         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6177           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6178         10.[012]*)
6179           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6180         10.*)
6181           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6182       esac
6183     ;;
6184   esac
6185     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6186       _lt_dar_single_mod='$single_module'
6187     fi
6188     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6189       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6190     else
6191       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6192     fi
6193     if test "$DSYMUTIL" != ":"; then
6194       _lt_dsymutil='~$DSYMUTIL $lib || :'
6195     else
6196       _lt_dsymutil=
6197     fi
6198     ;;
6199   esac
6200
6201 ac_ext=c
6202 ac_cpp='$CPP $CPPFLAGS'
6203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6206 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6207 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6208 # On Suns, sometimes $CPP names a directory.
6209 if test -n "$CPP" && test -d "$CPP"; then
6210   CPP=
6211 fi
6212 if test -z "$CPP"; then
6213   if test "${ac_cv_prog_CPP+set}" = set; then
6214   echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216       # Double quotes because CPP needs to be expanded
6217     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6218     do
6219       ac_preproc_ok=false
6220 for ac_c_preproc_warn_flag in '' yes
6221 do
6222   # Use a header file that comes with gcc, so configuring glibc
6223   # with a fresh cross-compiler works.
6224   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6225   # <limits.h> exists even on freestanding compilers.
6226   # On the NeXT, cc -E runs the code through the compiler's parser,
6227   # not just through cpp. "Syntax error" is here to catch this case.
6228   cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h.  */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h.  */
6234 #ifdef __STDC__
6235 # include <limits.h>
6236 #else
6237 # include <assert.h>
6238 #endif
6239                      Syntax error
6240 _ACEOF
6241 if { (ac_try="$ac_cpp conftest.$ac_ext"
6242 case "(($ac_try" in
6243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244   *) ac_try_echo=$ac_try;;
6245 esac
6246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6248   ac_status=$?
6249   grep -v '^ *+' conftest.er1 >conftest.err
6250   rm -f conftest.er1
6251   cat conftest.err >&5
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); } >/dev/null && {
6254          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6255          test ! -s conftest.err
6256        }; then
6257   :
6258 else
6259   echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6261
6262   # Broken: fails on valid input.
6263 continue
6264 fi
6265
6266 rm -f conftest.err conftest.$ac_ext
6267
6268   # OK, works on sane cases.  Now check whether nonexistent headers
6269   # can be detected and how.
6270   cat >conftest.$ac_ext <<_ACEOF
6271 /* confdefs.h.  */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h.  */
6276 #include <ac_nonexistent.h>
6277 _ACEOF
6278 if { (ac_try="$ac_cpp conftest.$ac_ext"
6279 case "(($ac_try" in
6280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281   *) ac_try_echo=$ac_try;;
6282 esac
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6285   ac_status=$?
6286   grep -v '^ *+' conftest.er1 >conftest.err
6287   rm -f conftest.er1
6288   cat conftest.err >&5
6289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); } >/dev/null && {
6291          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6292          test ! -s conftest.err
6293        }; then
6294   # Broken: success on invalid input.
6295 continue
6296 else
6297   echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6299
6300   # Passes both tests.
6301 ac_preproc_ok=:
6302 break
6303 fi
6304
6305 rm -f conftest.err conftest.$ac_ext
6306
6307 done
6308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6309 rm -f conftest.err conftest.$ac_ext
6310 if $ac_preproc_ok; then
6311   break
6312 fi
6313
6314     done
6315     ac_cv_prog_CPP=$CPP
6316
6317 fi
6318   CPP=$ac_cv_prog_CPP
6319 else
6320   ac_cv_prog_CPP=$CPP
6321 fi
6322 { echo "$as_me:$LINENO: result: $CPP" >&5
6323 echo "${ECHO_T}$CPP" >&6; }
6324 ac_preproc_ok=false
6325 for ac_c_preproc_warn_flag in '' yes
6326 do
6327   # Use a header file that comes with gcc, so configuring glibc
6328   # with a fresh cross-compiler works.
6329   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6330   # <limits.h> exists even on freestanding compilers.
6331   # On the NeXT, cc -E runs the code through the compiler's parser,
6332   # not just through cpp. "Syntax error" is here to catch this case.
6333   cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h.  */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h.  */
6339 #ifdef __STDC__
6340 # include <limits.h>
6341 #else
6342 # include <assert.h>
6343 #endif
6344                      Syntax error
6345 _ACEOF
6346 if { (ac_try="$ac_cpp conftest.$ac_ext"
6347 case "(($ac_try" in
6348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349   *) ac_try_echo=$ac_try;;
6350 esac
6351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6353   ac_status=$?
6354   grep -v '^ *+' conftest.er1 >conftest.err
6355   rm -f conftest.er1
6356   cat conftest.err >&5
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); } >/dev/null && {
6359          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6360          test ! -s conftest.err
6361        }; then
6362   :
6363 else
6364   echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6366
6367   # Broken: fails on valid input.
6368 continue
6369 fi
6370
6371 rm -f conftest.err conftest.$ac_ext
6372
6373   # OK, works on sane cases.  Now check whether nonexistent headers
6374   # can be detected and how.
6375   cat >conftest.$ac_ext <<_ACEOF
6376 /* confdefs.h.  */
6377 _ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h.  */
6381 #include <ac_nonexistent.h>
6382 _ACEOF
6383 if { (ac_try="$ac_cpp conftest.$ac_ext"
6384 case "(($ac_try" in
6385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6386   *) ac_try_echo=$ac_try;;
6387 esac
6388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6390   ac_status=$?
6391   grep -v '^ *+' conftest.er1 >conftest.err
6392   rm -f conftest.er1
6393   cat conftest.err >&5
6394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395   (exit $ac_status); } >/dev/null && {
6396          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6397          test ! -s conftest.err
6398        }; then
6399   # Broken: success on invalid input.
6400 continue
6401 else
6402   echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6404
6405   # Passes both tests.
6406 ac_preproc_ok=:
6407 break
6408 fi
6409
6410 rm -f conftest.err conftest.$ac_ext
6411
6412 done
6413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6414 rm -f conftest.err conftest.$ac_ext
6415 if $ac_preproc_ok; then
6416   :
6417 else
6418   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6419 See \`config.log' for more details." >&5
6420 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6421 See \`config.log' for more details." >&2;}
6422    { (exit 1); exit 1; }; }
6423 fi
6424
6425 ac_ext=c
6426 ac_cpp='$CPP $CPPFLAGS'
6427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6430
6431
6432 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6433 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6434 if test "${ac_cv_header_stdc+set}" = set; then
6435   echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437   cat >conftest.$ac_ext <<_ACEOF
6438 /* confdefs.h.  */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h.  */
6443 #include <stdlib.h>
6444 #include <stdarg.h>
6445 #include <string.h>
6446 #include <float.h>
6447
6448 int
6449 main ()
6450 {
6451
6452   ;
6453   return 0;
6454 }
6455 _ACEOF
6456 rm -f conftest.$ac_objext
6457 if { (ac_try="$ac_compile"
6458 case "(($ac_try" in
6459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6460   *) ac_try_echo=$ac_try;;
6461 esac
6462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6463   (eval "$ac_compile") 2>conftest.er1
6464   ac_status=$?
6465   grep -v '^ *+' conftest.er1 >conftest.err
6466   rm -f conftest.er1
6467   cat conftest.err >&5
6468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469   (exit $ac_status); } && {
6470          test -z "$ac_c_werror_flag" ||
6471          test ! -s conftest.err
6472        } && test -s conftest.$ac_objext; then
6473   ac_cv_header_stdc=yes
6474 else
6475   echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6477
6478         ac_cv_header_stdc=no
6479 fi
6480
6481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6482
6483 if test $ac_cv_header_stdc = yes; then
6484   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6485   cat >conftest.$ac_ext <<_ACEOF
6486 /* confdefs.h.  */
6487 _ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h.  */
6491 #include <string.h>
6492
6493 _ACEOF
6494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6495   $EGREP "memchr" >/dev/null 2>&1; then
6496   :
6497 else
6498   ac_cv_header_stdc=no
6499 fi
6500 rm -f conftest*
6501
6502 fi
6503
6504 if test $ac_cv_header_stdc = yes; then
6505   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6506   cat >conftest.$ac_ext <<_ACEOF
6507 /* confdefs.h.  */
6508 _ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h.  */
6512 #include <stdlib.h>
6513
6514 _ACEOF
6515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6516   $EGREP "free" >/dev/null 2>&1; then
6517   :
6518 else
6519   ac_cv_header_stdc=no
6520 fi
6521 rm -f conftest*
6522
6523 fi
6524
6525 if test $ac_cv_header_stdc = yes; then
6526   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6527   if test "$cross_compiling" = yes; then
6528   :
6529 else
6530   cat >conftest.$ac_ext <<_ACEOF
6531 /* confdefs.h.  */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h.  */
6536 #include <ctype.h>
6537 #include <stdlib.h>
6538 #if ((' ' & 0x0FF) == 0x020)
6539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6541 #else
6542 # define ISLOWER(c) \
6543                    (('a' <= (c) && (c) <= 'i') \
6544                      || ('j' <= (c) && (c) <= 'r') \
6545                      || ('s' <= (c) && (c) <= 'z'))
6546 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6547 #endif
6548
6549 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6550 int
6551 main ()
6552 {
6553   int i;
6554   for (i = 0; i < 256; i++)
6555     if (XOR (islower (i), ISLOWER (i))
6556         || toupper (i) != TOUPPER (i))
6557       return 2;
6558   return 0;
6559 }
6560 _ACEOF
6561 rm -f conftest$ac_exeext
6562 if { (ac_try="$ac_link"
6563 case "(($ac_try" in
6564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565   *) ac_try_echo=$ac_try;;
6566 esac
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568   (eval "$ac_link") 2>&5
6569   ac_status=$?
6570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6572   { (case "(($ac_try" in
6573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574   *) ac_try_echo=$ac_try;;
6575 esac
6576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577   (eval "$ac_try") 2>&5
6578   ac_status=$?
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); }; }; then
6581   :
6582 else
6583   echo "$as_me: program exited with status $ac_status" >&5
6584 echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.$ac_ext >&5
6586
6587 ( exit $ac_status )
6588 ac_cv_header_stdc=no
6589 fi
6590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6591 fi
6592
6593
6594 fi
6595 fi
6596 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6597 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6598 if test $ac_cv_header_stdc = yes; then
6599
6600 cat >>confdefs.h <<\_ACEOF
6601 #define STDC_HEADERS 1
6602 _ACEOF
6603
6604 fi
6605
6606 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6617                   inttypes.h stdint.h unistd.h
6618 do
6619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6623   echo $ECHO_N "(cached) $ECHO_C" >&6
6624 else
6625   cat >conftest.$ac_ext <<_ACEOF
6626 /* confdefs.h.  */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h.  */
6631 $ac_includes_default
6632
6633 #include <$ac_header>
6634 _ACEOF
6635 rm -f conftest.$ac_objext
6636 if { (ac_try="$ac_compile"
6637 case "(($ac_try" in
6638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639   *) ac_try_echo=$ac_try;;
6640 esac
6641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6642   (eval "$ac_compile") 2>conftest.er1
6643   ac_status=$?
6644   grep -v '^ *+' conftest.er1 >conftest.err
6645   rm -f conftest.er1
6646   cat conftest.err >&5
6647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648   (exit $ac_status); } && {
6649          test -z "$ac_c_werror_flag" ||
6650          test ! -s conftest.err
6651        } && test -s conftest.$ac_objext; then
6652   eval "$as_ac_Header=yes"
6653 else
6654   echo "$as_me: failed program was:" >&5
6655 sed 's/^/| /' conftest.$ac_ext >&5
6656
6657         eval "$as_ac_Header=no"
6658 fi
6659
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661 fi
6662 ac_res=`eval echo '${'$as_ac_Header'}'`
6663                { echo "$as_me:$LINENO: result: $ac_res" >&5
6664 echo "${ECHO_T}$ac_res" >&6; }
6665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6666   cat >>confdefs.h <<_ACEOF
6667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6668 _ACEOF
6669
6670 fi
6671
6672 done
6673
6674
6675
6676 for ac_header in dlfcn.h
6677 do
6678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6682   echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684   cat >conftest.$ac_ext <<_ACEOF
6685 /* confdefs.h.  */
6686 _ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h.  */
6690 $ac_includes_default
6691
6692 #include <$ac_header>
6693 _ACEOF
6694 rm -f conftest.$ac_objext
6695 if { (ac_try="$ac_compile"
6696 case "(($ac_try" in
6697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698   *) ac_try_echo=$ac_try;;
6699 esac
6700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701   (eval "$ac_compile") 2>conftest.er1
6702   ac_status=$?
6703   grep -v '^ *+' conftest.er1 >conftest.err
6704   rm -f conftest.er1
6705   cat conftest.err >&5
6706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707   (exit $ac_status); } && {
6708          test -z "$ac_c_werror_flag" ||
6709          test ! -s conftest.err
6710        } && test -s conftest.$ac_objext; then
6711   eval "$as_ac_Header=yes"
6712 else
6713   echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6715
6716         eval "$as_ac_Header=no"
6717 fi
6718
6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720 fi
6721 ac_res=`eval echo '${'$as_ac_Header'}'`
6722                { echo "$as_me:$LINENO: result: $ac_res" >&5
6723 echo "${ECHO_T}$ac_res" >&6; }
6724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6725   cat >>confdefs.h <<_ACEOF
6726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6727 _ACEOF
6728
6729 fi
6730
6731 done
6732
6733
6734
6735 # Set options
6736
6737
6738
6739         enable_dlopen=no
6740
6741
6742   enable_win32_dll=no
6743
6744
6745             # Check whether --enable-shared was given.
6746 if test "${enable_shared+set}" = set; then
6747   enableval=$enable_shared; p=${PACKAGE-default}
6748     case $enableval in
6749     yes) enable_shared=yes ;;
6750     no) enable_shared=no ;;
6751     *)
6752       enable_shared=no
6753       # Look at the argument we got.  We use all the common list separators.
6754       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6755       for pkg in $enableval; do
6756         IFS="$lt_save_ifs"
6757         if test "X$pkg" = "X$p"; then
6758           enable_shared=yes
6759         fi
6760       done
6761       IFS="$lt_save_ifs"
6762       ;;
6763     esac
6764 else
6765   enable_shared=yes
6766 fi
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776   # Check whether --enable-static was given.
6777 if test "${enable_static+set}" = set; then
6778   enableval=$enable_static; p=${PACKAGE-default}
6779     case $enableval in
6780     yes) enable_static=yes ;;
6781     no) enable_static=no ;;
6782     *)
6783      enable_static=no
6784       # Look at the argument we got.  We use all the common list separators.
6785       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6786       for pkg in $enableval; do
6787         IFS="$lt_save_ifs"
6788         if test "X$pkg" = "X$p"; then
6789           enable_static=yes
6790         fi
6791       done
6792       IFS="$lt_save_ifs"
6793       ;;
6794     esac
6795 else
6796   enable_static=yes
6797 fi
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808 # Check whether --with-pic was given.
6809 if test "${with_pic+set}" = set; then
6810   withval=$with_pic; pic_mode="$withval"
6811 else
6812   pic_mode=default
6813 fi
6814
6815
6816 test -z "$pic_mode" && pic_mode=default
6817
6818
6819
6820
6821
6822
6823
6824   # Check whether --enable-fast-install was given.
6825 if test "${enable_fast_install+set}" = set; then
6826   enableval=$enable_fast_install; p=${PACKAGE-default}
6827     case $enableval in
6828     yes) enable_fast_install=yes ;;
6829     no) enable_fast_install=no ;;
6830     *)
6831       enable_fast_install=no
6832       # Look at the argument we got.  We use all the common list separators.
6833       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6834       for pkg in $enableval; do
6835         IFS="$lt_save_ifs"
6836         if test "X$pkg" = "X$p"; then
6837           enable_fast_install=yes
6838         fi
6839       done
6840       IFS="$lt_save_ifs"
6841       ;;
6842     esac
6843 else
6844   enable_fast_install=yes
6845 fi
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857 # This can be used to rebuild libtool when needed
6858 LIBTOOL_DEPS="$ltmain"
6859
6860 # Always use our own libtool.
6861 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887 test -z "$LN_S" && LN_S="ln -s"
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902 if test -n "${ZSH_VERSION+set}" ; then
6903    setopt NO_GLOB_SUBST
6904 fi
6905
6906 { echo "$as_me:$LINENO: checking for objdir" >&5
6907 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6908 if test "${lt_cv_objdir+set}" = set; then
6909   echo $ECHO_N "(cached) $ECHO_C" >&6
6910 else
6911   rm -f .libs 2>/dev/null
6912 mkdir .libs 2>/dev/null
6913 if test -d .libs; then
6914   lt_cv_objdir=.libs
6915 else
6916   # MS-DOS does not allow filenames that begin with a dot.
6917   lt_cv_objdir=_libs
6918 fi
6919 rmdir .libs 2>/dev/null
6920 fi
6921 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6922 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6923 objdir=$lt_cv_objdir
6924
6925
6926
6927
6928
6929 cat >>confdefs.h <<_ACEOF
6930 #define LT_OBJDIR "$lt_cv_objdir/"
6931 _ACEOF
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949 case $host_os in
6950 aix3*)
6951   # AIX sometimes has problems with the GCC collect2 program.  For some
6952   # reason, if we set the COLLECT_NAMES environment variable, the problems
6953   # vanish in a puff of smoke.
6954   if test "X${COLLECT_NAMES+set}" != Xset; then
6955     COLLECT_NAMES=
6956     export COLLECT_NAMES
6957   fi
6958   ;;
6959 esac
6960
6961 # Sed substitution that helps us do robust quoting.  It backslashifies
6962 # metacharacters that are still active within double-quoted strings.
6963 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6964
6965 # Same as above, but do not quote variable references.
6966 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6967
6968 # Sed substitution to delay expansion of an escaped shell variable in a
6969 # double_quote_subst'ed string.
6970 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6971
6972 # Sed substitution to delay expansion of an escaped single quote.
6973 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6974
6975 # Sed substitution to avoid accidental globbing in evaled expressions
6976 no_glob_subst='s/\*/\\\*/g'
6977
6978 # Global variables:
6979 ofile=libtool
6980 can_build_shared=yes
6981
6982 # All known linkers require a `.a' archive for static linking (except MSVC,
6983 # which needs '.lib').
6984 libext=a
6985
6986 with_gnu_ld="$lt_cv_prog_gnu_ld"
6987
6988 old_CC="$CC"
6989 old_CFLAGS="$CFLAGS"
6990
6991 # Set sane defaults for various variables
6992 test -z "$CC" && CC=cc
6993 test -z "$LTCC" && LTCC=$CC
6994 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6995 test -z "$LD" && LD=ld
6996 test -z "$ac_objext" && ac_objext=o
6997
6998 for cc_temp in $compiler""; do
6999   case $cc_temp in
7000     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7001     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7002     \-*) ;;
7003     *) break;;
7004   esac
7005 done
7006 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7007
7008
7009 # Only perform the check for file, if the check method requires it
7010 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7011 case $deplibs_check_method in
7012 file_magic*)
7013   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7014     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7015 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7016 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7017   echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019   case $MAGIC_CMD in
7020 [\\/*] |  ?:[\\/]*)
7021   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7022   ;;
7023 *)
7024   lt_save_MAGIC_CMD="$MAGIC_CMD"
7025   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7026   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7027   for ac_dir in $ac_dummy; do
7028     IFS="$lt_save_ifs"
7029     test -z "$ac_dir" && ac_dir=.
7030     if test -f $ac_dir/${ac_tool_prefix}file; then
7031       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7032       if test -n "$file_magic_test_file"; then
7033         case $deplibs_check_method in
7034         "file_magic "*)
7035           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7036           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7037           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7038             $EGREP "$file_magic_regex" > /dev/null; then
7039             :
7040           else
7041             cat <<_LT_EOF 1>&2
7042
7043 *** Warning: the command libtool uses to detect shared libraries,
7044 *** $file_magic_cmd, produces output that libtool cannot recognize.
7045 *** The result is that libtool may fail to recognize shared libraries
7046 *** as such.  This will affect the creation of libtool libraries that
7047 *** depend on shared libraries, but programs linked with such libtool
7048 *** libraries will work regardless of this problem.  Nevertheless, you
7049 *** may want to report the problem to your system manager and/or to
7050 *** bug-libtool@gnu.org
7051
7052 _LT_EOF
7053           fi ;;
7054         esac
7055       fi
7056       break
7057     fi
7058   done
7059   IFS="$lt_save_ifs"
7060   MAGIC_CMD="$lt_save_MAGIC_CMD"
7061   ;;
7062 esac
7063 fi
7064
7065 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7066 if test -n "$MAGIC_CMD"; then
7067   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7068 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7069 else
7070   { echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6; }
7072 fi
7073
7074
7075
7076
7077
7078 if test -z "$lt_cv_path_MAGIC_CMD"; then
7079   if test -n "$ac_tool_prefix"; then
7080     { echo "$as_me:$LINENO: checking for file" >&5
7081 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7082 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7083   echo $ECHO_N "(cached) $ECHO_C" >&6
7084 else
7085   case $MAGIC_CMD in
7086 [\\/*] |  ?:[\\/]*)
7087   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7088   ;;
7089 *)
7090   lt_save_MAGIC_CMD="$MAGIC_CMD"
7091   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7092   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7093   for ac_dir in $ac_dummy; do
7094     IFS="$lt_save_ifs"
7095     test -z "$ac_dir" && ac_dir=.
7096     if test -f $ac_dir/file; then
7097       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7098       if test -n "$file_magic_test_file"; then
7099         case $deplibs_check_method in
7100         "file_magic "*)
7101           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7102           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7103           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7104             $EGREP "$file_magic_regex" > /dev/null; then
7105             :
7106           else
7107             cat <<_LT_EOF 1>&2
7108
7109 *** Warning: the command libtool uses to detect shared libraries,
7110 *** $file_magic_cmd, produces output that libtool cannot recognize.
7111 *** The result is that libtool may fail to recognize shared libraries
7112 *** as such.  This will affect the creation of libtool libraries that
7113 *** depend on shared libraries, but programs linked with such libtool
7114 *** libraries will work regardless of this problem.  Nevertheless, you
7115 *** may want to report the problem to your system manager and/or to
7116 *** bug-libtool@gnu.org
7117
7118 _LT_EOF
7119           fi ;;
7120         esac
7121       fi
7122       break
7123     fi
7124   done
7125   IFS="$lt_save_ifs"
7126   MAGIC_CMD="$lt_save_MAGIC_CMD"
7127   ;;
7128 esac
7129 fi
7130
7131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7132 if test -n "$MAGIC_CMD"; then
7133   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7134 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7135 else
7136   { echo "$as_me:$LINENO: result: no" >&5
7137 echo "${ECHO_T}no" >&6; }
7138 fi
7139
7140
7141   else
7142     MAGIC_CMD=:
7143   fi
7144 fi
7145
7146   fi
7147   ;;
7148 esac
7149
7150 # Use C for the default configuration in the libtool script
7151
7152 lt_save_CC="$CC"
7153 ac_ext=c
7154 ac_cpp='$CPP $CPPFLAGS'
7155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7158
7159
7160 # Source file extension for C test sources.
7161 ac_ext=c
7162
7163 # Object file extension for compiled C test sources.
7164 objext=o
7165 objext=$objext
7166
7167 # Code to be used in simple compile tests
7168 lt_simple_compile_test_code="int some_variable = 0;"
7169
7170 # Code to be used in simple link tests
7171 lt_simple_link_test_code='int main(){return(0);}'
7172
7173
7174
7175
7176
7177
7178
7179 # If no C compiler was specified, use CC.
7180 LTCC=${LTCC-"$CC"}
7181
7182 # If no C compiler flags were specified, use CFLAGS.
7183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7184
7185 # Allow CC to be a program name with arguments.
7186 compiler=$CC
7187
7188 # Save the default compiler, since it gets overwritten when the other
7189 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7190 compiler_DEFAULT=$CC
7191
7192 # save warnings/boilerplate of simple test code
7193 ac_outfile=conftest.$ac_objext
7194 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7195 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7196 _lt_compiler_boilerplate=`cat conftest.err`
7197 $RM conftest*
7198
7199 ac_outfile=conftest.$ac_objext
7200 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7201 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7202 _lt_linker_boilerplate=`cat conftest.err`
7203 $RM -r conftest*
7204
7205
7206 if test -n "$compiler"; then
7207
7208 lt_prog_compiler_no_builtin_flag=
7209
7210 if test "$GCC" = yes; then
7211   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7212
7213   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7214 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7215 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7216   echo $ECHO_N "(cached) $ECHO_C" >&6
7217 else
7218   lt_cv_prog_compiler_rtti_exceptions=no
7219    ac_outfile=conftest.$ac_objext
7220    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7221    lt_compiler_flag="-fno-rtti -fno-exceptions"
7222    # Insert the option either (1) after the last *FLAGS variable, or
7223    # (2) before a word containing "conftest.", or (3) at the end.
7224    # Note that $ac_compile itself does not contain backslashes and begins
7225    # with a dollar sign (not a hyphen), so the echo should work correctly.
7226    # The option is referenced via a variable to avoid confusing sed.
7227    lt_compile=`echo "$ac_compile" | $SED \
7228    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7229    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7230    -e 's:$: $lt_compiler_flag:'`
7231    (eval echo "\"\$as_me:7231: $lt_compile\"" >&5)
7232    (eval "$lt_compile" 2>conftest.err)
7233    ac_status=$?
7234    cat conftest.err >&5
7235    echo "$as_me:7235: \$? = $ac_status" >&5
7236    if (exit $ac_status) && test -s "$ac_outfile"; then
7237      # The compiler can only warn and ignore the option if not recognized
7238      # So say no if there are warnings other than the usual output.
7239      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7240      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7241      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7242        lt_cv_prog_compiler_rtti_exceptions=yes
7243      fi
7244    fi
7245    $RM conftest*
7246
7247 fi
7248 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7249 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7250
7251 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7252     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7253 else
7254     :
7255 fi
7256
7257 fi
7258
7259
7260
7261
7262
7263
7264   lt_prog_compiler_wl=
7265 lt_prog_compiler_pic=
7266 lt_prog_compiler_static=
7267
7268 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7269 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7270
7271   if test "$GCC" = yes; then
7272     lt_prog_compiler_wl='-Wl,'
7273     lt_prog_compiler_static='-static'
7274
7275     case $host_os in
7276       aix*)
7277       # All AIX code is PIC.
7278       if test "$host_cpu" = ia64; then
7279         # AIX 5 now supports IA64 processor
7280         lt_prog_compiler_static='-Bstatic'
7281       fi
7282       ;;
7283
7284     amigaos*)
7285       case $host_cpu in
7286       powerpc)
7287             # see comment about AmigaOS4 .so support
7288             lt_prog_compiler_pic='-fPIC'
7289         ;;
7290       m68k)
7291             # FIXME: we need at least 68020 code to build shared libraries, but
7292             # adding the `-m68020' flag to GCC prevents building anything better,
7293             # like `-m68040'.
7294             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7295         ;;
7296       esac
7297       ;;
7298
7299     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7300       # PIC is the default for these OSes.
7301       ;;
7302
7303     mingw* | cygwin* | pw32* | os2*)
7304       # This hack is so that the source file can tell whether it is being
7305       # built for inclusion in a dll (and should export symbols for example).
7306       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7307       # (--disable-auto-import) libraries
7308       lt_prog_compiler_pic='-DDLL_EXPORT'
7309       ;;
7310
7311     darwin* | rhapsody*)
7312       # PIC is the default on this platform
7313       # Common symbols not allowed in MH_DYLIB files
7314       lt_prog_compiler_pic='-fno-common'
7315       ;;
7316
7317     hpux*)
7318       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7319       # not for PA HP-UX.
7320       case $host_cpu in
7321       hppa*64*|ia64*)
7322         # +Z the default
7323         ;;
7324       *)
7325         lt_prog_compiler_pic='-fPIC'
7326         ;;
7327       esac
7328       ;;
7329
7330     interix[3-9]*)
7331       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7332       # Instead, we relocate shared libraries at runtime.
7333       ;;
7334
7335     msdosdjgpp*)
7336       # Just because we use GCC doesn't mean we suddenly get shared libraries
7337       # on systems that don't support them.
7338       lt_prog_compiler_can_build_shared=no
7339       enable_shared=no
7340       ;;
7341
7342     *nto* | *qnx*)
7343       # QNX uses GNU C++, but need to define -shared option too, otherwise
7344       # it will coredump.
7345       lt_prog_compiler_pic='-fPIC -shared'
7346       ;;
7347
7348     sysv4*MP*)
7349       if test -d /usr/nec; then
7350         lt_prog_compiler_pic=-Kconform_pic
7351       fi
7352       ;;
7353
7354     *)
7355       lt_prog_compiler_pic='-fPIC'
7356       ;;
7357     esac
7358   else
7359     # PORTME Check for flag to pass linker flags through the system compiler.
7360     case $host_os in
7361     aix*)
7362       lt_prog_compiler_wl='-Wl,'
7363       if test "$host_cpu" = ia64; then
7364         # AIX 5 now supports IA64 processor
7365         lt_prog_compiler_static='-Bstatic'
7366       else
7367         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7368       fi
7369       ;;
7370
7371     mingw* | cygwin* | pw32* | os2*)
7372       # This hack is so that the source file can tell whether it is being
7373       # built for inclusion in a dll (and should export symbols for example).
7374       lt_prog_compiler_pic='-DDLL_EXPORT'
7375       ;;
7376
7377     hpux9* | hpux10* | hpux11*)
7378       lt_prog_compiler_wl='-Wl,'
7379       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7380       # not for PA HP-UX.
7381       case $host_cpu in
7382       hppa*64*|ia64*)
7383         # +Z the default
7384         ;;
7385       *)
7386         lt_prog_compiler_pic='+Z'
7387         ;;
7388       esac
7389       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7390       lt_prog_compiler_static='${wl}-a ${wl}archive'
7391       ;;
7392
7393     irix5* | irix6* | nonstopux*)
7394       lt_prog_compiler_wl='-Wl,'
7395       # PIC (with -KPIC) is the default.
7396       lt_prog_compiler_static='-non_shared'
7397       ;;
7398
7399     linux* | k*bsd*-gnu)
7400       case $cc_basename in
7401       icc* | ecc* | ifort*)
7402         lt_prog_compiler_wl='-Wl,'
7403         lt_prog_compiler_pic='-KPIC'
7404         lt_prog_compiler_static='-static'
7405         ;;
7406       pgcc* | pgf77* | pgf90* | pgf95*)
7407         # Portland Group compilers (*not* the Pentium gcc compiler,
7408         # which looks to be a dead project)
7409         lt_prog_compiler_wl='-Wl,'
7410         lt_prog_compiler_pic='-fpic'
7411         lt_prog_compiler_static='-Bstatic'
7412         ;;
7413       ccc*)
7414         lt_prog_compiler_wl='-Wl,'
7415         # All Alpha code is PIC.
7416         lt_prog_compiler_static='-non_shared'
7417         ;;
7418       xl*)
7419         # IBM XL C 8.0/Fortran 10.1 on PPC
7420         lt_prog_compiler_wl='-Wl,'
7421         lt_prog_compiler_pic='-qpic'
7422         lt_prog_compiler_static='-qstaticlink'
7423         ;;
7424       *)
7425         case `$CC -V 2>&1 | sed 5q` in
7426         *Sun\ C*)
7427           # Sun C 5.9
7428           lt_prog_compiler_pic='-KPIC'
7429           lt_prog_compiler_static='-Bstatic'
7430           lt_prog_compiler_wl='-Wl,'
7431           ;;
7432         *Sun\ F*)
7433           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7434           lt_prog_compiler_pic='-KPIC'
7435           lt_prog_compiler_static='-Bstatic'
7436           lt_prog_compiler_wl=''
7437           ;;
7438         esac
7439         ;;
7440       esac
7441       ;;
7442
7443     newsos6)
7444       lt_prog_compiler_pic='-KPIC'
7445       lt_prog_compiler_static='-Bstatic'
7446       ;;
7447
7448     *nto* | *qnx*)
7449       # QNX uses GNU C++, but need to define -shared option too, otherwise
7450       # it will coredump.
7451       lt_prog_compiler_pic='-fPIC -shared'
7452       ;;
7453
7454     osf3* | osf4* | osf5*)
7455       lt_prog_compiler_wl='-Wl,'
7456       # All OSF/1 code is PIC.
7457       lt_prog_compiler_static='-non_shared'
7458       ;;
7459
7460     rdos*)
7461       lt_prog_compiler_static='-non_shared'
7462       ;;
7463
7464     solaris*)
7465       lt_prog_compiler_pic='-KPIC'
7466       lt_prog_compiler_static='-Bstatic'
7467       case $cc_basename in
7468       f77* | f90* | f95*)
7469         lt_prog_compiler_wl='-Qoption ld ';;
7470       *)
7471         lt_prog_compiler_wl='-Wl,';;
7472       esac
7473       ;;
7474
7475     sunos4*)
7476       lt_prog_compiler_wl='-Qoption ld '
7477       lt_prog_compiler_pic='-PIC'
7478       lt_prog_compiler_static='-Bstatic'
7479       ;;
7480
7481     sysv4 | sysv4.2uw2* | sysv4.3*)
7482       lt_prog_compiler_wl='-Wl,'
7483       lt_prog_compiler_pic='-KPIC'
7484       lt_prog_compiler_static='-Bstatic'
7485       ;;
7486
7487     sysv4*MP*)
7488       if test -d /usr/nec ;then
7489         lt_prog_compiler_pic='-Kconform_pic'
7490         lt_prog_compiler_static='-Bstatic'
7491       fi
7492       ;;
7493
7494     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7495       lt_prog_compiler_wl='-Wl,'
7496       lt_prog_compiler_pic='-KPIC'
7497       lt_prog_compiler_static='-Bstatic'
7498       ;;
7499
7500     unicos*)
7501       lt_prog_compiler_wl='-Wl,'
7502       lt_prog_compiler_can_build_shared=no
7503       ;;
7504
7505     uts4*)
7506       lt_prog_compiler_pic='-pic'
7507       lt_prog_compiler_static='-Bstatic'
7508       ;;
7509
7510     *)
7511       lt_prog_compiler_can_build_shared=no
7512       ;;
7513     esac
7514   fi
7515
7516 case $host_os in
7517   # For platforms which do not support PIC, -DPIC is meaningless:
7518   *djgpp*)
7519     lt_prog_compiler_pic=
7520     ;;
7521   *)
7522     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7523     ;;
7524 esac
7525 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7526 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7527
7528
7529
7530
7531
7532
7533 #
7534 # Check to make sure the PIC flag actually works.
7535 #
7536 if test -n "$lt_prog_compiler_pic"; then
7537   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7538 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7539 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7540   echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542   lt_cv_prog_compiler_pic_works=no
7543    ac_outfile=conftest.$ac_objext
7544    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7545    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7546    # Insert the option either (1) after the last *FLAGS variable, or
7547    # (2) before a word containing "conftest.", or (3) at the end.
7548    # Note that $ac_compile itself does not contain backslashes and begins
7549    # with a dollar sign (not a hyphen), so the echo should work correctly.
7550    # The option is referenced via a variable to avoid confusing sed.
7551    lt_compile=`echo "$ac_compile" | $SED \
7552    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7553    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7554    -e 's:$: $lt_compiler_flag:'`
7555    (eval echo "\"\$as_me:7555: $lt_compile\"" >&5)
7556    (eval "$lt_compile" 2>conftest.err)
7557    ac_status=$?
7558    cat conftest.err >&5
7559    echo "$as_me:7559: \$? = $ac_status" >&5
7560    if (exit $ac_status) && test -s "$ac_outfile"; then
7561      # The compiler can only warn and ignore the option if not recognized
7562      # So say no if there are warnings other than the usual output.
7563      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7564      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7565      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7566        lt_cv_prog_compiler_pic_works=yes
7567      fi
7568    fi
7569    $RM conftest*
7570
7571 fi
7572 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7573 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7574
7575 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7576     case $lt_prog_compiler_pic in
7577      "" | " "*) ;;
7578      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7579      esac
7580 else
7581     lt_prog_compiler_pic=
7582      lt_prog_compiler_can_build_shared=no
7583 fi
7584
7585 fi
7586
7587
7588
7589
7590
7591
7592 #
7593 # Check to make sure the static flag actually works.
7594 #
7595 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7596 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7597 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7598 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7599   echo $ECHO_N "(cached) $ECHO_C" >&6
7600 else
7601   lt_cv_prog_compiler_static_works=no
7602    save_LDFLAGS="$LDFLAGS"
7603    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7604    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7605    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7606      # The linker can only warn and ignore the option if not recognized
7607      # So say no if there are warnings
7608      if test -s conftest.err; then
7609        # Append any errors to the config.log.
7610        cat conftest.err 1>&5
7611        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7612        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7613        if diff conftest.exp conftest.er2 >/dev/null; then
7614          lt_cv_prog_compiler_static_works=yes
7615        fi
7616      else
7617        lt_cv_prog_compiler_static_works=yes
7618      fi
7619    fi
7620    $RM -r conftest*
7621    LDFLAGS="$save_LDFLAGS"
7622
7623 fi
7624 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7625 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7626
7627 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7628     :
7629 else
7630     lt_prog_compiler_static=
7631 fi
7632
7633
7634
7635
7636
7637
7638
7639   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7640 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7641 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7642   echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644   lt_cv_prog_compiler_c_o=no
7645    $RM -r conftest 2>/dev/null
7646    mkdir conftest
7647    cd conftest
7648    mkdir out
7649    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7650
7651    lt_compiler_flag="-o out/conftest2.$ac_objext"
7652    # Insert the option either (1) after the last *FLAGS variable, or
7653    # (2) before a word containing "conftest.", or (3) at the end.
7654    # Note that $ac_compile itself does not contain backslashes and begins
7655    # with a dollar sign (not a hyphen), so the echo should work correctly.
7656    lt_compile=`echo "$ac_compile" | $SED \
7657    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7658    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7659    -e 's:$: $lt_compiler_flag:'`
7660    (eval echo "\"\$as_me:7660: $lt_compile\"" >&5)
7661    (eval "$lt_compile" 2>out/conftest.err)
7662    ac_status=$?
7663    cat out/conftest.err >&5
7664    echo "$as_me:7664: \$? = $ac_status" >&5
7665    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7666    then
7667      # The compiler can only warn and ignore the option if not recognized
7668      # So say no if there are warnings
7669      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7670      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7671      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7672        lt_cv_prog_compiler_c_o=yes
7673      fi
7674    fi
7675    chmod u+w . 2>&5
7676    $RM conftest*
7677    # SGI C++ compiler will create directory out/ii_files/ for
7678    # template instantiation
7679    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7680    $RM out/* && rmdir out
7681    cd ..
7682    $RM -r conftest
7683    $RM conftest*
7684
7685 fi
7686 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7687 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7688
7689
7690
7691
7692
7693
7694   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7695 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7696 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7697   echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699   lt_cv_prog_compiler_c_o=no
7700    $RM -r conftest 2>/dev/null
7701    mkdir conftest
7702    cd conftest
7703    mkdir out
7704    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7705
7706    lt_compiler_flag="-o out/conftest2.$ac_objext"
7707    # Insert the option either (1) after the last *FLAGS variable, or
7708    # (2) before a word containing "conftest.", or (3) at the end.
7709    # Note that $ac_compile itself does not contain backslashes and begins
7710    # with a dollar sign (not a hyphen), so the echo should work correctly.
7711    lt_compile=`echo "$ac_compile" | $SED \
7712    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7713    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7714    -e 's:$: $lt_compiler_flag:'`
7715    (eval echo "\"\$as_me:7715: $lt_compile\"" >&5)
7716    (eval "$lt_compile" 2>out/conftest.err)
7717    ac_status=$?
7718    cat out/conftest.err >&5
7719    echo "$as_me:7719: \$? = $ac_status" >&5
7720    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7721    then
7722      # The compiler can only warn and ignore the option if not recognized
7723      # So say no if there are warnings
7724      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7725      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7726      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7727        lt_cv_prog_compiler_c_o=yes
7728      fi
7729    fi
7730    chmod u+w . 2>&5
7731    $RM conftest*
7732    # SGI C++ compiler will create directory out/ii_files/ for
7733    # template instantiation
7734    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7735    $RM out/* && rmdir out
7736    cd ..
7737    $RM -r conftest
7738    $RM conftest*
7739
7740 fi
7741 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7742 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7743
7744
7745
7746
7747 hard_links="nottested"
7748 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7749   # do not overwrite the value of need_locks provided by the user
7750   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7751 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7752   hard_links=yes
7753   $RM conftest*
7754   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7755   touch conftest.a
7756   ln conftest.a conftest.b 2>&5 || hard_links=no
7757   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7758   { echo "$as_me:$LINENO: result: $hard_links" >&5
7759 echo "${ECHO_T}$hard_links" >&6; }
7760   if test "$hard_links" = no; then
7761     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7762 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7763     need_locks=warn
7764   fi
7765 else
7766   need_locks=no
7767 fi
7768
7769
7770
7771
7772
7773
7774   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7775 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7776
7777   runpath_var=
7778   allow_undefined_flag=
7779   always_export_symbols=no
7780   archive_cmds=
7781   archive_expsym_cmds=
7782   compiler_needs_object=no
7783   enable_shared_with_static_runtimes=no
7784   export_dynamic_flag_spec=
7785   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7786   hardcode_automatic=no
7787   hardcode_direct=no
7788   hardcode_direct_absolute=no
7789   hardcode_libdir_flag_spec=
7790   hardcode_libdir_flag_spec_ld=
7791   hardcode_libdir_separator=
7792   hardcode_minus_L=no
7793   hardcode_shlibpath_var=unsupported
7794   inherit_rpath=no
7795   link_all_deplibs=unknown
7796   module_cmds=
7797   module_expsym_cmds=
7798   old_archive_from_new_cmds=
7799   old_archive_from_expsyms_cmds=
7800   thread_safe_flag_spec=
7801   whole_archive_flag_spec=
7802   # include_expsyms should be a list of space-separated symbols to be *always*
7803   # included in the symbol list
7804   include_expsyms=
7805   # exclude_expsyms can be an extended regexp of symbols to exclude
7806   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7807   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7808   # as well as any symbol that contains `d'.
7809   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7810   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7811   # platforms (ab)use it in PIC code, but their linkers get confused if
7812   # the symbol is explicitly referenced.  Since portable code cannot
7813   # rely on this symbol name, it's probably fine to never include it in
7814   # preloaded symbol tables.
7815   # Exclude shared library initialization/finalization symbols.
7816   extract_expsyms_cmds=
7817
7818   case $host_os in
7819   cygwin* | mingw* | pw32*)
7820     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7821     # When not using gcc, we currently assume that we are using
7822     # Microsoft Visual C++.
7823     if test "$GCC" != yes; then
7824       with_gnu_ld=no
7825     fi
7826     ;;
7827   interix*)
7828     # we just hope/assume this is gcc and not c89 (= MSVC++)
7829     with_gnu_ld=yes
7830     ;;
7831   openbsd*)
7832     with_gnu_ld=no
7833     ;;
7834   esac
7835
7836   ld_shlibs=yes
7837   if test "$with_gnu_ld" = yes; then
7838     # If archive_cmds runs LD, not CC, wlarc should be empty
7839     wlarc='${wl}'
7840
7841     # Set some defaults for GNU ld with shared library support. These
7842     # are reset later if shared libraries are not supported. Putting them
7843     # here allows them to be overridden if necessary.
7844     runpath_var=LD_RUN_PATH
7845     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7846     export_dynamic_flag_spec='${wl}--export-dynamic'
7847     # ancient GNU ld didn't support --whole-archive et. al.
7848     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7849       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7850     else
7851       whole_archive_flag_spec=
7852     fi
7853     supports_anon_versioning=no
7854     case `$LD -v 2>&1` in
7855       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7856       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7857       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7858       *\ 2.11.*) ;; # other 2.11 versions
7859       *) supports_anon_versioning=yes ;;
7860     esac
7861
7862     # See if GNU ld supports shared libraries.
7863     case $host_os in
7864     aix[3-9]*)
7865       # On AIX/PPC, the GNU linker is very broken
7866       if test "$host_cpu" != ia64; then
7867         ld_shlibs=no
7868         cat <<_LT_EOF 1>&2
7869
7870 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7871 *** to be unable to reliably create shared libraries on AIX.
7872 *** Therefore, libtool is disabling shared libraries support.  If you
7873 *** really care for shared libraries, you may want to modify your PATH
7874 *** so that a non-GNU linker is found, and then restart.
7875
7876 _LT_EOF
7877       fi
7878       ;;
7879
7880     amigaos*)
7881       case $host_cpu in
7882       powerpc)
7883             # see comment about AmigaOS4 .so support
7884             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7885             archive_expsym_cmds=''
7886         ;;
7887       m68k)
7888             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)'
7889             hardcode_libdir_flag_spec='-L$libdir'
7890             hardcode_minus_L=yes
7891         ;;
7892       esac
7893       ;;
7894
7895     beos*)
7896       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7897         allow_undefined_flag=unsupported
7898         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7899         # support --undefined.  This deserves some investigation.  FIXME
7900         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7901       else
7902         ld_shlibs=no
7903       fi
7904       ;;
7905
7906     cygwin* | mingw* | pw32*)
7907       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7908       # as there is no search path for DLLs.
7909       hardcode_libdir_flag_spec='-L$libdir'
7910       allow_undefined_flag=unsupported
7911       always_export_symbols=no
7912       enable_shared_with_static_runtimes=yes
7913       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7914
7915       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7916         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7917         # If the export-symbols file already is a .def file (1st line
7918         # is EXPORTS), use it as is; otherwise, prepend...
7919         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7920           cp $export_symbols $output_objdir/$soname.def;
7921         else
7922           echo EXPORTS > $output_objdir/$soname.def;
7923           cat $export_symbols >> $output_objdir/$soname.def;
7924         fi~
7925         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7926       else
7927         ld_shlibs=no
7928       fi
7929       ;;
7930
7931     interix[3-9]*)
7932       hardcode_direct=no
7933       hardcode_shlibpath_var=no
7934       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7935       export_dynamic_flag_spec='${wl}-E'
7936       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7937       # Instead, shared libraries are loaded at an image base (0x10000000 by
7938       # default) and relocated if they conflict, which is a slow very memory
7939       # consuming and fragmenting process.  To avoid this, we pick a random,
7940       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7941       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7942       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7943       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'
7944       ;;
7945
7946     gnu* | linux* | tpf* | k*bsd*-gnu)
7947       tmp_diet=no
7948       if test "$host_os" = linux-dietlibc; then
7949         case $cc_basename in
7950           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7951         esac
7952       fi
7953       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7954          && test "$tmp_diet" = no
7955       then
7956         tmp_addflag=
7957         tmp_sharedflag='-shared'
7958         case $cc_basename,$host_cpu in
7959         pgcc*)                          # Portland Group C compiler
7960           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'
7961           tmp_addflag=' $pic_flag'
7962           ;;
7963         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7964           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'
7965           tmp_addflag=' $pic_flag -Mnomain' ;;
7966         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7967           tmp_addflag=' -i_dynamic' ;;
7968         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7969           tmp_addflag=' -i_dynamic -nofor_main' ;;
7970         ifc* | ifort*)                  # Intel Fortran compiler
7971           tmp_addflag=' -nofor_main' ;;
7972         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
7973           tmp_sharedflag='-qmkshrobj'
7974           tmp_addflag= ;;
7975         esac
7976         case `$CC -V 2>&1 | sed 5q` in
7977         *Sun\ C*)                       # Sun C 5.9
7978           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'
7979           compiler_needs_object=yes
7980           tmp_sharedflag='-G' ;;
7981         *Sun\ F*)                       # Sun Fortran 8.3
7982           tmp_sharedflag='-G' ;;
7983         esac
7984         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7985
7986         if test "x$supports_anon_versioning" = xyes; then
7987           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7988             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7989             echo "local: *; };" >> $output_objdir/$libname.ver~
7990             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7991         fi
7992
7993         case $cc_basename in
7994         xlf*)
7995           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7996           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7997           hardcode_libdir_flag_spec=
7998           hardcode_libdir_flag_spec_ld='-rpath $libdir'
7999           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8000           if test "x$supports_anon_versioning" = xyes; then
8001             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8002               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8003               echo "local: *; };" >> $output_objdir/$libname.ver~
8004               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8005           fi
8006           ;;
8007         esac
8008       else
8009         ld_shlibs=no
8010       fi
8011       ;;
8012
8013     netbsd*)
8014       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8015         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8016         wlarc=
8017       else
8018         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8019         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8020       fi
8021       ;;
8022
8023     solaris*)
8024       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8025         ld_shlibs=no
8026         cat <<_LT_EOF 1>&2
8027
8028 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8029 *** create shared libraries on Solaris systems.  Therefore, libtool
8030 *** is disabling shared libraries support.  We urge you to upgrade GNU
8031 *** binutils to release 2.9.1 or newer.  Another option is to modify
8032 *** your PATH or compiler configuration so that the native linker is
8033 *** used, and then restart.
8034
8035 _LT_EOF
8036       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8037         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8038         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8039       else
8040         ld_shlibs=no
8041       fi
8042       ;;
8043
8044     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8045       case `$LD -v 2>&1` in
8046         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8047         ld_shlibs=no
8048         cat <<_LT_EOF 1>&2
8049
8050 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8051 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8052 *** is disabling shared libraries support.  We urge you to upgrade GNU
8053 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8054 *** your PATH or compiler configuration so that the native linker is
8055 *** used, and then restart.
8056
8057 _LT_EOF
8058         ;;
8059         *)
8060           # For security reasons, it is highly recommended that you always
8061           # use absolute paths for naming shared libraries, and exclude the
8062           # DT_RUNPATH tag from executables and libraries.  But doing so
8063           # requires that you compile everything twice, which is a pain.
8064           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8065             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8066             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8067             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8068           else
8069             ld_shlibs=no
8070           fi
8071         ;;
8072       esac
8073       ;;
8074
8075     sunos4*)
8076       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8077       wlarc=
8078       hardcode_direct=yes
8079       hardcode_shlibpath_var=no
8080       ;;
8081
8082     *)
8083       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8084         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8085         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8086       else
8087         ld_shlibs=no
8088       fi
8089       ;;
8090     esac
8091
8092     if test "$ld_shlibs" = no; then
8093       runpath_var=
8094       hardcode_libdir_flag_spec=
8095       export_dynamic_flag_spec=
8096       whole_archive_flag_spec=
8097     fi
8098   else
8099     # PORTME fill in a description of your system's linker (not GNU ld)
8100     case $host_os in
8101     aix3*)
8102       allow_undefined_flag=unsupported
8103       always_export_symbols=yes
8104       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'
8105       # Note: this linker hardcodes the directories in LIBPATH if there
8106       # are no directories specified by -L.
8107       hardcode_minus_L=yes
8108       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8109         # Neither direct hardcoding nor static linking is supported with a
8110         # broken collect2.
8111         hardcode_direct=unsupported
8112       fi
8113       ;;
8114
8115     aix[4-9]*)
8116       if test "$host_cpu" = ia64; then
8117         # On IA64, the linker does run time linking by default, so we don't
8118         # have to do anything special.
8119         aix_use_runtimelinking=no
8120         exp_sym_flag='-Bexport'
8121         no_entry_flag=""
8122       else
8123         # If we're using GNU nm, then we don't want the "-C" option.
8124         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8125         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8126           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'
8127         else
8128           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'
8129         fi
8130         aix_use_runtimelinking=no
8131
8132         # Test if we are trying to use run time linking or normal
8133         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8134         # need to do runtime linking.
8135         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8136           for ld_flag in $LDFLAGS; do
8137           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8138             aix_use_runtimelinking=yes
8139             break
8140           fi
8141           done
8142           ;;
8143         esac
8144
8145         exp_sym_flag='-bexport'
8146         no_entry_flag='-bnoentry'
8147       fi
8148
8149       # When large executables or shared objects are built, AIX ld can
8150       # have problems creating the table of contents.  If linking a library
8151       # or program results in "error TOC overflow" add -mminimal-toc to
8152       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8153       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8154
8155       archive_cmds=''
8156       hardcode_direct=yes
8157       hardcode_direct_absolute=yes
8158       hardcode_libdir_separator=':'
8159       link_all_deplibs=yes
8160       file_list_spec='${wl}-f,'
8161
8162       if test "$GCC" = yes; then
8163         case $host_os in aix4.[012]|aix4.[012].*)
8164         # We only want to do this on AIX 4.2 and lower, the check
8165         # below for broken collect2 doesn't work under 4.3+
8166           collect2name=`${CC} -print-prog-name=collect2`
8167           if test -f "$collect2name" &&
8168            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8169           then
8170           # We have reworked collect2
8171           :
8172           else
8173           # We have old collect2
8174           hardcode_direct=unsupported
8175           # It fails to find uninstalled libraries when the uninstalled
8176           # path is not listed in the libpath.  Setting hardcode_minus_L
8177           # to unsupported forces relinking
8178           hardcode_minus_L=yes
8179           hardcode_libdir_flag_spec='-L$libdir'
8180           hardcode_libdir_separator=
8181           fi
8182           ;;
8183         esac
8184         shared_flag='-shared'
8185         if test "$aix_use_runtimelinking" = yes; then
8186           shared_flag="$shared_flag "'${wl}-G'
8187         fi
8188       else
8189         # not using gcc
8190         if test "$host_cpu" = ia64; then
8191         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8192         # chokes on -Wl,-G. The following line is correct:
8193           shared_flag='-G'
8194         else
8195           if test "$aix_use_runtimelinking" = yes; then
8196             shared_flag='${wl}-G'
8197           else
8198             shared_flag='${wl}-bM:SRE'
8199           fi
8200         fi
8201       fi
8202
8203       # It seems that -bexpall does not export symbols beginning with
8204       # underscore (_), so it is better to generate a list of symbols to export.
8205       always_export_symbols=yes
8206       if test "$aix_use_runtimelinking" = yes; then
8207         # Warning - without using the other runtime loading flags (-brtl),
8208         # -berok will link without error, but may produce a broken library.
8209         allow_undefined_flag='-berok'
8210         # Determine the default libpath from the value encoded in an
8211         # empty executable.
8212         cat >conftest.$ac_ext <<_ACEOF
8213 /* confdefs.h.  */
8214 _ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h.  */
8218
8219 int
8220 main ()
8221 {
8222
8223   ;
8224   return 0;
8225 }
8226 _ACEOF
8227 rm -f conftest.$ac_objext conftest$ac_exeext
8228 if { (ac_try="$ac_link"
8229 case "(($ac_try" in
8230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8231   *) ac_try_echo=$ac_try;;
8232 esac
8233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8234   (eval "$ac_link") 2>conftest.er1
8235   ac_status=$?
8236   grep -v '^ *+' conftest.er1 >conftest.err
8237   rm -f conftest.er1
8238   cat conftest.err >&5
8239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240   (exit $ac_status); } && {
8241          test -z "$ac_c_werror_flag" ||
8242          test ! -s conftest.err
8243        } && test -s conftest$ac_exeext &&
8244        $as_test_x conftest$ac_exeext; then
8245
8246 lt_aix_libpath_sed='
8247     /Import File Strings/,/^$/ {
8248         /^0/ {
8249             s/^0  *\(.*\)$/\1/
8250             p
8251         }
8252     }'
8253 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8254 # Check for a 64-bit object if we didn't find anything.
8255 if test -z "$aix_libpath"; then
8256   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8257 fi
8258 else
8259   echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8261
8262
8263 fi
8264
8265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8266       conftest$ac_exeext conftest.$ac_ext
8267 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8268
8269         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8270         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"
8271       else
8272         if test "$host_cpu" = ia64; then
8273           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8274           allow_undefined_flag="-z nodefs"
8275           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"
8276         else
8277          # Determine the default libpath from the value encoded in an
8278          # empty executable.
8279          cat >conftest.$ac_ext <<_ACEOF
8280 /* confdefs.h.  */
8281 _ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h.  */
8285
8286 int
8287 main ()
8288 {
8289
8290   ;
8291   return 0;
8292 }
8293 _ACEOF
8294 rm -f conftest.$ac_objext conftest$ac_exeext
8295 if { (ac_try="$ac_link"
8296 case "(($ac_try" in
8297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298   *) ac_try_echo=$ac_try;;
8299 esac
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301   (eval "$ac_link") 2>conftest.er1
8302   ac_status=$?
8303   grep -v '^ *+' conftest.er1 >conftest.err
8304   rm -f conftest.er1
8305   cat conftest.err >&5
8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); } && {
8308          test -z "$ac_c_werror_flag" ||
8309          test ! -s conftest.err
8310        } && test -s conftest$ac_exeext &&
8311        $as_test_x conftest$ac_exeext; then
8312
8313 lt_aix_libpath_sed='
8314     /Import File Strings/,/^$/ {
8315         /^0/ {
8316             s/^0  *\(.*\)$/\1/
8317             p
8318         }
8319     }'
8320 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8321 # Check for a 64-bit object if we didn't find anything.
8322 if test -z "$aix_libpath"; then
8323   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8324 fi
8325 else
8326   echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8328
8329
8330 fi
8331
8332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8333       conftest$ac_exeext conftest.$ac_ext
8334 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8335
8336          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8337           # Warning - without using the other run time loading flags,
8338           # -berok will link without error, but may produce a broken library.
8339           no_undefined_flag=' ${wl}-bernotok'
8340           allow_undefined_flag=' ${wl}-berok'
8341           # Exported symbols can be pulled into shared objects from archives
8342           whole_archive_flag_spec='$convenience'
8343           archive_cmds_need_lc=yes
8344           # This is similar to how AIX traditionally builds its shared libraries.
8345           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'
8346         fi
8347       fi
8348       ;;
8349
8350     amigaos*)
8351       case $host_cpu in
8352       powerpc)
8353             # see comment about AmigaOS4 .so support
8354             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8355             archive_expsym_cmds=''
8356         ;;
8357       m68k)
8358             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)'
8359             hardcode_libdir_flag_spec='-L$libdir'
8360             hardcode_minus_L=yes
8361         ;;
8362       esac
8363       ;;
8364
8365     bsdi[45]*)
8366       export_dynamic_flag_spec=-rdynamic
8367       ;;
8368
8369     cygwin* | mingw* | pw32*)
8370       # When not using gcc, we currently assume that we are using
8371       # Microsoft Visual C++.
8372       # hardcode_libdir_flag_spec is actually meaningless, as there is
8373       # no search path for DLLs.
8374       hardcode_libdir_flag_spec=' '
8375       allow_undefined_flag=unsupported
8376       # Tell ltmain to make .lib files, not .a files.
8377       libext=lib
8378       # Tell ltmain to make .dll files, not .so files.
8379       shrext_cmds=".dll"
8380       # FIXME: Setting linknames here is a bad hack.
8381       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8382       # The linker will automatically build a .lib file if we build a DLL.
8383       old_archive_from_new_cmds='true'
8384       # FIXME: Should let the user specify the lib program.
8385       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8386       fix_srcfile_path='`cygpath -w "$srcfile"`'
8387       enable_shared_with_static_runtimes=yes
8388       ;;
8389
8390     darwin* | rhapsody*)
8391
8392
8393   archive_cmds_need_lc=no
8394   hardcode_direct=no
8395   hardcode_automatic=yes
8396   hardcode_shlibpath_var=unsupported
8397   whole_archive_flag_spec=''
8398   link_all_deplibs=yes
8399   allow_undefined_flag="$_lt_dar_allow_undefined"
8400   if test "$GCC" = "yes"; then
8401     output_verbose_link_cmd=echo
8402     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8403     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8404     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}"
8405     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}"
8406
8407   else
8408   ld_shlibs=no
8409   fi
8410
8411       ;;
8412
8413     dgux*)
8414       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8415       hardcode_libdir_flag_spec='-L$libdir'
8416       hardcode_shlibpath_var=no
8417       ;;
8418
8419     freebsd1*)
8420       ld_shlibs=no
8421       ;;
8422
8423     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8424     # support.  Future versions do this automatically, but an explicit c++rt0.o
8425     # does not break anything, and helps significantly (at the cost of a little
8426     # extra space).
8427     freebsd2.2*)
8428       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8429       hardcode_libdir_flag_spec='-R$libdir'
8430       hardcode_direct=yes
8431       hardcode_shlibpath_var=no
8432       ;;
8433
8434     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8435     freebsd2*)
8436       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8437       hardcode_direct=yes
8438       hardcode_minus_L=yes
8439       hardcode_shlibpath_var=no
8440       ;;
8441
8442     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8443     freebsd* | dragonfly*)
8444       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8445       hardcode_libdir_flag_spec='-R$libdir'
8446       hardcode_direct=yes
8447       hardcode_shlibpath_var=no
8448       ;;
8449
8450     hpux9*)
8451       if test "$GCC" = yes; then
8452         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'
8453       else
8454         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'
8455       fi
8456       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8457       hardcode_libdir_separator=:
8458       hardcode_direct=yes
8459
8460       # hardcode_minus_L: Not really in the search PATH,
8461       # but as the default location of the library.
8462       hardcode_minus_L=yes
8463       export_dynamic_flag_spec='${wl}-E'
8464       ;;
8465
8466     hpux10*)
8467       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8468         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8469       else
8470         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8471       fi
8472       if test "$with_gnu_ld" = no; then
8473         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8474         hardcode_libdir_flag_spec_ld='+b $libdir'
8475         hardcode_libdir_separator=:
8476         hardcode_direct=yes
8477         hardcode_direct_absolute=yes
8478         export_dynamic_flag_spec='${wl}-E'
8479         # hardcode_minus_L: Not really in the search PATH,
8480         # but as the default location of the library.
8481         hardcode_minus_L=yes
8482       fi
8483       ;;
8484
8485     hpux11*)
8486       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8487         case $host_cpu in
8488         hppa*64*)
8489           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8490           ;;
8491         ia64*)
8492           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8493           ;;
8494         *)
8495           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8496           ;;
8497         esac
8498       else
8499         case $host_cpu in
8500         hppa*64*)
8501           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8502           ;;
8503         ia64*)
8504           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8505           ;;
8506         *)
8507           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8508           ;;
8509         esac
8510       fi
8511       if test "$with_gnu_ld" = no; then
8512         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8513         hardcode_libdir_separator=:
8514
8515         case $host_cpu in
8516         hppa*64*|ia64*)
8517           hardcode_direct=no
8518           hardcode_shlibpath_var=no
8519           ;;
8520         *)
8521           hardcode_direct=yes
8522           hardcode_direct_absolute=yes
8523           export_dynamic_flag_spec='${wl}-E'
8524
8525           # hardcode_minus_L: Not really in the search PATH,
8526           # but as the default location of the library.
8527           hardcode_minus_L=yes
8528           ;;
8529         esac
8530       fi
8531       ;;
8532
8533     irix5* | irix6* | nonstopux*)
8534       if test "$GCC" = yes; then
8535         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'
8536         # Try to use the -exported_symbol ld option, if it does not
8537         # work, assume that -exports_file does not work either and
8538         # implicitly export all symbols.
8539         save_LDFLAGS="$LDFLAGS"
8540         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8541         cat >conftest.$ac_ext <<_ACEOF
8542 int foo(void) {}
8543 _ACEOF
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (ac_try="$ac_link"
8546 case "(($ac_try" in
8547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548   *) ac_try_echo=$ac_try;;
8549 esac
8550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8551   (eval "$ac_link") 2>conftest.er1
8552   ac_status=$?
8553   grep -v '^ *+' conftest.er1 >conftest.err
8554   rm -f conftest.er1
8555   cat conftest.err >&5
8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); } && {
8558          test -z "$ac_c_werror_flag" ||
8559          test ! -s conftest.err
8560        } && test -s conftest$ac_exeext &&
8561        $as_test_x conftest$ac_exeext; then
8562   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'
8563
8564 else
8565   echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8567
8568
8569 fi
8570
8571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8572       conftest$ac_exeext conftest.$ac_ext
8573         LDFLAGS="$save_LDFLAGS"
8574       else
8575         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'
8576         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'
8577       fi
8578       archive_cmds_need_lc='no'
8579       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8580       hardcode_libdir_separator=:
8581       inherit_rpath=yes
8582       link_all_deplibs=yes
8583       ;;
8584
8585     netbsd*)
8586       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8587         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8588       else
8589         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8590       fi
8591       hardcode_libdir_flag_spec='-R$libdir'
8592       hardcode_direct=yes
8593       hardcode_shlibpath_var=no
8594       ;;
8595
8596     newsos6)
8597       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8598       hardcode_direct=yes
8599       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8600       hardcode_libdir_separator=:
8601       hardcode_shlibpath_var=no
8602       ;;
8603
8604     *nto* | *qnx*)
8605       ;;
8606
8607     openbsd*)
8608       if test -f /usr/libexec/ld.so; then
8609         hardcode_direct=yes
8610         hardcode_shlibpath_var=no
8611         hardcode_direct_absolute=yes
8612         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8613           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8614           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8615           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8616           export_dynamic_flag_spec='${wl}-E'
8617         else
8618           case $host_os in
8619            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8620              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8621              hardcode_libdir_flag_spec='-R$libdir'
8622              ;;
8623            *)
8624              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8625              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8626              ;;
8627           esac
8628         fi
8629       else
8630         ld_shlibs=no
8631       fi
8632       ;;
8633
8634     os2*)
8635       hardcode_libdir_flag_spec='-L$libdir'
8636       hardcode_minus_L=yes
8637       allow_undefined_flag=unsupported
8638       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'
8639       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8640       ;;
8641
8642     osf3*)
8643       if test "$GCC" = yes; then
8644         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8645         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'
8646       else
8647         allow_undefined_flag=' -expect_unresolved \*'
8648         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'
8649       fi
8650       archive_cmds_need_lc='no'
8651       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8652       hardcode_libdir_separator=:
8653       ;;
8654
8655     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8656       if test "$GCC" = yes; then
8657         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8658         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'
8659         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8660       else
8661         allow_undefined_flag=' -expect_unresolved \*'
8662         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'
8663         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~
8664         $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'
8665
8666         # Both c and cxx compiler support -rpath directly
8667         hardcode_libdir_flag_spec='-rpath $libdir'
8668       fi
8669       archive_cmds_need_lc='no'
8670       hardcode_libdir_separator=:
8671       ;;
8672
8673     solaris*)
8674       no_undefined_flag=' -z defs'
8675       if test "$GCC" = yes; then
8676         wlarc='${wl}'
8677         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8678         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8679           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8680       else
8681         case `$CC -V 2>&1` in
8682         *"Compilers 5.0"*)
8683           wlarc=''
8684           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8685           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8686           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8687           ;;
8688         *)
8689           wlarc='${wl}'
8690           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8691           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8692           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8693           ;;
8694         esac
8695       fi
8696       hardcode_libdir_flag_spec='-R$libdir'
8697       hardcode_shlibpath_var=no
8698       case $host_os in
8699       solaris2.[0-5] | solaris2.[0-5].*) ;;
8700       *)
8701         # The compiler driver will combine and reorder linker options,
8702         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8703         # but is careful enough not to reorder.
8704         # Supported since Solaris 2.6 (maybe 2.5.1?)
8705         if test "$GCC" = yes; then
8706           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8707         else
8708           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8709         fi
8710         ;;
8711       esac
8712       link_all_deplibs=yes
8713       ;;
8714
8715     sunos4*)
8716       if test "x$host_vendor" = xsequent; then
8717         # Use $CC to link under sequent, because it throws in some extra .o
8718         # files that make .init and .fini sections work.
8719         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8720       else
8721         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8722       fi
8723       hardcode_libdir_flag_spec='-L$libdir'
8724       hardcode_direct=yes
8725       hardcode_minus_L=yes
8726       hardcode_shlibpath_var=no
8727       ;;
8728
8729     sysv4)
8730       case $host_vendor in
8731         sni)
8732           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8733           hardcode_direct=yes # is this really true???
8734         ;;
8735         siemens)
8736           ## LD is ld it makes a PLAMLIB
8737           ## CC just makes a GrossModule.
8738           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8739           reload_cmds='$CC -r -o $output$reload_objs'
8740           hardcode_direct=no
8741         ;;
8742         motorola)
8743           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8744           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8745         ;;
8746       esac
8747       runpath_var='LD_RUN_PATH'
8748       hardcode_shlibpath_var=no
8749       ;;
8750
8751     sysv4.3*)
8752       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8753       hardcode_shlibpath_var=no
8754       export_dynamic_flag_spec='-Bexport'
8755       ;;
8756
8757     sysv4*MP*)
8758       if test -d /usr/nec; then
8759         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8760         hardcode_shlibpath_var=no
8761         runpath_var=LD_RUN_PATH
8762         hardcode_runpath_var=yes
8763         ld_shlibs=yes
8764       fi
8765       ;;
8766
8767     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8768       no_undefined_flag='${wl}-z,text'
8769       archive_cmds_need_lc=no
8770       hardcode_shlibpath_var=no
8771       runpath_var='LD_RUN_PATH'
8772
8773       if test "$GCC" = yes; then
8774         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8775         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8776       else
8777         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8778         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8779       fi
8780       ;;
8781
8782     sysv5* | sco3.2v5* | sco5v6*)
8783       # Note: We can NOT use -z defs as we might desire, because we do not
8784       # link with -lc, and that would cause any symbols used from libc to
8785       # always be unresolved, which means just about no library would
8786       # ever link correctly.  If we're not using GNU ld we use -z text
8787       # though, which does catch some bad symbols but isn't as heavy-handed
8788       # as -z defs.
8789       no_undefined_flag='${wl}-z,text'
8790       allow_undefined_flag='${wl}-z,nodefs'
8791       archive_cmds_need_lc=no
8792       hardcode_shlibpath_var=no
8793       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8794       hardcode_libdir_separator=':'
8795       link_all_deplibs=yes
8796       export_dynamic_flag_spec='${wl}-Bexport'
8797       runpath_var='LD_RUN_PATH'
8798
8799       if test "$GCC" = yes; then
8800         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8801         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8802       else
8803         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8804         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8805       fi
8806       ;;
8807
8808     uts4*)
8809       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8810       hardcode_libdir_flag_spec='-L$libdir'
8811       hardcode_shlibpath_var=no
8812       ;;
8813
8814     *)
8815       ld_shlibs=no
8816       ;;
8817     esac
8818
8819     if test x$host_vendor = xsni; then
8820       case $host in
8821       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8822         export_dynamic_flag_spec='${wl}-Blargedynsym'
8823         ;;
8824       esac
8825     fi
8826   fi
8827
8828 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8829 echo "${ECHO_T}$ld_shlibs" >&6; }
8830 test "$ld_shlibs" = no && can_build_shared=no
8831
8832 with_gnu_ld=$with_gnu_ld
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848 #
8849 # Do we need to explicitly link libc?
8850 #
8851 case "x$archive_cmds_need_lc" in
8852 x|xyes)
8853   # Assume -lc should be added
8854   archive_cmds_need_lc=yes
8855
8856   if test "$enable_shared" = yes && test "$GCC" = yes; then
8857     case $archive_cmds in
8858     *'~'*)
8859       # FIXME: we may have to deal with multi-command sequences.
8860       ;;
8861     '$CC '*)
8862       # Test whether the compiler implicitly links with -lc since on some
8863       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8864       # to ld, don't add -lc before -lgcc.
8865       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8866 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8867       $RM conftest*
8868       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8869
8870       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8871   (eval $ac_compile) 2>&5
8872   ac_status=$?
8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); } 2>conftest.err; then
8875         soname=conftest
8876         lib=conftest
8877         libobjs=conftest.$ac_objext
8878         deplibs=
8879         wl=$lt_prog_compiler_wl
8880         pic_flag=$lt_prog_compiler_pic
8881         compiler_flags=-v
8882         linker_flags=-v
8883         verstring=
8884         output_objdir=.
8885         libname=conftest
8886         lt_save_allow_undefined_flag=$allow_undefined_flag
8887         allow_undefined_flag=
8888         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8889   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8890   ac_status=$?
8891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892   (exit $ac_status); }
8893         then
8894           archive_cmds_need_lc=no
8895         else
8896           archive_cmds_need_lc=yes
8897         fi
8898         allow_undefined_flag=$lt_save_allow_undefined_flag
8899       else
8900         cat conftest.err 1>&5
8901       fi
8902       $RM conftest*
8903       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8904 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8905       ;;
8906     esac
8907   fi
8908   ;;
8909 esac
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9068 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9069
9070 if test "$GCC" = yes; then
9071   case $host_os in
9072     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9073     *) lt_awk_arg="/^libraries:/" ;;
9074   esac
9075   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9076   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9077     # if the path contains ";" then we assume it to be the separator
9078     # otherwise default to the standard path separator (i.e. ":") - it is
9079     # assumed that no part of a normal pathname contains ";" but that should
9080     # okay in the real world where ";" in dirpaths is itself problematic.
9081     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9082   else
9083     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9084   fi
9085   # Ok, now we have the path, separated by spaces, we can step through it
9086   # and add multilib dir if necessary.
9087   lt_tmp_lt_search_path_spec=
9088   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9089   for lt_sys_path in $lt_search_path_spec; do
9090     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9091       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9092     else
9093       test -d "$lt_sys_path" && \
9094         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9095     fi
9096   done
9097   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9098 BEGIN {RS=" "; FS="/|\n";} {
9099   lt_foo="";
9100   lt_count=0;
9101   for (lt_i = NF; lt_i > 0; lt_i--) {
9102     if ($lt_i != "" && $lt_i != ".") {
9103       if ($lt_i == "..") {
9104         lt_count++;
9105       } else {
9106         if (lt_count == 0) {
9107           lt_foo="/" $lt_i lt_foo;
9108         } else {
9109           lt_count--;
9110         }
9111       }
9112     }
9113   }
9114   if (lt_foo != "") { lt_freq[lt_foo]++; }
9115   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9116 }'`
9117   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9118 else
9119   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9120 fi
9121 library_names_spec=
9122 libname_spec='lib$name'
9123 soname_spec=
9124 shrext_cmds=".so"
9125 postinstall_cmds=
9126 postuninstall_cmds=
9127 finish_cmds=
9128 finish_eval=
9129 shlibpath_var=
9130 shlibpath_overrides_runpath=unknown
9131 version_type=none
9132 dynamic_linker="$host_os ld.so"
9133 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9134 need_lib_prefix=unknown
9135 hardcode_into_libs=no
9136
9137 # when you set need_version to no, make sure it does not cause -set_version
9138 # flags to be left without arguments
9139 need_version=unknown
9140
9141 case $host_os in
9142 aix3*)
9143   version_type=linux
9144   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9145   shlibpath_var=LIBPATH
9146
9147   # AIX 3 has no versioning support, so we append a major version to the name.
9148   soname_spec='${libname}${release}${shared_ext}$major'
9149   ;;
9150
9151 aix[4-9]*)
9152   version_type=linux
9153   need_lib_prefix=no
9154   need_version=no
9155   hardcode_into_libs=yes
9156   if test "$host_cpu" = ia64; then
9157     # AIX 5 supports IA64
9158     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9159     shlibpath_var=LD_LIBRARY_PATH
9160   else
9161     # With GCC up to 2.95.x, collect2 would create an import file
9162     # for dependence libraries.  The import file would start with
9163     # the line `#! .'.  This would cause the generated library to
9164     # depend on `.', always an invalid library.  This was fixed in
9165     # development snapshots of GCC prior to 3.0.
9166     case $host_os in
9167       aix4 | aix4.[01] | aix4.[01].*)
9168       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9169            echo ' yes '
9170            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9171         :
9172       else
9173         can_build_shared=no
9174       fi
9175       ;;
9176     esac
9177     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9178     # soname into executable. Probably we can add versioning support to
9179     # collect2, so additional links can be useful in future.
9180     if test "$aix_use_runtimelinking" = yes; then
9181       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9182       # instead of lib<name>.a to let people know that these are not
9183       # typical AIX shared libraries.
9184       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9185     else
9186       # We preserve .a as extension for shared libraries through AIX4.2
9187       # and later when we are not doing run time linking.
9188       library_names_spec='${libname}${release}.a $libname.a'
9189       soname_spec='${libname}${release}${shared_ext}$major'
9190     fi
9191     shlibpath_var=LIBPATH
9192   fi
9193   ;;
9194
9195 amigaos*)
9196   case $host_cpu in
9197   powerpc)
9198     # Since July 2007 AmigaOS4 officially supports .so libraries.
9199     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9200     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9201     ;;
9202   m68k)
9203     library_names_spec='$libname.ixlibrary $libname.a'
9204     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9205     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'
9206     ;;
9207   esac
9208   ;;
9209
9210 beos*)
9211   library_names_spec='${libname}${shared_ext}'
9212   dynamic_linker="$host_os ld.so"
9213   shlibpath_var=LIBRARY_PATH
9214   ;;
9215
9216 bsdi[45]*)
9217   version_type=linux
9218   need_version=no
9219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220   soname_spec='${libname}${release}${shared_ext}$major'
9221   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9222   shlibpath_var=LD_LIBRARY_PATH
9223   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9224   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9225   # the default ld.so.conf also contains /usr/contrib/lib and
9226   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9227   # libtool to hard-code these into programs
9228   ;;
9229
9230 cygwin* | mingw* | pw32*)
9231   version_type=windows
9232   shrext_cmds=".dll"
9233   need_version=no
9234   need_lib_prefix=no
9235
9236   case $GCC,$host_os in
9237   yes,cygwin* | yes,mingw* | yes,pw32*)
9238     library_names_spec='$libname.dll.a'
9239     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9240     postinstall_cmds='base_file=`basename \${file}`~
9241       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9242       dldir=$destdir/`dirname \$dlpath`~
9243       test -d \$dldir || mkdir -p \$dldir~
9244       $install_prog $dir/$dlname \$dldir/$dlname~
9245       chmod a+x \$dldir/$dlname~
9246       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9247         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9248       fi'
9249     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9250       dlpath=$dir/\$dldll~
9251        $RM \$dlpath'
9252     shlibpath_overrides_runpath=yes
9253
9254     case $host_os in
9255     cygwin*)
9256       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9257       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9258       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9259       ;;
9260     mingw*)
9261       # MinGW DLLs use traditional 'lib' prefix
9262       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9263       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9264       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9265         # It is most probably a Windows format PATH printed by
9266         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9267         # path with ; separators, and with drive letters. We can handle the
9268         # drive letters (cygwin fileutils understands them), so leave them,
9269         # especially as we might pass files found there to a mingw objdump,
9270         # which wouldn't understand a cygwinified path. Ahh.
9271         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9272       else
9273         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9274       fi
9275       ;;
9276     pw32*)
9277       # pw32 DLLs use 'pw' prefix rather than 'lib'
9278       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9279       ;;
9280     esac
9281     ;;
9282
9283   *)
9284     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9285     ;;
9286   esac
9287   dynamic_linker='Win32 ld.exe'
9288   # FIXME: first we should search . and the directory the executable is in
9289   shlibpath_var=PATH
9290   ;;
9291
9292 darwin* | rhapsody*)
9293   dynamic_linker="$host_os dyld"
9294   version_type=darwin
9295   need_lib_prefix=no
9296   need_version=no
9297   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9298   soname_spec='${libname}${release}${major}$shared_ext'
9299   shlibpath_overrides_runpath=yes
9300   shlibpath_var=DYLD_LIBRARY_PATH
9301   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9302
9303   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9304   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9305   ;;
9306
9307 dgux*)
9308   version_type=linux
9309   need_lib_prefix=no
9310   need_version=no
9311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9312   soname_spec='${libname}${release}${shared_ext}$major'
9313   shlibpath_var=LD_LIBRARY_PATH
9314   ;;
9315
9316 freebsd1*)
9317   dynamic_linker=no
9318   ;;
9319
9320 freebsd* | dragonfly*)
9321   # DragonFly does not have aout.  When/if they implement a new
9322   # versioning mechanism, adjust this.
9323   if test -x /usr/bin/objformat; then
9324     objformat=`/usr/bin/objformat`
9325   else
9326     case $host_os in
9327     freebsd[123]*) objformat=aout ;;
9328     *) objformat=elf ;;
9329     esac
9330   fi
9331   version_type=freebsd-$objformat
9332   case $version_type in
9333     freebsd-elf*)
9334       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9335       need_version=no
9336       need_lib_prefix=no
9337       ;;
9338     freebsd-*)
9339       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9340       need_version=yes
9341       ;;
9342   esac
9343   shlibpath_var=LD_LIBRARY_PATH
9344   case $host_os in
9345   freebsd2*)
9346     shlibpath_overrides_runpath=yes
9347     ;;
9348   freebsd3.[01]* | freebsdelf3.[01]*)
9349     shlibpath_overrides_runpath=yes
9350     hardcode_into_libs=yes
9351     ;;
9352   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9353   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9354     shlibpath_overrides_runpath=no
9355     hardcode_into_libs=yes
9356     ;;
9357   *) # from 4.6 on, and DragonFly
9358     shlibpath_overrides_runpath=yes
9359     hardcode_into_libs=yes
9360     ;;
9361   esac
9362   ;;
9363
9364 gnu*)
9365   version_type=linux
9366   need_lib_prefix=no
9367   need_version=no
9368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9369   soname_spec='${libname}${release}${shared_ext}$major'
9370   shlibpath_var=LD_LIBRARY_PATH
9371   hardcode_into_libs=yes
9372   ;;
9373
9374 hpux9* | hpux10* | hpux11*)
9375   # Give a soname corresponding to the major version so that dld.sl refuses to
9376   # link against other versions.
9377   version_type=sunos
9378   need_lib_prefix=no
9379   need_version=no
9380   case $host_cpu in
9381   ia64*)
9382     shrext_cmds='.so'
9383     hardcode_into_libs=yes
9384     dynamic_linker="$host_os dld.so"
9385     shlibpath_var=LD_LIBRARY_PATH
9386     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9387     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9388     soname_spec='${libname}${release}${shared_ext}$major'
9389     if test "X$HPUX_IA64_MODE" = X32; then
9390       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9391     else
9392       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9393     fi
9394     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9395     ;;
9396   hppa*64*)
9397     shrext_cmds='.sl'
9398     hardcode_into_libs=yes
9399     dynamic_linker="$host_os dld.sl"
9400     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9401     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9402     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9403     soname_spec='${libname}${release}${shared_ext}$major'
9404     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9405     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9406     ;;
9407   *)
9408     shrext_cmds='.sl'
9409     dynamic_linker="$host_os dld.sl"
9410     shlibpath_var=SHLIB_PATH
9411     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9412     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9413     soname_spec='${libname}${release}${shared_ext}$major'
9414     ;;
9415   esac
9416   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9417   postinstall_cmds='chmod 555 $lib'
9418   ;;
9419
9420 interix[3-9]*)
9421   version_type=linux
9422   need_lib_prefix=no
9423   need_version=no
9424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9425   soname_spec='${libname}${release}${shared_ext}$major'
9426   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9427   shlibpath_var=LD_LIBRARY_PATH
9428   shlibpath_overrides_runpath=no
9429   hardcode_into_libs=yes
9430   ;;
9431
9432 irix5* | irix6* | nonstopux*)
9433   case $host_os in
9434     nonstopux*) version_type=nonstopux ;;
9435     *)
9436         if test "$lt_cv_prog_gnu_ld" = yes; then
9437                 version_type=linux
9438         else
9439                 version_type=irix
9440         fi ;;
9441   esac
9442   need_lib_prefix=no
9443   need_version=no
9444   soname_spec='${libname}${release}${shared_ext}$major'
9445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9446   case $host_os in
9447   irix5* | nonstopux*)
9448     libsuff= shlibsuff=
9449     ;;
9450   *)
9451     case $LD in # libtool.m4 will add one of these switches to LD
9452     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9453       libsuff= shlibsuff= libmagic=32-bit;;
9454     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9455       libsuff=32 shlibsuff=N32 libmagic=N32;;
9456     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9457       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9458     *) libsuff= shlibsuff= libmagic=never-match;;
9459     esac
9460     ;;
9461   esac
9462   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9463   shlibpath_overrides_runpath=no
9464   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9465   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9466   hardcode_into_libs=yes
9467   ;;
9468
9469 # No shared lib support for Linux oldld, aout, or coff.
9470 linux*oldld* | linux*aout* | linux*coff*)
9471   dynamic_linker=no
9472   ;;
9473
9474 # This must be Linux ELF.
9475 linux* | k*bsd*-gnu)
9476   version_type=linux
9477   need_lib_prefix=no
9478   need_version=no
9479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9480   soname_spec='${libname}${release}${shared_ext}$major'
9481   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9482   shlibpath_var=LD_LIBRARY_PATH
9483   shlibpath_overrides_runpath=no
9484   # Some binutils ld are patched to set DT_RUNPATH
9485   save_LDFLAGS=$LDFLAGS
9486   save_libdir=$libdir
9487   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9488        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9489   cat >conftest.$ac_ext <<_ACEOF
9490 /* confdefs.h.  */
9491 _ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h.  */
9495
9496 int
9497 main ()
9498 {
9499
9500   ;
9501   return 0;
9502 }
9503 _ACEOF
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (ac_try="$ac_link"
9506 case "(($ac_try" in
9507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508   *) ac_try_echo=$ac_try;;
9509 esac
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511   (eval "$ac_link") 2>conftest.er1
9512   ac_status=$?
9513   grep -v '^ *+' conftest.er1 >conftest.err
9514   rm -f conftest.er1
9515   cat conftest.err >&5
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); } && {
9518          test -z "$ac_c_werror_flag" ||
9519          test ! -s conftest.err
9520        } && test -s conftest$ac_exeext &&
9521        $as_test_x conftest$ac_exeext; then
9522   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9523   shlibpath_overrides_runpath=yes
9524 fi
9525
9526 else
9527   echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9529
9530
9531 fi
9532
9533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9534       conftest$ac_exeext conftest.$ac_ext
9535   LDFLAGS=$save_LDFLAGS
9536   libdir=$save_libdir
9537
9538   # This implies no fast_install, which is unacceptable.
9539   # Some rework will be needed to allow for fast_install
9540   # before this can be enabled.
9541   hardcode_into_libs=yes
9542
9543   # Append ld.so.conf contents to the search path
9544   if test -f /etc/ld.so.conf; then
9545     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' ' '`
9546     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9547   fi
9548
9549   # We used to test for /lib/ld.so.1 and disable shared libraries on
9550   # powerpc, because MkLinux only supported shared libraries with the
9551   # GNU dynamic linker.  Since this was broken with cross compilers,
9552   # most powerpc-linux boxes support dynamic linking these days and
9553   # people can always --disable-shared, the test was removed, and we
9554   # assume the GNU/Linux dynamic linker is in use.
9555   dynamic_linker='GNU/Linux ld.so'
9556   ;;
9557
9558 netbsd*)
9559   version_type=sunos
9560   need_lib_prefix=no
9561   need_version=no
9562   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9563     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9564     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9565     dynamic_linker='NetBSD (a.out) ld.so'
9566   else
9567     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9568     soname_spec='${libname}${release}${shared_ext}$major'
9569     dynamic_linker='NetBSD ld.elf_so'
9570   fi
9571   shlibpath_var=LD_LIBRARY_PATH
9572   shlibpath_overrides_runpath=yes
9573   hardcode_into_libs=yes
9574   ;;
9575
9576 newsos6)
9577   version_type=linux
9578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9579   shlibpath_var=LD_LIBRARY_PATH
9580   shlibpath_overrides_runpath=yes
9581   ;;
9582
9583 *nto* | *qnx*)
9584   version_type=qnx
9585   need_lib_prefix=no
9586   need_version=no
9587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9588   soname_spec='${libname}${release}${shared_ext}$major'
9589   shlibpath_var=LD_LIBRARY_PATH
9590   shlibpath_overrides_runpath=no
9591   hardcode_into_libs=yes
9592   dynamic_linker='ldqnx.so'
9593   ;;
9594
9595 openbsd*)
9596   version_type=sunos
9597   sys_lib_dlsearch_path_spec="/usr/lib"
9598   need_lib_prefix=no
9599   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9600   case $host_os in
9601     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9602     *)                          need_version=no  ;;
9603   esac
9604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9605   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9606   shlibpath_var=LD_LIBRARY_PATH
9607   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9608     case $host_os in
9609       openbsd2.[89] | openbsd2.[89].*)
9610         shlibpath_overrides_runpath=no
9611         ;;
9612       *)
9613         shlibpath_overrides_runpath=yes
9614         ;;
9615       esac
9616   else
9617     shlibpath_overrides_runpath=yes
9618   fi
9619   ;;
9620
9621 os2*)
9622   libname_spec='$name'
9623   shrext_cmds=".dll"
9624   need_lib_prefix=no
9625   library_names_spec='$libname${shared_ext} $libname.a'
9626   dynamic_linker='OS/2 ld.exe'
9627   shlibpath_var=LIBPATH
9628   ;;
9629
9630 osf3* | osf4* | osf5*)
9631   version_type=osf
9632   need_lib_prefix=no
9633   need_version=no
9634   soname_spec='${libname}${release}${shared_ext}$major'
9635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9636   shlibpath_var=LD_LIBRARY_PATH
9637   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9638   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9639   ;;
9640
9641 rdos*)
9642   dynamic_linker=no
9643   ;;
9644
9645 solaris*)
9646   version_type=linux
9647   need_lib_prefix=no
9648   need_version=no
9649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9650   soname_spec='${libname}${release}${shared_ext}$major'
9651   shlibpath_var=LD_LIBRARY_PATH
9652   shlibpath_overrides_runpath=yes
9653   hardcode_into_libs=yes
9654   # ldd complains unless libraries are executable
9655   postinstall_cmds='chmod +x $lib'
9656   ;;
9657
9658 sunos4*)
9659   version_type=sunos
9660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9661   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9662   shlibpath_var=LD_LIBRARY_PATH
9663   shlibpath_overrides_runpath=yes
9664   if test "$with_gnu_ld" = yes; then
9665     need_lib_prefix=no
9666   fi
9667   need_version=yes
9668   ;;
9669
9670 sysv4 | sysv4.3*)
9671   version_type=linux
9672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9673   soname_spec='${libname}${release}${shared_ext}$major'
9674   shlibpath_var=LD_LIBRARY_PATH
9675   case $host_vendor in
9676     sni)
9677       shlibpath_overrides_runpath=no
9678       need_lib_prefix=no
9679       runpath_var=LD_RUN_PATH
9680       ;;
9681     siemens)
9682       need_lib_prefix=no
9683       ;;
9684     motorola)
9685       need_lib_prefix=no
9686       need_version=no
9687       shlibpath_overrides_runpath=no
9688       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9689       ;;
9690   esac
9691   ;;
9692
9693 sysv4*MP*)
9694   if test -d /usr/nec ;then
9695     version_type=linux
9696     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9697     soname_spec='$libname${shared_ext}.$major'
9698     shlibpath_var=LD_LIBRARY_PATH
9699   fi
9700   ;;
9701
9702 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9703   version_type=freebsd-elf
9704   need_lib_prefix=no
9705   need_version=no
9706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9707   soname_spec='${libname}${release}${shared_ext}$major'
9708   shlibpath_var=LD_LIBRARY_PATH
9709   shlibpath_overrides_runpath=yes
9710   hardcode_into_libs=yes
9711   if test "$with_gnu_ld" = yes; then
9712     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9713   else
9714     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9715     case $host_os in
9716       sco3.2v5*)
9717         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9718         ;;
9719     esac
9720   fi
9721   sys_lib_dlsearch_path_spec='/usr/lib'
9722   ;;
9723
9724 tpf*)
9725   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9726   version_type=linux
9727   need_lib_prefix=no
9728   need_version=no
9729   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730   shlibpath_var=LD_LIBRARY_PATH
9731   shlibpath_overrides_runpath=no
9732   hardcode_into_libs=yes
9733   ;;
9734
9735 uts4*)
9736   version_type=linux
9737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9738   soname_spec='${libname}${release}${shared_ext}$major'
9739   shlibpath_var=LD_LIBRARY_PATH
9740   ;;
9741
9742 *)
9743   dynamic_linker=no
9744   ;;
9745 esac
9746 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9747 echo "${ECHO_T}$dynamic_linker" >&6; }
9748 test "$dynamic_linker" = no && can_build_shared=no
9749
9750 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9751 if test "$GCC" = yes; then
9752   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9753 fi
9754
9755 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9756   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9757 fi
9758 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9759   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9760 fi
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9849 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9850 hardcode_action=
9851 if test -n "$hardcode_libdir_flag_spec" ||
9852    test -n "$runpath_var" ||
9853    test "X$hardcode_automatic" = "Xyes" ; then
9854
9855   # We can hardcode non-existent directories.
9856   if test "$hardcode_direct" != no &&
9857      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9858      # have to relink, otherwise we might link with an installed library
9859      # when we should be linking with a yet-to-be-installed one
9860      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9861      test "$hardcode_minus_L" != no; then
9862     # Linking always hardcodes the temporary library directory.
9863     hardcode_action=relink
9864   else
9865     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9866     hardcode_action=immediate
9867   fi
9868 else
9869   # We cannot hardcode anything, or else we can only hardcode existing
9870   # directories.
9871   hardcode_action=unsupported
9872 fi
9873 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9874 echo "${ECHO_T}$hardcode_action" >&6; }
9875
9876 if test "$hardcode_action" = relink ||
9877    test "$inherit_rpath" = yes; then
9878   # Fast installation is not supported
9879   enable_fast_install=no
9880 elif test "$shlibpath_overrides_runpath" = yes ||
9881      test "$enable_shared" = no; then
9882   # Fast installation is not necessary
9883   enable_fast_install=needless
9884 fi
9885
9886
9887
9888
9889
9890
9891   if test "x$enable_dlopen" != xyes; then
9892   enable_dlopen=unknown
9893   enable_dlopen_self=unknown
9894   enable_dlopen_self_static=unknown
9895 else
9896   lt_cv_dlopen=no
9897   lt_cv_dlopen_libs=
9898
9899   case $host_os in
9900   beos*)
9901     lt_cv_dlopen="load_add_on"
9902     lt_cv_dlopen_libs=
9903     lt_cv_dlopen_self=yes
9904     ;;
9905
9906   mingw* | pw32*)
9907     lt_cv_dlopen="LoadLibrary"
9908     lt_cv_dlopen_libs=
9909     ;;
9910
9911   cygwin*)
9912     lt_cv_dlopen="dlopen"
9913     lt_cv_dlopen_libs=
9914     ;;
9915
9916   darwin*)
9917   # if libdl is installed we need to link against it
9918     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9919 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9920 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9921   echo $ECHO_N "(cached) $ECHO_C" >&6
9922 else
9923   ac_check_lib_save_LIBS=$LIBS
9924 LIBS="-ldl  $LIBS"
9925 cat >conftest.$ac_ext <<_ACEOF
9926 /* confdefs.h.  */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h.  */
9931
9932 /* Override any GCC internal prototype to avoid an error.
9933    Use char because int might match the return type of a GCC
9934    builtin and then its argument prototype would still apply.  */
9935 #ifdef __cplusplus
9936 extern "C"
9937 #endif
9938 char dlopen ();
9939 int
9940 main ()
9941 {
9942 return dlopen ();
9943   ;
9944   return 0;
9945 }
9946 _ACEOF
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (ac_try="$ac_link"
9949 case "(($ac_try" in
9950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951   *) ac_try_echo=$ac_try;;
9952 esac
9953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954   (eval "$ac_link") 2>conftest.er1
9955   ac_status=$?
9956   grep -v '^ *+' conftest.er1 >conftest.err
9957   rm -f conftest.er1
9958   cat conftest.err >&5
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); } && {
9961          test -z "$ac_c_werror_flag" ||
9962          test ! -s conftest.err
9963        } && test -s conftest$ac_exeext &&
9964        $as_test_x conftest$ac_exeext; then
9965   ac_cv_lib_dl_dlopen=yes
9966 else
9967   echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9969
9970         ac_cv_lib_dl_dlopen=no
9971 fi
9972
9973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9974       conftest$ac_exeext conftest.$ac_ext
9975 LIBS=$ac_check_lib_save_LIBS
9976 fi
9977 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9978 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9979 if test $ac_cv_lib_dl_dlopen = yes; then
9980   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9981 else
9982
9983     lt_cv_dlopen="dyld"
9984     lt_cv_dlopen_libs=
9985     lt_cv_dlopen_self=yes
9986
9987 fi
9988
9989     ;;
9990
9991   *)
9992     { echo "$as_me:$LINENO: checking for shl_load" >&5
9993 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9994 if test "${ac_cv_func_shl_load+set}" = set; then
9995   echo $ECHO_N "(cached) $ECHO_C" >&6
9996 else
9997   cat >conftest.$ac_ext <<_ACEOF
9998 /* confdefs.h.  */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h.  */
10003 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10005 #define shl_load innocuous_shl_load
10006
10007 /* System header to define __stub macros and hopefully few prototypes,
10008     which can conflict with char shl_load (); below.
10009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10010     <limits.h> exists even on freestanding compilers.  */
10011
10012 #ifdef __STDC__
10013 # include <limits.h>
10014 #else
10015 # include <assert.h>
10016 #endif
10017
10018 #undef shl_load
10019
10020 /* Override any GCC internal prototype to avoid an error.
10021    Use char because int might match the return type of a GCC
10022    builtin and then its argument prototype would still apply.  */
10023 #ifdef __cplusplus
10024 extern "C"
10025 #endif
10026 char shl_load ();
10027 /* The GNU C library defines this for functions which it implements
10028     to always fail with ENOSYS.  Some functions are actually named
10029     something starting with __ and the normal name is an alias.  */
10030 #if defined __stub_shl_load || defined __stub___shl_load
10031 choke me
10032 #endif
10033
10034 int
10035 main ()
10036 {
10037 return shl_load ();
10038   ;
10039   return 0;
10040 }
10041 _ACEOF
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046   *) ac_try_echo=$ac_try;;
10047 esac
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049   (eval "$ac_link") 2>conftest.er1
10050   ac_status=$?
10051   grep -v '^ *+' conftest.er1 >conftest.err
10052   rm -f conftest.er1
10053   cat conftest.err >&5
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); } && {
10056          test -z "$ac_c_werror_flag" ||
10057          test ! -s conftest.err
10058        } && test -s conftest$ac_exeext &&
10059        $as_test_x conftest$ac_exeext; then
10060   ac_cv_func_shl_load=yes
10061 else
10062   echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10064
10065         ac_cv_func_shl_load=no
10066 fi
10067
10068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10069       conftest$ac_exeext conftest.$ac_ext
10070 fi
10071 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10072 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10073 if test $ac_cv_func_shl_load = yes; then
10074   lt_cv_dlopen="shl_load"
10075 else
10076   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10077 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10078 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10079   echo $ECHO_N "(cached) $ECHO_C" >&6
10080 else
10081   ac_check_lib_save_LIBS=$LIBS
10082 LIBS="-ldld  $LIBS"
10083 cat >conftest.$ac_ext <<_ACEOF
10084 /* confdefs.h.  */
10085 _ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h.  */
10089
10090 /* Override any GCC internal prototype to avoid an error.
10091    Use char because int might match the return type of a GCC
10092    builtin and then its argument prototype would still apply.  */
10093 #ifdef __cplusplus
10094 extern "C"
10095 #endif
10096 char shl_load ();
10097 int
10098 main ()
10099 {
10100 return shl_load ();
10101   ;
10102   return 0;
10103 }
10104 _ACEOF
10105 rm -f conftest.$ac_objext conftest$ac_exeext
10106 if { (ac_try="$ac_link"
10107 case "(($ac_try" in
10108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109   *) ac_try_echo=$ac_try;;
10110 esac
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112   (eval "$ac_link") 2>conftest.er1
10113   ac_status=$?
10114   grep -v '^ *+' conftest.er1 >conftest.err
10115   rm -f conftest.er1
10116   cat conftest.err >&5
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); } && {
10119          test -z "$ac_c_werror_flag" ||
10120          test ! -s conftest.err
10121        } && test -s conftest$ac_exeext &&
10122        $as_test_x conftest$ac_exeext; then
10123   ac_cv_lib_dld_shl_load=yes
10124 else
10125   echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10127
10128         ac_cv_lib_dld_shl_load=no
10129 fi
10130
10131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10132       conftest$ac_exeext conftest.$ac_ext
10133 LIBS=$ac_check_lib_save_LIBS
10134 fi
10135 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10136 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10137 if test $ac_cv_lib_dld_shl_load = yes; then
10138   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10139 else
10140   { echo "$as_me:$LINENO: checking for dlopen" >&5
10141 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10142 if test "${ac_cv_func_dlopen+set}" = set; then
10143   echo $ECHO_N "(cached) $ECHO_C" >&6
10144 else
10145   cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h.  */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h.  */
10151 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10153 #define dlopen innocuous_dlopen
10154
10155 /* System header to define __stub macros and hopefully few prototypes,
10156     which can conflict with char dlopen (); below.
10157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10158     <limits.h> exists even on freestanding compilers.  */
10159
10160 #ifdef __STDC__
10161 # include <limits.h>
10162 #else
10163 # include <assert.h>
10164 #endif
10165
10166 #undef dlopen
10167
10168 /* Override any GCC internal prototype to avoid an error.
10169    Use char because int might match the return type of a GCC
10170    builtin and then its argument prototype would still apply.  */
10171 #ifdef __cplusplus
10172 extern "C"
10173 #endif
10174 char dlopen ();
10175 /* The GNU C library defines this for functions which it implements
10176     to always fail with ENOSYS.  Some functions are actually named
10177     something starting with __ and the normal name is an alias.  */
10178 #if defined __stub_dlopen || defined __stub___dlopen
10179 choke me
10180 #endif
10181
10182 int
10183 main ()
10184 {
10185 return dlopen ();
10186   ;
10187   return 0;
10188 }
10189 _ACEOF
10190 rm -f conftest.$ac_objext conftest$ac_exeext
10191 if { (ac_try="$ac_link"
10192 case "(($ac_try" in
10193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194   *) ac_try_echo=$ac_try;;
10195 esac
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197   (eval "$ac_link") 2>conftest.er1
10198   ac_status=$?
10199   grep -v '^ *+' conftest.er1 >conftest.err
10200   rm -f conftest.er1
10201   cat conftest.err >&5
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); } && {
10204          test -z "$ac_c_werror_flag" ||
10205          test ! -s conftest.err
10206        } && test -s conftest$ac_exeext &&
10207        $as_test_x conftest$ac_exeext; then
10208   ac_cv_func_dlopen=yes
10209 else
10210   echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10212
10213         ac_cv_func_dlopen=no
10214 fi
10215
10216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10217       conftest$ac_exeext conftest.$ac_ext
10218 fi
10219 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10220 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10221 if test $ac_cv_func_dlopen = yes; then
10222   lt_cv_dlopen="dlopen"
10223 else
10224   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10225 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10226 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10227   echo $ECHO_N "(cached) $ECHO_C" >&6
10228 else
10229   ac_check_lib_save_LIBS=$LIBS
10230 LIBS="-ldl  $LIBS"
10231 cat >conftest.$ac_ext <<_ACEOF
10232 /* confdefs.h.  */
10233 _ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h.  */
10237
10238 /* Override any GCC internal prototype to avoid an error.
10239    Use char because int might match the return type of a GCC
10240    builtin and then its argument prototype would still apply.  */
10241 #ifdef __cplusplus
10242 extern "C"
10243 #endif
10244 char dlopen ();
10245 int
10246 main ()
10247 {
10248 return dlopen ();
10249   ;
10250   return 0;
10251 }
10252 _ACEOF
10253 rm -f conftest.$ac_objext conftest$ac_exeext
10254 if { (ac_try="$ac_link"
10255 case "(($ac_try" in
10256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257   *) ac_try_echo=$ac_try;;
10258 esac
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260   (eval "$ac_link") 2>conftest.er1
10261   ac_status=$?
10262   grep -v '^ *+' conftest.er1 >conftest.err
10263   rm -f conftest.er1
10264   cat conftest.err >&5
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); } && {
10267          test -z "$ac_c_werror_flag" ||
10268          test ! -s conftest.err
10269        } && test -s conftest$ac_exeext &&
10270        $as_test_x conftest$ac_exeext; then
10271   ac_cv_lib_dl_dlopen=yes
10272 else
10273   echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10275
10276         ac_cv_lib_dl_dlopen=no
10277 fi
10278
10279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10280       conftest$ac_exeext conftest.$ac_ext
10281 LIBS=$ac_check_lib_save_LIBS
10282 fi
10283 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10284 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10285 if test $ac_cv_lib_dl_dlopen = yes; then
10286   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10287 else
10288   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10289 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10290 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10291   echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293   ac_check_lib_save_LIBS=$LIBS
10294 LIBS="-lsvld  $LIBS"
10295 cat >conftest.$ac_ext <<_ACEOF
10296 /* confdefs.h.  */
10297 _ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h.  */
10301
10302 /* Override any GCC internal prototype to avoid an error.
10303    Use char because int might match the return type of a GCC
10304    builtin and then its argument prototype would still apply.  */
10305 #ifdef __cplusplus
10306 extern "C"
10307 #endif
10308 char dlopen ();
10309 int
10310 main ()
10311 {
10312 return dlopen ();
10313   ;
10314   return 0;
10315 }
10316 _ACEOF
10317 rm -f conftest.$ac_objext conftest$ac_exeext
10318 if { (ac_try="$ac_link"
10319 case "(($ac_try" in
10320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321   *) ac_try_echo=$ac_try;;
10322 esac
10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324   (eval "$ac_link") 2>conftest.er1
10325   ac_status=$?
10326   grep -v '^ *+' conftest.er1 >conftest.err
10327   rm -f conftest.er1
10328   cat conftest.err >&5
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); } && {
10331          test -z "$ac_c_werror_flag" ||
10332          test ! -s conftest.err
10333        } && test -s conftest$ac_exeext &&
10334        $as_test_x conftest$ac_exeext; then
10335   ac_cv_lib_svld_dlopen=yes
10336 else
10337   echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10339
10340         ac_cv_lib_svld_dlopen=no
10341 fi
10342
10343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10344       conftest$ac_exeext conftest.$ac_ext
10345 LIBS=$ac_check_lib_save_LIBS
10346 fi
10347 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10348 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10349 if test $ac_cv_lib_svld_dlopen = yes; then
10350   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10351 else
10352   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10353 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10354 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10355   echo $ECHO_N "(cached) $ECHO_C" >&6
10356 else
10357   ac_check_lib_save_LIBS=$LIBS
10358 LIBS="-ldld  $LIBS"
10359 cat >conftest.$ac_ext <<_ACEOF
10360 /* confdefs.h.  */
10361 _ACEOF
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h.  */
10365
10366 /* Override any GCC internal prototype to avoid an error.
10367    Use char because int might match the return type of a GCC
10368    builtin and then its argument prototype would still apply.  */
10369 #ifdef __cplusplus
10370 extern "C"
10371 #endif
10372 char dld_link ();
10373 int
10374 main ()
10375 {
10376 return dld_link ();
10377   ;
10378   return 0;
10379 }
10380 _ACEOF
10381 rm -f conftest.$ac_objext conftest$ac_exeext
10382 if { (ac_try="$ac_link"
10383 case "(($ac_try" in
10384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385   *) ac_try_echo=$ac_try;;
10386 esac
10387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388   (eval "$ac_link") 2>conftest.er1
10389   ac_status=$?
10390   grep -v '^ *+' conftest.er1 >conftest.err
10391   rm -f conftest.er1
10392   cat conftest.err >&5
10393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394   (exit $ac_status); } && {
10395          test -z "$ac_c_werror_flag" ||
10396          test ! -s conftest.err
10397        } && test -s conftest$ac_exeext &&
10398        $as_test_x conftest$ac_exeext; then
10399   ac_cv_lib_dld_dld_link=yes
10400 else
10401   echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10403
10404         ac_cv_lib_dld_dld_link=no
10405 fi
10406
10407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10408       conftest$ac_exeext conftest.$ac_ext
10409 LIBS=$ac_check_lib_save_LIBS
10410 fi
10411 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10412 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10413 if test $ac_cv_lib_dld_dld_link = yes; then
10414   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10415 fi
10416
10417
10418 fi
10419
10420
10421 fi
10422
10423
10424 fi
10425
10426
10427 fi
10428
10429
10430 fi
10431
10432     ;;
10433   esac
10434
10435   if test "x$lt_cv_dlopen" != xno; then
10436     enable_dlopen=yes
10437   else
10438     enable_dlopen=no
10439   fi
10440
10441   case $lt_cv_dlopen in
10442   dlopen)
10443     save_CPPFLAGS="$CPPFLAGS"
10444     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10445
10446     save_LDFLAGS="$LDFLAGS"
10447     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10448
10449     save_LIBS="$LIBS"
10450     LIBS="$lt_cv_dlopen_libs $LIBS"
10451
10452     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10453 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10454 if test "${lt_cv_dlopen_self+set}" = set; then
10455   echo $ECHO_N "(cached) $ECHO_C" >&6
10456 else
10457           if test "$cross_compiling" = yes; then :
10458   lt_cv_dlopen_self=cross
10459 else
10460   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10461   lt_status=$lt_dlunknown
10462   cat > conftest.$ac_ext <<_LT_EOF
10463 #line 10463 "configure"
10464 #include "confdefs.h"
10465
10466 #if HAVE_DLFCN_H
10467 #include <dlfcn.h>
10468 #endif
10469
10470 #include <stdio.h>
10471
10472 #ifdef RTLD_GLOBAL
10473 #  define LT_DLGLOBAL           RTLD_GLOBAL
10474 #else
10475 #  ifdef DL_GLOBAL
10476 #    define LT_DLGLOBAL         DL_GLOBAL
10477 #  else
10478 #    define LT_DLGLOBAL         0
10479 #  endif
10480 #endif
10481
10482 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10483    find out it does not work in some platform. */
10484 #ifndef LT_DLLAZY_OR_NOW
10485 #  ifdef RTLD_LAZY
10486 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10487 #  else
10488 #    ifdef DL_LAZY
10489 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10490 #    else
10491 #      ifdef RTLD_NOW
10492 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10493 #      else
10494 #        ifdef DL_NOW
10495 #          define LT_DLLAZY_OR_NOW      DL_NOW
10496 #        else
10497 #          define LT_DLLAZY_OR_NOW      0
10498 #        endif
10499 #      endif
10500 #    endif
10501 #  endif
10502 #endif
10503
10504 #ifdef __cplusplus
10505 extern "C" void exit (int);
10506 #endif
10507
10508 void fnord() { int i=42;}
10509 int main ()
10510 {
10511   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10512   int status = $lt_dlunknown;
10513
10514   if (self)
10515     {
10516       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10517       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10518       /* dlclose (self); */
10519     }
10520   else
10521     puts (dlerror ());
10522
10523     exit (status);
10524 }
10525 _LT_EOF
10526   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10527   (eval $ac_link) 2>&5
10528   ac_status=$?
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10531     (./conftest; exit; ) >&5 2>/dev/null
10532     lt_status=$?
10533     case x$lt_status in
10534       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10535       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10536       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10537     esac
10538   else :
10539     # compilation failed
10540     lt_cv_dlopen_self=no
10541   fi
10542 fi
10543 rm -fr conftest*
10544
10545
10546 fi
10547 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10548 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10549
10550     if test "x$lt_cv_dlopen_self" = xyes; then
10551       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10552       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10553 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10554 if test "${lt_cv_dlopen_self_static+set}" = set; then
10555   echo $ECHO_N "(cached) $ECHO_C" >&6
10556 else
10557           if test "$cross_compiling" = yes; then :
10558   lt_cv_dlopen_self_static=cross
10559 else
10560   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10561   lt_status=$lt_dlunknown
10562   cat > conftest.$ac_ext <<_LT_EOF
10563 #line 10563 "configure"
10564 #include "confdefs.h"
10565
10566 #if HAVE_DLFCN_H
10567 #include <dlfcn.h>
10568 #endif
10569
10570 #include <stdio.h>
10571
10572 #ifdef RTLD_GLOBAL
10573 #  define LT_DLGLOBAL           RTLD_GLOBAL
10574 #else
10575 #  ifdef DL_GLOBAL
10576 #    define LT_DLGLOBAL         DL_GLOBAL
10577 #  else
10578 #    define LT_DLGLOBAL         0
10579 #  endif
10580 #endif
10581
10582 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10583    find out it does not work in some platform. */
10584 #ifndef LT_DLLAZY_OR_NOW
10585 #  ifdef RTLD_LAZY
10586 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10587 #  else
10588 #    ifdef DL_LAZY
10589 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10590 #    else
10591 #      ifdef RTLD_NOW
10592 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10593 #      else
10594 #        ifdef DL_NOW
10595 #          define LT_DLLAZY_OR_NOW      DL_NOW
10596 #        else
10597 #          define LT_DLLAZY_OR_NOW      0
10598 #        endif
10599 #      endif
10600 #    endif
10601 #  endif
10602 #endif
10603
10604 #ifdef __cplusplus
10605 extern "C" void exit (int);
10606 #endif
10607
10608 void fnord() { int i=42;}
10609 int main ()
10610 {
10611   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10612   int status = $lt_dlunknown;
10613
10614   if (self)
10615     {
10616       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10617       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10618       /* dlclose (self); */
10619     }
10620   else
10621     puts (dlerror ());
10622
10623     exit (status);
10624 }
10625 _LT_EOF
10626   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10627   (eval $ac_link) 2>&5
10628   ac_status=$?
10629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10631     (./conftest; exit; ) >&5 2>/dev/null
10632     lt_status=$?
10633     case x$lt_status in
10634       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10635       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10636       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10637     esac
10638   else :
10639     # compilation failed
10640     lt_cv_dlopen_self_static=no
10641   fi
10642 fi
10643 rm -fr conftest*
10644
10645
10646 fi
10647 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10648 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10649     fi
10650
10651     CPPFLAGS="$save_CPPFLAGS"
10652     LDFLAGS="$save_LDFLAGS"
10653     LIBS="$save_LIBS"
10654     ;;
10655   esac
10656
10657   case $lt_cv_dlopen_self in
10658   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10659   *) enable_dlopen_self=unknown ;;
10660   esac
10661
10662   case $lt_cv_dlopen_self_static in
10663   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10664   *) enable_dlopen_self_static=unknown ;;
10665   esac
10666 fi
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684 striplib=
10685 old_striplib=
10686 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10687 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10688 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10689   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10690   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10691   { echo "$as_me:$LINENO: result: yes" >&5
10692 echo "${ECHO_T}yes" >&6; }
10693 else
10694 # FIXME - insert some real tests, host_os isn't really good enough
10695   case $host_os in
10696   darwin*)
10697     if test -n "$STRIP" ; then
10698       striplib="$STRIP -x"
10699       old_striplib="$STRIP -S"
10700       { echo "$as_me:$LINENO: result: yes" >&5
10701 echo "${ECHO_T}yes" >&6; }
10702     else
10703       { echo "$as_me:$LINENO: result: no" >&5
10704 echo "${ECHO_T}no" >&6; }
10705     fi
10706     ;;
10707   *)
10708     { echo "$as_me:$LINENO: result: no" >&5
10709 echo "${ECHO_T}no" >&6; }
10710     ;;
10711   esac
10712 fi
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725   # Report which library types will actually be built
10726   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10727 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10728   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10729 echo "${ECHO_T}$can_build_shared" >&6; }
10730
10731   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10732 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10733   test "$can_build_shared" = "no" && enable_shared=no
10734
10735   # On AIX, shared libraries and static libraries use the same namespace, and
10736   # are all built from PIC.
10737   case $host_os in
10738   aix3*)
10739     test "$enable_shared" = yes && enable_static=no
10740     if test -n "$RANLIB"; then
10741       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10742       postinstall_cmds='$RANLIB $lib'
10743     fi
10744     ;;
10745
10746   aix[4-9]*)
10747     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10748       test "$enable_shared" = yes && enable_static=no
10749     fi
10750     ;;
10751   esac
10752   { echo "$as_me:$LINENO: result: $enable_shared" >&5
10753 echo "${ECHO_T}$enable_shared" >&6; }
10754
10755   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10756 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10757   # Make sure either enable_shared or enable_static is yes.
10758   test "$enable_shared" = yes || enable_static=yes
10759   { echo "$as_me:$LINENO: result: $enable_static" >&5
10760 echo "${ECHO_T}$enable_static" >&6; }
10761
10762
10763
10764
10765 fi
10766 ac_ext=c
10767 ac_cpp='$CPP $CPPFLAGS'
10768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10771
10772 CC="$lt_save_CC"
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786         ac_config_commands="$ac_config_commands libtool"
10787
10788
10789
10790
10791 # Only expand once:
10792
10793
10794
10795 # Checks for libraries.
10796 # FIXME: Replace `main' with a function in `-lpthread':
10797
10798 { echo "$as_me:$LINENO: checking for main in -lpthread" >&5
10799 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6; }
10800 if test "${ac_cv_lib_pthread_main+set}" = set; then
10801   echo $ECHO_N "(cached) $ECHO_C" >&6
10802 else
10803   ac_check_lib_save_LIBS=$LIBS
10804 LIBS="-lpthread  $LIBS"
10805 cat >conftest.$ac_ext <<_ACEOF
10806 /* confdefs.h.  */
10807 _ACEOF
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>conftest.$ac_ext <<_ACEOF
10810 /* end confdefs.h.  */
10811
10812
10813 int
10814 main ()
10815 {
10816 return main ();
10817   ;
10818   return 0;
10819 }
10820 _ACEOF
10821 rm -f conftest.$ac_objext conftest$ac_exeext
10822 if { (ac_try="$ac_link"
10823 case "(($ac_try" in
10824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825   *) ac_try_echo=$ac_try;;
10826 esac
10827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10828   (eval "$ac_link") 2>conftest.er1
10829   ac_status=$?
10830   grep -v '^ *+' conftest.er1 >conftest.err
10831   rm -f conftest.er1
10832   cat conftest.err >&5
10833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834   (exit $ac_status); } && {
10835          test -z "$ac_c_werror_flag" ||
10836          test ! -s conftest.err
10837        } && test -s conftest$ac_exeext &&
10838        $as_test_x conftest$ac_exeext; then
10839   ac_cv_lib_pthread_main=yes
10840 else
10841   echo "$as_me: failed program was:" >&5
10842 sed 's/^/| /' conftest.$ac_ext >&5
10843
10844         ac_cv_lib_pthread_main=no
10845 fi
10846
10847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10848       conftest$ac_exeext conftest.$ac_ext
10849 LIBS=$ac_check_lib_save_LIBS
10850 fi
10851 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
10852 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6; }
10853 if test $ac_cv_lib_pthread_main = yes; then
10854   cat >>confdefs.h <<_ACEOF
10855 #define HAVE_LIBPTHREAD 1
10856 _ACEOF
10857
10858   LIBS="-lpthread $LIBS"
10859
10860 fi
10861
10862
10863 # Checks for header files.
10864 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10865 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
10866 if test "${ac_cv_header_stdc+set}" = set; then
10867   echo $ECHO_N "(cached) $ECHO_C" >&6
10868 else
10869   cat >conftest.$ac_ext <<_ACEOF
10870 /* confdefs.h.  */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h.  */
10875 #include <stdlib.h>
10876 #include <stdarg.h>
10877 #include <string.h>
10878 #include <float.h>
10879
10880 int
10881 main ()
10882 {
10883
10884   ;
10885   return 0;
10886 }
10887 _ACEOF
10888 rm -f conftest.$ac_objext
10889 if { (ac_try="$ac_compile"
10890 case "(($ac_try" in
10891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892   *) ac_try_echo=$ac_try;;
10893 esac
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895   (eval "$ac_compile") 2>conftest.er1
10896   ac_status=$?
10897   grep -v '^ *+' conftest.er1 >conftest.err
10898   rm -f conftest.er1
10899   cat conftest.err >&5
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); } && {
10902          test -z "$ac_c_werror_flag" ||
10903          test ! -s conftest.err
10904        } && test -s conftest.$ac_objext; then
10905   ac_cv_header_stdc=yes
10906 else
10907   echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10909
10910         ac_cv_header_stdc=no
10911 fi
10912
10913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10914
10915 if test $ac_cv_header_stdc = yes; then
10916   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10917   cat >conftest.$ac_ext <<_ACEOF
10918 /* confdefs.h.  */
10919 _ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h.  */
10923 #include <string.h>
10924
10925 _ACEOF
10926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10927   $EGREP "memchr" >/dev/null 2>&1; then
10928   :
10929 else
10930   ac_cv_header_stdc=no
10931 fi
10932 rm -f conftest*
10933
10934 fi
10935
10936 if test $ac_cv_header_stdc = yes; then
10937   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10938   cat >conftest.$ac_ext <<_ACEOF
10939 /* confdefs.h.  */
10940 _ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h.  */
10944 #include <stdlib.h>
10945
10946 _ACEOF
10947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10948   $EGREP "free" >/dev/null 2>&1; then
10949   :
10950 else
10951   ac_cv_header_stdc=no
10952 fi
10953 rm -f conftest*
10954
10955 fi
10956
10957 if test $ac_cv_header_stdc = yes; then
10958   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10959   if test "$cross_compiling" = yes; then
10960   :
10961 else
10962   cat >conftest.$ac_ext <<_ACEOF
10963 /* confdefs.h.  */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h.  */
10968 #include <ctype.h>
10969 #include <stdlib.h>
10970 #if ((' ' & 0x0FF) == 0x020)
10971 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10972 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10973 #else
10974 # define ISLOWER(c) \
10975                    (('a' <= (c) && (c) <= 'i') \
10976                      || ('j' <= (c) && (c) <= 'r') \
10977                      || ('s' <= (c) && (c) <= 'z'))
10978 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10979 #endif
10980
10981 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10982 int
10983 main ()
10984 {
10985   int i;
10986   for (i = 0; i < 256; i++)
10987     if (XOR (islower (i), ISLOWER (i))
10988         || toupper (i) != TOUPPER (i))
10989       return 2;
10990   return 0;
10991 }
10992 _ACEOF
10993 rm -f conftest$ac_exeext
10994 if { (ac_try="$ac_link"
10995 case "(($ac_try" in
10996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997   *) ac_try_echo=$ac_try;;
10998 esac
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000   (eval "$ac_link") 2>&5
11001   ac_status=$?
11002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11004   { (case "(($ac_try" in
11005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006   *) ac_try_echo=$ac_try;;
11007 esac
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009   (eval "$ac_try") 2>&5
11010   ac_status=$?
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); }; }; then
11013   :
11014 else
11015   echo "$as_me: program exited with status $ac_status" >&5
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11018
11019 ( exit $ac_status )
11020 ac_cv_header_stdc=no
11021 fi
11022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11023 fi
11024
11025
11026 fi
11027 fi
11028 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11029 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
11030 if test $ac_cv_header_stdc = yes; then
11031
11032 cat >>confdefs.h <<\_ACEOF
11033 #define STDC_HEADERS 1
11034 _ACEOF
11035
11036 fi
11037
11038
11039
11040
11041
11042
11043
11044 for ac_header in fcntl.h malloc.h stdlib.h string.h sys/time.h unistd.h
11045 do
11046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11048   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11051   echo $ECHO_N "(cached) $ECHO_C" >&6
11052 fi
11053 ac_res=`eval echo '${'$as_ac_Header'}'`
11054                { echo "$as_me:$LINENO: result: $ac_res" >&5
11055 echo "${ECHO_T}$ac_res" >&6; }
11056 else
11057   # Is the header compilable?
11058 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11060 cat >conftest.$ac_ext <<_ACEOF
11061 /* confdefs.h.  */
11062 _ACEOF
11063 cat confdefs.h >>conftest.$ac_ext
11064 cat >>conftest.$ac_ext <<_ACEOF
11065 /* end confdefs.h.  */
11066 $ac_includes_default
11067 #include <$ac_header>
11068 _ACEOF
11069 rm -f conftest.$ac_objext
11070 if { (ac_try="$ac_compile"
11071 case "(($ac_try" in
11072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073   *) ac_try_echo=$ac_try;;
11074 esac
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076   (eval "$ac_compile") 2>conftest.er1
11077   ac_status=$?
11078   grep -v '^ *+' conftest.er1 >conftest.err
11079   rm -f conftest.er1
11080   cat conftest.err >&5
11081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082   (exit $ac_status); } && {
11083          test -z "$ac_c_werror_flag" ||
11084          test ! -s conftest.err
11085        } && test -s conftest.$ac_objext; then
11086   ac_header_compiler=yes
11087 else
11088   echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11090
11091         ac_header_compiler=no
11092 fi
11093
11094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11096 echo "${ECHO_T}$ac_header_compiler" >&6; }
11097
11098 # Is the header present?
11099 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11101 cat >conftest.$ac_ext <<_ACEOF
11102 /* confdefs.h.  */
11103 _ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h.  */
11107 #include <$ac_header>
11108 _ACEOF
11109 if { (ac_try="$ac_cpp conftest.$ac_ext"
11110 case "(($ac_try" in
11111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112   *) ac_try_echo=$ac_try;;
11113 esac
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11116   ac_status=$?
11117   grep -v '^ *+' conftest.er1 >conftest.err
11118   rm -f conftest.er1
11119   cat conftest.err >&5
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); } >/dev/null && {
11122          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11123          test ! -s conftest.err
11124        }; then
11125   ac_header_preproc=yes
11126 else
11127   echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11129
11130   ac_header_preproc=no
11131 fi
11132
11133 rm -f conftest.err conftest.$ac_ext
11134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11135 echo "${ECHO_T}$ac_header_preproc" >&6; }
11136
11137 # So?  What about this header?
11138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11139   yes:no: )
11140     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11144     ac_header_preproc=yes
11145     ;;
11146   no:yes:* )
11147     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11149     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11150 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11151     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11153     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11154 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11157     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11159
11160     ;;
11161 esac
11162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11165   echo $ECHO_N "(cached) $ECHO_C" >&6
11166 else
11167   eval "$as_ac_Header=\$ac_header_preproc"
11168 fi
11169 ac_res=`eval echo '${'$as_ac_Header'}'`
11170                { echo "$as_me:$LINENO: result: $ac_res" >&5
11171 echo "${ECHO_T}$ac_res" >&6; }
11172
11173 fi
11174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11175   cat >>confdefs.h <<_ACEOF
11176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11177 _ACEOF
11178
11179 fi
11180
11181 done
11182
11183
11184 # Checks for typedefs, structures, and compiler characteristics.
11185 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
11186 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
11187 if test "${ac_cv_header_stdbool_h+set}" = set; then
11188   echo $ECHO_N "(cached) $ECHO_C" >&6
11189 else
11190   cat >conftest.$ac_ext <<_ACEOF
11191 /* confdefs.h.  */
11192 _ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h.  */
11196
11197 #include <stdbool.h>
11198 #ifndef bool
11199  "error: bool is not defined"
11200 #endif
11201 #ifndef false
11202  "error: false is not defined"
11203 #endif
11204 #if false
11205  "error: false is not 0"
11206 #endif
11207 #ifndef true
11208  "error: true is not defined"
11209 #endif
11210 #if true != 1
11211  "error: true is not 1"
11212 #endif
11213 #ifndef __bool_true_false_are_defined
11214  "error: __bool_true_false_are_defined is not defined"
11215 #endif
11216
11217         struct s { _Bool s: 1; _Bool t; } s;
11218
11219         char a[true == 1 ? 1 : -1];
11220         char b[false == 0 ? 1 : -1];
11221         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11222         char d[(bool) 0.5 == true ? 1 : -1];
11223         bool e = &s;
11224         char f[(_Bool) 0.0 == false ? 1 : -1];
11225         char g[true];
11226         char h[sizeof (_Bool)];
11227         char i[sizeof s.t];
11228         enum { j = false, k = true, l = false * true, m = true * 256 };
11229         _Bool n[m];
11230         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11231         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11232 #       if defined __xlc__ || defined __GNUC__
11233          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
11234             reported by James Lemley on 2005-10-05; see
11235             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
11236             This test is not quite right, since xlc is allowed to
11237             reject this program, as the initializer for xlcbug is
11238             not one of the forms that C requires support for.
11239             However, doing the test right would require a runtime
11240             test, and that would make cross-compilation harder.
11241             Let us hope that IBM fixes the xlc bug, and also adds
11242             support for this kind of constant expression.  In the
11243             meantime, this test will reject xlc, which is OK, since
11244             our stdbool.h substitute should suffice.  We also test
11245             this with GCC, where it should work, to detect more
11246             quickly whether someone messes up the test in the
11247             future.  */
11248          char digs[] = "0123456789";
11249          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
11250 #       endif
11251         /* Catch a bug in an HP-UX C compiler.  See
11252            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11253            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11254          */
11255         _Bool q = true;
11256         _Bool *pq = &q;
11257
11258 int
11259 main ()
11260 {
11261
11262         *pq |= q;
11263         *pq |= ! q;
11264         /* Refer to every declared value, to avoid compiler optimizations.  */
11265         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11266                 + !m + !n + !o + !p + !q + !pq);
11267
11268   ;
11269   return 0;
11270 }
11271 _ACEOF
11272 rm -f conftest.$ac_objext
11273 if { (ac_try="$ac_compile"
11274 case "(($ac_try" in
11275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276   *) ac_try_echo=$ac_try;;
11277 esac
11278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279   (eval "$ac_compile") 2>conftest.er1
11280   ac_status=$?
11281   grep -v '^ *+' conftest.er1 >conftest.err
11282   rm -f conftest.er1
11283   cat conftest.err >&5
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); } && {
11286          test -z "$ac_c_werror_flag" ||
11287          test ! -s conftest.err
11288        } && test -s conftest.$ac_objext; then
11289   ac_cv_header_stdbool_h=yes
11290 else
11291   echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11293
11294         ac_cv_header_stdbool_h=no
11295 fi
11296
11297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11298 fi
11299 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
11300 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
11301 { echo "$as_me:$LINENO: checking for _Bool" >&5
11302 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
11303 if test "${ac_cv_type__Bool+set}" = set; then
11304   echo $ECHO_N "(cached) $ECHO_C" >&6
11305 else
11306   cat >conftest.$ac_ext <<_ACEOF
11307 /* confdefs.h.  */
11308 _ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h.  */
11312 $ac_includes_default
11313 typedef _Bool ac__type_new_;
11314 int
11315 main ()
11316 {
11317 if ((ac__type_new_ *) 0)
11318   return 0;
11319 if (sizeof (ac__type_new_))
11320   return 0;
11321   ;
11322   return 0;
11323 }
11324 _ACEOF
11325 rm -f conftest.$ac_objext
11326 if { (ac_try="$ac_compile"
11327 case "(($ac_try" in
11328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329   *) ac_try_echo=$ac_try;;
11330 esac
11331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332   (eval "$ac_compile") 2>conftest.er1
11333   ac_status=$?
11334   grep -v '^ *+' conftest.er1 >conftest.err
11335   rm -f conftest.er1
11336   cat conftest.err >&5
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); } && {
11339          test -z "$ac_c_werror_flag" ||
11340          test ! -s conftest.err
11341        } && test -s conftest.$ac_objext; then
11342   ac_cv_type__Bool=yes
11343 else
11344   echo "$as_me: failed program was:" >&5
11345 sed 's/^/| /' conftest.$ac_ext >&5
11346
11347         ac_cv_type__Bool=no
11348 fi
11349
11350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11351 fi
11352 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
11353 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
11354 if test $ac_cv_type__Bool = yes; then
11355
11356 cat >>confdefs.h <<_ACEOF
11357 #define HAVE__BOOL 1
11358 _ACEOF
11359
11360
11361 fi
11362
11363 if test $ac_cv_header_stdbool_h = yes; then
11364
11365 cat >>confdefs.h <<\_ACEOF
11366 #define HAVE_STDBOOL_H 1
11367 _ACEOF
11368
11369 fi
11370
11371 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11372 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11373 if test "${ac_cv_c_const+set}" = set; then
11374   echo $ECHO_N "(cached) $ECHO_C" >&6
11375 else
11376   cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h.  */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h.  */
11382
11383 int
11384 main ()
11385 {
11386 /* FIXME: Include the comments suggested by Paul. */
11387 #ifndef __cplusplus
11388   /* Ultrix mips cc rejects this.  */
11389   typedef int charset[2];
11390   const charset cs;
11391   /* SunOS 4.1.1 cc rejects this.  */
11392   char const *const *pcpcc;
11393   char **ppc;
11394   /* NEC SVR4.0.2 mips cc rejects this.  */
11395   struct point {int x, y;};
11396   static struct point const zero = {0,0};
11397   /* AIX XL C 1.02.0.0 rejects this.
11398      It does not let you subtract one const X* pointer from another in
11399      an arm of an if-expression whose if-part is not a constant
11400      expression */
11401   const char *g = "string";
11402   pcpcc = &g + (g ? g-g : 0);
11403   /* HPUX 7.0 cc rejects these. */
11404   ++pcpcc;
11405   ppc = (char**) pcpcc;
11406   pcpcc = (char const *const *) ppc;
11407   { /* SCO 3.2v4 cc rejects this.  */
11408     char *t;
11409     char const *s = 0 ? (char *) 0 : (char const *) 0;
11410
11411     *t++ = 0;
11412     if (s) return 0;
11413   }
11414   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11415     int x[] = {25, 17};
11416     const int *foo = &x[0];
11417     ++foo;
11418   }
11419   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11420     typedef const int *iptr;
11421     iptr p = 0;
11422     ++p;
11423   }
11424   { /* AIX XL C 1.02.0.0 rejects this saying
11425        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11426     struct s { int j; const int *ap[3]; };
11427     struct s *b; b->j = 5;
11428   }
11429   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11430     const int foo = 10;
11431     if (!foo) return 0;
11432   }
11433   return !cs[0] && !zero.x;
11434 #endif
11435
11436   ;
11437   return 0;
11438 }
11439 _ACEOF
11440 rm -f conftest.$ac_objext
11441 if { (ac_try="$ac_compile"
11442 case "(($ac_try" in
11443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444   *) ac_try_echo=$ac_try;;
11445 esac
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447   (eval "$ac_compile") 2>conftest.er1
11448   ac_status=$?
11449   grep -v '^ *+' conftest.er1 >conftest.err
11450   rm -f conftest.er1
11451   cat conftest.err >&5
11452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453   (exit $ac_status); } && {
11454          test -z "$ac_c_werror_flag" ||
11455          test ! -s conftest.err
11456        } && test -s conftest.$ac_objext; then
11457   ac_cv_c_const=yes
11458 else
11459   echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11461
11462         ac_cv_c_const=no
11463 fi
11464
11465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11466 fi
11467 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11468 echo "${ECHO_T}$ac_cv_c_const" >&6; }
11469 if test $ac_cv_c_const = no; then
11470
11471 cat >>confdefs.h <<\_ACEOF
11472 #define const
11473 _ACEOF
11474
11475 fi
11476
11477 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11478 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11479 if test "${ac_cv_header_time+set}" = set; then
11480   echo $ECHO_N "(cached) $ECHO_C" >&6
11481 else
11482   cat >conftest.$ac_ext <<_ACEOF
11483 /* confdefs.h.  */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h.  */
11488 #include <sys/types.h>
11489 #include <sys/time.h>
11490 #include <time.h>
11491
11492 int
11493 main ()
11494 {
11495 if ((struct tm *) 0)
11496 return 0;
11497   ;
11498   return 0;
11499 }
11500 _ACEOF
11501 rm -f conftest.$ac_objext
11502 if { (ac_try="$ac_compile"
11503 case "(($ac_try" in
11504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11505   *) ac_try_echo=$ac_try;;
11506 esac
11507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11508   (eval "$ac_compile") 2>conftest.er1
11509   ac_status=$?
11510   grep -v '^ *+' conftest.er1 >conftest.err
11511   rm -f conftest.er1
11512   cat conftest.err >&5
11513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514   (exit $ac_status); } && {
11515          test -z "$ac_c_werror_flag" ||
11516          test ! -s conftest.err
11517        } && test -s conftest.$ac_objext; then
11518   ac_cv_header_time=yes
11519 else
11520   echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11522
11523         ac_cv_header_time=no
11524 fi
11525
11526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11527 fi
11528 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11529 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11530 if test $ac_cv_header_time = yes; then
11531
11532 cat >>confdefs.h <<\_ACEOF
11533 #define TIME_WITH_SYS_TIME 1
11534 _ACEOF
11535
11536 fi
11537
11538
11539 # Checks for library functions.
11540
11541 for ac_header in stdlib.h
11542 do
11543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11545   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11548   echo $ECHO_N "(cached) $ECHO_C" >&6
11549 fi
11550 ac_res=`eval echo '${'$as_ac_Header'}'`
11551                { echo "$as_me:$LINENO: result: $ac_res" >&5
11552 echo "${ECHO_T}$ac_res" >&6; }
11553 else
11554   # Is the header compilable?
11555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11557 cat >conftest.$ac_ext <<_ACEOF
11558 /* confdefs.h.  */
11559 _ACEOF
11560 cat confdefs.h >>conftest.$ac_ext
11561 cat >>conftest.$ac_ext <<_ACEOF
11562 /* end confdefs.h.  */
11563 $ac_includes_default
11564 #include <$ac_header>
11565 _ACEOF
11566 rm -f conftest.$ac_objext
11567 if { (ac_try="$ac_compile"
11568 case "(($ac_try" in
11569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570   *) ac_try_echo=$ac_try;;
11571 esac
11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573   (eval "$ac_compile") 2>conftest.er1
11574   ac_status=$?
11575   grep -v '^ *+' conftest.er1 >conftest.err
11576   rm -f conftest.er1
11577   cat conftest.err >&5
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); } && {
11580          test -z "$ac_c_werror_flag" ||
11581          test ! -s conftest.err
11582        } && test -s conftest.$ac_objext; then
11583   ac_header_compiler=yes
11584 else
11585   echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11587
11588         ac_header_compiler=no
11589 fi
11590
11591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11593 echo "${ECHO_T}$ac_header_compiler" >&6; }
11594
11595 # Is the header present?
11596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11598 cat >conftest.$ac_ext <<_ACEOF
11599 /* confdefs.h.  */
11600 _ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h.  */
11604 #include <$ac_header>
11605 _ACEOF
11606 if { (ac_try="$ac_cpp conftest.$ac_ext"
11607 case "(($ac_try" in
11608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609   *) ac_try_echo=$ac_try;;
11610 esac
11611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11612   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11613   ac_status=$?
11614   grep -v '^ *+' conftest.er1 >conftest.err
11615   rm -f conftest.er1
11616   cat conftest.err >&5
11617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618   (exit $ac_status); } >/dev/null && {
11619          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11620          test ! -s conftest.err
11621        }; then
11622   ac_header_preproc=yes
11623 else
11624   echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11626
11627   ac_header_preproc=no
11628 fi
11629
11630 rm -f conftest.err conftest.$ac_ext
11631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11632 echo "${ECHO_T}$ac_header_preproc" >&6; }
11633
11634 # So?  What about this header?
11635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11636   yes:no: )
11637     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11641     ac_header_preproc=yes
11642     ;;
11643   no:yes:* )
11644     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11646     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11647 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11648     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11650     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11651 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11654     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11656
11657     ;;
11658 esac
11659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11662   echo $ECHO_N "(cached) $ECHO_C" >&6
11663 else
11664   eval "$as_ac_Header=\$ac_header_preproc"
11665 fi
11666 ac_res=`eval echo '${'$as_ac_Header'}'`
11667                { echo "$as_me:$LINENO: result: $ac_res" >&5
11668 echo "${ECHO_T}$ac_res" >&6; }
11669
11670 fi
11671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11672   cat >>confdefs.h <<_ACEOF
11673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11674 _ACEOF
11675
11676 fi
11677
11678 done
11679
11680 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
11681 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
11682 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
11683   echo $ECHO_N "(cached) $ECHO_C" >&6
11684 else
11685   if test "$cross_compiling" = yes; then
11686   ac_cv_func_malloc_0_nonnull=no
11687 else
11688   cat >conftest.$ac_ext <<_ACEOF
11689 /* confdefs.h.  */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h.  */
11694 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
11695 # include <stdlib.h>
11696 #else
11697 char *malloc ();
11698 #endif
11699
11700 int
11701 main ()
11702 {
11703 return ! malloc (0);
11704   ;
11705   return 0;
11706 }
11707 _ACEOF
11708 rm -f conftest$ac_exeext
11709 if { (ac_try="$ac_link"
11710 case "(($ac_try" in
11711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712   *) ac_try_echo=$ac_try;;
11713 esac
11714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715   (eval "$ac_link") 2>&5
11716   ac_status=$?
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11719   { (case "(($ac_try" in
11720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721   *) ac_try_echo=$ac_try;;
11722 esac
11723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724   (eval "$ac_try") 2>&5
11725   ac_status=$?
11726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727   (exit $ac_status); }; }; then
11728   ac_cv_func_malloc_0_nonnull=yes
11729 else
11730   echo "$as_me: program exited with status $ac_status" >&5
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11733
11734 ( exit $ac_status )
11735 ac_cv_func_malloc_0_nonnull=no
11736 fi
11737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11738 fi
11739
11740
11741 fi
11742 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
11743 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
11744 if test $ac_cv_func_malloc_0_nonnull = yes; then
11745
11746 cat >>confdefs.h <<\_ACEOF
11747 #define HAVE_MALLOC 1
11748 _ACEOF
11749
11750 else
11751   cat >>confdefs.h <<\_ACEOF
11752 #define HAVE_MALLOC 0
11753 _ACEOF
11754
11755    case " $LIBOBJS " in
11756   *" malloc.$ac_objext "* ) ;;
11757   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
11758  ;;
11759 esac
11760
11761
11762 cat >>confdefs.h <<\_ACEOF
11763 #define malloc rpl_malloc
11764 _ACEOF
11765
11766 fi
11767
11768
11769
11770
11771
11772 for ac_header in stdlib.h unistd.h
11773 do
11774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11776   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11779   echo $ECHO_N "(cached) $ECHO_C" >&6
11780 fi
11781 ac_res=`eval echo '${'$as_ac_Header'}'`
11782                { echo "$as_me:$LINENO: result: $ac_res" >&5
11783 echo "${ECHO_T}$ac_res" >&6; }
11784 else
11785   # Is the header compilable?
11786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11788 cat >conftest.$ac_ext <<_ACEOF
11789 /* confdefs.h.  */
11790 _ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h.  */
11794 $ac_includes_default
11795 #include <$ac_header>
11796 _ACEOF
11797 rm -f conftest.$ac_objext
11798 if { (ac_try="$ac_compile"
11799 case "(($ac_try" in
11800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801   *) ac_try_echo=$ac_try;;
11802 esac
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804   (eval "$ac_compile") 2>conftest.er1
11805   ac_status=$?
11806   grep -v '^ *+' conftest.er1 >conftest.err
11807   rm -f conftest.er1
11808   cat conftest.err >&5
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); } && {
11811          test -z "$ac_c_werror_flag" ||
11812          test ! -s conftest.err
11813        } && test -s conftest.$ac_objext; then
11814   ac_header_compiler=yes
11815 else
11816   echo "$as_me: failed program was:" >&5
11817 sed 's/^/| /' conftest.$ac_ext >&5
11818
11819         ac_header_compiler=no
11820 fi
11821
11822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11824 echo "${ECHO_T}$ac_header_compiler" >&6; }
11825
11826 # Is the header present?
11827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11829 cat >conftest.$ac_ext <<_ACEOF
11830 /* confdefs.h.  */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h.  */
11835 #include <$ac_header>
11836 _ACEOF
11837 if { (ac_try="$ac_cpp conftest.$ac_ext"
11838 case "(($ac_try" in
11839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840   *) ac_try_echo=$ac_try;;
11841 esac
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11844   ac_status=$?
11845   grep -v '^ *+' conftest.er1 >conftest.err
11846   rm -f conftest.er1
11847   cat conftest.err >&5
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); } >/dev/null && {
11850          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11851          test ! -s conftest.err
11852        }; then
11853   ac_header_preproc=yes
11854 else
11855   echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11857
11858   ac_header_preproc=no
11859 fi
11860
11861 rm -f conftest.err conftest.$ac_ext
11862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11863 echo "${ECHO_T}$ac_header_preproc" >&6; }
11864
11865 # So?  What about this header?
11866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11867   yes:no: )
11868     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11869 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11870     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11872     ac_header_preproc=yes
11873     ;;
11874   no:yes:* )
11875     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11877     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11878 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11879     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11880 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11881     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11882 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11883     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11885     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11886 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11887
11888     ;;
11889 esac
11890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11893   echo $ECHO_N "(cached) $ECHO_C" >&6
11894 else
11895   eval "$as_ac_Header=\$ac_header_preproc"
11896 fi
11897 ac_res=`eval echo '${'$as_ac_Header'}'`
11898                { echo "$as_me:$LINENO: result: $ac_res" >&5
11899 echo "${ECHO_T}$ac_res" >&6; }
11900
11901 fi
11902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11903   cat >>confdefs.h <<_ACEOF
11904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11905 _ACEOF
11906
11907 fi
11908
11909 done
11910
11911
11912 for ac_func in getpagesize
11913 do
11914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11915 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11918   echo $ECHO_N "(cached) $ECHO_C" >&6
11919 else
11920   cat >conftest.$ac_ext <<_ACEOF
11921 /* confdefs.h.  */
11922 _ACEOF
11923 cat confdefs.h >>conftest.$ac_ext
11924 cat >>conftest.$ac_ext <<_ACEOF
11925 /* end confdefs.h.  */
11926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11928 #define $ac_func innocuous_$ac_func
11929
11930 /* System header to define __stub macros and hopefully few prototypes,
11931     which can conflict with char $ac_func (); below.
11932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11933     <limits.h> exists even on freestanding compilers.  */
11934
11935 #ifdef __STDC__
11936 # include <limits.h>
11937 #else
11938 # include <assert.h>
11939 #endif
11940
11941 #undef $ac_func
11942
11943 /* Override any GCC internal prototype to avoid an error.
11944    Use char because int might match the return type of a GCC
11945    builtin and then its argument prototype would still apply.  */
11946 #ifdef __cplusplus
11947 extern "C"
11948 #endif
11949 char $ac_func ();
11950 /* The GNU C library defines this for functions which it implements
11951     to always fail with ENOSYS.  Some functions are actually named
11952     something starting with __ and the normal name is an alias.  */
11953 #if defined __stub_$ac_func || defined __stub___$ac_func
11954 choke me
11955 #endif
11956
11957 int
11958 main ()
11959 {
11960 return $ac_func ();
11961   ;
11962   return 0;
11963 }
11964 _ACEOF
11965 rm -f conftest.$ac_objext conftest$ac_exeext
11966 if { (ac_try="$ac_link"
11967 case "(($ac_try" in
11968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969   *) ac_try_echo=$ac_try;;
11970 esac
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972   (eval "$ac_link") 2>conftest.er1
11973   ac_status=$?
11974   grep -v '^ *+' conftest.er1 >conftest.err
11975   rm -f conftest.er1
11976   cat conftest.err >&5
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); } && {
11979          test -z "$ac_c_werror_flag" ||
11980          test ! -s conftest.err
11981        } && test -s conftest$ac_exeext &&
11982        $as_test_x conftest$ac_exeext; then
11983   eval "$as_ac_var=yes"
11984 else
11985   echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11987
11988         eval "$as_ac_var=no"
11989 fi
11990
11991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11992       conftest$ac_exeext conftest.$ac_ext
11993 fi
11994 ac_res=`eval echo '${'$as_ac_var'}'`
11995                { echo "$as_me:$LINENO: result: $ac_res" >&5
11996 echo "${ECHO_T}$ac_res" >&6; }
11997 if test `eval echo '${'$as_ac_var'}'` = yes; then
11998   cat >>confdefs.h <<_ACEOF
11999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12000 _ACEOF
12001
12002 fi
12003 done
12004
12005 { echo "$as_me:$LINENO: checking for working mmap" >&5
12006 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12007 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12008   echo $ECHO_N "(cached) $ECHO_C" >&6
12009 else
12010   if test "$cross_compiling" = yes; then
12011   ac_cv_func_mmap_fixed_mapped=no
12012 else
12013   cat >conftest.$ac_ext <<_ACEOF
12014 /* confdefs.h.  */
12015 _ACEOF
12016 cat confdefs.h >>conftest.$ac_ext
12017 cat >>conftest.$ac_ext <<_ACEOF
12018 /* end confdefs.h.  */
12019 $ac_includes_default
12020 /* malloc might have been renamed as rpl_malloc. */
12021 #undef malloc
12022
12023 /* Thanks to Mike Haertel and Jim Avera for this test.
12024    Here is a matrix of mmap possibilities:
12025         mmap private not fixed
12026         mmap private fixed at somewhere currently unmapped
12027         mmap private fixed at somewhere already mapped
12028         mmap shared not fixed
12029         mmap shared fixed at somewhere currently unmapped
12030         mmap shared fixed at somewhere already mapped
12031    For private mappings, we should verify that changes cannot be read()
12032    back from the file, nor mmap's back from the file at a different
12033    address.  (There have been systems where private was not correctly
12034    implemented like the infamous i386 svr4.0, and systems where the
12035    VM page cache was not coherent with the file system buffer cache
12036    like early versions of FreeBSD and possibly contemporary NetBSD.)
12037    For shared mappings, we should conversely verify that changes get
12038    propagated back to all the places they're supposed to be.
12039
12040    Grep wants private fixed already mapped.
12041    The main things grep needs to know about mmap are:
12042    * does it exist and is it safe to write into the mmap'd area
12043    * how to use it (BSD variants)  */
12044
12045 #include <fcntl.h>
12046 #include <sys/mman.h>
12047
12048 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12049 char *malloc ();
12050 #endif
12051
12052 /* This mess was copied from the GNU getpagesize.h.  */
12053 #ifndef HAVE_GETPAGESIZE
12054 /* Assume that all systems that can run configure have sys/param.h.  */
12055 # ifndef HAVE_SYS_PARAM_H
12056 #  define HAVE_SYS_PARAM_H 1
12057 # endif
12058
12059 # ifdef _SC_PAGESIZE
12060 #  define getpagesize() sysconf(_SC_PAGESIZE)
12061 # else /* no _SC_PAGESIZE */
12062 #  ifdef HAVE_SYS_PARAM_H
12063 #   include <sys/param.h>
12064 #   ifdef EXEC_PAGESIZE
12065 #    define getpagesize() EXEC_PAGESIZE
12066 #   else /* no EXEC_PAGESIZE */
12067 #    ifdef NBPG
12068 #     define getpagesize() NBPG * CLSIZE
12069 #     ifndef CLSIZE
12070 #      define CLSIZE 1
12071 #     endif /* no CLSIZE */
12072 #    else /* no NBPG */
12073 #     ifdef NBPC
12074 #      define getpagesize() NBPC
12075 #     else /* no NBPC */
12076 #      ifdef PAGESIZE
12077 #       define getpagesize() PAGESIZE
12078 #      endif /* PAGESIZE */
12079 #     endif /* no NBPC */
12080 #    endif /* no NBPG */
12081 #   endif /* no EXEC_PAGESIZE */
12082 #  else /* no HAVE_SYS_PARAM_H */
12083 #   define getpagesize() 8192   /* punt totally */
12084 #  endif /* no HAVE_SYS_PARAM_H */
12085 # endif /* no _SC_PAGESIZE */
12086
12087 #endif /* no HAVE_GETPAGESIZE */
12088
12089 int
12090 main ()
12091 {
12092   char *data, *data2, *data3;
12093   int i, pagesize;
12094   int fd;
12095
12096   pagesize = getpagesize ();
12097
12098   /* First, make a file with some known garbage in it. */
12099   data = (char *) malloc (pagesize);
12100   if (!data)
12101     return 1;
12102   for (i = 0; i < pagesize; ++i)
12103     *(data + i) = rand ();
12104   umask (0);
12105   fd = creat ("conftest.mmap", 0600);
12106   if (fd < 0)
12107     return 1;
12108   if (write (fd, data, pagesize) != pagesize)
12109     return 1;
12110   close (fd);
12111
12112   /* Next, try to mmap the file at a fixed address which already has
12113      something else allocated at it.  If we can, also make sure that
12114      we see the same garbage.  */
12115   fd = open ("conftest.mmap", O_RDWR);
12116   if (fd < 0)
12117     return 1;
12118   data2 = (char *) malloc (2 * pagesize);
12119   if (!data2)
12120     return 1;
12121   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12122   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12123                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12124     return 1;
12125   for (i = 0; i < pagesize; ++i)
12126     if (*(data + i) != *(data2 + i))
12127       return 1;
12128
12129   /* Finally, make sure that changes to the mapped area do not
12130      percolate back to the file as seen by read().  (This is a bug on
12131      some variants of i386 svr4.0.)  */
12132   for (i = 0; i < pagesize; ++i)
12133     *(data2 + i) = *(data2 + i) + 1;
12134   data3 = (char *) malloc (pagesize);
12135   if (!data3)
12136     return 1;
12137   if (read (fd, data3, pagesize) != pagesize)
12138     return 1;
12139   for (i = 0; i < pagesize; ++i)
12140     if (*(data + i) != *(data3 + i))
12141       return 1;
12142   close (fd);
12143   return 0;
12144 }
12145 _ACEOF
12146 rm -f conftest$ac_exeext
12147 if { (ac_try="$ac_link"
12148 case "(($ac_try" in
12149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150   *) ac_try_echo=$ac_try;;
12151 esac
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153   (eval "$ac_link") 2>&5
12154   ac_status=$?
12155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12157   { (case "(($ac_try" in
12158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159   *) ac_try_echo=$ac_try;;
12160 esac
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162   (eval "$ac_try") 2>&5
12163   ac_status=$?
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); }; }; then
12166   ac_cv_func_mmap_fixed_mapped=yes
12167 else
12168   echo "$as_me: program exited with status $ac_status" >&5
12169 echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.$ac_ext >&5
12171
12172 ( exit $ac_status )
12173 ac_cv_func_mmap_fixed_mapped=no
12174 fi
12175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12176 fi
12177
12178
12179 fi
12180 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12181 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12182 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12183
12184 cat >>confdefs.h <<\_ACEOF
12185 #define HAVE_MMAP 1
12186 _ACEOF
12187
12188 fi
12189 rm -f conftest.mmap
12190
12191
12192
12193
12194
12195
12196 for ac_func in gettimeofday memset munmap strcasecmp strdup
12197 do
12198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12199 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12201 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12202   echo $ECHO_N "(cached) $ECHO_C" >&6
12203 else
12204   cat >conftest.$ac_ext <<_ACEOF
12205 /* confdefs.h.  */
12206 _ACEOF
12207 cat confdefs.h >>conftest.$ac_ext
12208 cat >>conftest.$ac_ext <<_ACEOF
12209 /* end confdefs.h.  */
12210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12211    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12212 #define $ac_func innocuous_$ac_func
12213
12214 /* System header to define __stub macros and hopefully few prototypes,
12215     which can conflict with char $ac_func (); below.
12216     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12217     <limits.h> exists even on freestanding compilers.  */
12218
12219 #ifdef __STDC__
12220 # include <limits.h>
12221 #else
12222 # include <assert.h>
12223 #endif
12224
12225 #undef $ac_func
12226
12227 /* Override any GCC internal prototype to avoid an error.
12228    Use char because int might match the return type of a GCC
12229    builtin and then its argument prototype would still apply.  */
12230 #ifdef __cplusplus
12231 extern "C"
12232 #endif
12233 char $ac_func ();
12234 /* The GNU C library defines this for functions which it implements
12235     to always fail with ENOSYS.  Some functions are actually named
12236     something starting with __ and the normal name is an alias.  */
12237 #if defined __stub_$ac_func || defined __stub___$ac_func
12238 choke me
12239 #endif
12240
12241 int
12242 main ()
12243 {
12244 return $ac_func ();
12245   ;
12246   return 0;
12247 }
12248 _ACEOF
12249 rm -f conftest.$ac_objext conftest$ac_exeext
12250 if { (ac_try="$ac_link"
12251 case "(($ac_try" in
12252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253   *) ac_try_echo=$ac_try;;
12254 esac
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256   (eval "$ac_link") 2>conftest.er1
12257   ac_status=$?
12258   grep -v '^ *+' conftest.er1 >conftest.err
12259   rm -f conftest.er1
12260   cat conftest.err >&5
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); } && {
12263          test -z "$ac_c_werror_flag" ||
12264          test ! -s conftest.err
12265        } && test -s conftest$ac_exeext &&
12266        $as_test_x conftest$ac_exeext; then
12267   eval "$as_ac_var=yes"
12268 else
12269   echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12271
12272         eval "$as_ac_var=no"
12273 fi
12274
12275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12276       conftest$ac_exeext conftest.$ac_ext
12277 fi
12278 ac_res=`eval echo '${'$as_ac_var'}'`
12279                { echo "$as_me:$LINENO: result: $ac_res" >&5
12280 echo "${ECHO_T}$ac_res" >&6; }
12281 if test `eval echo '${'$as_ac_var'}'` = yes; then
12282   cat >>confdefs.h <<_ACEOF
12283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12284 _ACEOF
12285
12286 fi
12287 done
12288
12289
12290
12291
12292 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12293         if test -n "$ac_tool_prefix"; then
12294   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12295 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12298 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12299   echo $ECHO_N "(cached) $ECHO_C" >&6
12300 else
12301   case $PKG_CONFIG in
12302   [\\/]* | ?:[\\/]*)
12303   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12304   ;;
12305   *)
12306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12307 for as_dir in $PATH
12308 do
12309   IFS=$as_save_IFS
12310   test -z "$as_dir" && as_dir=.
12311   for ac_exec_ext in '' $ac_executable_extensions; do
12312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12313     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12315     break 2
12316   fi
12317 done
12318 done
12319 IFS=$as_save_IFS
12320
12321   ;;
12322 esac
12323 fi
12324 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12325 if test -n "$PKG_CONFIG"; then
12326   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12327 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12328 else
12329   { echo "$as_me:$LINENO: result: no" >&5
12330 echo "${ECHO_T}no" >&6; }
12331 fi
12332
12333
12334 fi
12335 if test -z "$ac_cv_path_PKG_CONFIG"; then
12336   ac_pt_PKG_CONFIG=$PKG_CONFIG
12337   # Extract the first word of "pkg-config", so it can be a program name with args.
12338 set dummy pkg-config; ac_word=$2
12339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12341 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12342   echo $ECHO_N "(cached) $ECHO_C" >&6
12343 else
12344   case $ac_pt_PKG_CONFIG in
12345   [\\/]* | ?:[\\/]*)
12346   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12347   ;;
12348   *)
12349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12350 for as_dir in $PATH
12351 do
12352   IFS=$as_save_IFS
12353   test -z "$as_dir" && as_dir=.
12354   for ac_exec_ext in '' $ac_executable_extensions; do
12355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12356     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12358     break 2
12359   fi
12360 done
12361 done
12362 IFS=$as_save_IFS
12363
12364   ;;
12365 esac
12366 fi
12367 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12368 if test -n "$ac_pt_PKG_CONFIG"; then
12369   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12370 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
12371 else
12372   { echo "$as_me:$LINENO: result: no" >&5
12373 echo "${ECHO_T}no" >&6; }
12374 fi
12375
12376   if test "x$ac_pt_PKG_CONFIG" = x; then
12377     PKG_CONFIG=""
12378   else
12379     case $cross_compiling:$ac_tool_warned in
12380 yes:)
12381 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12382 whose name does not start with the host triplet.  If you think this
12383 configuration is useful to you, please write to autoconf@gnu.org." >&5
12384 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12385 whose name does not start with the host triplet.  If you think this
12386 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12387 ac_tool_warned=yes ;;
12388 esac
12389     PKG_CONFIG=$ac_pt_PKG_CONFIG
12390   fi
12391 else
12392   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12393 fi
12394
12395 fi
12396 if test -n "$PKG_CONFIG"; then
12397         _pkg_min_version=0.9.0
12398         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12399 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
12400         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12401                 { echo "$as_me:$LINENO: result: yes" >&5
12402 echo "${ECHO_T}yes" >&6; }
12403         else
12404                 { echo "$as_me:$LINENO: result: no" >&5
12405 echo "${ECHO_T}no" >&6; }
12406                 PKG_CONFIG=""
12407         fi
12408
12409 fi
12410
12411 pkg_failed=no
12412 { echo "$as_me:$LINENO: checking for GLIB" >&5
12413 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
12414
12415 if test -n "$PKG_CONFIG"; then
12416     if test -n "$GLIB_CFLAGS"; then
12417         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12418     else
12419         if test -n "$PKG_CONFIG" && \
12420     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
12421   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
12422   ac_status=$?
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); }; then
12425   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
12426 else
12427   pkg_failed=yes
12428 fi
12429     fi
12430 else
12431         pkg_failed=untried
12432 fi
12433 if test -n "$PKG_CONFIG"; then
12434     if test -n "$GLIB_LIBS"; then
12435         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12436     else
12437         if test -n "$PKG_CONFIG" && \
12438     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
12439   ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
12440   ac_status=$?
12441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442   (exit $ac_status); }; then
12443   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
12444 else
12445   pkg_failed=yes
12446 fi
12447     fi
12448 else
12449         pkg_failed=untried
12450 fi
12451
12452
12453
12454 if test $pkg_failed = yes; then
12455
12456 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12457         _pkg_short_errors_supported=yes
12458 else
12459         _pkg_short_errors_supported=no
12460 fi
12461         if test $_pkg_short_errors_supported = yes; then
12462                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
12463         else
12464                 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
12465         fi
12466         # Put the nasty error message in config.log where it belongs
12467         echo "$GLIB_PKG_ERRORS" >&5
12468
12469         { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
12470
12471 $GLIB_PKG_ERRORS
12472
12473 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12474 installed software in a non-standard prefix.
12475
12476 Alternatively, you may set the environment variables GLIB_CFLAGS
12477 and GLIB_LIBS to avoid the need to call pkg-config.
12478 See the pkg-config man page for more details.
12479 " >&5
12480 echo "$as_me: error: Package requirements (glib-2.0) were not met:
12481
12482 $GLIB_PKG_ERRORS
12483
12484 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12485 installed software in a non-standard prefix.
12486
12487 Alternatively, you may set the environment variables GLIB_CFLAGS
12488 and GLIB_LIBS to avoid the need to call pkg-config.
12489 See the pkg-config man page for more details.
12490 " >&2;}
12491    { (exit 1); exit 1; }; }
12492 elif test $pkg_failed = untried; then
12493         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
12494 is in your PATH or set the PKG_CONFIG environment variable to the full
12495 path to pkg-config.
12496
12497 Alternatively, you may set the environment variables GLIB_CFLAGS
12498 and GLIB_LIBS to avoid the need to call pkg-config.
12499 See the pkg-config man page for more details.
12500
12501 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
12502 See \`config.log' for more details." >&5
12503 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
12504 is in your PATH or set the PKG_CONFIG environment variable to the full
12505 path to pkg-config.
12506
12507 Alternatively, you may set the environment variables GLIB_CFLAGS
12508 and GLIB_LIBS to avoid the need to call pkg-config.
12509 See the pkg-config man page for more details.
12510
12511 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
12512 See \`config.log' for more details." >&2;}
12513    { (exit 1); exit 1; }; }
12514 else
12515         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12516         GLIB_LIBS=$pkg_cv_GLIB_LIBS
12517         { echo "$as_me:$LINENO: result: yes" >&5
12518 echo "${ECHO_T}yes" >&6; }
12519         :
12520 fi
12521
12522
12523
12524
12525 pkg_failed=no
12526 { echo "$as_me:$LINENO: checking for MMLOG" >&5
12527 echo $ECHO_N "checking for MMLOG... $ECHO_C" >&6; }
12528
12529 if test -n "$PKG_CONFIG"; then
12530     if test -n "$MMLOG_CFLAGS"; then
12531         pkg_cv_MMLOG_CFLAGS="$MMLOG_CFLAGS"
12532     else
12533         if test -n "$PKG_CONFIG" && \
12534     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mm-log\"") >&5
12535   ($PKG_CONFIG --exists --print-errors "mm-log") 2>&5
12536   ac_status=$?
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); }; then
12539   pkg_cv_MMLOG_CFLAGS=`$PKG_CONFIG --cflags "mm-log" 2>/dev/null`
12540 else
12541   pkg_failed=yes
12542 fi
12543     fi
12544 else
12545         pkg_failed=untried
12546 fi
12547 if test -n "$PKG_CONFIG"; then
12548     if test -n "$MMLOG_LIBS"; then
12549         pkg_cv_MMLOG_LIBS="$MMLOG_LIBS"
12550     else
12551         if test -n "$PKG_CONFIG" && \
12552     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"mm-log\"") >&5
12553   ($PKG_CONFIG --exists --print-errors "mm-log") 2>&5
12554   ac_status=$?
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); }; then
12557   pkg_cv_MMLOG_LIBS=`$PKG_CONFIG --libs "mm-log" 2>/dev/null`
12558 else
12559   pkg_failed=yes
12560 fi
12561     fi
12562 else
12563         pkg_failed=untried
12564 fi
12565
12566
12567
12568 if test $pkg_failed = yes; then
12569
12570 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12571         _pkg_short_errors_supported=yes
12572 else
12573         _pkg_short_errors_supported=no
12574 fi
12575         if test $_pkg_short_errors_supported = yes; then
12576                 MMLOG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mm-log"`
12577         else
12578                 MMLOG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mm-log"`
12579         fi
12580         # Put the nasty error message in config.log where it belongs
12581         echo "$MMLOG_PKG_ERRORS" >&5
12582
12583         { { echo "$as_me:$LINENO: error: Package requirements (mm-log) were not met:
12584
12585 $MMLOG_PKG_ERRORS
12586
12587 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12588 installed software in a non-standard prefix.
12589
12590 Alternatively, you may set the environment variables MMLOG_CFLAGS
12591 and MMLOG_LIBS to avoid the need to call pkg-config.
12592 See the pkg-config man page for more details.
12593 " >&5
12594 echo "$as_me: error: Package requirements (mm-log) were not met:
12595
12596 $MMLOG_PKG_ERRORS
12597
12598 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12599 installed software in a non-standard prefix.
12600
12601 Alternatively, you may set the environment variables MMLOG_CFLAGS
12602 and MMLOG_LIBS to avoid the need to call pkg-config.
12603 See the pkg-config man page for more details.
12604 " >&2;}
12605    { (exit 1); exit 1; }; }
12606 elif test $pkg_failed = untried; then
12607         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
12608 is in your PATH or set the PKG_CONFIG environment variable to the full
12609 path to pkg-config.
12610
12611 Alternatively, you may set the environment variables MMLOG_CFLAGS
12612 and MMLOG_LIBS to avoid the need to call pkg-config.
12613 See the pkg-config man page for more details.
12614
12615 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
12616 See \`config.log' for more details." >&5
12617 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
12618 is in your PATH or set the PKG_CONFIG environment variable to the full
12619 path to pkg-config.
12620
12621 Alternatively, you may set the environment variables MMLOG_CFLAGS
12622 and MMLOG_LIBS to avoid the need to call pkg-config.
12623 See the pkg-config man page for more details.
12624
12625 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
12626 See \`config.log' for more details." >&2;}
12627    { (exit 1); exit 1; }; }
12628 else
12629         MMLOG_CFLAGS=$pkg_cv_MMLOG_CFLAGS
12630         MMLOG_LIBS=$pkg_cv_MMLOG_LIBS
12631         { echo "$as_me:$LINENO: result: yes" >&5
12632 echo "${ECHO_T}yes" >&6; }
12633         :
12634 fi
12635
12636
12637
12638 ac_config_files="$ac_config_files Makefile mm-common.pc"
12639
12640 cat >confcache <<\_ACEOF
12641 # This file is a shell script that caches the results of configure
12642 # tests run on this system so they can be shared between configure
12643 # scripts and configure runs, see configure's option --config-cache.
12644 # It is not useful on other systems.  If it contains results you don't
12645 # want to keep, you may remove or edit it.
12646 #
12647 # config.status only pays attention to the cache file if you give it
12648 # the --recheck option to rerun configure.
12649 #
12650 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12651 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12652 # following values.
12653
12654 _ACEOF
12655
12656 # The following way of writing the cache mishandles newlines in values,
12657 # but we know of no workaround that is simple, portable, and efficient.
12658 # So, we kill variables containing newlines.
12659 # Ultrix sh set writes to stderr and can't be redirected directly,
12660 # and sets the high bit in the cache file unless we assign to the vars.
12661 (
12662   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12663     eval ac_val=\$$ac_var
12664     case $ac_val in #(
12665     *${as_nl}*)
12666       case $ac_var in #(
12667       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12668 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12669       esac
12670       case $ac_var in #(
12671       _ | IFS | as_nl) ;; #(
12672       *) $as_unset $ac_var ;;
12673       esac ;;
12674     esac
12675   done
12676
12677   (set) 2>&1 |
12678     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12679     *${as_nl}ac_space=\ *)
12680       # `set' does not quote correctly, so add quotes (double-quote
12681       # substitution turns \\\\ into \\, and sed turns \\ into \).
12682       sed -n \
12683         "s/'/'\\\\''/g;
12684           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12685       ;; #(
12686     *)
12687       # `set' quotes correctly as required by POSIX, so do not add quotes.
12688       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12689       ;;
12690     esac |
12691     sort
12692 ) |
12693   sed '
12694      /^ac_cv_env_/b end
12695      t clear
12696      :clear
12697      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12698      t end
12699      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12700      :end' >>confcache
12701 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12702   if test -w "$cache_file"; then
12703     test "x$cache_file" != "x/dev/null" &&
12704       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12705 echo "$as_me: updating cache $cache_file" >&6;}
12706     cat confcache >$cache_file
12707   else
12708     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12709 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12710   fi
12711 fi
12712 rm -f confcache
12713
12714 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12715 # Let make expand exec_prefix.
12716 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12717
12718 DEFS=-DHAVE_CONFIG_H
12719
12720 ac_libobjs=
12721 ac_ltlibobjs=
12722 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12723   # 1. Remove the extension, and $U if already installed.
12724   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12725   ac_i=`echo "$ac_i" | sed "$ac_script"`
12726   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12727   #    will be set to the directory where LIBOBJS objects are built.
12728   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12729   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12730 done
12731 LIBOBJS=$ac_libobjs
12732
12733 LTLIBOBJS=$ac_ltlibobjs
12734
12735
12736 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12737   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12738 Usually this means the macro was only invoked conditionally." >&5
12739 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12740 Usually this means the macro was only invoked conditionally." >&2;}
12741    { (exit 1); exit 1; }; }
12742 fi
12743 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12744   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12745 Usually this means the macro was only invoked conditionally." >&5
12746 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12747 Usually this means the macro was only invoked conditionally." >&2;}
12748    { (exit 1); exit 1; }; }
12749 fi
12750
12751 : ${CONFIG_STATUS=./config.status}
12752 ac_clean_files_save=$ac_clean_files
12753 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12754 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12755 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12756 cat >$CONFIG_STATUS <<_ACEOF
12757 #! $SHELL
12758 # Generated by $as_me.
12759 # Run this file to recreate the current configuration.
12760 # Compiler output produced by configure, useful for debugging
12761 # configure, is in config.log if it exists.
12762
12763 debug=false
12764 ac_cs_recheck=false
12765 ac_cs_silent=false
12766 SHELL=\${CONFIG_SHELL-$SHELL}
12767 _ACEOF
12768
12769 cat >>$CONFIG_STATUS <<\_ACEOF
12770 ## --------------------- ##
12771 ## M4sh Initialization.  ##
12772 ## --------------------- ##
12773
12774 # Be more Bourne compatible
12775 DUALCASE=1; export DUALCASE # for MKS sh
12776 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12777   emulate sh
12778   NULLCMD=:
12779   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12780   # is contrary to our usage.  Disable this feature.
12781   alias -g '${1+"$@"}'='"$@"'
12782   setopt NO_GLOB_SUBST
12783 else
12784   case `(set -o) 2>/dev/null` in
12785   *posix*) set -o posix ;;
12786 esac
12787
12788 fi
12789
12790
12791
12792
12793 # PATH needs CR
12794 # Avoid depending upon Character Ranges.
12795 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12796 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12797 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12798 as_cr_digits='0123456789'
12799 as_cr_alnum=$as_cr_Letters$as_cr_digits
12800
12801 # The user is always right.
12802 if test "${PATH_SEPARATOR+set}" != set; then
12803   echo "#! /bin/sh" >conf$$.sh
12804   echo  "exit 0"   >>conf$$.sh
12805   chmod +x conf$$.sh
12806   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12807     PATH_SEPARATOR=';'
12808   else
12809     PATH_SEPARATOR=:
12810   fi
12811   rm -f conf$$.sh
12812 fi
12813
12814 # Support unset when possible.
12815 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12816   as_unset=unset
12817 else
12818   as_unset=false
12819 fi
12820
12821
12822 # IFS
12823 # We need space, tab and new line, in precisely that order.  Quoting is
12824 # there to prevent editors from complaining about space-tab.
12825 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12826 # splitting by setting IFS to empty value.)
12827 as_nl='
12828 '
12829 IFS=" ""        $as_nl"
12830
12831 # Find who we are.  Look in the path if we contain no directory separator.
12832 case $0 in
12833   *[\\/]* ) as_myself=$0 ;;
12834   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12835 for as_dir in $PATH
12836 do
12837   IFS=$as_save_IFS
12838   test -z "$as_dir" && as_dir=.
12839   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12840 done
12841 IFS=$as_save_IFS
12842
12843      ;;
12844 esac
12845 # We did not find ourselves, most probably we were run as `sh COMMAND'
12846 # in which case we are not to be found in the path.
12847 if test "x$as_myself" = x; then
12848   as_myself=$0
12849 fi
12850 if test ! -f "$as_myself"; then
12851   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12852   { (exit 1); exit 1; }
12853 fi
12854
12855 # Work around bugs in pre-3.0 UWIN ksh.
12856 for as_var in ENV MAIL MAILPATH
12857 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12858 done
12859 PS1='$ '
12860 PS2='> '
12861 PS4='+ '
12862
12863 # NLS nuisances.
12864 for as_var in \
12865   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12866   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12867   LC_TELEPHONE LC_TIME
12868 do
12869   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12870     eval $as_var=C; export $as_var
12871   else
12872     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12873   fi
12874 done
12875
12876 # Required to use basename.
12877 if expr a : '\(a\)' >/dev/null 2>&1 &&
12878    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12879   as_expr=expr
12880 else
12881   as_expr=false
12882 fi
12883
12884 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12885   as_basename=basename
12886 else
12887   as_basename=false
12888 fi
12889
12890
12891 # Name of the executable.
12892 as_me=`$as_basename -- "$0" ||
12893 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12894          X"$0" : 'X\(//\)$' \| \
12895          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12896 echo X/"$0" |
12897     sed '/^.*\/\([^/][^/]*\)\/*$/{
12898             s//\1/
12899             q
12900           }
12901           /^X\/\(\/\/\)$/{
12902             s//\1/
12903             q
12904           }
12905           /^X\/\(\/\).*/{
12906             s//\1/
12907             q
12908           }
12909           s/.*/./; q'`
12910
12911 # CDPATH.
12912 $as_unset CDPATH
12913
12914
12915
12916   as_lineno_1=$LINENO
12917   as_lineno_2=$LINENO
12918   test "x$as_lineno_1" != "x$as_lineno_2" &&
12919   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12920
12921   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12922   # uniformly replaced by the line number.  The first 'sed' inserts a
12923   # line-number line after each line using $LINENO; the second 'sed'
12924   # does the real work.  The second script uses 'N' to pair each
12925   # line-number line with the line containing $LINENO, and appends
12926   # trailing '-' during substitution so that $LINENO is not a special
12927   # case at line end.
12928   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12929   # scripts with optimization help from Paolo Bonzini.  Blame Lee
12930   # E. McMahon (1931-1989) for sed's syntax.  :-)
12931   sed -n '
12932     p
12933     /[$]LINENO/=
12934   ' <$as_myself |
12935     sed '
12936       s/[$]LINENO.*/&-/
12937       t lineno
12938       b
12939       :lineno
12940       N
12941       :loop
12942       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12943       t loop
12944       s/-\n.*//
12945     ' >$as_me.lineno &&
12946   chmod +x "$as_me.lineno" ||
12947     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12948    { (exit 1); exit 1; }; }
12949
12950   # Don't try to exec as it changes $[0], causing all sort of problems
12951   # (the dirname of $[0] is not the place where we might find the
12952   # original and so on.  Autoconf is especially sensitive to this).
12953   . "./$as_me.lineno"
12954   # Exit status is that of the last command.
12955   exit
12956 }
12957
12958
12959 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12960   as_dirname=dirname
12961 else
12962   as_dirname=false
12963 fi
12964
12965 ECHO_C= ECHO_N= ECHO_T=
12966 case `echo -n x` in
12967 -n*)
12968   case `echo 'x\c'` in
12969   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12970   *)   ECHO_C='\c';;
12971   esac;;
12972 *)
12973   ECHO_N='-n';;
12974 esac
12975
12976 if expr a : '\(a\)' >/dev/null 2>&1 &&
12977    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12978   as_expr=expr
12979 else
12980   as_expr=false
12981 fi
12982
12983 rm -f conf$$ conf$$.exe conf$$.file
12984 if test -d conf$$.dir; then
12985   rm -f conf$$.dir/conf$$.file
12986 else
12987   rm -f conf$$.dir
12988   mkdir conf$$.dir
12989 fi
12990 echo >conf$$.file
12991 if ln -s conf$$.file conf$$ 2>/dev/null; then
12992   as_ln_s='ln -s'
12993   # ... but there are two gotchas:
12994   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12995   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12996   # In both cases, we have to default to `cp -p'.
12997   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12998     as_ln_s='cp -p'
12999 elif ln conf$$.file conf$$ 2>/dev/null; then
13000   as_ln_s=ln
13001 else
13002   as_ln_s='cp -p'
13003 fi
13004 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13005 rmdir conf$$.dir 2>/dev/null
13006
13007 if mkdir -p . 2>/dev/null; then
13008   as_mkdir_p=:
13009 else
13010   test -d ./-p && rmdir ./-p
13011   as_mkdir_p=false
13012 fi
13013
13014 if test -x / >/dev/null 2>&1; then
13015   as_test_x='test -x'
13016 else
13017   if ls -dL / >/dev/null 2>&1; then
13018     as_ls_L_option=L
13019   else
13020     as_ls_L_option=
13021   fi
13022   as_test_x='
13023     eval sh -c '\''
13024       if test -d "$1"; then
13025         test -d "$1/.";
13026       else
13027         case $1 in
13028         -*)set "./$1";;
13029         esac;
13030         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13031         ???[sx]*):;;*)false;;esac;fi
13032     '\'' sh
13033   '
13034 fi
13035 as_executable_p=$as_test_x
13036
13037 # Sed expression to map a string onto a valid CPP name.
13038 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13039
13040 # Sed expression to map a string onto a valid variable name.
13041 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13042
13043
13044 exec 6>&1
13045
13046 # Save the log message, to keep $[0] and so on meaningful, and to
13047 # report actual input values of CONFIG_FILES etc. instead of their
13048 # values after options handling.
13049 ac_log="
13050 This file was extended by libmm-common $as_me 0.0.1, which was
13051 generated by GNU Autoconf 2.61.  Invocation command line was
13052
13053   CONFIG_FILES    = $CONFIG_FILES
13054   CONFIG_HEADERS  = $CONFIG_HEADERS
13055   CONFIG_LINKS    = $CONFIG_LINKS
13056   CONFIG_COMMANDS = $CONFIG_COMMANDS
13057   $ $0 $@
13058
13059 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13060 "
13061
13062 _ACEOF
13063
13064 cat >>$CONFIG_STATUS <<_ACEOF
13065 # Files that config.status was made for.
13066 config_files="$ac_config_files"
13067 config_headers="$ac_config_headers"
13068 config_commands="$ac_config_commands"
13069
13070 _ACEOF
13071
13072 cat >>$CONFIG_STATUS <<\_ACEOF
13073 ac_cs_usage="\
13074 \`$as_me' instantiates files from templates according to the
13075 current configuration.
13076
13077 Usage: $0 [OPTIONS] [FILE]...
13078
13079   -h, --help       print this help, then exit
13080   -V, --version    print version number and configuration settings, then exit
13081   -q, --quiet      do not print progress messages
13082   -d, --debug      don't remove temporary files
13083       --recheck    update $as_me by reconfiguring in the same conditions
13084   --file=FILE[:TEMPLATE]
13085                    instantiate the configuration file FILE
13086   --header=FILE[:TEMPLATE]
13087                    instantiate the configuration header FILE
13088
13089 Configuration files:
13090 $config_files
13091
13092 Configuration headers:
13093 $config_headers
13094
13095 Configuration commands:
13096 $config_commands
13097
13098 Report bugs to <bug-autoconf@gnu.org>."
13099
13100 _ACEOF
13101 cat >>$CONFIG_STATUS <<_ACEOF
13102 ac_cs_version="\\
13103 libmm-common config.status 0.0.1
13104 configured by $0, generated by GNU Autoconf 2.61,
13105   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13106
13107 Copyright (C) 2006 Free Software Foundation, Inc.
13108 This config.status script is free software; the Free Software Foundation
13109 gives unlimited permission to copy, distribute and modify it."
13110
13111 ac_pwd='$ac_pwd'
13112 srcdir='$srcdir'
13113 INSTALL='$INSTALL'
13114 MKDIR_P='$MKDIR_P'
13115 _ACEOF
13116
13117 cat >>$CONFIG_STATUS <<\_ACEOF
13118 # If no file are specified by the user, then we need to provide default
13119 # value.  By we need to know if files were specified by the user.
13120 ac_need_defaults=:
13121 while test $# != 0
13122 do
13123   case $1 in
13124   --*=*)
13125     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13126     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13127     ac_shift=:
13128     ;;
13129   *)
13130     ac_option=$1
13131     ac_optarg=$2
13132     ac_shift=shift
13133     ;;
13134   esac
13135
13136   case $ac_option in
13137   # Handling of the options.
13138   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13139     ac_cs_recheck=: ;;
13140   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13141     echo "$ac_cs_version"; exit ;;
13142   --debug | --debu | --deb | --de | --d | -d )
13143     debug=: ;;
13144   --file | --fil | --fi | --f )
13145     $ac_shift
13146     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13147     ac_need_defaults=false;;
13148   --header | --heade | --head | --hea )
13149     $ac_shift
13150     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13151     ac_need_defaults=false;;
13152   --he | --h)
13153     # Conflict between --help and --header
13154     { echo "$as_me: error: ambiguous option: $1
13155 Try \`$0 --help' for more information." >&2
13156    { (exit 1); exit 1; }; };;
13157   --help | --hel | -h )
13158     echo "$ac_cs_usage"; exit ;;
13159   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13160   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13161     ac_cs_silent=: ;;
13162
13163   # This is an error.
13164   -*) { echo "$as_me: error: unrecognized option: $1
13165 Try \`$0 --help' for more information." >&2
13166    { (exit 1); exit 1; }; } ;;
13167
13168   *) ac_config_targets="$ac_config_targets $1"
13169      ac_need_defaults=false ;;
13170
13171   esac
13172   shift
13173 done
13174
13175 ac_configure_extra_args=
13176
13177 if $ac_cs_silent; then
13178   exec 6>/dev/null
13179   ac_configure_extra_args="$ac_configure_extra_args --silent"
13180 fi
13181
13182 _ACEOF
13183 cat >>$CONFIG_STATUS <<_ACEOF
13184 if \$ac_cs_recheck; then
13185   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13186   CONFIG_SHELL=$SHELL
13187   export CONFIG_SHELL
13188   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13189 fi
13190
13191 _ACEOF
13192 cat >>$CONFIG_STATUS <<\_ACEOF
13193 exec 5>>config.log
13194 {
13195   echo
13196   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13197 ## Running $as_me. ##
13198 _ASBOX
13199   echo "$ac_log"
13200 } >&5
13201
13202 _ACEOF
13203 cat >>$CONFIG_STATUS <<_ACEOF
13204 #
13205 # INIT-COMMANDS
13206 #
13207 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13208
13209
13210 # The HP-UX ksh and POSIX shell print the target directory to stdout
13211 # if CDPATH is set.
13212 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13213
13214 sed_quote_subst='$sed_quote_subst'
13215 double_quote_subst='$double_quote_subst'
13216 delay_variable_subst='$delay_variable_subst'
13217 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13218 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13219 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13220 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13221 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13222 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13223 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13224 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13225 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13226 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13227 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13228 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13229 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13230 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13231 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13232 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13233 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13234 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13235 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13236 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13237 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13238 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13239 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13240 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13241 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13242 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13243 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13244 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13245 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13246 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13247 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13248 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13249 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13250 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13251 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13252 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13253 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13254 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13255 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13256 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13257 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13258 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13259 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13260 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"`'
13261 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"`'
13262 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13263 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13264 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13265 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13266 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13267 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13268 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13269 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13270 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13271 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13272 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13273 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13274 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13275 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13276 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13277 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13278 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13279 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13280 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13281 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13282 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13283 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13284 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13285 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13286 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13287 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13288 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13289 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13290 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13291 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13292 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13293 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13294 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13295 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13296 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13297 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13298 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13299 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13300 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13301 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13302 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13303 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13304 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13305 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13306 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13307 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13308 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13309 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13310 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13311 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13312 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13313 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13314 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13315 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13316 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13317 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13318 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13319 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13320 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13321 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13322 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13323 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13324 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13325 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13326 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13327 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13328 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13329 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13330 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13331 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13332 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13333 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13334
13335 LTCC='$LTCC'
13336 LTCFLAGS='$LTCFLAGS'
13337 compiler='$compiler_DEFAULT'
13338
13339 # Quote evaled strings.
13340 for var in SED \
13341 GREP \
13342 EGREP \
13343 FGREP \
13344 LD \
13345 NM \
13346 LN_S \
13347 lt_SP2NL \
13348 lt_NL2SP \
13349 reload_flag \
13350 deplibs_check_method \
13351 file_magic_cmd \
13352 AR \
13353 AR_FLAGS \
13354 STRIP \
13355 RANLIB \
13356 CC \
13357 CFLAGS \
13358 compiler \
13359 lt_cv_sys_global_symbol_pipe \
13360 lt_cv_sys_global_symbol_to_cdecl \
13361 lt_cv_sys_global_symbol_to_c_name_address \
13362 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13363 SHELL \
13364 ECHO \
13365 lt_prog_compiler_no_builtin_flag \
13366 lt_prog_compiler_wl \
13367 lt_prog_compiler_pic \
13368 lt_prog_compiler_static \
13369 lt_cv_prog_compiler_c_o \
13370 need_locks \
13371 DSYMUTIL \
13372 NMEDIT \
13373 LIPO \
13374 OTOOL \
13375 OTOOL64 \
13376 shrext_cmds \
13377 export_dynamic_flag_spec \
13378 whole_archive_flag_spec \
13379 compiler_needs_object \
13380 with_gnu_ld \
13381 allow_undefined_flag \
13382 no_undefined_flag \
13383 hardcode_libdir_flag_spec \
13384 hardcode_libdir_flag_spec_ld \
13385 hardcode_libdir_separator \
13386 fix_srcfile_path \
13387 exclude_expsyms \
13388 include_expsyms \
13389 file_list_spec \
13390 variables_saved_for_relink \
13391 libname_spec \
13392 library_names_spec \
13393 soname_spec \
13394 finish_eval \
13395 old_striplib \
13396 striplib; do
13397     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13398     *[\\\\\\\`\\"\\\$]*)
13399       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13400       ;;
13401     *)
13402       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13403       ;;
13404     esac
13405 done
13406
13407 # Double-quote double-evaled strings.
13408 for var in reload_cmds \
13409 old_postinstall_cmds \
13410 old_postuninstall_cmds \
13411 old_archive_cmds \
13412 extract_expsyms_cmds \
13413 old_archive_from_new_cmds \
13414 old_archive_from_expsyms_cmds \
13415 archive_cmds \
13416 archive_expsym_cmds \
13417 module_cmds \
13418 module_expsym_cmds \
13419 export_symbols_cmds \
13420 prelink_cmds \
13421 postinstall_cmds \
13422 postuninstall_cmds \
13423 finish_cmds \
13424 sys_lib_search_path_spec \
13425 sys_lib_dlsearch_path_spec; do
13426     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13427     *[\\\\\\\`\\"\\\$]*)
13428       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13429       ;;
13430     *)
13431       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13432       ;;
13433     esac
13434 done
13435
13436 # Fix-up fallback echo if it was mangled by the above quoting rules.
13437 case \$lt_ECHO in
13438 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13439   ;;
13440 esac
13441
13442 ac_aux_dir='$ac_aux_dir'
13443 xsi_shell='$xsi_shell'
13444 lt_shell_append='$lt_shell_append'
13445
13446 # See if we are running on zsh, and set the options which allow our
13447 # commands through without removal of \ escapes INIT.
13448 if test -n "\${ZSH_VERSION+set}" ; then
13449    setopt NO_GLOB_SUBST
13450 fi
13451
13452
13453     PACKAGE='$PACKAGE'
13454     VERSION='$VERSION'
13455     TIMESTAMP='$TIMESTAMP'
13456     RM='$RM'
13457     ofile='$ofile'
13458
13459
13460
13461
13462 _ACEOF
13463
13464 cat >>$CONFIG_STATUS <<\_ACEOF
13465
13466 # Handling of arguments.
13467 for ac_config_target in $ac_config_targets
13468 do
13469   case $ac_config_target in
13470     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13471     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13472     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13473     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13474     "mm-common.pc") CONFIG_FILES="$CONFIG_FILES mm-common.pc" ;;
13475
13476   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13477 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13478    { (exit 1); exit 1; }; };;
13479   esac
13480 done
13481
13482
13483 # If the user did not use the arguments to specify the items to instantiate,
13484 # then the envvar interface is used.  Set only those that are not.
13485 # We use the long form for the default assignment because of an extremely
13486 # bizarre bug on SunOS 4.1.3.
13487 if $ac_need_defaults; then
13488   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13489   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13490   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13491 fi
13492
13493 # Have a temporary directory for convenience.  Make it in the build tree
13494 # simply because there is no reason against having it here, and in addition,
13495 # creating and moving files from /tmp can sometimes cause problems.
13496 # Hook for its removal unless debugging.
13497 # Note that there is a small window in which the directory will not be cleaned:
13498 # after its creation but before its name has been assigned to `$tmp'.
13499 $debug ||
13500 {
13501   tmp=
13502   trap 'exit_status=$?
13503   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13504 ' 0
13505   trap '{ (exit 1); exit 1; }' 1 2 13 15
13506 }
13507 # Create a (secure) tmp directory for tmp files.
13508
13509 {
13510   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13511   test -n "$tmp" && test -d "$tmp"
13512 }  ||
13513 {
13514   tmp=./conf$$-$RANDOM
13515   (umask 077 && mkdir "$tmp")
13516 } ||
13517 {
13518    echo "$me: cannot create a temporary directory in ." >&2
13519    { (exit 1); exit 1; }
13520 }
13521
13522 #
13523 # Set up the sed scripts for CONFIG_FILES section.
13524 #
13525
13526 # No need to generate the scripts if there are no CONFIG_FILES.
13527 # This happens for instance when ./config.status config.h
13528 if test -n "$CONFIG_FILES"; then
13529
13530 _ACEOF
13531
13532
13533
13534 ac_delim='%!_!# '
13535 for ac_last_try in false false false false false :; do
13536   cat >conf$$subs.sed <<_ACEOF
13537 SHELL!$SHELL$ac_delim
13538 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13539 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13540 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13541 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13542 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13543 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13544 exec_prefix!$exec_prefix$ac_delim
13545 prefix!$prefix$ac_delim
13546 program_transform_name!$program_transform_name$ac_delim
13547 bindir!$bindir$ac_delim
13548 sbindir!$sbindir$ac_delim
13549 libexecdir!$libexecdir$ac_delim
13550 datarootdir!$datarootdir$ac_delim
13551 datadir!$datadir$ac_delim
13552 sysconfdir!$sysconfdir$ac_delim
13553 sharedstatedir!$sharedstatedir$ac_delim
13554 localstatedir!$localstatedir$ac_delim
13555 includedir!$includedir$ac_delim
13556 oldincludedir!$oldincludedir$ac_delim
13557 docdir!$docdir$ac_delim
13558 infodir!$infodir$ac_delim
13559 htmldir!$htmldir$ac_delim
13560 dvidir!$dvidir$ac_delim
13561 pdfdir!$pdfdir$ac_delim
13562 psdir!$psdir$ac_delim
13563 libdir!$libdir$ac_delim
13564 localedir!$localedir$ac_delim
13565 mandir!$mandir$ac_delim
13566 DEFS!$DEFS$ac_delim
13567 ECHO_C!$ECHO_C$ac_delim
13568 ECHO_N!$ECHO_N$ac_delim
13569 ECHO_T!$ECHO_T$ac_delim
13570 LIBS!$LIBS$ac_delim
13571 build_alias!$build_alias$ac_delim
13572 host_alias!$host_alias$ac_delim
13573 target_alias!$target_alias$ac_delim
13574 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13575 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13576 INSTALL_DATA!$INSTALL_DATA$ac_delim
13577 am__isrc!$am__isrc$ac_delim
13578 CYGPATH_W!$CYGPATH_W$ac_delim
13579 PACKAGE!$PACKAGE$ac_delim
13580 VERSION!$VERSION$ac_delim
13581 ACLOCAL!$ACLOCAL$ac_delim
13582 AUTOCONF!$AUTOCONF$ac_delim
13583 AUTOMAKE!$AUTOMAKE$ac_delim
13584 AUTOHEADER!$AUTOHEADER$ac_delim
13585 MAKEINFO!$MAKEINFO$ac_delim
13586 install_sh!$install_sh$ac_delim
13587 STRIP!$STRIP$ac_delim
13588 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
13589 mkdir_p!$mkdir_p$ac_delim
13590 AWK!$AWK$ac_delim
13591 SET_MAKE!$SET_MAKE$ac_delim
13592 am__leading_dot!$am__leading_dot$ac_delim
13593 AMTAR!$AMTAR$ac_delim
13594 am__tar!$am__tar$ac_delim
13595 am__untar!$am__untar$ac_delim
13596 CC!$CC$ac_delim
13597 CFLAGS!$CFLAGS$ac_delim
13598 LDFLAGS!$LDFLAGS$ac_delim
13599 CPPFLAGS!$CPPFLAGS$ac_delim
13600 ac_ct_CC!$ac_ct_CC$ac_delim
13601 EXEEXT!$EXEEXT$ac_delim
13602 OBJEXT!$OBJEXT$ac_delim
13603 DEPDIR!$DEPDIR$ac_delim
13604 am__include!$am__include$ac_delim
13605 am__quote!$am__quote$ac_delim
13606 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
13607 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
13608 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
13609 CCDEPMODE!$CCDEPMODE$ac_delim
13610 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
13611 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
13612 LIBTOOL!$LIBTOOL$ac_delim
13613 build!$build$ac_delim
13614 build_cpu!$build_cpu$ac_delim
13615 build_vendor!$build_vendor$ac_delim
13616 build_os!$build_os$ac_delim
13617 host!$host$ac_delim
13618 host_cpu!$host_cpu$ac_delim
13619 host_vendor!$host_vendor$ac_delim
13620 host_os!$host_os$ac_delim
13621 SED!$SED$ac_delim
13622 GREP!$GREP$ac_delim
13623 EGREP!$EGREP$ac_delim
13624 FGREP!$FGREP$ac_delim
13625 LD!$LD$ac_delim
13626 DUMPBIN!$DUMPBIN$ac_delim
13627 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
13628 NM!$NM$ac_delim
13629 LN_S!$LN_S$ac_delim
13630 AR!$AR$ac_delim
13631 RANLIB!$RANLIB$ac_delim
13632 lt_ECHO!$lt_ECHO$ac_delim
13633 DSYMUTIL!$DSYMUTIL$ac_delim
13634 _ACEOF
13635
13636   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13637     break
13638   elif $ac_last_try; then
13639     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13640 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13641    { (exit 1); exit 1; }; }
13642   else
13643     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13644   fi
13645 done
13646
13647 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13648 if test -n "$ac_eof"; then
13649   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13650   ac_eof=`expr $ac_eof + 1`
13651 fi
13652
13653 cat >>$CONFIG_STATUS <<_ACEOF
13654 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13655 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13656 _ACEOF
13657 sed '
13658 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13659 s/^/s,@/; s/!/@,|#_!!_#|/
13660 :n
13661 t n
13662 s/'"$ac_delim"'$/,g/; t
13663 s/$/\\/; p
13664 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13665 ' >>$CONFIG_STATUS <conf$$subs.sed
13666 rm -f conf$$subs.sed
13667 cat >>$CONFIG_STATUS <<_ACEOF
13668 CEOF$ac_eof
13669 _ACEOF
13670
13671
13672 ac_delim='%!_!# '
13673 for ac_last_try in false false false false false :; do
13674   cat >conf$$subs.sed <<_ACEOF
13675 NMEDIT!$NMEDIT$ac_delim
13676 LIPO!$LIPO$ac_delim
13677 OTOOL!$OTOOL$ac_delim
13678 OTOOL64!$OTOOL64$ac_delim
13679 CPP!$CPP$ac_delim
13680 LIBOBJS!$LIBOBJS$ac_delim
13681 PKG_CONFIG!$PKG_CONFIG$ac_delim
13682 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
13683 GLIB_LIBS!$GLIB_LIBS$ac_delim
13684 MMLOG_CFLAGS!$MMLOG_CFLAGS$ac_delim
13685 MMLOG_LIBS!$MMLOG_LIBS$ac_delim
13686 LTLIBOBJS!$LTLIBOBJS$ac_delim
13687 _ACEOF
13688
13689   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
13690     break
13691   elif $ac_last_try; then
13692     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13693 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13694    { (exit 1); exit 1; }; }
13695   else
13696     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13697   fi
13698 done
13699
13700 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13701 if test -n "$ac_eof"; then
13702   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13703   ac_eof=`expr $ac_eof + 1`
13704 fi
13705
13706 cat >>$CONFIG_STATUS <<_ACEOF
13707 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13709 _ACEOF
13710 sed '
13711 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13712 s/^/s,@/; s/!/@,|#_!!_#|/
13713 :n
13714 t n
13715 s/'"$ac_delim"'$/,g/; t
13716 s/$/\\/; p
13717 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13718 ' >>$CONFIG_STATUS <conf$$subs.sed
13719 rm -f conf$$subs.sed
13720 cat >>$CONFIG_STATUS <<_ACEOF
13721 :end
13722 s/|#_!!_#|//g
13723 CEOF$ac_eof
13724 _ACEOF
13725
13726
13727 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13728 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13729 # trailing colons and then remove the whole line if VPATH becomes empty
13730 # (actually we leave an empty line to preserve line numbers).
13731 if test "x$srcdir" = x.; then
13732   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13733 s/:*\$(srcdir):*/:/
13734 s/:*\${srcdir}:*/:/
13735 s/:*@srcdir@:*/:/
13736 s/^\([^=]*=[     ]*\):*/\1/
13737 s/:*$//
13738 s/^[^=]*=[       ]*$//
13739 }'
13740 fi
13741
13742 cat >>$CONFIG_STATUS <<\_ACEOF
13743 fi # test -n "$CONFIG_FILES"
13744
13745
13746 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
13747 do
13748   case $ac_tag in
13749   :[FHLC]) ac_mode=$ac_tag; continue;;
13750   esac
13751   case $ac_mode$ac_tag in
13752   :[FHL]*:*);;
13753   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13754 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13755    { (exit 1); exit 1; }; };;
13756   :[FH]-) ac_tag=-:-;;
13757   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13758   esac
13759   ac_save_IFS=$IFS
13760   IFS=:
13761   set x $ac_tag
13762   IFS=$ac_save_IFS
13763   shift
13764   ac_file=$1
13765   shift
13766
13767   case $ac_mode in
13768   :L) ac_source=$1;;
13769   :[FH])
13770     ac_file_inputs=
13771     for ac_f
13772     do
13773       case $ac_f in
13774       -) ac_f="$tmp/stdin";;
13775       *) # Look for the file first in the build tree, then in the source tree
13776          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13777          # because $ac_f cannot contain `:'.
13778          test -f "$ac_f" ||
13779            case $ac_f in
13780            [\\/$]*) false;;
13781            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13782            esac ||
13783            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13784 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13785    { (exit 1); exit 1; }; };;
13786       esac
13787       ac_file_inputs="$ac_file_inputs $ac_f"
13788     done
13789
13790     # Let's still pretend it is `configure' which instantiates (i.e., don't
13791     # use $as_me), people would be surprised to read:
13792     #    /* config.h.  Generated by config.status.  */
13793     configure_input="Generated from "`IFS=:
13794           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13795     if test x"$ac_file" != x-; then
13796       configure_input="$ac_file.  $configure_input"
13797       { echo "$as_me:$LINENO: creating $ac_file" >&5
13798 echo "$as_me: creating $ac_file" >&6;}
13799     fi
13800
13801     case $ac_tag in
13802     *:-:* | *:-) cat >"$tmp/stdin";;
13803     esac
13804     ;;
13805   esac
13806
13807   ac_dir=`$as_dirname -- "$ac_file" ||
13808 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13809          X"$ac_file" : 'X\(//\)[^/]' \| \
13810          X"$ac_file" : 'X\(//\)$' \| \
13811          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13812 echo X"$ac_file" |
13813     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13814             s//\1/
13815             q
13816           }
13817           /^X\(\/\/\)[^/].*/{
13818             s//\1/
13819             q
13820           }
13821           /^X\(\/\/\)$/{
13822             s//\1/
13823             q
13824           }
13825           /^X\(\/\).*/{
13826             s//\1/
13827             q
13828           }
13829           s/.*/./; q'`
13830   { as_dir="$ac_dir"
13831   case $as_dir in #(
13832   -*) as_dir=./$as_dir;;
13833   esac
13834   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13835     as_dirs=
13836     while :; do
13837       case $as_dir in #(
13838       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13839       *) as_qdir=$as_dir;;
13840       esac
13841       as_dirs="'$as_qdir' $as_dirs"
13842       as_dir=`$as_dirname -- "$as_dir" ||
13843 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13844          X"$as_dir" : 'X\(//\)[^/]' \| \
13845          X"$as_dir" : 'X\(//\)$' \| \
13846          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13847 echo X"$as_dir" |
13848     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13849             s//\1/
13850             q
13851           }
13852           /^X\(\/\/\)[^/].*/{
13853             s//\1/
13854             q
13855           }
13856           /^X\(\/\/\)$/{
13857             s//\1/
13858             q
13859           }
13860           /^X\(\/\).*/{
13861             s//\1/
13862             q
13863           }
13864           s/.*/./; q'`
13865       test -d "$as_dir" && break
13866     done
13867     test -z "$as_dirs" || eval "mkdir $as_dirs"
13868   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13869 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13870    { (exit 1); exit 1; }; }; }
13871   ac_builddir=.
13872
13873 case "$ac_dir" in
13874 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13875 *)
13876   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13877   # A ".." for each directory in $ac_dir_suffix.
13878   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13879   case $ac_top_builddir_sub in
13880   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13881   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13882   esac ;;
13883 esac
13884 ac_abs_top_builddir=$ac_pwd
13885 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13886 # for backward compatibility:
13887 ac_top_builddir=$ac_top_build_prefix
13888
13889 case $srcdir in
13890   .)  # We are building in place.
13891     ac_srcdir=.
13892     ac_top_srcdir=$ac_top_builddir_sub
13893     ac_abs_top_srcdir=$ac_pwd ;;
13894   [\\/]* | ?:[\\/]* )  # Absolute name.
13895     ac_srcdir=$srcdir$ac_dir_suffix;
13896     ac_top_srcdir=$srcdir
13897     ac_abs_top_srcdir=$srcdir ;;
13898   *) # Relative name.
13899     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13900     ac_top_srcdir=$ac_top_build_prefix$srcdir
13901     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13902 esac
13903 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13904
13905
13906   case $ac_mode in
13907   :F)
13908   #
13909   # CONFIG_FILE
13910   #
13911
13912   case $INSTALL in
13913   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13914   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13915   esac
13916   ac_MKDIR_P=$MKDIR_P
13917   case $MKDIR_P in
13918   [\\/$]* | ?:[\\/]* ) ;;
13919   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13920   esac
13921 _ACEOF
13922
13923 cat >>$CONFIG_STATUS <<\_ACEOF
13924 # If the template does not know about datarootdir, expand it.
13925 # FIXME: This hack should be removed a few years after 2.60.
13926 ac_datarootdir_hack=; ac_datarootdir_seen=
13927
13928 case `sed -n '/datarootdir/ {
13929   p
13930   q
13931 }
13932 /@datadir@/p
13933 /@docdir@/p
13934 /@infodir@/p
13935 /@localedir@/p
13936 /@mandir@/p
13937 ' $ac_file_inputs` in
13938 *datarootdir*) ac_datarootdir_seen=yes;;
13939 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13940   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13941 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13942 _ACEOF
13943 cat >>$CONFIG_STATUS <<_ACEOF
13944   ac_datarootdir_hack='
13945   s&@datadir@&$datadir&g
13946   s&@docdir@&$docdir&g
13947   s&@infodir@&$infodir&g
13948   s&@localedir@&$localedir&g
13949   s&@mandir@&$mandir&g
13950     s&\\\${datarootdir}&$datarootdir&g' ;;
13951 esac
13952 _ACEOF
13953
13954 # Neutralize VPATH when `$srcdir' = `.'.
13955 # Shell code in configure.ac might set extrasub.
13956 # FIXME: do we really want to maintain this feature?
13957 cat >>$CONFIG_STATUS <<_ACEOF
13958   sed "$ac_vpsub
13959 $extrasub
13960 _ACEOF
13961 cat >>$CONFIG_STATUS <<\_ACEOF
13962 :t
13963 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13964 s&@configure_input@&$configure_input&;t t
13965 s&@top_builddir@&$ac_top_builddir_sub&;t t
13966 s&@srcdir@&$ac_srcdir&;t t
13967 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13968 s&@top_srcdir@&$ac_top_srcdir&;t t
13969 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13970 s&@builddir@&$ac_builddir&;t t
13971 s&@abs_builddir@&$ac_abs_builddir&;t t
13972 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13973 s&@INSTALL@&$ac_INSTALL&;t t
13974 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13975 $ac_datarootdir_hack
13976 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
13977
13978 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13979   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13980   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13981   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13982 which seems to be undefined.  Please make sure it is defined." >&5
13983 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13984 which seems to be undefined.  Please make sure it is defined." >&2;}
13985
13986   rm -f "$tmp/stdin"
13987   case $ac_file in
13988   -) cat "$tmp/out"; rm -f "$tmp/out";;
13989   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13990   esac
13991  ;;
13992   :H)
13993   #
13994   # CONFIG_HEADER
13995   #
13996 _ACEOF
13997
13998 # Transform confdefs.h into a sed script `conftest.defines', that
13999 # substitutes the proper values into config.h.in to produce config.h.
14000 rm -f conftest.defines conftest.tail
14001 # First, append a space to every undef/define line, to ease matching.
14002 echo 's/$/ /' >conftest.defines
14003 # Then, protect against being on the right side of a sed subst, or in
14004 # an unquoted here document, in config.status.  If some macros were
14005 # called several times there might be several #defines for the same
14006 # symbol, which is useless.  But do not sort them, since the last
14007 # AC_DEFINE must be honored.
14008 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14009 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14010 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14011 # PARAMS is the parameter list in the macro definition--in most cases, it's
14012 # just an empty string.
14013 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
14014 ac_dB='\\)[      (].*,\\1define\\2'
14015 ac_dC=' '
14016 ac_dD=' ,'
14017
14018 uniq confdefs.h |
14019   sed -n '
14020         t rset
14021         :rset
14022         s/^[     ]*#[    ]*define[       ][      ]*//
14023         t ok
14024         d
14025         :ok
14026         s/[\\&,]/\\&/g
14027         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14028         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14029   ' >>conftest.defines
14030
14031 # Remove the space that was appended to ease matching.
14032 # Then replace #undef with comments.  This is necessary, for
14033 # example, in the case of _POSIX_SOURCE, which is predefined and required
14034 # on some systems where configure will not decide to define it.
14035 # (The regexp can be short, since the line contains either #define or #undef.)
14036 echo 's/ $//
14037 s,^[     #]*u.*,/* & */,' >>conftest.defines
14038
14039 # Break up conftest.defines:
14040 ac_max_sed_lines=50
14041
14042 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14043 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14044 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14045 # et cetera.
14046 ac_in='$ac_file_inputs'
14047 ac_out='"$tmp/out1"'
14048 ac_nxt='"$tmp/out2"'
14049
14050 while :
14051 do
14052   # Write a here document:
14053     cat >>$CONFIG_STATUS <<_ACEOF
14054     # First, check the format of the line:
14055     cat >"\$tmp/defines.sed" <<\\CEOF
14056 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
14057 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
14058 b
14059 :def
14060 _ACEOF
14061   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14062   echo 'CEOF
14063     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14064   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14065   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14066   grep . conftest.tail >/dev/null || break
14067   rm -f conftest.defines
14068   mv conftest.tail conftest.defines
14069 done
14070 rm -f conftest.defines conftest.tail
14071
14072 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14073 cat >>$CONFIG_STATUS <<\_ACEOF
14074   if test x"$ac_file" != x-; then
14075     echo "/* $configure_input  */" >"$tmp/config.h"
14076     cat "$ac_result" >>"$tmp/config.h"
14077     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14078       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14079 echo "$as_me: $ac_file is unchanged" >&6;}
14080     else
14081       rm -f $ac_file
14082       mv "$tmp/config.h" $ac_file
14083     fi
14084   else
14085     echo "/* $configure_input  */"
14086     cat "$ac_result"
14087   fi
14088   rm -f "$tmp/out12"
14089 # Compute $ac_file's index in $config_headers.
14090 _am_arg=$ac_file
14091 _am_stamp_count=1
14092 for _am_header in $config_headers :; do
14093   case $_am_header in
14094     $_am_arg | $_am_arg:* )
14095       break ;;
14096     * )
14097       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14098   esac
14099 done
14100 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14101 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14102          X"$_am_arg" : 'X\(//\)[^/]' \| \
14103          X"$_am_arg" : 'X\(//\)$' \| \
14104          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14105 echo X"$_am_arg" |
14106     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14107             s//\1/
14108             q
14109           }
14110           /^X\(\/\/\)[^/].*/{
14111             s//\1/
14112             q
14113           }
14114           /^X\(\/\/\)$/{
14115             s//\1/
14116             q
14117           }
14118           /^X\(\/\).*/{
14119             s//\1/
14120             q
14121           }
14122           s/.*/./; q'`/stamp-h$_am_stamp_count
14123  ;;
14124
14125   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14126 echo "$as_me: executing $ac_file commands" >&6;}
14127  ;;
14128   esac
14129
14130
14131   case $ac_file$ac_mode in
14132     "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
14133 # are listed without --file.  Let's play safe and only enable the eval
14134 # if we detect the quoting.
14135 case $CONFIG_FILES in
14136 *\'*) eval set x "$CONFIG_FILES" ;;
14137 *)   set x $CONFIG_FILES ;;
14138 esac
14139 shift
14140 for mf
14141 do
14142   # Strip MF so we end up with the name of the file.
14143   mf=`echo "$mf" | sed -e 's/:.*$//'`
14144   # Check whether this is an Automake generated Makefile or not.
14145   # We used to match only the files named `Makefile.in', but
14146   # some people rename them; so instead we look at the file content.
14147   # Grep'ing the first line is not enough: some people post-process
14148   # each Makefile.in and add a new line on top of each file to say so.
14149   # Grep'ing the whole file is not good either: AIX grep has a line
14150   # limit of 2048, but all sed's we know have understand at least 4000.
14151   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14152     dirpart=`$as_dirname -- "$mf" ||
14153 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14154          X"$mf" : 'X\(//\)[^/]' \| \
14155          X"$mf" : 'X\(//\)$' \| \
14156          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14157 echo X"$mf" |
14158     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14159             s//\1/
14160             q
14161           }
14162           /^X\(\/\/\)[^/].*/{
14163             s//\1/
14164             q
14165           }
14166           /^X\(\/\/\)$/{
14167             s//\1/
14168             q
14169           }
14170           /^X\(\/\).*/{
14171             s//\1/
14172             q
14173           }
14174           s/.*/./; q'`
14175   else
14176     continue
14177   fi
14178   # Extract the definition of DEPDIR, am__include, and am__quote
14179   # from the Makefile without running `make'.
14180   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14181   test -z "$DEPDIR" && continue
14182   am__include=`sed -n 's/^am__include = //p' < "$mf"`
14183   test -z "am__include" && continue
14184   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14185   # When using ansi2knr, U may be empty or an underscore; expand it
14186   U=`sed -n 's/^U = //p' < "$mf"`
14187   # Find all dependency output files, they are included files with
14188   # $(DEPDIR) in their names.  We invoke sed twice because it is the
14189   # simplest approach to changing $(DEPDIR) to its actual value in the
14190   # expansion.
14191   for file in `sed -n "
14192     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14193        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14194     # Make sure the directory exists.
14195     test -f "$dirpart/$file" && continue
14196     fdir=`$as_dirname -- "$file" ||
14197 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14198          X"$file" : 'X\(//\)[^/]' \| \
14199          X"$file" : 'X\(//\)$' \| \
14200          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14201 echo X"$file" |
14202     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14203             s//\1/
14204             q
14205           }
14206           /^X\(\/\/\)[^/].*/{
14207             s//\1/
14208             q
14209           }
14210           /^X\(\/\/\)$/{
14211             s//\1/
14212             q
14213           }
14214           /^X\(\/\).*/{
14215             s//\1/
14216             q
14217           }
14218           s/.*/./; q'`
14219     { as_dir=$dirpart/$fdir
14220   case $as_dir in #(
14221   -*) as_dir=./$as_dir;;
14222   esac
14223   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14224     as_dirs=
14225     while :; do
14226       case $as_dir in #(
14227       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14228       *) as_qdir=$as_dir;;
14229       esac
14230       as_dirs="'$as_qdir' $as_dirs"
14231       as_dir=`$as_dirname -- "$as_dir" ||
14232 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14233          X"$as_dir" : 'X\(//\)[^/]' \| \
14234          X"$as_dir" : 'X\(//\)$' \| \
14235          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14236 echo X"$as_dir" |
14237     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14238             s//\1/
14239             q
14240           }
14241           /^X\(\/\/\)[^/].*/{
14242             s//\1/
14243             q
14244           }
14245           /^X\(\/\/\)$/{
14246             s//\1/
14247             q
14248           }
14249           /^X\(\/\).*/{
14250             s//\1/
14251             q
14252           }
14253           s/.*/./; q'`
14254       test -d "$as_dir" && break
14255     done
14256     test -z "$as_dirs" || eval "mkdir $as_dirs"
14257   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14258 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14259    { (exit 1); exit 1; }; }; }
14260     # echo "creating $dirpart/$file"
14261     echo '# dummy' > "$dirpart/$file"
14262   done
14263 done
14264  ;;
14265     "libtool":C)
14266
14267     # See if we are running on zsh, and set the options which allow our
14268     # commands through without removal of \ escapes.
14269     if test -n "${ZSH_VERSION+set}" ; then
14270       setopt NO_GLOB_SUBST
14271     fi
14272
14273     cfgfile="${ofile}T"
14274     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14275     $RM "$cfgfile"
14276
14277     cat <<_LT_EOF >> "$cfgfile"
14278 #! $SHELL
14279
14280 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14281 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14282 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14283 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14284 #
14285 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14286 #                 2006, 2007, 2008 Free Software Foundation, Inc.
14287 #   Written by Gordon Matzigkeit, 1996
14288 #
14289 #   This file is part of GNU Libtool.
14290 #
14291 # GNU Libtool is free software; you can redistribute it and/or
14292 # modify it under the terms of the GNU General Public License as
14293 # published by the Free Software Foundation; either version 2 of
14294 # the License, or (at your option) any later version.
14295 #
14296 # As a special exception to the GNU General Public License,
14297 # if you distribute this file as part of a program or library that
14298 # is built using GNU Libtool, you may include this file under the
14299 # same distribution terms that you use for the rest of that program.
14300 #
14301 # GNU Libtool is distributed in the hope that it will be useful,
14302 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14303 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14304 # GNU General Public License for more details.
14305 #
14306 # You should have received a copy of the GNU General Public License
14307 # along with GNU Libtool; see the file COPYING.  If not, a copy
14308 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14309 # obtained by writing to the Free Software Foundation, Inc.,
14310 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14311
14312
14313 # The names of the tagged configurations supported by this script.
14314 available_tags=""
14315
14316 # ### BEGIN LIBTOOL CONFIG
14317
14318 # Which release of libtool.m4 was used?
14319 macro_version=$macro_version
14320 macro_revision=$macro_revision
14321
14322 # Whether or not to build shared libraries.
14323 build_libtool_libs=$enable_shared
14324
14325 # Whether or not to build static libraries.
14326 build_old_libs=$enable_static
14327
14328 # What type of objects to build.
14329 pic_mode=$pic_mode
14330
14331 # Whether or not to optimize for fast installation.
14332 fast_install=$enable_fast_install
14333
14334 # The host system.
14335 host_alias=$host_alias
14336 host=$host
14337 host_os=$host_os
14338
14339 # The build system.
14340 build_alias=$build_alias
14341 build=$build
14342 build_os=$build_os
14343
14344 # A sed program that does not truncate output.
14345 SED=$lt_SED
14346
14347 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14348 Xsed="\$SED -e 1s/^X//"
14349
14350 # A grep program that handles long lines.
14351 GREP=$lt_GREP
14352
14353 # An ERE matcher.
14354 EGREP=$lt_EGREP
14355
14356 # A literal string matcher.
14357 FGREP=$lt_FGREP
14358
14359 # A BSD- or MS-compatible name lister.
14360 NM=$lt_NM
14361
14362 # Whether we need soft or hard links.
14363 LN_S=$lt_LN_S
14364
14365 # What is the maximum length of a command?
14366 max_cmd_len=$max_cmd_len
14367
14368 # Object file suffix (normally "o").
14369 objext=$ac_objext
14370
14371 # Executable file suffix (normally "").
14372 exeext=$exeext
14373
14374 # whether the shell understands "unset".
14375 lt_unset=$lt_unset
14376
14377 # turn spaces into newlines.
14378 SP2NL=$lt_lt_SP2NL
14379
14380 # turn newlines into spaces.
14381 NL2SP=$lt_lt_NL2SP
14382
14383 # How to create reloadable object files.
14384 reload_flag=$lt_reload_flag
14385 reload_cmds=$lt_reload_cmds
14386
14387 # Method to check whether dependent libraries are shared objects.
14388 deplibs_check_method=$lt_deplibs_check_method
14389
14390 # Command to use when deplibs_check_method == "file_magic".
14391 file_magic_cmd=$lt_file_magic_cmd
14392
14393 # The archiver.
14394 AR=$lt_AR
14395 AR_FLAGS=$lt_AR_FLAGS
14396
14397 # A symbol stripping program.
14398 STRIP=$lt_STRIP
14399
14400 # Commands used to install an old-style archive.
14401 RANLIB=$lt_RANLIB
14402 old_postinstall_cmds=$lt_old_postinstall_cmds
14403 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14404
14405 # A C compiler.
14406 LTCC=$lt_CC
14407
14408 # LTCC compiler flags.
14409 LTCFLAGS=$lt_CFLAGS
14410
14411 # Take the output of nm and produce a listing of raw symbols and C names.
14412 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14413
14414 # Transform the output of nm in a proper C declaration.
14415 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14416
14417 # Transform the output of nm in a C name address pair.
14418 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14419
14420 # Transform the output of nm in a C name address pair when lib prefix is needed.
14421 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14422
14423 # The name of the directory that contains temporary libtool files.
14424 objdir=$objdir
14425
14426 # Shell to use when invoking shell scripts.
14427 SHELL=$lt_SHELL
14428
14429 # An echo program that does not interpret backslashes.
14430 ECHO=$lt_ECHO
14431
14432 # Used to examine libraries when file_magic_cmd begins with "file".
14433 MAGIC_CMD=$MAGIC_CMD
14434
14435 # Must we lock files when doing compilation?
14436 need_locks=$lt_need_locks
14437
14438 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14439 DSYMUTIL=$lt_DSYMUTIL
14440
14441 # Tool to change global to local symbols on Mac OS X.
14442 NMEDIT=$lt_NMEDIT
14443
14444 # Tool to manipulate fat objects and archives on Mac OS X.
14445 LIPO=$lt_LIPO
14446
14447 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14448 OTOOL=$lt_OTOOL
14449
14450 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14451 OTOOL64=$lt_OTOOL64
14452
14453 # Old archive suffix (normally "a").
14454 libext=$libext
14455
14456 # Shared library suffix (normally ".so").
14457 shrext_cmds=$lt_shrext_cmds
14458
14459 # The commands to extract the exported symbol list from a shared archive.
14460 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14461
14462 # Variables whose values should be saved in libtool wrapper scripts and
14463 # restored at link time.
14464 variables_saved_for_relink=$lt_variables_saved_for_relink
14465
14466 # Do we need the "lib" prefix for modules?
14467 need_lib_prefix=$need_lib_prefix
14468
14469 # Do we need a version for libraries?
14470 need_version=$need_version
14471
14472 # Library versioning type.
14473 version_type=$version_type
14474
14475 # Shared library runtime path variable.
14476 runpath_var=$runpath_var
14477
14478 # Shared library path variable.
14479 shlibpath_var=$shlibpath_var
14480
14481 # Is shlibpath searched before the hard-coded library search path?
14482 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14483
14484 # Format of library name prefix.
14485 libname_spec=$lt_libname_spec
14486
14487 # List of archive names.  First name is the real one, the rest are links.
14488 # The last name is the one that the linker finds with -lNAME
14489 library_names_spec=$lt_library_names_spec
14490
14491 # The coded name of the library, if different from the real name.
14492 soname_spec=$lt_soname_spec
14493
14494 # Command to use after installation of a shared archive.
14495 postinstall_cmds=$lt_postinstall_cmds
14496
14497 # Command to use after uninstallation of a shared archive.
14498 postuninstall_cmds=$lt_postuninstall_cmds
14499
14500 # Commands used to finish a libtool library installation in a directory.
14501 finish_cmds=$lt_finish_cmds
14502
14503 # As "finish_cmds", except a single script fragment to be evaled but
14504 # not shown.
14505 finish_eval=$lt_finish_eval
14506
14507 # Whether we should hardcode library paths into libraries.
14508 hardcode_into_libs=$hardcode_into_libs
14509
14510 # Compile-time system search path for libraries.
14511 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14512
14513 # Run-time system search path for libraries.
14514 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14515
14516 # Whether dlopen is supported.
14517 dlopen_support=$enable_dlopen
14518
14519 # Whether dlopen of programs is supported.
14520 dlopen_self=$enable_dlopen_self
14521
14522 # Whether dlopen of statically linked programs is supported.
14523 dlopen_self_static=$enable_dlopen_self_static
14524
14525 # Commands to strip libraries.
14526 old_striplib=$lt_old_striplib
14527 striplib=$lt_striplib
14528
14529
14530 # The linker used to build libraries.
14531 LD=$lt_LD
14532
14533 # Commands used to build an old-style archive.
14534 old_archive_cmds=$lt_old_archive_cmds
14535
14536 # A language specific compiler.
14537 CC=$lt_compiler
14538
14539 # Is the compiler the GNU compiler?
14540 with_gcc=$GCC
14541
14542 # Compiler flag to turn off builtin functions.
14543 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14544
14545 # How to pass a linker flag through the compiler.
14546 wl=$lt_lt_prog_compiler_wl
14547
14548 # Additional compiler flags for building library objects.
14549 pic_flag=$lt_lt_prog_compiler_pic
14550
14551 # Compiler flag to prevent dynamic linking.
14552 link_static_flag=$lt_lt_prog_compiler_static
14553
14554 # Does compiler simultaneously support -c and -o options?
14555 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14556
14557 # Whether or not to add -lc for building shared libraries.
14558 build_libtool_need_lc=$archive_cmds_need_lc
14559
14560 # Whether or not to disallow shared libs when runtime libs are static.
14561 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14562
14563 # Compiler flag to allow reflexive dlopens.
14564 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14565
14566 # Compiler flag to generate shared objects directly from archives.
14567 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14568
14569 # Whether the compiler copes with passing no objects directly.
14570 compiler_needs_object=$lt_compiler_needs_object
14571
14572 # Create an old-style archive from a shared archive.
14573 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14574
14575 # Create a temporary old-style archive to link instead of a shared archive.
14576 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14577
14578 # Commands used to build a shared archive.
14579 archive_cmds=$lt_archive_cmds
14580 archive_expsym_cmds=$lt_archive_expsym_cmds
14581
14582 # Commands used to build a loadable module if different from building
14583 # a shared archive.
14584 module_cmds=$lt_module_cmds
14585 module_expsym_cmds=$lt_module_expsym_cmds
14586
14587 # Whether we are building with GNU ld or not.
14588 with_gnu_ld=$lt_with_gnu_ld
14589
14590 # Flag that allows shared libraries with undefined symbols to be built.
14591 allow_undefined_flag=$lt_allow_undefined_flag
14592
14593 # Flag that enforces no undefined symbols.
14594 no_undefined_flag=$lt_no_undefined_flag
14595
14596 # Flag to hardcode \$libdir into a binary during linking.
14597 # This must work even if \$libdir does not exist
14598 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14599
14600 # If ld is used when linking, flag to hardcode \$libdir into a binary
14601 # during linking.  This must work even if \$libdir does not exist.
14602 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14603
14604 # Whether we need a single "-rpath" flag with a separated argument.
14605 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14606
14607 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14608 # DIR into the resulting binary.
14609 hardcode_direct=$hardcode_direct
14610
14611 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14612 # DIR into the resulting binary and the resulting library dependency is
14613 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14614 # library is relocated.
14615 hardcode_direct_absolute=$hardcode_direct_absolute
14616
14617 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14618 # into the resulting binary.
14619 hardcode_minus_L=$hardcode_minus_L
14620
14621 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14622 # into the resulting binary.
14623 hardcode_shlibpath_var=$hardcode_shlibpath_var
14624
14625 # Set to "yes" if building a shared library automatically hardcodes DIR
14626 # into the library and all subsequent libraries and executables linked
14627 # against it.
14628 hardcode_automatic=$hardcode_automatic
14629
14630 # Set to yes if linker adds runtime paths of dependent libraries
14631 # to runtime path list.
14632 inherit_rpath=$inherit_rpath
14633
14634 # Whether libtool must link a program against all its dependency libraries.
14635 link_all_deplibs=$link_all_deplibs
14636
14637 # Fix the shell variable \$srcfile for the compiler.
14638 fix_srcfile_path=$lt_fix_srcfile_path
14639
14640 # Set to "yes" if exported symbols are required.
14641 always_export_symbols=$always_export_symbols
14642
14643 # The commands to list exported symbols.
14644 export_symbols_cmds=$lt_export_symbols_cmds
14645
14646 # Symbols that should not be listed in the preloaded symbols.
14647 exclude_expsyms=$lt_exclude_expsyms
14648
14649 # Symbols that must always be exported.
14650 include_expsyms=$lt_include_expsyms
14651
14652 # Commands necessary for linking programs (against libraries) with templates.
14653 prelink_cmds=$lt_prelink_cmds
14654
14655 # Specify filename containing input files.
14656 file_list_spec=$lt_file_list_spec
14657
14658 # How to hardcode a shared library path into an executable.
14659 hardcode_action=$hardcode_action
14660
14661 # ### END LIBTOOL CONFIG
14662
14663 _LT_EOF
14664
14665   case $host_os in
14666   aix3*)
14667     cat <<\_LT_EOF >> "$cfgfile"
14668 # AIX sometimes has problems with the GCC collect2 program.  For some
14669 # reason, if we set the COLLECT_NAMES environment variable, the problems
14670 # vanish in a puff of smoke.
14671 if test "X${COLLECT_NAMES+set}" != Xset; then
14672   COLLECT_NAMES=
14673   export COLLECT_NAMES
14674 fi
14675 _LT_EOF
14676     ;;
14677   esac
14678
14679
14680 ltmain="$ac_aux_dir/ltmain.sh"
14681
14682
14683   # We use sed instead of cat because bash on DJGPP gets confused if
14684   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14685   # text mode, it properly converts lines to CR/LF.  This bash problem
14686   # is reportedly fixed, but why not run on old versions too?
14687   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14688     || (rm -f "$cfgfile"; exit 1)
14689
14690   case $xsi_shell in
14691   yes)
14692     cat << \_LT_EOF >> "$cfgfile"
14693
14694 # func_dirname file append nondir_replacement
14695 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14696 # otherwise set result to NONDIR_REPLACEMENT.
14697 func_dirname ()
14698 {
14699   case ${1} in
14700     */*) func_dirname_result="${1%/*}${2}" ;;
14701     *  ) func_dirname_result="${3}" ;;
14702   esac
14703 }
14704
14705 # func_basename file
14706 func_basename ()
14707 {
14708   func_basename_result="${1##*/}"
14709 }
14710
14711 # func_dirname_and_basename file append nondir_replacement
14712 # perform func_basename and func_dirname in a single function
14713 # call:
14714 #   dirname:  Compute the dirname of FILE.  If nonempty,
14715 #             add APPEND to the result, otherwise set result
14716 #             to NONDIR_REPLACEMENT.
14717 #             value returned in "$func_dirname_result"
14718 #   basename: Compute filename of FILE.
14719 #             value retuned in "$func_basename_result"
14720 # Implementation must be kept synchronized with func_dirname
14721 # and func_basename. For efficiency, we do not delegate to
14722 # those functions but instead duplicate the functionality here.
14723 func_dirname_and_basename ()
14724 {
14725   case ${1} in
14726     */*) func_dirname_result="${1%/*}${2}" ;;
14727     *  ) func_dirname_result="${3}" ;;
14728   esac
14729   func_basename_result="${1##*/}"
14730 }
14731
14732 # func_stripname prefix suffix name
14733 # strip PREFIX and SUFFIX off of NAME.
14734 # PREFIX and SUFFIX must not contain globbing or regex special
14735 # characters, hashes, percent signs, but SUFFIX may contain a leading
14736 # dot (in which case that matches only a dot).
14737 func_stripname ()
14738 {
14739   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14740   # positional parameters, so assign one to ordinary parameter first.
14741   func_stripname_result=${3}
14742   func_stripname_result=${func_stripname_result#"${1}"}
14743   func_stripname_result=${func_stripname_result%"${2}"}
14744 }
14745
14746 # func_opt_split
14747 func_opt_split ()
14748 {
14749   func_opt_split_opt=${1%%=*}
14750   func_opt_split_arg=${1#*=}
14751 }
14752
14753 # func_lo2o object
14754 func_lo2o ()
14755 {
14756   case ${1} in
14757     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14758     *)    func_lo2o_result=${1} ;;
14759   esac
14760 }
14761
14762 # func_xform libobj-or-source
14763 func_xform ()
14764 {
14765   func_xform_result=${1%.*}.lo
14766 }
14767
14768 # func_arith arithmetic-term...
14769 func_arith ()
14770 {
14771   func_arith_result=$(( $* ))
14772 }
14773
14774 # func_len string
14775 # STRING may not start with a hyphen.
14776 func_len ()
14777 {
14778   func_len_result=${#1}
14779 }
14780
14781 _LT_EOF
14782     ;;
14783   *) # Bourne compatible functions.
14784     cat << \_LT_EOF >> "$cfgfile"
14785
14786 # func_dirname file append nondir_replacement
14787 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14788 # otherwise set result to NONDIR_REPLACEMENT.
14789 func_dirname ()
14790 {
14791   # Extract subdirectory from the argument.
14792   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14793   if test "X$func_dirname_result" = "X${1}"; then
14794     func_dirname_result="${3}"
14795   else
14796     func_dirname_result="$func_dirname_result${2}"
14797   fi
14798 }
14799
14800 # func_basename file
14801 func_basename ()
14802 {
14803   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14804 }
14805
14806
14807 # func_stripname prefix suffix name
14808 # strip PREFIX and SUFFIX off of NAME.
14809 # PREFIX and SUFFIX must not contain globbing or regex special
14810 # characters, hashes, percent signs, but SUFFIX may contain a leading
14811 # dot (in which case that matches only a dot).
14812 # func_strip_suffix prefix name
14813 func_stripname ()
14814 {
14815   case ${2} in
14816     .*) func_stripname_result=`$ECHO "X${3}" \
14817            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14818     *)  func_stripname_result=`$ECHO "X${3}" \
14819            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14820   esac
14821 }
14822
14823 # sed scripts:
14824 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14825 my_sed_long_arg='1s/^-[^=]*=//'
14826
14827 # func_opt_split
14828 func_opt_split ()
14829 {
14830   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14831   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14832 }
14833
14834 # func_lo2o object
14835 func_lo2o ()
14836 {
14837   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14838 }
14839
14840 # func_xform libobj-or-source
14841 func_xform ()
14842 {
14843   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14844 }
14845
14846 # func_arith arithmetic-term...
14847 func_arith ()
14848 {
14849   func_arith_result=`expr "$@"`
14850 }
14851
14852 # func_len string
14853 # STRING may not start with a hyphen.
14854 func_len ()
14855 {
14856   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14857 }
14858
14859 _LT_EOF
14860 esac
14861
14862 case $lt_shell_append in
14863   yes)
14864     cat << \_LT_EOF >> "$cfgfile"
14865
14866 # func_append var value
14867 # Append VALUE to the end of shell variable VAR.
14868 func_append ()
14869 {
14870   eval "$1+=\$2"
14871 }
14872 _LT_EOF
14873     ;;
14874   *)
14875     cat << \_LT_EOF >> "$cfgfile"
14876
14877 # func_append var value
14878 # Append VALUE to the end of shell variable VAR.
14879 func_append ()
14880 {
14881   eval "$1=\$$1\$2"
14882 }
14883
14884 _LT_EOF
14885     ;;
14886   esac
14887
14888
14889   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14890     || (rm -f "$cfgfile"; exit 1)
14891
14892   mv -f "$cfgfile" "$ofile" ||
14893     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14894   chmod +x "$ofile"
14895
14896  ;;
14897
14898   esac
14899 done # for ac_tag
14900
14901
14902 { (exit 0); exit 0; }
14903 _ACEOF
14904 chmod +x $CONFIG_STATUS
14905 ac_clean_files=$ac_clean_files_save
14906
14907
14908 # configure is writing to config.log, and then calls config.status.
14909 # config.status does its own redirection, appending to config.log.
14910 # Unfortunately, on DOS this fails, as config.log is still kept open
14911 # by configure, so config.status won't be able to write to it; its
14912 # output is simply discarded.  So we exec the FD to /dev/null,
14913 # effectively closing config.log, so it can be properly (re)opened and
14914 # appended to by config.status.  When coming back to configure, we
14915 # need to make the FD available again.
14916 if test "$no_create" != yes; then
14917   ac_cs_success=:
14918   ac_config_status_args=
14919   test "$silent" = yes &&
14920     ac_config_status_args="$ac_config_status_args --quiet"
14921   exec 5>/dev/null
14922   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14923   exec 5>>config.log
14924   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14925   # would make configure fail if this is the last instruction.
14926   $ac_cs_success || { (exit 1); exit 1; }
14927 fi
14928