Print out helpful error if a realm regex can't be parsed
[freeradius.git] / libltdl / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libltdl 2.2.4.
4 #
5 # Report bugs to <bug-libtool@gnu.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$lt_ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 ECHO=${lt_ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $ECHO works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<_LT_EOF
584 $*
585 _LT_EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$lt_ECHO"; then
594   if test "X${echo_test_string+set}" != Xset; then
595     # find a string as large as possible, as long as the shell can cope with it
596     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
599          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
600       then
601         break
602       fi
603     done
604   fi
605
606   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
607      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
608      test "X$echo_testing_string" = "X$echo_test_string"; then
609     :
610   else
611     # The Solaris, AIX, and Digital Unix default echo programs unquote
612     # backslashes.  This makes it impossible to quote backslashes using
613     #   echo "$something" | sed 's/\\/\\\\/g'
614     #
615     # So, first we look for a working echo in the user's PATH.
616
617     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618     for dir in $PATH /usr/ucb; do
619       IFS="$lt_save_ifs"
620       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623          test "X$echo_testing_string" = "X$echo_test_string"; then
624         ECHO="$dir/echo"
625         break
626       fi
627     done
628     IFS="$lt_save_ifs"
629
630     if test "X$ECHO" = Xecho; then
631       # We didn't find a better echo, so look for alternatives.
632       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
633          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
634          test "X$echo_testing_string" = "X$echo_test_string"; then
635         # This shell has a builtin print -r that does the trick.
636         ECHO='print -r'
637       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
638            test "X$CONFIG_SHELL" != X/bin/ksh; then
639         # If we have ksh, try running configure again with it.
640         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641         export ORIGINAL_CONFIG_SHELL
642         CONFIG_SHELL=/bin/ksh
643         export CONFIG_SHELL
644         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645       else
646         # Try using printf.
647         ECHO='printf %s\n'
648         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
649            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
650            test "X$echo_testing_string" = "X$echo_test_string"; then
651           # Cool, printf works
652           :
653         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654              test "X$echo_testing_string" = 'X\t' &&
655              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656              test "X$echo_testing_string" = "X$echo_test_string"; then
657           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658           export CONFIG_SHELL
659           SHELL="$CONFIG_SHELL"
660           export SHELL
661           ECHO="$CONFIG_SHELL $0 --fallback-echo"
662         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663              test "X$echo_testing_string" = 'X\t' &&
664              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665              test "X$echo_testing_string" = "X$echo_test_string"; then
666           ECHO="$CONFIG_SHELL $0 --fallback-echo"
667         else
668           # maybe with a smaller string...
669           prev=:
670
671           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
673             then
674               break
675             fi
676             prev="$cmd"
677           done
678
679           if test "$prev" != 'sed 50q "$0"'; then
680             echo_test_string=`eval $prev`
681             export echo_test_string
682             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683           else
684             # Oops.  We lost completely, so just stick with echo.
685             ECHO=echo
686           fi
687         fi
688       fi
689     fi
690   fi
691 fi
692
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
695 lt_ECHO=$ECHO
696 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698 fi
699
700
701
702
703 exec 7<&0 </dev/null 6>&1
704
705 # Name of the host.
706 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
707 # so uname gets run too.
708 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
709
710 #
711 # Initializations.
712 #
713 ac_default_prefix=/usr/local
714 ac_clean_files=
715 ac_config_libobj_dir=.
716 LIBOBJS=
717 cross_compiling=no
718 subdirs=
719 MFLAGS=
720 MAKEFLAGS=
721 SHELL=${CONFIG_SHELL-/bin/sh}
722
723 # Identity of this package.
724 PACKAGE_NAME='libltdl'
725 PACKAGE_TARNAME='libltdl'
726 PACKAGE_VERSION='2.2.4'
727 PACKAGE_STRING='libltdl 2.2.4'
728 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
729
730 ac_unique_file="ltdl.c"
731 # Factoring default headers for most tests.
732 ac_includes_default="\
733 #include <stdio.h>
734 #ifdef HAVE_SYS_TYPES_H
735 # include <sys/types.h>
736 #endif
737 #ifdef HAVE_SYS_STAT_H
738 # include <sys/stat.h>
739 #endif
740 #ifdef STDC_HEADERS
741 # include <stdlib.h>
742 # include <stddef.h>
743 #else
744 # ifdef HAVE_STDLIB_H
745 #  include <stdlib.h>
746 # endif
747 #endif
748 #ifdef HAVE_STRING_H
749 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
750 #  include <memory.h>
751 # endif
752 # include <string.h>
753 #endif
754 #ifdef HAVE_STRINGS_H
755 # include <strings.h>
756 #endif
757 #ifdef HAVE_INTTYPES_H
758 # include <inttypes.h>
759 #endif
760 #ifdef HAVE_STDINT_H
761 # include <stdint.h>
762 #endif
763 #ifdef HAVE_UNISTD_H
764 # include <unistd.h>
765 #endif"
766
767 ac_subst_vars='SHELL
768 PATH_SEPARATOR
769 PACKAGE_NAME
770 PACKAGE_TARNAME
771 PACKAGE_VERSION
772 PACKAGE_STRING
773 PACKAGE_BUGREPORT
774 exec_prefix
775 prefix
776 program_transform_name
777 bindir
778 sbindir
779 libexecdir
780 datarootdir
781 datadir
782 sysconfdir
783 sharedstatedir
784 localstatedir
785 includedir
786 oldincludedir
787 docdir
788 infodir
789 htmldir
790 dvidir
791 pdfdir
792 psdir
793 libdir
794 localedir
795 mandir
796 DEFS
797 ECHO_C
798 ECHO_N
799 ECHO_T
800 LIBS
801 build_alias
802 host_alias
803 target_alias
804 INSTALL_PROGRAM
805 INSTALL_SCRIPT
806 INSTALL_DATA
807 am__isrc
808 CYGPATH_W
809 PACKAGE
810 VERSION
811 ACLOCAL
812 AUTOCONF
813 AUTOMAKE
814 AUTOHEADER
815 MAKEINFO
816 install_sh
817 STRIP
818 INSTALL_STRIP_PROGRAM
819 mkdir_p
820 AWK
821 SET_MAKE
822 am__leading_dot
823 AMTAR
824 am__tar
825 am__untar
826 AS
827 DLLTOOL
828 OBJDUMP
829 LIBTOOL
830 build
831 build_cpu
832 build_vendor
833 build_os
834 host
835 host_cpu
836 host_vendor
837 host_os
838 CC
839 CFLAGS
840 LDFLAGS
841 CPPFLAGS
842 ac_ct_CC
843 EXEEXT
844 OBJEXT
845 DEPDIR
846 am__include
847 am__quote
848 AMDEP_TRUE
849 AMDEP_FALSE
850 AMDEPBACKSLASH
851 CCDEPMODE
852 am__fastdepCC_TRUE
853 am__fastdepCC_FALSE
854 SED
855 GREP
856 EGREP
857 FGREP
858 LD
859 DUMPBIN
860 ac_ct_DUMPBIN
861 NM
862 LN_S
863 AR
864 RANLIB
865 lt_ECHO
866 DSYMUTIL
867 NMEDIT
868 LIPO
869 OTOOL
870 OTOOL64
871 CPP
872 LT_DLLOADERS
873 LIBADD_DLOPEN
874 LIBADD_SHL_LOAD
875 LIBADD_DLD_LINK
876 LT_DLPREOPEN
877 LIBADD_DL
878 sys_symbol_underscore
879 LIBOBJS
880 ARGZ_H
881 INSTALL_LTDL_TRUE
882 INSTALL_LTDL_FALSE
883 CONVENIENCE_LTDL_TRUE
884 CONVENIENCE_LTDL_FALSE
885 LT_CONFIG_H
886 LTDLOPEN
887 LTLIBOBJS'
888 ac_subst_files=''
889       ac_precious_vars='build_alias
890 host_alias
891 target_alias
892 CC
893 CFLAGS
894 LDFLAGS
895 LIBS
896 CPPFLAGS
897 CPP'
898
899
900 # Initialize some variables set by options.
901 ac_init_help=
902 ac_init_version=false
903 # The variables have the same names as the options, with
904 # dashes changed to underlines.
905 cache_file=/dev/null
906 exec_prefix=NONE
907 no_create=
908 no_recursion=
909 prefix=NONE
910 program_prefix=NONE
911 program_suffix=NONE
912 program_transform_name=s,x,x,
913 silent=
914 site=
915 srcdir=
916 verbose=
917 x_includes=NONE
918 x_libraries=NONE
919
920 # Installation directory options.
921 # These are left unexpanded so users can "make install exec_prefix=/foo"
922 # and all the variables that are supposed to be based on exec_prefix
923 # by default will actually change.
924 # Use braces instead of parens because sh, perl, etc. also accept them.
925 # (The list follows the same order as the GNU Coding Standards.)
926 bindir='${exec_prefix}/bin'
927 sbindir='${exec_prefix}/sbin'
928 libexecdir='${exec_prefix}/libexec'
929 datarootdir='${prefix}/share'
930 datadir='${datarootdir}'
931 sysconfdir='${prefix}/etc'
932 sharedstatedir='${prefix}/com'
933 localstatedir='${prefix}/var'
934 includedir='${prefix}/include'
935 oldincludedir='/usr/include'
936 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
937 infodir='${datarootdir}/info'
938 htmldir='${docdir}'
939 dvidir='${docdir}'
940 pdfdir='${docdir}'
941 psdir='${docdir}'
942 libdir='${exec_prefix}/lib'
943 localedir='${datarootdir}/locale'
944 mandir='${datarootdir}/man'
945
946 ac_prev=
947 ac_dashdash=
948 for ac_option
949 do
950   # If the previous option needs an argument, assign it.
951   if test -n "$ac_prev"; then
952     eval $ac_prev=\$ac_option
953     ac_prev=
954     continue
955   fi
956
957   case $ac_option in
958   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
959   *)    ac_optarg=yes ;;
960   esac
961
962   # Accept the important Cygnus configure options, so we can diagnose typos.
963
964   case $ac_dashdash$ac_option in
965   --)
966     ac_dashdash=yes ;;
967
968   -bindir | --bindir | --bindi | --bind | --bin | --bi)
969     ac_prev=bindir ;;
970   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
971     bindir=$ac_optarg ;;
972
973   -build | --build | --buil | --bui | --bu)
974     ac_prev=build_alias ;;
975   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
976     build_alias=$ac_optarg ;;
977
978   -cache-file | --cache-file | --cache-fil | --cache-fi \
979   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980     ac_prev=cache_file ;;
981   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983     cache_file=$ac_optarg ;;
984
985   --config-cache | -C)
986     cache_file=config.cache ;;
987
988   -datadir | --datadir | --datadi | --datad)
989     ac_prev=datadir ;;
990   -datadir=* | --datadir=* | --datadi=* | --datad=*)
991     datadir=$ac_optarg ;;
992
993   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994   | --dataroo | --dataro | --datar)
995     ac_prev=datarootdir ;;
996   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998     datarootdir=$ac_optarg ;;
999
1000   -disable-* | --disable-*)
1001     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002     # Reject names that are not valid shell variable names.
1003     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1004       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1005    { (exit 1); exit 1; }; }
1006     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1007     eval enable_$ac_feature=no ;;
1008
1009   -docdir | --docdir | --docdi | --doc | --do)
1010     ac_prev=docdir ;;
1011   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012     docdir=$ac_optarg ;;
1013
1014   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015     ac_prev=dvidir ;;
1016   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017     dvidir=$ac_optarg ;;
1018
1019   -enable-* | --enable-*)
1020     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021     # Reject names that are not valid shell variable names.
1022     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1023       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1024    { (exit 1); exit 1; }; }
1025     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1026     eval enable_$ac_feature=\$ac_optarg ;;
1027
1028   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030   | --exec | --exe | --ex)
1031     ac_prev=exec_prefix ;;
1032   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034   | --exec=* | --exe=* | --ex=*)
1035     exec_prefix=$ac_optarg ;;
1036
1037   -gas | --gas | --ga | --g)
1038     # Obsolete; use --with-gas.
1039     with_gas=yes ;;
1040
1041   -help | --help | --hel | --he | -h)
1042     ac_init_help=long ;;
1043   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044     ac_init_help=recursive ;;
1045   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046     ac_init_help=short ;;
1047
1048   -host | --host | --hos | --ho)
1049     ac_prev=host_alias ;;
1050   -host=* | --host=* | --hos=* | --ho=*)
1051     host_alias=$ac_optarg ;;
1052
1053   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054     ac_prev=htmldir ;;
1055   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056   | --ht=*)
1057     htmldir=$ac_optarg ;;
1058
1059   -includedir | --includedir | --includedi | --included | --include \
1060   | --includ | --inclu | --incl | --inc)
1061     ac_prev=includedir ;;
1062   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063   | --includ=* | --inclu=* | --incl=* | --inc=*)
1064     includedir=$ac_optarg ;;
1065
1066   -infodir | --infodir | --infodi | --infod | --info | --inf)
1067     ac_prev=infodir ;;
1068   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069     infodir=$ac_optarg ;;
1070
1071   -libdir | --libdir | --libdi | --libd)
1072     ac_prev=libdir ;;
1073   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1074     libdir=$ac_optarg ;;
1075
1076   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077   | --libexe | --libex | --libe)
1078     ac_prev=libexecdir ;;
1079   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080   | --libexe=* | --libex=* | --libe=*)
1081     libexecdir=$ac_optarg ;;
1082
1083   -localedir | --localedir | --localedi | --localed | --locale)
1084     ac_prev=localedir ;;
1085   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086     localedir=$ac_optarg ;;
1087
1088   -localstatedir | --localstatedir | --localstatedi | --localstated \
1089   | --localstate | --localstat | --localsta | --localst | --locals)
1090     ac_prev=localstatedir ;;
1091   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1092   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1093     localstatedir=$ac_optarg ;;
1094
1095   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096     ac_prev=mandir ;;
1097   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098     mandir=$ac_optarg ;;
1099
1100   -nfp | --nfp | --nf)
1101     # Obsolete; use --without-fp.
1102     with_fp=no ;;
1103
1104   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105   | --no-cr | --no-c | -n)
1106     no_create=yes ;;
1107
1108   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110     no_recursion=yes ;;
1111
1112   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114   | --oldin | --oldi | --old | --ol | --o)
1115     ac_prev=oldincludedir ;;
1116   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119     oldincludedir=$ac_optarg ;;
1120
1121   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122     ac_prev=prefix ;;
1123   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124     prefix=$ac_optarg ;;
1125
1126   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127   | --program-pre | --program-pr | --program-p)
1128     ac_prev=program_prefix ;;
1129   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131     program_prefix=$ac_optarg ;;
1132
1133   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134   | --program-suf | --program-su | --program-s)
1135     ac_prev=program_suffix ;;
1136   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138     program_suffix=$ac_optarg ;;
1139
1140   -program-transform-name | --program-transform-name \
1141   | --program-transform-nam | --program-transform-na \
1142   | --program-transform-n | --program-transform- \
1143   | --program-transform | --program-transfor \
1144   | --program-transfo | --program-transf \
1145   | --program-trans | --program-tran \
1146   | --progr-tra | --program-tr | --program-t)
1147     ac_prev=program_transform_name ;;
1148   -program-transform-name=* | --program-transform-name=* \
1149   | --program-transform-nam=* | --program-transform-na=* \
1150   | --program-transform-n=* | --program-transform-=* \
1151   | --program-transform=* | --program-transfor=* \
1152   | --program-transfo=* | --program-transf=* \
1153   | --program-trans=* | --program-tran=* \
1154   | --progr-tra=* | --program-tr=* | --program-t=*)
1155     program_transform_name=$ac_optarg ;;
1156
1157   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158     ac_prev=pdfdir ;;
1159   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160     pdfdir=$ac_optarg ;;
1161
1162   -psdir | --psdir | --psdi | --psd | --ps)
1163     ac_prev=psdir ;;
1164   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165     psdir=$ac_optarg ;;
1166
1167   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168   | -silent | --silent | --silen | --sile | --sil)
1169     silent=yes ;;
1170
1171   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172     ac_prev=sbindir ;;
1173   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174   | --sbi=* | --sb=*)
1175     sbindir=$ac_optarg ;;
1176
1177   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179   | --sharedst | --shareds | --shared | --share | --shar \
1180   | --sha | --sh)
1181     ac_prev=sharedstatedir ;;
1182   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185   | --sha=* | --sh=*)
1186     sharedstatedir=$ac_optarg ;;
1187
1188   -site | --site | --sit)
1189     ac_prev=site ;;
1190   -site=* | --site=* | --sit=*)
1191     site=$ac_optarg ;;
1192
1193   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194     ac_prev=srcdir ;;
1195   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196     srcdir=$ac_optarg ;;
1197
1198   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199   | --syscon | --sysco | --sysc | --sys | --sy)
1200     ac_prev=sysconfdir ;;
1201   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203     sysconfdir=$ac_optarg ;;
1204
1205   -target | --target | --targe | --targ | --tar | --ta | --t)
1206     ac_prev=target_alias ;;
1207   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208     target_alias=$ac_optarg ;;
1209
1210   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211     verbose=yes ;;
1212
1213   -version | --version | --versio | --versi | --vers | -V)
1214     ac_init_version=: ;;
1215
1216   -with-* | --with-*)
1217     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\$ac_optarg ;;
1224
1225   -without-* | --without-*)
1226     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227     # Reject names that are not valid shell variable names.
1228     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229       { echo "$as_me: error: invalid package name: $ac_package" >&2
1230    { (exit 1); exit 1; }; }
1231     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1232     eval with_$ac_package=no ;;
1233
1234   --x)
1235     # Obsolete; use --with-x.
1236     with_x=yes ;;
1237
1238   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239   | --x-incl | --x-inc | --x-in | --x-i)
1240     ac_prev=x_includes ;;
1241   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243     x_includes=$ac_optarg ;;
1244
1245   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247     ac_prev=x_libraries ;;
1248   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250     x_libraries=$ac_optarg ;;
1251
1252   -*) { echo "$as_me: error: unrecognized option: $ac_option
1253 Try \`$0 --help' for more information." >&2
1254    { (exit 1); exit 1; }; }
1255     ;;
1256
1257   *=*)
1258     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259     # Reject names that are not valid shell variable names.
1260     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1261       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1262    { (exit 1); exit 1; }; }
1263     eval $ac_envvar=\$ac_optarg
1264     export $ac_envvar ;;
1265
1266   *)
1267     # FIXME: should be removed in autoconf 3.0.
1268     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1272     ;;
1273
1274   esac
1275 done
1276
1277 if test -n "$ac_prev"; then
1278   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279   { echo "$as_me: error: missing argument to $ac_option" >&2
1280    { (exit 1); exit 1; }; }
1281 fi
1282
1283 # Be sure to have absolute directory names.
1284 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285                 datadir sysconfdir sharedstatedir localstatedir includedir \
1286                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287                 libdir localedir mandir
1288 do
1289   eval ac_val=\$$ac_var
1290   case $ac_val in
1291     [\\/$]* | ?:[\\/]* )  continue;;
1292     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293   esac
1294   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1295    { (exit 1); exit 1; }; }
1296 done
1297
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1301 build=$build_alias
1302 host=$host_alias
1303 target=$target_alias
1304
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x; then
1307   if test "x$build_alias" = x; then
1308     cross_compiling=maybe
1309     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1310     If a cross compiler is detected then cross compile mode will be used." >&2
1311   elif test "x$build_alias" != "x$host_alias"; then
1312     cross_compiling=yes
1313   fi
1314 fi
1315
1316 ac_tool_prefix=
1317 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318
1319 test "$silent" = yes && exec 6>/dev/null
1320
1321
1322 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1323 ac_ls_di=`ls -di .` &&
1324 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1325   { echo "$as_me: error: Working directory cannot be determined" >&2
1326    { (exit 1); exit 1; }; }
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328   { echo "$as_me: error: pwd does not report name of working directory" >&2
1329    { (exit 1); exit 1; }; }
1330
1331
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334   ac_srcdir_defaulted=yes
1335   # Try the directory containing this script, then the parent directory.
1336   ac_confdir=`$as_dirname -- "$0" ||
1337 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338          X"$0" : 'X\(//\)[^/]' \| \
1339          X"$0" : 'X\(//\)$' \| \
1340          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1341 echo X"$0" |
1342     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343             s//\1/
1344             q
1345           }
1346           /^X\(\/\/\)[^/].*/{
1347             s//\1/
1348             q
1349           }
1350           /^X\(\/\/\)$/{
1351             s//\1/
1352             q
1353           }
1354           /^X\(\/\).*/{
1355             s//\1/
1356             q
1357           }
1358           s/.*/./; q'`
1359   srcdir=$ac_confdir
1360   if test ! -r "$srcdir/$ac_unique_file"; then
1361     srcdir=..
1362   fi
1363 else
1364   ac_srcdir_defaulted=no
1365 fi
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1369    { (exit 1); exit 1; }; }
1370 fi
1371 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 ac_abs_confdir=`(
1373         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1374    { (exit 1); exit 1; }; }
1375         pwd)`
1376 # When building in place, set srcdir=.
1377 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378   srcdir=.
1379 fi
1380 # Remove unnecessary trailing slashes from srcdir.
1381 # Double slashes in file names in object file debugging info
1382 # mess up M-x gdb in Emacs.
1383 case $srcdir in
1384 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 esac
1386 for ac_var in $ac_precious_vars; do
1387   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388   eval ac_env_${ac_var}_value=\$${ac_var}
1389   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391 done
1392
1393 #
1394 # Report the --help message.
1395 #
1396 if test "$ac_init_help" = "long"; then
1397   # Omit some internal or obsolete options to make the list less imposing.
1398   # This message is too long to be a string in the A/UX 3.1 sh.
1399   cat <<_ACEOF
1400 \`configure' configures libltdl 2.2.4 to adapt to many kinds of systems.
1401
1402 Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405 VAR=VALUE.  See below for descriptions of some of the useful variables.
1406
1407 Defaults for the options are specified in brackets.
1408
1409 Configuration:
1410   -h, --help              display this help and exit
1411       --help=short        display options specific to this package
1412       --help=recursive    display the short help of all the included packages
1413   -V, --version           display version information and exit
1414   -q, --quiet, --silent   do not print \`checking...' messages
1415       --cache-file=FILE   cache test results in FILE [disabled]
1416   -C, --config-cache      alias for \`--cache-file=config.cache'
1417   -n, --no-create         do not create output files
1418       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1419
1420 Installation directories:
1421   --prefix=PREFIX         install architecture-independent files in PREFIX
1422                           [$ac_default_prefix]
1423   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1424                           [PREFIX]
1425
1426 By default, \`make install' will install all the files in
1427 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1428 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429 for instance \`--prefix=\$HOME'.
1430
1431 For better control, use the options below.
1432
1433 Fine tuning of the installation directories:
1434   --bindir=DIR           user executables [EPREFIX/bin]
1435   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1436   --libexecdir=DIR       program executables [EPREFIX/libexec]
1437   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1438   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1439   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1440   --libdir=DIR           object code libraries [EPREFIX/lib]
1441   --includedir=DIR       C header files [PREFIX/include]
1442   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1443   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1444   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1445   --infodir=DIR          info documentation [DATAROOTDIR/info]
1446   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1447   --mandir=DIR           man documentation [DATAROOTDIR/man]
1448   --docdir=DIR           documentation root [DATAROOTDIR/doc/libltdl]
1449   --htmldir=DIR          html documentation [DOCDIR]
1450   --dvidir=DIR           dvi documentation [DOCDIR]
1451   --pdfdir=DIR           pdf documentation [DOCDIR]
1452   --psdir=DIR            ps documentation [DOCDIR]
1453 _ACEOF
1454
1455   cat <<\_ACEOF
1456
1457 Program names:
1458   --program-prefix=PREFIX            prepend PREFIX to installed program names
1459   --program-suffix=SUFFIX            append SUFFIX to installed program names
1460   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1461
1462 System types:
1463   --build=BUILD     configure for building on BUILD [guessed]
1464   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1465 _ACEOF
1466 fi
1467
1468 if test -n "$ac_init_help"; then
1469   case $ac_init_help in
1470      short | recursive ) echo "Configuration of libltdl 2.2.4:";;
1471    esac
1472   cat <<\_ACEOF
1473
1474 Optional Features:
1475   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1476   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1477   --enable-shared[=PKGS]  build shared libraries [default=yes]
1478   --enable-static[=PKGS]  build static libraries [default=yes]
1479   --enable-fast-install[=PKGS]
1480                           optimize for fast installation [default=yes]
1481   --disable-dependency-tracking  speeds up one-time build
1482   --enable-dependency-tracking   do not reject slow dependency extractors
1483   --disable-libtool-lock  avoid locking (might break parallel builds)
1484   --enable-ltdl-install   install libltdl
1485
1486 Optional Packages:
1487   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1488   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1489   --with-pic              try to use only PIC/non-PIC objects [default=use
1490                           both]
1491   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1492
1493 Some influential environment variables:
1494   CC          C compiler command
1495   CFLAGS      C compiler flags
1496   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1497               nonstandard directory <lib dir>
1498   LIBS        libraries to pass to the linker, e.g. -l<library>
1499   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1500               you have headers in a nonstandard directory <include dir>
1501   CPP         C preprocessor
1502
1503 Use these variables to override the choices made by `configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1505
1506 Report bugs to <bug-libtool@gnu.org>.
1507 _ACEOF
1508 ac_status=$?
1509 fi
1510
1511 if test "$ac_init_help" = "recursive"; then
1512   # If there are subdirs, report their specific --help.
1513   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514     test -d "$ac_dir" || continue
1515     ac_builddir=.
1516
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *)
1520   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1521   # A ".." for each directory in $ac_dir_suffix.
1522   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1523   case $ac_top_builddir_sub in
1524   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526   esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1532
1533 case $srcdir in
1534   .)  # We are building in place.
1535     ac_srcdir=.
1536     ac_top_srcdir=$ac_top_builddir_sub
1537     ac_abs_top_srcdir=$ac_pwd ;;
1538   [\\/]* | ?:[\\/]* )  # Absolute name.
1539     ac_srcdir=$srcdir$ac_dir_suffix;
1540     ac_top_srcdir=$srcdir
1541     ac_abs_top_srcdir=$srcdir ;;
1542   *) # Relative name.
1543     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544     ac_top_srcdir=$ac_top_build_prefix$srcdir
1545     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549     cd "$ac_dir" || { ac_status=$?; continue; }
1550     # Check for guested configure.
1551     if test -f "$ac_srcdir/configure.gnu"; then
1552       echo &&
1553       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554     elif test -f "$ac_srcdir/configure"; then
1555       echo &&
1556       $SHELL "$ac_srcdir/configure" --help=recursive
1557     else
1558       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559     fi || ac_status=$?
1560     cd "$ac_pwd" || { ac_status=$?; break; }
1561   done
1562 fi
1563
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566   cat <<\_ACEOF
1567 libltdl configure 2.2.4
1568 generated by GNU Autoconf 2.61
1569
1570 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1571 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1572 This configure script is free software; the Free Software Foundation
1573 gives unlimited permission to copy, distribute and modify it.
1574 _ACEOF
1575   exit
1576 fi
1577 cat >config.log <<_ACEOF
1578 This file contains any messages produced by compilers while
1579 running configure, to aid debugging if configure makes a mistake.
1580
1581 It was created by libltdl $as_me 2.2.4, which was
1582 generated by GNU Autoconf 2.61.  Invocation command line was
1583
1584   $ $0 $@
1585
1586 _ACEOF
1587 exec 5>>config.log
1588 {
1589 cat <<_ASUNAME
1590 ## --------- ##
1591 ## Platform. ##
1592 ## --------- ##
1593
1594 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1595 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1596 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1597 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1598 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1599
1600 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1601 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1602
1603 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1604 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1605 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1606 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1607 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1608 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1609 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1610
1611 _ASUNAME
1612
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 for as_dir in $PATH
1615 do
1616   IFS=$as_save_IFS
1617   test -z "$as_dir" && as_dir=.
1618   echo "PATH: $as_dir"
1619 done
1620 IFS=$as_save_IFS
1621
1622 } >&5
1623
1624 cat >&5 <<_ACEOF
1625
1626
1627 ## ----------- ##
1628 ## Core tests. ##
1629 ## ----------- ##
1630
1631 _ACEOF
1632
1633
1634 # Keep a trace of the command line.
1635 # Strip out --no-create and --no-recursion so they do not pile up.
1636 # Strip out --silent because we don't want to record it for future runs.
1637 # Also quote any args containing shell meta-characters.
1638 # Make two passes to allow for proper duplicate-argument suppression.
1639 ac_configure_args=
1640 ac_configure_args0=
1641 ac_configure_args1=
1642 ac_must_keep_next=false
1643 for ac_pass in 1 2
1644 do
1645   for ac_arg
1646   do
1647     case $ac_arg in
1648     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1649     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1650     | -silent | --silent | --silen | --sile | --sil)
1651       continue ;;
1652     *\'*)
1653       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1654     esac
1655     case $ac_pass in
1656     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1657     2)
1658       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1659       if test $ac_must_keep_next = true; then
1660         ac_must_keep_next=false # Got value, back to normal.
1661       else
1662         case $ac_arg in
1663           *=* | --config-cache | -C | -disable-* | --disable-* \
1664           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1665           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1666           | -with-* | --with-* | -without-* | --without-* | --x)
1667             case "$ac_configure_args0 " in
1668               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1669             esac
1670             ;;
1671           -* ) ac_must_keep_next=true ;;
1672         esac
1673       fi
1674       ac_configure_args="$ac_configure_args '$ac_arg'"
1675       ;;
1676     esac
1677   done
1678 done
1679 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1680 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1681
1682 # When interrupted or exit'd, cleanup temporary files, and complete
1683 # config.log.  We remove comments because anyway the quotes in there
1684 # would cause problems or look ugly.
1685 # WARNING: Use '\'' to represent an apostrophe within the trap.
1686 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1687 trap 'exit_status=$?
1688   # Save into config.log some information that might help in debugging.
1689   {
1690     echo
1691
1692     cat <<\_ASBOX
1693 ## ---------------- ##
1694 ## Cache variables. ##
1695 ## ---------------- ##
1696 _ASBOX
1697     echo
1698     # The following way of writing the cache mishandles newlines in values,
1699 (
1700   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1701     eval ac_val=\$$ac_var
1702     case $ac_val in #(
1703     *${as_nl}*)
1704       case $ac_var in #(
1705       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1706 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1707       esac
1708       case $ac_var in #(
1709       _ | IFS | as_nl) ;; #(
1710       *) $as_unset $ac_var ;;
1711       esac ;;
1712     esac
1713   done
1714   (set) 2>&1 |
1715     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1716     *${as_nl}ac_space=\ *)
1717       sed -n \
1718         "s/'\''/'\''\\\\'\'''\''/g;
1719           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1720       ;; #(
1721     *)
1722       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1723       ;;
1724     esac |
1725     sort
1726 )
1727     echo
1728
1729     cat <<\_ASBOX
1730 ## ----------------- ##
1731 ## Output variables. ##
1732 ## ----------------- ##
1733 _ASBOX
1734     echo
1735     for ac_var in $ac_subst_vars
1736     do
1737       eval ac_val=\$$ac_var
1738       case $ac_val in
1739       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1740       esac
1741       echo "$ac_var='\''$ac_val'\''"
1742     done | sort
1743     echo
1744
1745     if test -n "$ac_subst_files"; then
1746       cat <<\_ASBOX
1747 ## ------------------- ##
1748 ## File substitutions. ##
1749 ## ------------------- ##
1750 _ASBOX
1751       echo
1752       for ac_var in $ac_subst_files
1753       do
1754         eval ac_val=\$$ac_var
1755         case $ac_val in
1756         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1757         esac
1758         echo "$ac_var='\''$ac_val'\''"
1759       done | sort
1760       echo
1761     fi
1762
1763     if test -s confdefs.h; then
1764       cat <<\_ASBOX
1765 ## ----------- ##
1766 ## confdefs.h. ##
1767 ## ----------- ##
1768 _ASBOX
1769       echo
1770       cat confdefs.h
1771       echo
1772     fi
1773     test "$ac_signal" != 0 &&
1774       echo "$as_me: caught signal $ac_signal"
1775     echo "$as_me: exit $exit_status"
1776   } >&5
1777   rm -f core *.core core.conftest.* &&
1778     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1779     exit $exit_status
1780 ' 0
1781 for ac_signal in 1 2 13 15; do
1782   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1783 done
1784 ac_signal=0
1785
1786 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1787 rm -f -r conftest* confdefs.h
1788
1789 # Predefined preprocessor variables.
1790
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_NAME "$PACKAGE_NAME"
1793 _ACEOF
1794
1795
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1798 _ACEOF
1799
1800
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1803 _ACEOF
1804
1805
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_STRING "$PACKAGE_STRING"
1808 _ACEOF
1809
1810
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1813 _ACEOF
1814
1815
1816 # Let the site file select an alternate cache file if it wants to.
1817 # Prefer explicitly selected file to automatically selected ones.
1818 if test -n "$CONFIG_SITE"; then
1819   set x "$CONFIG_SITE"
1820 elif test "x$prefix" != xNONE; then
1821   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1822 else
1823   set x "$ac_default_prefix/share/config.site" \
1824         "$ac_default_prefix/etc/config.site"
1825 fi
1826 shift
1827 for ac_site_file
1828 do
1829   if test -r "$ac_site_file"; then
1830     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1831 echo "$as_me: loading site script $ac_site_file" >&6;}
1832     sed 's/^/| /' "$ac_site_file" >&5
1833     . "$ac_site_file"
1834   fi
1835 done
1836
1837 if test -r "$cache_file"; then
1838   # Some versions of bash will fail to source /dev/null (special
1839   # files actually), so we avoid doing that.
1840   if test -f "$cache_file"; then
1841     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1842 echo "$as_me: loading cache $cache_file" >&6;}
1843     case $cache_file in
1844       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1845       *)                      . "./$cache_file";;
1846     esac
1847   fi
1848 else
1849   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1850 echo "$as_me: creating cache $cache_file" >&6;}
1851   >$cache_file
1852 fi
1853
1854 # Check that the precious variables saved in the cache have kept the same
1855 # value.
1856 ac_cache_corrupted=false
1857 for ac_var in $ac_precious_vars; do
1858   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1859   eval ac_new_set=\$ac_env_${ac_var}_set
1860   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1861   eval ac_new_val=\$ac_env_${ac_var}_value
1862   case $ac_old_set,$ac_new_set in
1863     set,)
1864       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1865 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1866       ac_cache_corrupted=: ;;
1867     ,set)
1868       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1869 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1870       ac_cache_corrupted=: ;;
1871     ,);;
1872     *)
1873       if test "x$ac_old_val" != "x$ac_new_val"; then
1874         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1875 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1876         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1877 echo "$as_me:   former value:  $ac_old_val" >&2;}
1878         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1879 echo "$as_me:   current value: $ac_new_val" >&2;}
1880         ac_cache_corrupted=:
1881       fi;;
1882   esac
1883   # Pass precious variables to config.status.
1884   if test "$ac_new_set" = set; then
1885     case $ac_new_val in
1886     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1887     *) ac_arg=$ac_var=$ac_new_val ;;
1888     esac
1889     case " $ac_configure_args " in
1890       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1891       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1892     esac
1893   fi
1894 done
1895 if $ac_cache_corrupted; then
1896   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1897 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1898   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1899 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1900    { (exit 1); exit 1; }; }
1901 fi
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927 ac_ext=c
1928 ac_cpp='$CPP $CPPFLAGS'
1929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932
1933
1934 ac_config_headers="$ac_config_headers config.h:config-h.in"
1935
1936
1937 ac_aux_dir=
1938 for ac_dir in config "$srcdir"/config; do
1939   if test -f "$ac_dir/install-sh"; then
1940     ac_aux_dir=$ac_dir
1941     ac_install_sh="$ac_aux_dir/install-sh -c"
1942     break
1943   elif test -f "$ac_dir/install.sh"; then
1944     ac_aux_dir=$ac_dir
1945     ac_install_sh="$ac_aux_dir/install.sh -c"
1946     break
1947   elif test -f "$ac_dir/shtool"; then
1948     ac_aux_dir=$ac_dir
1949     ac_install_sh="$ac_aux_dir/shtool install -c"
1950     break
1951   fi
1952 done
1953 if test -z "$ac_aux_dir"; then
1954   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1955 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1956    { (exit 1); exit 1; }; }
1957 fi
1958
1959 # These three variables are undocumented and unsupported,
1960 # and are intended to be withdrawn in a future Autoconf release.
1961 # They can cause serious problems if a builder's source tree is in a directory
1962 # whose full name contains unusual characters.
1963 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1964 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1965 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1966
1967
1968
1969
1970
1971
1972
1973
1974  # I am me!
1975
1976
1977 ## ------------------------ ##
1978 ## Automake Initialisation. ##
1979 ## ------------------------ ##
1980
1981 am__api_version='1.10'
1982
1983 # Find a good install program.  We prefer a C program (faster),
1984 # so one script is as good as another.  But avoid the broken or
1985 # incompatible versions:
1986 # SysV /etc/install, /usr/sbin/install
1987 # SunOS /usr/etc/install
1988 # IRIX /sbin/install
1989 # AIX /bin/install
1990 # AmigaOS /C/install, which installs bootblocks on floppy discs
1991 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1992 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1993 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1994 # OS/2's system install, which has a completely different semantic
1995 # ./install, which can be erroneously created by make from ./install.sh.
1996 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1997 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1998 if test -z "$INSTALL"; then
1999 if test "${ac_cv_path_install+set}" = set; then
2000   echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2004 do
2005   IFS=$as_save_IFS
2006   test -z "$as_dir" && as_dir=.
2007   # Account for people who put trailing slashes in PATH elements.
2008 case $as_dir/ in
2009   ./ | .// | /cC/* | \
2010   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2011   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2012   /usr/ucb/* ) ;;
2013   *)
2014     # OSF1 and SCO ODT 3.0 have their own names for install.
2015     # Don't use installbsd from OSF since it installs stuff as root
2016     # by default.
2017     for ac_prog in ginstall scoinst install; do
2018       for ac_exec_ext in '' $ac_executable_extensions; do
2019         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2020           if test $ac_prog = install &&
2021             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2022             # AIX install.  It has an incompatible calling convention.
2023             :
2024           elif test $ac_prog = install &&
2025             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2026             # program-specific install script used by HP pwplus--don't use.
2027             :
2028           else
2029             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2030             break 3
2031           fi
2032         fi
2033       done
2034     done
2035     ;;
2036 esac
2037 done
2038 IFS=$as_save_IFS
2039
2040
2041 fi
2042   if test "${ac_cv_path_install+set}" = set; then
2043     INSTALL=$ac_cv_path_install
2044   else
2045     # As a last resort, use the slow shell script.  Don't cache a
2046     # value for INSTALL within a source directory, because that will
2047     # break other packages using the cache if that directory is
2048     # removed, or if the value is a relative name.
2049     INSTALL=$ac_install_sh
2050   fi
2051 fi
2052 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2053 echo "${ECHO_T}$INSTALL" >&6; }
2054
2055 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2056 # It thinks the first close brace ends the variable substitution.
2057 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2058
2059 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2060
2061 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2062
2063 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2064 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2065 # Just in case
2066 sleep 1
2067 echo timestamp > conftest.file
2068 # Do `set' in a subshell so we don't clobber the current shell's
2069 # arguments.  Must try -L first in case configure is actually a
2070 # symlink; some systems play weird games with the mod time of symlinks
2071 # (eg FreeBSD returns the mod time of the symlink's containing
2072 # directory).
2073 if (
2074    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2075    if test "$*" = "X"; then
2076       # -L didn't work.
2077       set X `ls -t $srcdir/configure conftest.file`
2078    fi
2079    rm -f conftest.file
2080    if test "$*" != "X $srcdir/configure conftest.file" \
2081       && test "$*" != "X conftest.file $srcdir/configure"; then
2082
2083       # If neither matched, then we have a broken ls.  This can happen
2084       # if, for instance, CONFIG_SHELL is bash and it inherits a
2085       # broken ls alias from the environment.  This has actually
2086       # happened.  Such a system could not be considered "sane".
2087       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2088 alias in your environment" >&5
2089 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2090 alias in your environment" >&2;}
2091    { (exit 1); exit 1; }; }
2092    fi
2093
2094    test "$2" = conftest.file
2095    )
2096 then
2097    # Ok.
2098    :
2099 else
2100    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2101 Check your system clock" >&5
2102 echo "$as_me: error: newly created file is older than distributed files!
2103 Check your system clock" >&2;}
2104    { (exit 1); exit 1; }; }
2105 fi
2106 { echo "$as_me:$LINENO: result: yes" >&5
2107 echo "${ECHO_T}yes" >&6; }
2108 test "$program_prefix" != NONE &&
2109   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2110 # Use a double $ so make ignores it.
2111 test "$program_suffix" != NONE &&
2112   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2113 # Double any \ or $.  echo might interpret backslashes.
2114 # By default was `s,x,x', remove it if useless.
2115 cat <<\_ACEOF >conftest.sed
2116 s/[\\$]/&&/g;s/;s,x,x,$//
2117 _ACEOF
2118 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2119 rm -f conftest.sed
2120
2121 # expand $ac_aux_dir to an absolute path
2122 am_aux_dir=`cd $ac_aux_dir && pwd`
2123
2124 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2125 # Use eval to expand $SHELL
2126 if eval "$MISSING --run true"; then
2127   am_missing_run="$MISSING --run "
2128 else
2129   am_missing_run=
2130   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2131 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2132 fi
2133
2134 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2135 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2136 if test -z "$MKDIR_P"; then
2137   if test "${ac_cv_path_mkdir+set}" = set; then
2138   echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2142 do
2143   IFS=$as_save_IFS
2144   test -z "$as_dir" && as_dir=.
2145   for ac_prog in mkdir gmkdir; do
2146          for ac_exec_ext in '' $ac_executable_extensions; do
2147            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2148            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2149              'mkdir (GNU coreutils) '* | \
2150              'mkdir (coreutils) '* | \
2151              'mkdir (fileutils) '4.1*)
2152                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2153                break 3;;
2154            esac
2155          done
2156        done
2157 done
2158 IFS=$as_save_IFS
2159
2160 fi
2161
2162   if test "${ac_cv_path_mkdir+set}" = set; then
2163     MKDIR_P="$ac_cv_path_mkdir -p"
2164   else
2165     # As a last resort, use the slow shell script.  Don't cache a
2166     # value for MKDIR_P within a source directory, because that will
2167     # break other packages using the cache if that directory is
2168     # removed, or if the value is a relative name.
2169     test -d ./--version && rmdir ./--version
2170     MKDIR_P="$ac_install_sh -d"
2171   fi
2172 fi
2173 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2174 echo "${ECHO_T}$MKDIR_P" >&6; }
2175
2176 mkdir_p="$MKDIR_P"
2177 case $mkdir_p in
2178   [\\/$]* | ?:[\\/]*) ;;
2179   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2180 esac
2181
2182 for ac_prog in gawk mawk nawk awk
2183 do
2184   # Extract the first word of "$ac_prog", so it can be a program name with args.
2185 set dummy $ac_prog; ac_word=$2
2186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2188 if test "${ac_cv_prog_AWK+set}" = set; then
2189   echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191   if test -n "$AWK"; then
2192   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2193 else
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2196 do
2197   IFS=$as_save_IFS
2198   test -z "$as_dir" && as_dir=.
2199   for ac_exec_ext in '' $ac_executable_extensions; do
2200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2201     ac_cv_prog_AWK="$ac_prog"
2202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203     break 2
2204   fi
2205 done
2206 done
2207 IFS=$as_save_IFS
2208
2209 fi
2210 fi
2211 AWK=$ac_cv_prog_AWK
2212 if test -n "$AWK"; then
2213   { echo "$as_me:$LINENO: result: $AWK" >&5
2214 echo "${ECHO_T}$AWK" >&6; }
2215 else
2216   { echo "$as_me:$LINENO: result: no" >&5
2217 echo "${ECHO_T}no" >&6; }
2218 fi
2219
2220
2221   test -n "$AWK" && break
2222 done
2223
2224 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2225 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2226 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2227 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2228   echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230   cat >conftest.make <<\_ACEOF
2231 SHELL = /bin/sh
2232 all:
2233         @echo '@@@%%%=$(MAKE)=@@@%%%'
2234 _ACEOF
2235 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2236 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2237   *@@@%%%=?*=@@@%%%*)
2238     eval ac_cv_prog_make_${ac_make}_set=yes;;
2239   *)
2240     eval ac_cv_prog_make_${ac_make}_set=no;;
2241 esac
2242 rm -f conftest.make
2243 fi
2244 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2245   { echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6; }
2247   SET_MAKE=
2248 else
2249   { echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6; }
2251   SET_MAKE="MAKE=${MAKE-make}"
2252 fi
2253
2254 rm -rf .tst 2>/dev/null
2255 mkdir .tst 2>/dev/null
2256 if test -d .tst; then
2257   am__leading_dot=.
2258 else
2259   am__leading_dot=_
2260 fi
2261 rmdir .tst 2>/dev/null
2262
2263 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2264   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2265   # is not polluted with repeated "-I."
2266   am__isrc=' -I$(srcdir)'
2267   # test to see if srcdir already configured
2268   if test -f $srcdir/config.status; then
2269     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2270 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2271    { (exit 1); exit 1; }; }
2272   fi
2273 fi
2274
2275 # test whether we have cygpath
2276 if test -z "$CYGPATH_W"; then
2277   if (cygpath --version) >/dev/null 2>/dev/null; then
2278     CYGPATH_W='cygpath -w'
2279   else
2280     CYGPATH_W=echo
2281   fi
2282 fi
2283
2284
2285 # Define the identity of the package.
2286  PACKAGE='libltdl'
2287  VERSION='2.2.4'
2288
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE "$PACKAGE"
2292 _ACEOF
2293
2294
2295 cat >>confdefs.h <<_ACEOF
2296 #define VERSION "$VERSION"
2297 _ACEOF
2298
2299 # Some tools Automake needs.
2300
2301 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2302
2303
2304 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2305
2306
2307 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2308
2309
2310 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2311
2312
2313 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2314
2315 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2316
2317 # Installed binaries are usually stripped using `strip' when the user
2318 # run `make install-strip'.  However `strip' might not be the right
2319 # tool to use in cross-compilation environments, therefore Automake
2320 # will honor the `STRIP' environment variable to overrule this program.
2321 if test "$cross_compiling" != no; then
2322   if test -n "$ac_tool_prefix"; then
2323   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2324 set dummy ${ac_tool_prefix}strip; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_STRIP+set}" = set; then
2328   echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330   if test -n "$STRIP"; then
2331   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336   IFS=$as_save_IFS
2337   test -z "$as_dir" && as_dir=.
2338   for ac_exec_ext in '' $ac_executable_extensions; do
2339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342     break 2
2343   fi
2344 done
2345 done
2346 IFS=$as_save_IFS
2347
2348 fi
2349 fi
2350 STRIP=$ac_cv_prog_STRIP
2351 if test -n "$STRIP"; then
2352   { echo "$as_me:$LINENO: result: $STRIP" >&5
2353 echo "${ECHO_T}$STRIP" >&6; }
2354 else
2355   { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2357 fi
2358
2359
2360 fi
2361 if test -z "$ac_cv_prog_STRIP"; then
2362   ac_ct_STRIP=$STRIP
2363   # Extract the first word of "strip", so it can be a program name with args.
2364 set dummy strip; ac_word=$2
2365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2367 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370   if test -n "$ac_ct_STRIP"; then
2371   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2375 do
2376   IFS=$as_save_IFS
2377   test -z "$as_dir" && as_dir=.
2378   for ac_exec_ext in '' $ac_executable_extensions; do
2379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2380     ac_cv_prog_ac_ct_STRIP="strip"
2381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382     break 2
2383   fi
2384 done
2385 done
2386 IFS=$as_save_IFS
2387
2388 fi
2389 fi
2390 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2391 if test -n "$ac_ct_STRIP"; then
2392   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2393 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2394 else
2395   { echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6; }
2397 fi
2398
2399   if test "x$ac_ct_STRIP" = x; then
2400     STRIP=":"
2401   else
2402     case $cross_compiling:$ac_tool_warned in
2403 yes:)
2404 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2405 whose name does not start with the host triplet.  If you think this
2406 configuration is useful to you, please write to autoconf@gnu.org." >&5
2407 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2408 whose name does not start with the host triplet.  If you think this
2409 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2410 ac_tool_warned=yes ;;
2411 esac
2412     STRIP=$ac_ct_STRIP
2413   fi
2414 else
2415   STRIP="$ac_cv_prog_STRIP"
2416 fi
2417
2418 fi
2419 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2420
2421 # We need awk for the "check" target.  The system "awk" is bad on
2422 # some platforms.
2423 # Always define AMTAR for backward compatibility.
2424
2425 AMTAR=${AMTAR-"${am_missing_run}tar"}
2426
2427 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2428
2429
2430
2431
2432
2433
2434
2435 ## ------------------------------- ##
2436 ## Libtool specific configuration. ##
2437 ## ------------------------------- ##
2438 pkgdatadir='${datadir}'"/${PACKAGE}"
2439
2440
2441 ## ----------------------- ##
2442 ## Libtool initialisation. ##
2443 ## ----------------------- ##
2444 case `pwd` in
2445   *\ * | *\     *)
2446     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2447 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2448 esac
2449
2450
2451
2452 macro_version='2.2.4'
2453 macro_revision='1.2976'
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467 ltmain="$ac_aux_dir/ltmain.sh"
2468
2469 # Make sure we can run config.sub.
2470 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2471   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2472 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2473    { (exit 1); exit 1; }; }
2474
2475 { echo "$as_me:$LINENO: checking build system type" >&5
2476 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2477 if test "${ac_cv_build+set}" = set; then
2478   echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480   ac_build_alias=$build_alias
2481 test "x$ac_build_alias" = x &&
2482   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2483 test "x$ac_build_alias" = x &&
2484   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2485 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2486    { (exit 1); exit 1; }; }
2487 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2488   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2489 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2490    { (exit 1); exit 1; }; }
2491
2492 fi
2493 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2494 echo "${ECHO_T}$ac_cv_build" >&6; }
2495 case $ac_cv_build in
2496 *-*-*) ;;
2497 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2498 echo "$as_me: error: invalid value of canonical build" >&2;}
2499    { (exit 1); exit 1; }; };;
2500 esac
2501 build=$ac_cv_build
2502 ac_save_IFS=$IFS; IFS='-'
2503 set x $ac_cv_build
2504 shift
2505 build_cpu=$1
2506 build_vendor=$2
2507 shift; shift
2508 # Remember, the first character of IFS is used to create $*,
2509 # except with old shells:
2510 build_os=$*
2511 IFS=$ac_save_IFS
2512 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2513
2514
2515 { echo "$as_me:$LINENO: checking host system type" >&5
2516 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2517 if test "${ac_cv_host+set}" = set; then
2518   echo $ECHO_N "(cached) $ECHO_C" >&6
2519 else
2520   if test "x$host_alias" = x; then
2521   ac_cv_host=$ac_cv_build
2522 else
2523   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2524     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2525 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2526    { (exit 1); exit 1; }; }
2527 fi
2528
2529 fi
2530 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2531 echo "${ECHO_T}$ac_cv_host" >&6; }
2532 case $ac_cv_host in
2533 *-*-*) ;;
2534 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2535 echo "$as_me: error: invalid value of canonical host" >&2;}
2536    { (exit 1); exit 1; }; };;
2537 esac
2538 host=$ac_cv_host
2539 ac_save_IFS=$IFS; IFS='-'
2540 set x $ac_cv_host
2541 shift
2542 host_cpu=$1
2543 host_vendor=$2
2544 shift; shift
2545 # Remember, the first character of IFS is used to create $*,
2546 # except with old shells:
2547 host_os=$*
2548 IFS=$ac_save_IFS
2549 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2550
2551
2552 DEPDIR="${am__leading_dot}deps"
2553
2554 ac_config_commands="$ac_config_commands depfiles"
2555
2556
2557 am_make=${MAKE-make}
2558 cat > confinc << 'END'
2559 am__doit:
2560         @echo done
2561 .PHONY: am__doit
2562 END
2563 # If we don't find an include directive, just comment out the code.
2564 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2565 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2566 am__include="#"
2567 am__quote=
2568 _am_result=none
2569 # First try GNU make style include.
2570 echo "include confinc" > confmf
2571 # We grep out `Entering directory' and `Leaving directory'
2572 # messages which can occur if `w' ends up in MAKEFLAGS.
2573 # In particular we don't look at `^make:' because GNU make might
2574 # be invoked under some other name (usually "gmake"), in which
2575 # case it prints its new name instead of `make'.
2576 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2577    am__include=include
2578    am__quote=
2579    _am_result=GNU
2580 fi
2581 # Now try BSD make style include.
2582 if test "$am__include" = "#"; then
2583    echo '.include "confinc"' > confmf
2584    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2585       am__include=.include
2586       am__quote="\""
2587       _am_result=BSD
2588    fi
2589 fi
2590
2591
2592 { echo "$as_me:$LINENO: result: $_am_result" >&5
2593 echo "${ECHO_T}$_am_result" >&6; }
2594 rm -f confinc confmf
2595
2596 # Check whether --enable-dependency-tracking was given.
2597 if test "${enable_dependency_tracking+set}" = set; then
2598   enableval=$enable_dependency_tracking;
2599 fi
2600
2601 if test "x$enable_dependency_tracking" != xno; then
2602   am_depcomp="$ac_aux_dir/depcomp"
2603   AMDEPBACKSLASH='\'
2604 fi
2605  if test "x$enable_dependency_tracking" != xno; then
2606   AMDEP_TRUE=
2607   AMDEP_FALSE='#'
2608 else
2609   AMDEP_TRUE='#'
2610   AMDEP_FALSE=
2611 fi
2612
2613
2614 ac_ext=c
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2619 if test -n "$ac_tool_prefix"; then
2620   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2621 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2624 if test "${ac_cv_prog_CC+set}" = set; then
2625   echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627   if test -n "$CC"; then
2628   ac_cv_prog_CC="$CC" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2632 do
2633   IFS=$as_save_IFS
2634   test -z "$as_dir" && as_dir=.
2635   for ac_exec_ext in '' $ac_executable_extensions; do
2636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639     break 2
2640   fi
2641 done
2642 done
2643 IFS=$as_save_IFS
2644
2645 fi
2646 fi
2647 CC=$ac_cv_prog_CC
2648 if test -n "$CC"; then
2649   { echo "$as_me:$LINENO: result: $CC" >&5
2650 echo "${ECHO_T}$CC" >&6; }
2651 else
2652   { echo "$as_me:$LINENO: result: no" >&5
2653 echo "${ECHO_T}no" >&6; }
2654 fi
2655
2656
2657 fi
2658 if test -z "$ac_cv_prog_CC"; then
2659   ac_ct_CC=$CC
2660   # Extract the first word of "gcc", so it can be a program name with args.
2661 set dummy gcc; ac_word=$2
2662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2665   echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667   if test -n "$ac_ct_CC"; then
2668   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2672 do
2673   IFS=$as_save_IFS
2674   test -z "$as_dir" && as_dir=.
2675   for ac_exec_ext in '' $ac_executable_extensions; do
2676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677     ac_cv_prog_ac_ct_CC="gcc"
2678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679     break 2
2680   fi
2681 done
2682 done
2683 IFS=$as_save_IFS
2684
2685 fi
2686 fi
2687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2688 if test -n "$ac_ct_CC"; then
2689   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2690 echo "${ECHO_T}$ac_ct_CC" >&6; }
2691 else
2692   { echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6; }
2694 fi
2695
2696   if test "x$ac_ct_CC" = x; then
2697     CC=""
2698   else
2699     case $cross_compiling:$ac_tool_warned in
2700 yes:)
2701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2702 whose name does not start with the host triplet.  If you think this
2703 configuration is useful to you, please write to autoconf@gnu.org." >&5
2704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2705 whose name does not start with the host triplet.  If you think this
2706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2707 ac_tool_warned=yes ;;
2708 esac
2709     CC=$ac_ct_CC
2710   fi
2711 else
2712   CC="$ac_cv_prog_CC"
2713 fi
2714
2715 if test -z "$CC"; then
2716           if test -n "$ac_tool_prefix"; then
2717     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2718 set dummy ${ac_tool_prefix}cc; ac_word=$2
2719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2721 if test "${ac_cv_prog_CC+set}" = set; then
2722   echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724   if test -n "$CC"; then
2725   ac_cv_prog_CC="$CC" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730   IFS=$as_save_IFS
2731   test -z "$as_dir" && as_dir=.
2732   for ac_exec_ext in '' $ac_executable_extensions; do
2733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734     ac_cv_prog_CC="${ac_tool_prefix}cc"
2735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736     break 2
2737   fi
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 CC=$ac_cv_prog_CC
2745 if test -n "$CC"; then
2746   { echo "$as_me:$LINENO: result: $CC" >&5
2747 echo "${ECHO_T}$CC" >&6; }
2748 else
2749   { echo "$as_me:$LINENO: result: no" >&5
2750 echo "${ECHO_T}no" >&6; }
2751 fi
2752
2753
2754   fi
2755 fi
2756 if test -z "$CC"; then
2757   # Extract the first word of "cc", so it can be a program name with args.
2758 set dummy cc; ac_word=$2
2759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2761 if test "${ac_cv_prog_CC+set}" = set; then
2762   echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764   if test -n "$CC"; then
2765   ac_cv_prog_CC="$CC" # Let the user override the test.
2766 else
2767   ac_prog_rejected=no
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771   IFS=$as_save_IFS
2772   test -z "$as_dir" && as_dir=.
2773   for ac_exec_ext in '' $ac_executable_extensions; do
2774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2776        ac_prog_rejected=yes
2777        continue
2778      fi
2779     ac_cv_prog_CC="cc"
2780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781     break 2
2782   fi
2783 done
2784 done
2785 IFS=$as_save_IFS
2786
2787 if test $ac_prog_rejected = yes; then
2788   # We found a bogon in the path, so make sure we never use it.
2789   set dummy $ac_cv_prog_CC
2790   shift
2791   if test $# != 0; then
2792     # We chose a different compiler from the bogus one.
2793     # However, it has the same basename, so the bogon will be chosen
2794     # first if we set CC to just the basename; use the full file name.
2795     shift
2796     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2797   fi
2798 fi
2799 fi
2800 fi
2801 CC=$ac_cv_prog_CC
2802 if test -n "$CC"; then
2803   { echo "$as_me:$LINENO: result: $CC" >&5
2804 echo "${ECHO_T}$CC" >&6; }
2805 else
2806   { echo "$as_me:$LINENO: result: no" >&5
2807 echo "${ECHO_T}no" >&6; }
2808 fi
2809
2810
2811 fi
2812 if test -z "$CC"; then
2813   if test -n "$ac_tool_prefix"; then
2814   for ac_prog in cl.exe
2815   do
2816     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2820 if test "${ac_cv_prog_CC+set}" = set; then
2821   echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823   if test -n "$CC"; then
2824   ac_cv_prog_CC="$CC" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829   IFS=$as_save_IFS
2830   test -z "$as_dir" && as_dir=.
2831   for ac_exec_ext in '' $ac_executable_extensions; do
2832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2833     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835     break 2
2836   fi
2837 done
2838 done
2839 IFS=$as_save_IFS
2840
2841 fi
2842 fi
2843 CC=$ac_cv_prog_CC
2844 if test -n "$CC"; then
2845   { echo "$as_me:$LINENO: result: $CC" >&5
2846 echo "${ECHO_T}$CC" >&6; }
2847 else
2848   { echo "$as_me:$LINENO: result: no" >&5
2849 echo "${ECHO_T}no" >&6; }
2850 fi
2851
2852
2853     test -n "$CC" && break
2854   done
2855 fi
2856 if test -z "$CC"; then
2857   ac_ct_CC=$CC
2858   for ac_prog in cl.exe
2859 do
2860   # Extract the first word of "$ac_prog", so it can be a program name with args.
2861 set dummy $ac_prog; ac_word=$2
2862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2865   echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867   if test -n "$ac_ct_CC"; then
2868   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873   IFS=$as_save_IFS
2874   test -z "$as_dir" && as_dir=.
2875   for ac_exec_ext in '' $ac_executable_extensions; do
2876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877     ac_cv_prog_ac_ct_CC="$ac_prog"
2878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879     break 2
2880   fi
2881 done
2882 done
2883 IFS=$as_save_IFS
2884
2885 fi
2886 fi
2887 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2888 if test -n "$ac_ct_CC"; then
2889   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2890 echo "${ECHO_T}$ac_ct_CC" >&6; }
2891 else
2892   { echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6; }
2894 fi
2895
2896
2897   test -n "$ac_ct_CC" && break
2898 done
2899
2900   if test "x$ac_ct_CC" = x; then
2901     CC=""
2902   else
2903     case $cross_compiling:$ac_tool_warned in
2904 yes:)
2905 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2906 whose name does not start with the host triplet.  If you think this
2907 configuration is useful to you, please write to autoconf@gnu.org." >&5
2908 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2909 whose name does not start with the host triplet.  If you think this
2910 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2911 ac_tool_warned=yes ;;
2912 esac
2913     CC=$ac_ct_CC
2914   fi
2915 fi
2916
2917 fi
2918
2919
2920 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2921 See \`config.log' for more details." >&5
2922 echo "$as_me: error: no acceptable C compiler found in \$PATH
2923 See \`config.log' for more details." >&2;}
2924    { (exit 1); exit 1; }; }
2925
2926 # Provide some information about the compiler.
2927 echo "$as_me:$LINENO: checking for C compiler version" >&5
2928 ac_compiler=`set X $ac_compile; echo $2`
2929 { (ac_try="$ac_compiler --version >&5"
2930 case "(($ac_try" in
2931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932   *) ac_try_echo=$ac_try;;
2933 esac
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935   (eval "$ac_compiler --version >&5") 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); }
2939 { (ac_try="$ac_compiler -v >&5"
2940 case "(($ac_try" in
2941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942   *) ac_try_echo=$ac_try;;
2943 esac
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945   (eval "$ac_compiler -v >&5") 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); }
2949 { (ac_try="$ac_compiler -V >&5"
2950 case "(($ac_try" in
2951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952   *) ac_try_echo=$ac_try;;
2953 esac
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955   (eval "$ac_compiler -V >&5") 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }
2959
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h.  */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h.  */
2966
2967 int
2968 main ()
2969 {
2970
2971   ;
2972   return 0;
2973 }
2974 _ACEOF
2975 ac_clean_files_save=$ac_clean_files
2976 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2977 # Try to create an executable without -o first, disregard a.out.
2978 # It will help us diagnose broken compilers, and finding out an intuition
2979 # of exeext.
2980 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2981 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2982 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2983 #
2984 # List of possible output files, starting from the most likely.
2985 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2986 # only as a last resort.  b.out is created by i960 compilers.
2987 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2988 #
2989 # The IRIX 6 linker writes into existing files which may not be
2990 # executable, retaining their permissions.  Remove them first so a
2991 # subsequent execution test works.
2992 ac_rmfiles=
2993 for ac_file in $ac_files
2994 do
2995   case $ac_file in
2996     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2997     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2998   esac
2999 done
3000 rm -f $ac_rmfiles
3001
3002 if { (ac_try="$ac_link_default"
3003 case "(($ac_try" in
3004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005   *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008   (eval "$ac_link_default") 2>&5
3009   ac_status=$?
3010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011   (exit $ac_status); }; then
3012   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3013 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3014 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3015 # so that the user can short-circuit this test for compilers unknown to
3016 # Autoconf.
3017 for ac_file in $ac_files ''
3018 do
3019   test -f "$ac_file" || continue
3020   case $ac_file in
3021     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3022         ;;
3023     [ab].out )
3024         # We found the default executable, but exeext='' is most
3025         # certainly right.
3026         break;;
3027     *.* )
3028         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3029         then :; else
3030            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3031         fi
3032         # We set ac_cv_exeext here because the later test for it is not
3033         # safe: cross compilers may not add the suffix if given an `-o'
3034         # argument, so we may need to know it at that point already.
3035         # Even if this section looks crufty: it has the advantage of
3036         # actually working.
3037         break;;
3038     * )
3039         break;;
3040   esac
3041 done
3042 test "$ac_cv_exeext" = no && ac_cv_exeext=
3043
3044 else
3045   ac_file=''
3046 fi
3047
3048 { echo "$as_me:$LINENO: result: $ac_file" >&5
3049 echo "${ECHO_T}$ac_file" >&6; }
3050 if test -z "$ac_file"; then
3051   echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3053
3054 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3055 See \`config.log' for more details." >&5
3056 echo "$as_me: error: C compiler cannot create executables
3057 See \`config.log' for more details." >&2;}
3058    { (exit 77); exit 77; }; }
3059 fi
3060
3061 ac_exeext=$ac_cv_exeext
3062
3063 # Check that the compiler produces executables we can run.  If not, either
3064 # the compiler is broken, or we cross compile.
3065 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3066 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3067 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3068 # If not cross compiling, check that we can run a simple program.
3069 if test "$cross_compiling" != yes; then
3070   if { ac_try='./$ac_file'
3071   { (case "(($ac_try" in
3072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073   *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076   (eval "$ac_try") 2>&5
3077   ac_status=$?
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); }; }; then
3080     cross_compiling=no
3081   else
3082     if test "$cross_compiling" = maybe; then
3083         cross_compiling=yes
3084     else
3085         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3086 If you meant to cross compile, use \`--host'.
3087 See \`config.log' for more details." >&5
3088 echo "$as_me: error: cannot run C compiled programs.
3089 If you meant to cross compile, use \`--host'.
3090 See \`config.log' for more details." >&2;}
3091    { (exit 1); exit 1; }; }
3092     fi
3093   fi
3094 fi
3095 { echo "$as_me:$LINENO: result: yes" >&5
3096 echo "${ECHO_T}yes" >&6; }
3097
3098 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3099 ac_clean_files=$ac_clean_files_save
3100 # Check that the compiler produces executables we can run.  If not, either
3101 # the compiler is broken, or we cross compile.
3102 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3103 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3104 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3105 echo "${ECHO_T}$cross_compiling" >&6; }
3106
3107 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3108 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3109 if { (ac_try="$ac_link"
3110 case "(($ac_try" in
3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112   *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115   (eval "$ac_link") 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }; then
3119   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3120 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3121 # work properly (i.e., refer to `conftest.exe'), while it won't with
3122 # `rm'.
3123 for ac_file in conftest.exe conftest conftest.*; do
3124   test -f "$ac_file" || continue
3125   case $ac_file in
3126     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3127     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3128           break;;
3129     * ) break;;
3130   esac
3131 done
3132 else
3133   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3134 See \`config.log' for more details." >&5
3135 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3136 See \`config.log' for more details." >&2;}
3137    { (exit 1); exit 1; }; }
3138 fi
3139
3140 rm -f conftest$ac_cv_exeext
3141 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3142 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3143
3144 rm -f conftest.$ac_ext
3145 EXEEXT=$ac_cv_exeext
3146 ac_exeext=$EXEEXT
3147 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3148 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3149 if test "${ac_cv_objext+set}" = set; then
3150   echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152   cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h.  */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h.  */
3158
3159 int
3160 main ()
3161 {
3162
3163   ;
3164   return 0;
3165 }
3166 _ACEOF
3167 rm -f conftest.o conftest.obj
3168 if { (ac_try="$ac_compile"
3169 case "(($ac_try" in
3170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171   *) ac_try_echo=$ac_try;;
3172 esac
3173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174   (eval "$ac_compile") 2>&5
3175   ac_status=$?
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); }; then
3178   for ac_file in conftest.o conftest.obj conftest.*; do
3179   test -f "$ac_file" || continue;
3180   case $ac_file in
3181     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3182     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3183        break;;
3184   esac
3185 done
3186 else
3187   echo "$as_me: failed program was:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3189
3190 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3191 See \`config.log' for more details." >&5
3192 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3193 See \`config.log' for more details." >&2;}
3194    { (exit 1); exit 1; }; }
3195 fi
3196
3197 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3198 fi
3199 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3200 echo "${ECHO_T}$ac_cv_objext" >&6; }
3201 OBJEXT=$ac_cv_objext
3202 ac_objext=$OBJEXT
3203 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3204 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3205 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208   cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h.  */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h.  */
3214
3215 int
3216 main ()
3217 {
3218 #ifndef __GNUC__
3219        choke me
3220 #endif
3221
3222   ;
3223   return 0;
3224 }
3225 _ACEOF
3226 rm -f conftest.$ac_objext
3227 if { (ac_try="$ac_compile"
3228 case "(($ac_try" in
3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230   *) ac_try_echo=$ac_try;;
3231 esac
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233   (eval "$ac_compile") 2>conftest.er1
3234   ac_status=$?
3235   grep -v '^ *+' conftest.er1 >conftest.err
3236   rm -f conftest.er1
3237   cat conftest.err >&5
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); } && {
3240          test -z "$ac_c_werror_flag" ||
3241          test ! -s conftest.err
3242        } && test -s conftest.$ac_objext; then
3243   ac_compiler_gnu=yes
3244 else
3245   echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248         ac_compiler_gnu=no
3249 fi
3250
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3253
3254 fi
3255 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3256 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3257 GCC=`test $ac_compiler_gnu = yes && echo yes`
3258 ac_test_CFLAGS=${CFLAGS+set}
3259 ac_save_CFLAGS=$CFLAGS
3260 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3261 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3262 if test "${ac_cv_prog_cc_g+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   ac_save_c_werror_flag=$ac_c_werror_flag
3266    ac_c_werror_flag=yes
3267    ac_cv_prog_cc_g=no
3268    CFLAGS="-g"
3269    cat >conftest.$ac_ext <<_ACEOF
3270 /* confdefs.h.  */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h.  */
3275
3276 int
3277 main ()
3278 {
3279
3280   ;
3281   return 0;
3282 }
3283 _ACEOF
3284 rm -f conftest.$ac_objext
3285 if { (ac_try="$ac_compile"
3286 case "(($ac_try" in
3287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288   *) ac_try_echo=$ac_try;;
3289 esac
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291   (eval "$ac_compile") 2>conftest.er1
3292   ac_status=$?
3293   grep -v '^ *+' conftest.er1 >conftest.err
3294   rm -f conftest.er1
3295   cat conftest.err >&5
3296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297   (exit $ac_status); } && {
3298          test -z "$ac_c_werror_flag" ||
3299          test ! -s conftest.err
3300        } && test -s conftest.$ac_objext; then
3301   ac_cv_prog_cc_g=yes
3302 else
3303   echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306         CFLAGS=""
3307       cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h.  */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h.  */
3313
3314 int
3315 main ()
3316 {
3317
3318   ;
3319   return 0;
3320 }
3321 _ACEOF
3322 rm -f conftest.$ac_objext
3323 if { (ac_try="$ac_compile"
3324 case "(($ac_try" in
3325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326   *) ac_try_echo=$ac_try;;
3327 esac
3328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329   (eval "$ac_compile") 2>conftest.er1
3330   ac_status=$?
3331   grep -v '^ *+' conftest.er1 >conftest.err
3332   rm -f conftest.er1
3333   cat conftest.err >&5
3334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335   (exit $ac_status); } && {
3336          test -z "$ac_c_werror_flag" ||
3337          test ! -s conftest.err
3338        } && test -s conftest.$ac_objext; then
3339   :
3340 else
3341   echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3343
3344         ac_c_werror_flag=$ac_save_c_werror_flag
3345          CFLAGS="-g"
3346          cat >conftest.$ac_ext <<_ACEOF
3347 /* confdefs.h.  */
3348 _ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h.  */
3352
3353 int
3354 main ()
3355 {
3356
3357   ;
3358   return 0;
3359 }
3360 _ACEOF
3361 rm -f conftest.$ac_objext
3362 if { (ac_try="$ac_compile"
3363 case "(($ac_try" in
3364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365   *) ac_try_echo=$ac_try;;
3366 esac
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368   (eval "$ac_compile") 2>conftest.er1
3369   ac_status=$?
3370   grep -v '^ *+' conftest.er1 >conftest.err
3371   rm -f conftest.er1
3372   cat conftest.err >&5
3373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374   (exit $ac_status); } && {
3375          test -z "$ac_c_werror_flag" ||
3376          test ! -s conftest.err
3377        } && test -s conftest.$ac_objext; then
3378   ac_cv_prog_cc_g=yes
3379 else
3380   echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383
3384 fi
3385
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387 fi
3388
3389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390 fi
3391
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393    ac_c_werror_flag=$ac_save_c_werror_flag
3394 fi
3395 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3396 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3397 if test "$ac_test_CFLAGS" = set; then
3398   CFLAGS=$ac_save_CFLAGS
3399 elif test $ac_cv_prog_cc_g = yes; then
3400   if test "$GCC" = yes; then
3401     CFLAGS="-g -O2"
3402   else
3403     CFLAGS="-g"
3404   fi
3405 else
3406   if test "$GCC" = yes; then
3407     CFLAGS="-O2"
3408   else
3409     CFLAGS=
3410   fi
3411 fi
3412 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3413 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3414 if test "${ac_cv_prog_cc_c89+set}" = set; then
3415   echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417   ac_cv_prog_cc_c89=no
3418 ac_save_CC=$CC
3419 cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h.  */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h.  */
3425 #include <stdarg.h>
3426 #include <stdio.h>
3427 #include <sys/types.h>
3428 #include <sys/stat.h>
3429 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3430 struct buf { int x; };
3431 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3432 static char *e (p, i)
3433      char **p;
3434      int i;
3435 {
3436   return p[i];
3437 }
3438 static char *f (char * (*g) (char **, int), char **p, ...)
3439 {
3440   char *s;
3441   va_list v;
3442   va_start (v,p);
3443   s = g (p, va_arg (v,int));
3444   va_end (v);
3445   return s;
3446 }
3447
3448 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3449    function prototypes and stuff, but not '\xHH' hex character constants.
3450    These don't provoke an error unfortunately, instead are silently treated
3451    as 'x'.  The following induces an error, until -std is added to get
3452    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3453    array size at least.  It's necessary to write '\x00'==0 to get something
3454    that's true only with -std.  */
3455 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3456
3457 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3458    inside strings and character constants.  */
3459 #define FOO(x) 'x'
3460 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3461
3462 int test (int i, double x);
3463 struct s1 {int (*f) (int a);};
3464 struct s2 {int (*f) (double a);};
3465 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3466 int argc;
3467 char **argv;
3468 int
3469 main ()
3470 {
3471 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3472   ;
3473   return 0;
3474 }
3475 _ACEOF
3476 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3477         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3478 do
3479   CC="$ac_save_CC $ac_arg"
3480   rm -f conftest.$ac_objext
3481 if { (ac_try="$ac_compile"
3482 case "(($ac_try" in
3483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484   *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487   (eval "$ac_compile") 2>conftest.er1
3488   ac_status=$?
3489   grep -v '^ *+' conftest.er1 >conftest.err
3490   rm -f conftest.er1
3491   cat conftest.err >&5
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); } && {
3494          test -z "$ac_c_werror_flag" ||
3495          test ! -s conftest.err
3496        } && test -s conftest.$ac_objext; then
3497   ac_cv_prog_cc_c89=$ac_arg
3498 else
3499   echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502
3503 fi
3504
3505 rm -f core conftest.err conftest.$ac_objext
3506   test "x$ac_cv_prog_cc_c89" != "xno" && break
3507 done
3508 rm -f conftest.$ac_ext
3509 CC=$ac_save_CC
3510
3511 fi
3512 # AC_CACHE_VAL
3513 case "x$ac_cv_prog_cc_c89" in
3514   x)
3515     { echo "$as_me:$LINENO: result: none needed" >&5
3516 echo "${ECHO_T}none needed" >&6; } ;;
3517   xno)
3518     { echo "$as_me:$LINENO: result: unsupported" >&5
3519 echo "${ECHO_T}unsupported" >&6; } ;;
3520   *)
3521     CC="$CC $ac_cv_prog_cc_c89"
3522     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3523 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3524 esac
3525
3526
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532
3533 depcc="$CC"   am_compiler_list=
3534
3535 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3536 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3537 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3538   echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3541   # We make a subdir and do the tests there.  Otherwise we can end up
3542   # making bogus files that we don't know about and never remove.  For
3543   # instance it was reported that on HP-UX the gcc test will end up
3544   # making a dummy file named `D' -- because `-MD' means `put the output
3545   # in D'.
3546   mkdir conftest.dir
3547   # Copy depcomp to subdir because otherwise we won't find it if we're
3548   # using a relative directory.
3549   cp "$am_depcomp" conftest.dir
3550   cd conftest.dir
3551   # We will build objects and dependencies in a subdirectory because
3552   # it helps to detect inapplicable dependency modes.  For instance
3553   # both Tru64's cc and ICC support -MD to output dependencies as a
3554   # side effect of compilation, but ICC will put the dependencies in
3555   # the current directory while Tru64 will put them in the object
3556   # directory.
3557   mkdir sub
3558
3559   am_cv_CC_dependencies_compiler_type=none
3560   if test "$am_compiler_list" = ""; then
3561      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3562   fi
3563   for depmode in $am_compiler_list; do
3564     # Setup a source with many dependencies, because some compilers
3565     # like to wrap large dependency lists on column 80 (with \), and
3566     # we should not choose a depcomp mode which is confused by this.
3567     #
3568     # We need to recreate these files for each test, as the compiler may
3569     # overwrite some of them when testing with obscure command lines.
3570     # This happens at least with the AIX C compiler.
3571     : > sub/conftest.c
3572     for i in 1 2 3 4 5 6; do
3573       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3574       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3575       # Solaris 8's {/usr,}/bin/sh.
3576       touch sub/conftst$i.h
3577     done
3578     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3579
3580     case $depmode in
3581     nosideeffect)
3582       # after this tag, mechanisms are not by side-effect, so they'll
3583       # only be used when explicitly requested
3584       if test "x$enable_dependency_tracking" = xyes; then
3585         continue
3586       else
3587         break
3588       fi
3589       ;;
3590     none) break ;;
3591     esac
3592     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3593     # mode.  It turns out that the SunPro C++ compiler does not properly
3594     # handle `-M -o', and we need to detect this.
3595     if depmode=$depmode \
3596        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3597        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3598        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3599          >/dev/null 2>conftest.err &&
3600        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3601        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3602        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3603        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3604       # icc doesn't choke on unknown options, it will just issue warnings
3605       # or remarks (even with -Werror).  So we grep stderr for any message
3606       # that says an option was ignored or not supported.
3607       # When given -MP, icc 7.0 and 7.1 complain thusly:
3608       #   icc: Command line warning: ignoring option '-M'; no argument required
3609       # The diagnosis changed in icc 8.0:
3610       #   icc: Command line remark: option '-MP' not supported
3611       if (grep 'ignoring option' conftest.err ||
3612           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3613         am_cv_CC_dependencies_compiler_type=$depmode
3614         break
3615       fi
3616     fi
3617   done
3618
3619   cd ..
3620   rm -rf conftest.dir
3621 else
3622   am_cv_CC_dependencies_compiler_type=none
3623 fi
3624
3625 fi
3626 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3627 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3628 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3629
3630  if
3631   test "x$enable_dependency_tracking" != xno \
3632   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3633   am__fastdepCC_TRUE=
3634   am__fastdepCC_FALSE='#'
3635 else
3636   am__fastdepCC_TRUE='#'
3637   am__fastdepCC_FALSE=
3638 fi
3639
3640
3641 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3642 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3643 if test "${ac_cv_path_SED+set}" = set; then
3644   echo $ECHO_N "(cached) $ECHO_C" >&6
3645 else
3646             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3647      for ac_i in 1 2 3 4 5 6 7; do
3648        ac_script="$ac_script$as_nl$ac_script"
3649      done
3650      echo "$ac_script" | sed 99q >conftest.sed
3651      $as_unset ac_script || ac_script=
3652      # Extract the first word of "sed gsed" to use in msg output
3653 if test -z "$SED"; then
3654 set dummy sed gsed; ac_prog_name=$2
3655 if test "${ac_cv_path_SED+set}" = set; then
3656   echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658   ac_path_SED_found=false
3659 # Loop through the user's path and test for each of PROGNAME-LIST
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3662 do
3663   IFS=$as_save_IFS
3664   test -z "$as_dir" && as_dir=.
3665   for ac_prog in sed gsed; do
3666   for ac_exec_ext in '' $ac_executable_extensions; do
3667     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3668     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3669     # Check for GNU ac_path_SED and select it if it is found.
3670   # Check for GNU $ac_path_SED
3671 case `"$ac_path_SED" --version 2>&1` in
3672 *GNU*)
3673   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3674 *)
3675   ac_count=0
3676   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3677   while :
3678   do
3679     cat "conftest.in" "conftest.in" >"conftest.tmp"
3680     mv "conftest.tmp" "conftest.in"
3681     cp "conftest.in" "conftest.nl"
3682     echo '' >> "conftest.nl"
3683     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3684     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3685     ac_count=`expr $ac_count + 1`
3686     if test $ac_count -gt ${ac_path_SED_max-0}; then
3687       # Best one so far, save it but keep looking for a better one
3688       ac_cv_path_SED="$ac_path_SED"
3689       ac_path_SED_max=$ac_count
3690     fi
3691     # 10*(2^10) chars as input seems more than enough
3692     test $ac_count -gt 10 && break
3693   done
3694   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3695 esac
3696
3697
3698     $ac_path_SED_found && break 3
3699   done
3700 done
3701
3702 done
3703 IFS=$as_save_IFS
3704
3705
3706 fi
3707
3708 SED="$ac_cv_path_SED"
3709 if test -z "$SED"; then
3710   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3711 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3712    { (exit 1); exit 1; }; }
3713 fi
3714
3715 else
3716   ac_cv_path_SED=$SED
3717 fi
3718
3719 fi
3720 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3721 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3722  SED="$ac_cv_path_SED"
3723   rm -f conftest.sed
3724
3725 test -z "$SED" && SED=sed
3726 Xsed="$SED -e 1s/^X//"
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3739 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3740 if test "${ac_cv_path_GREP+set}" = set; then
3741   echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743   # Extract the first word of "grep ggrep" to use in msg output
3744 if test -z "$GREP"; then
3745 set dummy grep ggrep; ac_prog_name=$2
3746 if test "${ac_cv_path_GREP+set}" = set; then
3747   echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749   ac_path_GREP_found=false
3750 # Loop through the user's path and test for each of PROGNAME-LIST
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3753 do
3754   IFS=$as_save_IFS
3755   test -z "$as_dir" && as_dir=.
3756   for ac_prog in grep ggrep; do
3757   for ac_exec_ext in '' $ac_executable_extensions; do
3758     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3759     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3760     # Check for GNU ac_path_GREP and select it if it is found.
3761   # Check for GNU $ac_path_GREP
3762 case `"$ac_path_GREP" --version 2>&1` in
3763 *GNU*)
3764   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3765 *)
3766   ac_count=0
3767   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3768   while :
3769   do
3770     cat "conftest.in" "conftest.in" >"conftest.tmp"
3771     mv "conftest.tmp" "conftest.in"
3772     cp "conftest.in" "conftest.nl"
3773     echo 'GREP' >> "conftest.nl"
3774     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3775     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3776     ac_count=`expr $ac_count + 1`
3777     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3778       # Best one so far, save it but keep looking for a better one
3779       ac_cv_path_GREP="$ac_path_GREP"
3780       ac_path_GREP_max=$ac_count
3781     fi
3782     # 10*(2^10) chars as input seems more than enough
3783     test $ac_count -gt 10 && break
3784   done
3785   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3786 esac
3787
3788
3789     $ac_path_GREP_found && break 3
3790   done
3791 done
3792
3793 done
3794 IFS=$as_save_IFS
3795
3796
3797 fi
3798
3799 GREP="$ac_cv_path_GREP"
3800 if test -z "$GREP"; then
3801   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3802 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3803    { (exit 1); exit 1; }; }
3804 fi
3805
3806 else
3807   ac_cv_path_GREP=$GREP
3808 fi
3809
3810
3811 fi
3812 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3813 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3814  GREP="$ac_cv_path_GREP"
3815
3816
3817 { echo "$as_me:$LINENO: checking for egrep" >&5
3818 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3819 if test "${ac_cv_path_EGREP+set}" = set; then
3820   echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3823    then ac_cv_path_EGREP="$GREP -E"
3824    else
3825      # Extract the first word of "egrep" to use in msg output
3826 if test -z "$EGREP"; then
3827 set dummy egrep; ac_prog_name=$2
3828 if test "${ac_cv_path_EGREP+set}" = set; then
3829   echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831   ac_path_EGREP_found=false
3832 # Loop through the user's path and test for each of PROGNAME-LIST
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3835 do
3836   IFS=$as_save_IFS
3837   test -z "$as_dir" && as_dir=.
3838   for ac_prog in egrep; do
3839   for ac_exec_ext in '' $ac_executable_extensions; do
3840     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3841     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3842     # Check for GNU ac_path_EGREP and select it if it is found.
3843   # Check for GNU $ac_path_EGREP
3844 case `"$ac_path_EGREP" --version 2>&1` in
3845 *GNU*)
3846   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3847 *)
3848   ac_count=0
3849   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3850   while :
3851   do
3852     cat "conftest.in" "conftest.in" >"conftest.tmp"
3853     mv "conftest.tmp" "conftest.in"
3854     cp "conftest.in" "conftest.nl"
3855     echo 'EGREP' >> "conftest.nl"
3856     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3857     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3858     ac_count=`expr $ac_count + 1`
3859     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3860       # Best one so far, save it but keep looking for a better one
3861       ac_cv_path_EGREP="$ac_path_EGREP"
3862       ac_path_EGREP_max=$ac_count
3863     fi
3864     # 10*(2^10) chars as input seems more than enough
3865     test $ac_count -gt 10 && break
3866   done
3867   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3868 esac
3869
3870
3871     $ac_path_EGREP_found && break 3
3872   done
3873 done
3874
3875 done
3876 IFS=$as_save_IFS
3877
3878
3879 fi
3880
3881 EGREP="$ac_cv_path_EGREP"
3882 if test -z "$EGREP"; then
3883   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3884 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3885    { (exit 1); exit 1; }; }
3886 fi
3887
3888 else
3889   ac_cv_path_EGREP=$EGREP
3890 fi
3891
3892
3893    fi
3894 fi
3895 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3896 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3897  EGREP="$ac_cv_path_EGREP"
3898
3899
3900 { echo "$as_me:$LINENO: checking for fgrep" >&5
3901 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3902 if test "${ac_cv_path_FGREP+set}" = set; then
3903   echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3906    then ac_cv_path_FGREP="$GREP -F"
3907    else
3908      # Extract the first word of "fgrep" to use in msg output
3909 if test -z "$FGREP"; then
3910 set dummy fgrep; ac_prog_name=$2
3911 if test "${ac_cv_path_FGREP+set}" = set; then
3912   echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914   ac_path_FGREP_found=false
3915 # Loop through the user's path and test for each of PROGNAME-LIST
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3918 do
3919   IFS=$as_save_IFS
3920   test -z "$as_dir" && as_dir=.
3921   for ac_prog in fgrep; do
3922   for ac_exec_ext in '' $ac_executable_extensions; do
3923     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3924     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3925     # Check for GNU ac_path_FGREP and select it if it is found.
3926   # Check for GNU $ac_path_FGREP
3927 case `"$ac_path_FGREP" --version 2>&1` in
3928 *GNU*)
3929   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3930 *)
3931   ac_count=0
3932   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3933   while :
3934   do
3935     cat "conftest.in" "conftest.in" >"conftest.tmp"
3936     mv "conftest.tmp" "conftest.in"
3937     cp "conftest.in" "conftest.nl"
3938     echo 'FGREP' >> "conftest.nl"
3939     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3940     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3941     ac_count=`expr $ac_count + 1`
3942     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3943       # Best one so far, save it but keep looking for a better one
3944       ac_cv_path_FGREP="$ac_path_FGREP"
3945       ac_path_FGREP_max=$ac_count
3946     fi
3947     # 10*(2^10) chars as input seems more than enough
3948     test $ac_count -gt 10 && break
3949   done
3950   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3951 esac
3952
3953
3954     $ac_path_FGREP_found && break 3
3955   done
3956 done
3957
3958 done
3959 IFS=$as_save_IFS
3960
3961
3962 fi
3963
3964 FGREP="$ac_cv_path_FGREP"
3965 if test -z "$FGREP"; then
3966   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3967 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3968    { (exit 1); exit 1; }; }
3969 fi
3970
3971 else
3972   ac_cv_path_FGREP=$FGREP
3973 fi
3974
3975
3976    fi
3977 fi
3978 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3979 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
3980  FGREP="$ac_cv_path_FGREP"
3981
3982
3983 test -z "$GREP" && GREP=grep
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003 # Check whether --with-gnu-ld was given.
4004 if test "${with_gnu_ld+set}" = set; then
4005   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4006 else
4007   with_gnu_ld=no
4008 fi
4009
4010 ac_prog=ld
4011 if test "$GCC" = yes; then
4012   # Check if gcc -print-prog-name=ld gives a path.
4013   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4014 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4015   case $host in
4016   *-*-mingw*)
4017     # gcc leaves a trailing carriage return which upsets mingw
4018     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4019   *)
4020     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4021   esac
4022   case $ac_prog in
4023     # Accept absolute paths.
4024     [\\/]* | ?:[\\/]*)
4025       re_direlt='/[^/][^/]*/\.\./'
4026       # Canonicalize the pathname of ld
4027       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4028       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4029         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4030       done
4031       test -z "$LD" && LD="$ac_prog"
4032       ;;
4033   "")
4034     # If it fails, then pretend we aren't using GCC.
4035     ac_prog=ld
4036     ;;
4037   *)
4038     # If it is relative, then search for the first ld in PATH.
4039     with_gnu_ld=unknown
4040     ;;
4041   esac
4042 elif test "$with_gnu_ld" = yes; then
4043   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4044 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4045 else
4046   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4047 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4048 fi
4049 if test "${lt_cv_path_LD+set}" = set; then
4050   echo $ECHO_N "(cached) $ECHO_C" >&6
4051 else
4052   if test -z "$LD"; then
4053   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4054   for ac_dir in $PATH; do
4055     IFS="$lt_save_ifs"
4056     test -z "$ac_dir" && ac_dir=.
4057     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4058       lt_cv_path_LD="$ac_dir/$ac_prog"
4059       # Check to see if the program is GNU ld.  I'd rather use --version,
4060       # but apparently some variants of GNU ld only accept -v.
4061       # Break only if it was the GNU/non-GNU ld that we prefer.
4062       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4063       *GNU* | *'with BFD'*)
4064         test "$with_gnu_ld" != no && break
4065         ;;
4066       *)
4067         test "$with_gnu_ld" != yes && break
4068         ;;
4069       esac
4070     fi
4071   done
4072   IFS="$lt_save_ifs"
4073 else
4074   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4075 fi
4076 fi
4077
4078 LD="$lt_cv_path_LD"
4079 if test -n "$LD"; then
4080   { echo "$as_me:$LINENO: result: $LD" >&5
4081 echo "${ECHO_T}$LD" >&6; }
4082 else
4083   { echo "$as_me:$LINENO: result: no" >&5
4084 echo "${ECHO_T}no" >&6; }
4085 fi
4086 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4087 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4088    { (exit 1); exit 1; }; }
4089 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4090 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4091 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4092   echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4095 case `$LD -v 2>&1 </dev/null` in
4096 *GNU* | *'with BFD'*)
4097   lt_cv_prog_gnu_ld=yes
4098   ;;
4099 *)
4100   lt_cv_prog_gnu_ld=no
4101   ;;
4102 esac
4103 fi
4104 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4105 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4106 with_gnu_ld=$lt_cv_prog_gnu_ld
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4117 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4118 if test "${lt_cv_path_NM+set}" = set; then
4119   echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121   if test -n "$NM"; then
4122   # Let the user override the test.
4123   lt_cv_path_NM="$NM"
4124 else
4125   lt_nm_to_check="${ac_tool_prefix}nm"
4126   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4127     lt_nm_to_check="$lt_nm_to_check nm"
4128   fi
4129   for lt_tmp_nm in $lt_nm_to_check; do
4130     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4131     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4132       IFS="$lt_save_ifs"
4133       test -z "$ac_dir" && ac_dir=.
4134       tmp_nm="$ac_dir/$lt_tmp_nm"
4135       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4136         # Check to see if the nm accepts a BSD-compat flag.
4137         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4138         #   nm: unknown option "B" ignored
4139         # Tru64's nm complains that /dev/null is an invalid object file
4140         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4141         */dev/null* | *'Invalid file or object type'*)
4142           lt_cv_path_NM="$tmp_nm -B"
4143           break
4144           ;;
4145         *)
4146           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4147           */dev/null*)
4148             lt_cv_path_NM="$tmp_nm -p"
4149             break
4150             ;;
4151           *)
4152             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4153             continue # so that we can try to find one that supports BSD flags
4154             ;;
4155           esac
4156           ;;
4157         esac
4158       fi
4159     done
4160     IFS="$lt_save_ifs"
4161   done
4162   : ${lt_cv_path_NM=no}
4163 fi
4164 fi
4165 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4166 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4167 if test "$lt_cv_path_NM" != "no"; then
4168   NM="$lt_cv_path_NM"
4169 else
4170   # Didn't find any BSD compatible name lister, look for dumpbin.
4171   if test -n "$ac_tool_prefix"; then
4172   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4173   do
4174     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4178 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4179   echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181   if test -n "$DUMPBIN"; then
4182   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4186 do
4187   IFS=$as_save_IFS
4188   test -z "$as_dir" && as_dir=.
4189   for ac_exec_ext in '' $ac_executable_extensions; do
4190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193     break 2
4194   fi
4195 done
4196 done
4197 IFS=$as_save_IFS
4198
4199 fi
4200 fi
4201 DUMPBIN=$ac_cv_prog_DUMPBIN
4202 if test -n "$DUMPBIN"; then
4203   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4204 echo "${ECHO_T}$DUMPBIN" >&6; }
4205 else
4206   { echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6; }
4208 fi
4209
4210
4211     test -n "$DUMPBIN" && break
4212   done
4213 fi
4214 if test -z "$DUMPBIN"; then
4215   ac_ct_DUMPBIN=$DUMPBIN
4216   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4217 do
4218   # Extract the first word of "$ac_prog", so it can be a program name with args.
4219 set dummy $ac_prog; ac_word=$2
4220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4222 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4223   echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225   if test -n "$ac_ct_DUMPBIN"; then
4226   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231   IFS=$as_save_IFS
4232   test -z "$as_dir" && as_dir=.
4233   for ac_exec_ext in '' $ac_executable_extensions; do
4234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237     break 2
4238   fi
4239 done
4240 done
4241 IFS=$as_save_IFS
4242
4243 fi
4244 fi
4245 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4246 if test -n "$ac_ct_DUMPBIN"; then
4247   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4248 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4249 else
4250   { echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6; }
4252 fi
4253
4254
4255   test -n "$ac_ct_DUMPBIN" && break
4256 done
4257
4258   if test "x$ac_ct_DUMPBIN" = x; then
4259     DUMPBIN=":"
4260   else
4261     case $cross_compiling:$ac_tool_warned in
4262 yes:)
4263 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4264 whose name does not start with the host triplet.  If you think this
4265 configuration is useful to you, please write to autoconf@gnu.org." >&5
4266 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4267 whose name does not start with the host triplet.  If you think this
4268 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4269 ac_tool_warned=yes ;;
4270 esac
4271     DUMPBIN=$ac_ct_DUMPBIN
4272   fi
4273 fi
4274
4275
4276   if test "$DUMPBIN" != ":"; then
4277     NM="$DUMPBIN"
4278   fi
4279 fi
4280 test -z "$NM" && NM=nm
4281
4282
4283
4284
4285
4286
4287 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4288 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4289 if test "${lt_cv_nm_interface+set}" = set; then
4290   echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292   lt_cv_nm_interface="BSD nm"
4293   echo "int some_variable = 0;" > conftest.$ac_ext
4294   (eval echo "\"\$as_me:4294: $ac_compile\"" >&5)
4295   (eval "$ac_compile" 2>conftest.err)
4296   cat conftest.err >&5
4297   (eval echo "\"\$as_me:4297: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4298   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4299   cat conftest.err >&5
4300   (eval echo "\"\$as_me:4300: output\"" >&5)
4301   cat conftest.out >&5
4302   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4303     lt_cv_nm_interface="MS dumpbin"
4304   fi
4305   rm -f conftest*
4306 fi
4307 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4308 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4309
4310 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4311 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4312 LN_S=$as_ln_s
4313 if test "$LN_S" = "ln -s"; then
4314   { echo "$as_me:$LINENO: result: yes" >&5
4315 echo "${ECHO_T}yes" >&6; }
4316 else
4317   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4318 echo "${ECHO_T}no, using $LN_S" >&6; }
4319 fi
4320
4321 # find the maximum length of command line arguments
4322 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4323 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4324 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327     i=0
4328   teststring="ABCD"
4329
4330   case $build_os in
4331   msdosdjgpp*)
4332     # On DJGPP, this test can blow up pretty badly due to problems in libc
4333     # (any single argument exceeding 2000 bytes causes a buffer overrun
4334     # during glob expansion).  Even if it were fixed, the result of this
4335     # check would be larger than it should be.
4336     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4337     ;;
4338
4339   gnu*)
4340     # Under GNU Hurd, this test is not required because there is
4341     # no limit to the length of command line arguments.
4342     # Libtool will interpret -1 as no limit whatsoever
4343     lt_cv_sys_max_cmd_len=-1;
4344     ;;
4345
4346   cygwin* | mingw*)
4347     # On Win9x/ME, this test blows up -- it succeeds, but takes
4348     # about 5 minutes as the teststring grows exponentially.
4349     # Worse, since 9x/ME are not pre-emptively multitasking,
4350     # you end up with a "frozen" computer, even though with patience
4351     # the test eventually succeeds (with a max line length of 256k).
4352     # Instead, let's just punt: use the minimum linelength reported by
4353     # all of the supported platforms: 8192 (on NT/2K/XP).
4354     lt_cv_sys_max_cmd_len=8192;
4355     ;;
4356
4357   amigaos*)
4358     # On AmigaOS with pdksh, this test takes hours, literally.
4359     # So we just punt and use a minimum line length of 8192.
4360     lt_cv_sys_max_cmd_len=8192;
4361     ;;
4362
4363   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4364     # This has been around since 386BSD, at least.  Likely further.
4365     if test -x /sbin/sysctl; then
4366       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4367     elif test -x /usr/sbin/sysctl; then
4368       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4369     else
4370       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4371     fi
4372     # And add a safety zone
4373     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4374     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4375     ;;
4376
4377   interix*)
4378     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4379     lt_cv_sys_max_cmd_len=196608
4380     ;;
4381
4382   osf*)
4383     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4384     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4385     # nice to cause kernel panics so lets avoid the loop below.
4386     # First set a reasonable default.
4387     lt_cv_sys_max_cmd_len=16384
4388     #
4389     if test -x /sbin/sysconfig; then
4390       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4391         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4392       esac
4393     fi
4394     ;;
4395   sco3.2v5*)
4396     lt_cv_sys_max_cmd_len=102400
4397     ;;
4398   sysv5* | sco5v6* | sysv4.2uw2*)
4399     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4400     if test -n "$kargmax"; then
4401       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4402     else
4403       lt_cv_sys_max_cmd_len=32768
4404     fi
4405     ;;
4406   *)
4407     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4408     if test -n "$lt_cv_sys_max_cmd_len"; then
4409       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4410       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4411     else
4412       # Make teststring a little bigger before we do anything with it.
4413       # a 1K string should be a reasonable start.
4414       for i in 1 2 3 4 5 6 7 8 ; do
4415         teststring=$teststring$teststring
4416       done
4417       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4418       # If test is not a shell built-in, we'll probably end up computing a
4419       # maximum length that is only half of the actual maximum length, but
4420       # we can't tell.
4421       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4422                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4423               test $i != 17 # 1/2 MB should be enough
4424       do
4425         i=`expr $i + 1`
4426         teststring=$teststring$teststring
4427       done
4428       # Only check the string length outside the loop.
4429       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4430       teststring=
4431       # Add a significant safety factor because C++ compilers can tack on
4432       # massive amounts of additional arguments before passing them to the
4433       # linker.  It appears as though 1/2 is a usable value.
4434       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4435     fi
4436     ;;
4437   esac
4438
4439 fi
4440
4441 if test -n $lt_cv_sys_max_cmd_len ; then
4442   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4443 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4444 else
4445   { echo "$as_me:$LINENO: result: none" >&5
4446 echo "${ECHO_T}none" >&6; }
4447 fi
4448 max_cmd_len=$lt_cv_sys_max_cmd_len
4449
4450
4451
4452
4453
4454
4455 : ${CP="cp -f"}
4456 : ${MV="mv -f"}
4457 : ${RM="rm -f"}
4458
4459 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4460 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4461 # Try some XSI features
4462 xsi_shell=no
4463 ( _lt_dummy="a/b/c"
4464   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4465       = c,a/b,, \
4466     && eval 'test $(( 1 + 1 )) -eq 2 \
4467     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4468   && xsi_shell=yes
4469 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
4470 echo "${ECHO_T}$xsi_shell" >&6; }
4471
4472
4473 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4474 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4475 lt_shell_append=no
4476 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4477     >/dev/null 2>&1 \
4478   && lt_shell_append=yes
4479 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4480 echo "${ECHO_T}$lt_shell_append" >&6; }
4481
4482
4483 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4484   lt_unset=unset
4485 else
4486   lt_unset=false
4487 fi
4488
4489
4490
4491
4492
4493 # test EBCDIC or ASCII
4494 case `echo X|tr X '\101'` in
4495  A) # ASCII based system
4496     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4497   lt_SP2NL='tr \040 \012'
4498   lt_NL2SP='tr \015\012 \040\040'
4499   ;;
4500  *) # EBCDIC based system
4501   lt_SP2NL='tr \100 \n'
4502   lt_NL2SP='tr \r\n \100\100'
4503   ;;
4504 esac
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4515 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4516 if test "${lt_cv_ld_reload_flag+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   lt_cv_ld_reload_flag='-r'
4520 fi
4521 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4522 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4523 reload_flag=$lt_cv_ld_reload_flag
4524 case $reload_flag in
4525 "" | " "*) ;;
4526 *) reload_flag=" $reload_flag" ;;
4527 esac
4528 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4529 case $host_os in
4530   darwin*)
4531     if test "$GCC" = yes; then
4532       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4533     else
4534       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4535     fi
4536     ;;
4537 esac
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4549 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4550 if test "${lt_cv_deplibs_check_method+set}" = set; then
4551   echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553   lt_cv_file_magic_cmd='$MAGIC_CMD'
4554 lt_cv_file_magic_test_file=
4555 lt_cv_deplibs_check_method='unknown'
4556 # Need to set the preceding variable on all platforms that support
4557 # interlibrary dependencies.
4558 # 'none' -- dependencies not supported.
4559 # `unknown' -- same as none, but documents that we really don't know.
4560 # 'pass_all' -- all dependencies passed with no checks.
4561 # 'test_compile' -- check by making test program.
4562 # 'file_magic [[regex]]' -- check by looking for files in library path
4563 # which responds to the $file_magic_cmd with a given extended regex.
4564 # If you have `file' or equivalent on your system and you're not sure
4565 # whether `pass_all' will *always* work, you probably want this one.
4566
4567 case $host_os in
4568 aix[4-9]*)
4569   lt_cv_deplibs_check_method=pass_all
4570   ;;
4571
4572 beos*)
4573   lt_cv_deplibs_check_method=pass_all
4574   ;;
4575
4576 bsdi[45]*)
4577   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4578   lt_cv_file_magic_cmd='/usr/bin/file -L'
4579   lt_cv_file_magic_test_file=/shlib/libc.so
4580   ;;
4581
4582 cygwin*)
4583   # func_win32_libid is a shell function defined in ltmain.sh
4584   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4585   lt_cv_file_magic_cmd='func_win32_libid'
4586   ;;
4587
4588 mingw* | pw32*)
4589   # Base MSYS/MinGW do not provide the 'file' command needed by
4590   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4591   # unless we find 'file', for example because we are cross-compiling.
4592   if ( file / ) >/dev/null 2>&1; then
4593     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4594     lt_cv_file_magic_cmd='func_win32_libid'
4595   else
4596     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4597     lt_cv_file_magic_cmd='$OBJDUMP -f'
4598   fi
4599   ;;
4600
4601 darwin* | rhapsody*)
4602   lt_cv_deplibs_check_method=pass_all
4603   ;;
4604
4605 freebsd* | dragonfly*)
4606   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4607     case $host_cpu in
4608     i*86 )
4609       # Not sure whether the presence of OpenBSD here was a mistake.
4610       # Let's accept both of them until this is cleared up.
4611       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4612       lt_cv_file_magic_cmd=/usr/bin/file
4613       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4614       ;;
4615     esac
4616   else
4617     lt_cv_deplibs_check_method=pass_all
4618   fi
4619   ;;
4620
4621 gnu*)
4622   lt_cv_deplibs_check_method=pass_all
4623   ;;
4624
4625 hpux10.20* | hpux11*)
4626   lt_cv_file_magic_cmd=/usr/bin/file
4627   case $host_cpu in
4628   ia64*)
4629     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4630     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4631     ;;
4632   hppa*64*)
4633     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]'
4634     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4635     ;;
4636   *)
4637     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4638     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4639     ;;
4640   esac
4641   ;;
4642
4643 interix[3-9]*)
4644   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4645   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4646   ;;
4647
4648 irix5* | irix6* | nonstopux*)
4649   case $LD in
4650   *-32|*"-32 ") libmagic=32-bit;;
4651   *-n32|*"-n32 ") libmagic=N32;;
4652   *-64|*"-64 ") libmagic=64-bit;;
4653   *) libmagic=never-match;;
4654   esac
4655   lt_cv_deplibs_check_method=pass_all
4656   ;;
4657
4658 # This must be Linux ELF.
4659 linux* | k*bsd*-gnu)
4660   lt_cv_deplibs_check_method=pass_all
4661   ;;
4662
4663 netbsd*)
4664   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4665     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4666   else
4667     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4668   fi
4669   ;;
4670
4671 newos6*)
4672   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4673   lt_cv_file_magic_cmd=/usr/bin/file
4674   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4675   ;;
4676
4677 *nto* | *qnx*)
4678   lt_cv_deplibs_check_method=pass_all
4679   ;;
4680
4681 openbsd*)
4682   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4683     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4684   else
4685     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4686   fi
4687   ;;
4688
4689 osf3* | osf4* | osf5*)
4690   lt_cv_deplibs_check_method=pass_all
4691   ;;
4692
4693 rdos*)
4694   lt_cv_deplibs_check_method=pass_all
4695   ;;
4696
4697 solaris*)
4698   lt_cv_deplibs_check_method=pass_all
4699   ;;
4700
4701 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4702   lt_cv_deplibs_check_method=pass_all
4703   ;;
4704
4705 sysv4 | sysv4.3*)
4706   case $host_vendor in
4707   motorola)
4708     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]'
4709     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4710     ;;
4711   ncr)
4712     lt_cv_deplibs_check_method=pass_all
4713     ;;
4714   sequent)
4715     lt_cv_file_magic_cmd='/bin/file'
4716     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4717     ;;
4718   sni)
4719     lt_cv_file_magic_cmd='/bin/file'
4720     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4721     lt_cv_file_magic_test_file=/lib/libc.so
4722     ;;
4723   siemens)
4724     lt_cv_deplibs_check_method=pass_all
4725     ;;
4726   pc)
4727     lt_cv_deplibs_check_method=pass_all
4728     ;;
4729   esac
4730   ;;
4731
4732 tpf*)
4733   lt_cv_deplibs_check_method=pass_all
4734   ;;
4735 esac
4736
4737 fi
4738 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4739 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4740 file_magic_cmd=$lt_cv_file_magic_cmd
4741 deplibs_check_method=$lt_cv_deplibs_check_method
4742 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755 if test -n "$ac_tool_prefix"; then
4756   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4757 set dummy ${ac_tool_prefix}ar; ac_word=$2
4758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4760 if test "${ac_cv_prog_AR+set}" = set; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   if test -n "$AR"; then
4764   ac_cv_prog_AR="$AR" # Let the user override the test.
4765 else
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4768 do
4769   IFS=$as_save_IFS
4770   test -z "$as_dir" && as_dir=.
4771   for ac_exec_ext in '' $ac_executable_extensions; do
4772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4773     ac_cv_prog_AR="${ac_tool_prefix}ar"
4774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4775     break 2
4776   fi
4777 done
4778 done
4779 IFS=$as_save_IFS
4780
4781 fi
4782 fi
4783 AR=$ac_cv_prog_AR
4784 if test -n "$AR"; then
4785   { echo "$as_me:$LINENO: result: $AR" >&5
4786 echo "${ECHO_T}$AR" >&6; }
4787 else
4788   { echo "$as_me:$LINENO: result: no" >&5
4789 echo "${ECHO_T}no" >&6; }
4790 fi
4791
4792
4793 fi
4794 if test -z "$ac_cv_prog_AR"; then
4795   ac_ct_AR=$AR
4796   # Extract the first word of "ar", so it can be a program name with args.
4797 set dummy ar; ac_word=$2
4798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4800 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4801   echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803   if test -n "$ac_ct_AR"; then
4804   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4805 else
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4808 do
4809   IFS=$as_save_IFS
4810   test -z "$as_dir" && as_dir=.
4811   for ac_exec_ext in '' $ac_executable_extensions; do
4812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4813     ac_cv_prog_ac_ct_AR="ar"
4814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4815     break 2
4816   fi
4817 done
4818 done
4819 IFS=$as_save_IFS
4820
4821 fi
4822 fi
4823 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4824 if test -n "$ac_ct_AR"; then
4825   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4826 echo "${ECHO_T}$ac_ct_AR" >&6; }
4827 else
4828   { echo "$as_me:$LINENO: result: no" >&5
4829 echo "${ECHO_T}no" >&6; }
4830 fi
4831
4832   if test "x$ac_ct_AR" = x; then
4833     AR="false"
4834   else
4835     case $cross_compiling:$ac_tool_warned in
4836 yes:)
4837 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4838 whose name does not start with the host triplet.  If you think this
4839 configuration is useful to you, please write to autoconf@gnu.org." >&5
4840 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4841 whose name does not start with the host triplet.  If you think this
4842 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4843 ac_tool_warned=yes ;;
4844 esac
4845     AR=$ac_ct_AR
4846   fi
4847 else
4848   AR="$ac_cv_prog_AR"
4849 fi
4850
4851 test -z "$AR" && AR=ar
4852 test -z "$AR_FLAGS" && AR_FLAGS=cru
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864 if test -n "$ac_tool_prefix"; then
4865   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4866 set dummy ${ac_tool_prefix}strip; ac_word=$2
4867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4869 if test "${ac_cv_prog_STRIP+set}" = set; then
4870   echo $ECHO_N "(cached) $ECHO_C" >&6
4871 else
4872   if test -n "$STRIP"; then
4873   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4874 else
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4877 do
4878   IFS=$as_save_IFS
4879   test -z "$as_dir" && as_dir=.
4880   for ac_exec_ext in '' $ac_executable_extensions; do
4881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4882     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884     break 2
4885   fi
4886 done
4887 done
4888 IFS=$as_save_IFS
4889
4890 fi
4891 fi
4892 STRIP=$ac_cv_prog_STRIP
4893 if test -n "$STRIP"; then
4894   { echo "$as_me:$LINENO: result: $STRIP" >&5
4895 echo "${ECHO_T}$STRIP" >&6; }
4896 else
4897   { echo "$as_me:$LINENO: result: no" >&5
4898 echo "${ECHO_T}no" >&6; }
4899 fi
4900
4901
4902 fi
4903 if test -z "$ac_cv_prog_STRIP"; then
4904   ac_ct_STRIP=$STRIP
4905   # Extract the first word of "strip", so it can be a program name with args.
4906 set dummy strip; ac_word=$2
4907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4909 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4910   echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912   if test -n "$ac_ct_STRIP"; then
4913   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4914 else
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4917 do
4918   IFS=$as_save_IFS
4919   test -z "$as_dir" && as_dir=.
4920   for ac_exec_ext in '' $ac_executable_extensions; do
4921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922     ac_cv_prog_ac_ct_STRIP="strip"
4923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924     break 2
4925   fi
4926 done
4927 done
4928 IFS=$as_save_IFS
4929
4930 fi
4931 fi
4932 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4933 if test -n "$ac_ct_STRIP"; then
4934   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4935 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
4936 else
4937   { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4939 fi
4940
4941   if test "x$ac_ct_STRIP" = x; then
4942     STRIP=":"
4943   else
4944     case $cross_compiling:$ac_tool_warned in
4945 yes:)
4946 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4947 whose name does not start with the host triplet.  If you think this
4948 configuration is useful to you, please write to autoconf@gnu.org." >&5
4949 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4950 whose name does not start with the host triplet.  If you think this
4951 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4952 ac_tool_warned=yes ;;
4953 esac
4954     STRIP=$ac_ct_STRIP
4955   fi
4956 else
4957   STRIP="$ac_cv_prog_STRIP"
4958 fi
4959
4960 test -z "$STRIP" && STRIP=:
4961
4962
4963
4964
4965
4966
4967 if test -n "$ac_tool_prefix"; then
4968   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4969 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4972 if test "${ac_cv_prog_RANLIB+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   if test -n "$RANLIB"; then
4976   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981   IFS=$as_save_IFS
4982   test -z "$as_dir" && as_dir=.
4983   for ac_exec_ext in '' $ac_executable_extensions; do
4984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4985     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987     break 2
4988   fi
4989 done
4990 done
4991 IFS=$as_save_IFS
4992
4993 fi
4994 fi
4995 RANLIB=$ac_cv_prog_RANLIB
4996 if test -n "$RANLIB"; then
4997   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4998 echo "${ECHO_T}$RANLIB" >&6; }
4999 else
5000   { echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6; }
5002 fi
5003
5004
5005 fi
5006 if test -z "$ac_cv_prog_RANLIB"; then
5007   ac_ct_RANLIB=$RANLIB
5008   # Extract the first word of "ranlib", so it can be a program name with args.
5009 set dummy ranlib; ac_word=$2
5010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5012 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5013   echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015   if test -n "$ac_ct_RANLIB"; then
5016   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5017 else
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 for as_dir in $PATH
5020 do
5021   IFS=$as_save_IFS
5022   test -z "$as_dir" && as_dir=.
5023   for ac_exec_ext in '' $ac_executable_extensions; do
5024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5025     ac_cv_prog_ac_ct_RANLIB="ranlib"
5026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027     break 2
5028   fi
5029 done
5030 done
5031 IFS=$as_save_IFS
5032
5033 fi
5034 fi
5035 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5036 if test -n "$ac_ct_RANLIB"; then
5037   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5038 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5039 else
5040   { echo "$as_me:$LINENO: result: no" >&5
5041 echo "${ECHO_T}no" >&6; }
5042 fi
5043
5044   if test "x$ac_ct_RANLIB" = x; then
5045     RANLIB=":"
5046   else
5047     case $cross_compiling:$ac_tool_warned in
5048 yes:)
5049 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5050 whose name does not start with the host triplet.  If you think this
5051 configuration is useful to you, please write to autoconf@gnu.org." >&5
5052 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5053 whose name does not start with the host triplet.  If you think this
5054 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5055 ac_tool_warned=yes ;;
5056 esac
5057     RANLIB=$ac_ct_RANLIB
5058   fi
5059 else
5060   RANLIB="$ac_cv_prog_RANLIB"
5061 fi
5062
5063 test -z "$RANLIB" && RANLIB=:
5064
5065
5066
5067
5068
5069
5070 # Determine commands to create old-style static archives.
5071 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5072 old_postinstall_cmds='chmod 644 $oldlib'
5073 old_postuninstall_cmds=
5074
5075 if test -n "$RANLIB"; then
5076   case $host_os in
5077   openbsd*)
5078     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5079     ;;
5080   *)
5081     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5082     ;;
5083   esac
5084   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5085 fi
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120 # If no C compiler was specified, use CC.
5121 LTCC=${LTCC-"$CC"}
5122
5123 # If no C compiler flags were specified, use CFLAGS.
5124 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5125
5126 # Allow CC to be a program name with arguments.
5127 compiler=$CC
5128
5129
5130 # Check for command to grab the raw symbol name followed by C symbol from nm.
5131 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5132 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5133 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5134   echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136
5137 # These are sane defaults that work on at least a few old systems.
5138 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5139
5140 # Character class describing NM global symbol codes.
5141 symcode='[BCDEGRST]'
5142
5143 # Regexp to match symbols that can be accessed directly from C.
5144 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5145
5146 # Define system-specific variables.
5147 case $host_os in
5148 aix*)
5149   symcode='[BCDT]'
5150   ;;
5151 cygwin* | mingw* | pw32*)
5152   symcode='[ABCDGISTW]'
5153   ;;
5154 hpux*)
5155   if test "$host_cpu" = ia64; then
5156     symcode='[ABCDEGRST]'
5157   fi
5158   ;;
5159 irix* | nonstopux*)
5160   symcode='[BCDEGRST]'
5161   ;;
5162 osf*)
5163   symcode='[BCDEGQRST]'
5164   ;;
5165 solaris*)
5166   symcode='[BDRT]'
5167   ;;
5168 sco3.2v5*)
5169   symcode='[DT]'
5170   ;;
5171 sysv4.2uw2*)
5172   symcode='[DT]'
5173   ;;
5174 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5175   symcode='[ABDT]'
5176   ;;
5177 sysv4)
5178   symcode='[DFNSTU]'
5179   ;;
5180 esac
5181
5182 # If we're using GNU nm, then use its standard symbol codes.
5183 case `$NM -V 2>&1` in
5184 *GNU* | *'with BFD'*)
5185   symcode='[ABCDGIRSTW]' ;;
5186 esac
5187
5188 # Transform an extracted symbol line into a proper C declaration.
5189 # Some systems (esp. on ia64) link data and code symbols differently,
5190 # so use this general approach.
5191 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5192
5193 # Transform an extracted symbol line into symbol name and symbol address
5194 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5195 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'"
5196
5197 # Handle CRLF in mingw tool chain
5198 opt_cr=
5199 case $build_os in
5200 mingw*)
5201   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5202   ;;
5203 esac
5204
5205 # Try without a prefix underscore, then with it.
5206 for ac_symprfx in "" "_"; do
5207
5208   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5209   symxfrm="\\1 $ac_symprfx\\2 \\2"
5210
5211   # Write the raw and C identifiers.
5212   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5213     # Fake it for dumpbin and say T for any non-static function
5214     # and D for any global variable.
5215     # Also find C++ and __fastcall symbols from MSVC++,
5216     # which start with @ or ?.
5217     lt_cv_sys_global_symbol_pipe="$AWK '"\
5218 "     {last_section=section; section=\$ 3};"\
5219 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5220 "     \$ 0!~/External *\|/{next};"\
5221 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5222 "     {if(hide[section]) next};"\
5223 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5224 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5225 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5226 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5227 "     ' prfx=^$ac_symprfx"
5228   else
5229     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5230   fi
5231
5232   # Check to see that the pipe works correctly.
5233   pipe_works=no
5234
5235   rm -f conftest*
5236   cat > conftest.$ac_ext <<_LT_EOF
5237 #ifdef __cplusplus
5238 extern "C" {
5239 #endif
5240 char nm_test_var;
5241 void nm_test_func(void);
5242 void nm_test_func(void){}
5243 #ifdef __cplusplus
5244 }
5245 #endif
5246 int main(){nm_test_var='a';nm_test_func();return(0);}
5247 _LT_EOF
5248
5249   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5250   (eval $ac_compile) 2>&5
5251   ac_status=$?
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); }; then
5254     # Now try to grab the symbols.
5255     nlist=conftest.nm
5256     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5257   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5258   ac_status=$?
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); } && test -s "$nlist"; then
5261       # Try sorting and uniquifying the output.
5262       if sort "$nlist" | uniq > "$nlist"T; then
5263         mv -f "$nlist"T "$nlist"
5264       else
5265         rm -f "$nlist"T
5266       fi
5267
5268       # Make sure that we snagged all the symbols we need.
5269       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5270         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5271           cat <<_LT_EOF > conftest.$ac_ext
5272 #ifdef __cplusplus
5273 extern "C" {
5274 #endif
5275
5276 _LT_EOF
5277           # Now generate the symbol file.
5278           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5279
5280           cat <<_LT_EOF >> conftest.$ac_ext
5281
5282 /* The mapping between symbol names and symbols.  */
5283 const struct {
5284   const char *name;
5285   void       *address;
5286 }
5287 lt__PROGRAM__LTX_preloaded_symbols[] =
5288 {
5289   { "@PROGRAM@", (void *) 0 },
5290 _LT_EOF
5291           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5292           cat <<\_LT_EOF >> conftest.$ac_ext
5293   {0, (void *) 0}
5294 };
5295
5296 /* This works around a problem in FreeBSD linker */
5297 #ifdef FREEBSD_WORKAROUND
5298 static const void *lt_preloaded_setup() {
5299   return lt__PROGRAM__LTX_preloaded_symbols;
5300 }
5301 #endif
5302
5303 #ifdef __cplusplus
5304 }
5305 #endif
5306 _LT_EOF
5307           # Now try linking the two files.
5308           mv conftest.$ac_objext conftstm.$ac_objext
5309           lt_save_LIBS="$LIBS"
5310           lt_save_CFLAGS="$CFLAGS"
5311           LIBS="conftstm.$ac_objext"
5312           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5313           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5314   (eval $ac_link) 2>&5
5315   ac_status=$?
5316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5318             pipe_works=yes
5319           fi
5320           LIBS="$lt_save_LIBS"
5321           CFLAGS="$lt_save_CFLAGS"
5322         else
5323           echo "cannot find nm_test_func in $nlist" >&5
5324         fi
5325       else
5326         echo "cannot find nm_test_var in $nlist" >&5
5327       fi
5328     else
5329       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5330     fi
5331   else
5332     echo "$progname: failed program was:" >&5
5333     cat conftest.$ac_ext >&5
5334   fi
5335   rm -rf conftest* conftst*
5336
5337   # Do not use the global_symbol_pipe unless it works.
5338   if test "$pipe_works" = yes; then
5339     break
5340   else
5341     lt_cv_sys_global_symbol_pipe=
5342   fi
5343 done
5344
5345 fi
5346
5347 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5348   lt_cv_sys_global_symbol_to_cdecl=
5349 fi
5350 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5351   { echo "$as_me:$LINENO: result: failed" >&5
5352 echo "${ECHO_T}failed" >&6; }
5353 else
5354   { echo "$as_me:$LINENO: result: ok" >&5
5355 echo "${ECHO_T}ok" >&6; }
5356 fi
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380 # Check whether --enable-libtool-lock was given.
5381 if test "${enable_libtool_lock+set}" = set; then
5382   enableval=$enable_libtool_lock;
5383 fi
5384
5385 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5386
5387 # Some flags need to be propagated to the compiler or linker for good
5388 # libtool support.
5389 case $host in
5390 ia64-*-hpux*)
5391   # Find out which ABI we are using.
5392   echo 'int i;' > conftest.$ac_ext
5393   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5394   (eval $ac_compile) 2>&5
5395   ac_status=$?
5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397   (exit $ac_status); }; then
5398     case `/usr/bin/file conftest.$ac_objext` in
5399       *ELF-32*)
5400         HPUX_IA64_MODE="32"
5401         ;;
5402       *ELF-64*)
5403         HPUX_IA64_MODE="64"
5404         ;;
5405     esac
5406   fi
5407   rm -rf conftest*
5408   ;;
5409 *-*-irix6*)
5410   # Find out which ABI we are using.
5411   echo '#line 5411 "configure"' > conftest.$ac_ext
5412   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5413   (eval $ac_compile) 2>&5
5414   ac_status=$?
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); }; then
5417     if test "$lt_cv_prog_gnu_ld" = yes; then
5418       case `/usr/bin/file conftest.$ac_objext` in
5419         *32-bit*)
5420           LD="${LD-ld} -melf32bsmip"
5421           ;;
5422         *N32*)
5423           LD="${LD-ld} -melf32bmipn32"
5424           ;;
5425         *64-bit*)
5426           LD="${LD-ld} -melf64bmip"
5427         ;;
5428       esac
5429     else
5430       case `/usr/bin/file conftest.$ac_objext` in
5431         *32-bit*)
5432           LD="${LD-ld} -32"
5433           ;;
5434         *N32*)
5435           LD="${LD-ld} -n32"
5436           ;;
5437         *64-bit*)
5438           LD="${LD-ld} -64"
5439           ;;
5440       esac
5441     fi
5442   fi
5443   rm -rf conftest*
5444   ;;
5445
5446 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5447 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5448   # Find out which ABI we are using.
5449   echo 'int i;' > conftest.$ac_ext
5450   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5451   (eval $ac_compile) 2>&5
5452   ac_status=$?
5453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454   (exit $ac_status); }; then
5455     case `/usr/bin/file conftest.o` in
5456       *32-bit*)
5457         case $host in
5458           x86_64-*kfreebsd*-gnu)
5459             LD="${LD-ld} -m elf_i386_fbsd"
5460             ;;
5461           x86_64-*linux*)
5462             LD="${LD-ld} -m elf_i386"
5463             ;;
5464           ppc64-*linux*|powerpc64-*linux*)
5465             LD="${LD-ld} -m elf32ppclinux"
5466             ;;
5467           s390x-*linux*)
5468             LD="${LD-ld} -m elf_s390"
5469             ;;
5470           sparc64-*linux*)
5471             LD="${LD-ld} -m elf32_sparc"
5472             ;;
5473         esac
5474         ;;
5475       *64-bit*)
5476         case $host in
5477           x86_64-*kfreebsd*-gnu)
5478             LD="${LD-ld} -m elf_x86_64_fbsd"
5479             ;;
5480           x86_64-*linux*)
5481             LD="${LD-ld} -m elf_x86_64"
5482             ;;
5483           ppc*-*linux*|powerpc*-*linux*)
5484             LD="${LD-ld} -m elf64ppc"
5485             ;;
5486           s390*-*linux*|s390*-*tpf*)
5487             LD="${LD-ld} -m elf64_s390"
5488             ;;
5489           sparc*-*linux*)
5490             LD="${LD-ld} -m elf64_sparc"
5491             ;;
5492         esac
5493         ;;
5494     esac
5495   fi
5496   rm -rf conftest*
5497   ;;
5498
5499 *-*-sco3.2v5*)
5500   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5501   SAVE_CFLAGS="$CFLAGS"
5502   CFLAGS="$CFLAGS -belf"
5503   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5504 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5505 if test "${lt_cv_cc_needs_belf+set}" = set; then
5506   echo $ECHO_N "(cached) $ECHO_C" >&6
5507 else
5508   ac_ext=c
5509 ac_cpp='$CPP $CPPFLAGS'
5510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5513
5514      cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h.  */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h.  */
5520
5521 int
5522 main ()
5523 {
5524
5525   ;
5526   return 0;
5527 }
5528 _ACEOF
5529 rm -f conftest.$ac_objext conftest$ac_exeext
5530 if { (ac_try="$ac_link"
5531 case "(($ac_try" in
5532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533   *) ac_try_echo=$ac_try;;
5534 esac
5535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536   (eval "$ac_link") 2>conftest.er1
5537   ac_status=$?
5538   grep -v '^ *+' conftest.er1 >conftest.err
5539   rm -f conftest.er1
5540   cat conftest.err >&5
5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); } && {
5543          test -z "$ac_c_werror_flag" ||
5544          test ! -s conftest.err
5545        } && test -s conftest$ac_exeext &&
5546        $as_test_x conftest$ac_exeext; then
5547   lt_cv_cc_needs_belf=yes
5548 else
5549   echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5551
5552         lt_cv_cc_needs_belf=no
5553 fi
5554
5555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5556       conftest$ac_exeext conftest.$ac_ext
5557      ac_ext=c
5558 ac_cpp='$CPP $CPPFLAGS'
5559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5562
5563 fi
5564 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5565 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5566   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5567     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5568     CFLAGS="$SAVE_CFLAGS"
5569   fi
5570   ;;
5571 sparc*-*solaris*)
5572   # Find out which ABI we are using.
5573   echo 'int i;' > conftest.$ac_ext
5574   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5575   (eval $ac_compile) 2>&5
5576   ac_status=$?
5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); }; then
5579     case `/usr/bin/file conftest.o` in
5580     *64-bit*)
5581       case $lt_cv_prog_gnu_ld in
5582       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5583       *)
5584         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5585           LD="${LD-ld} -64"
5586         fi
5587         ;;
5588       esac
5589       ;;
5590     esac
5591   fi
5592   rm -rf conftest*
5593   ;;
5594 esac
5595
5596 need_locks="$enable_libtool_lock"
5597
5598
5599   case $host_os in
5600     rhapsody* | darwin*)
5601     if test -n "$ac_tool_prefix"; then
5602   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5603 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5606 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5607   echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609   if test -n "$DSYMUTIL"; then
5610   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5611 else
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5614 do
5615   IFS=$as_save_IFS
5616   test -z "$as_dir" && as_dir=.
5617   for ac_exec_ext in '' $ac_executable_extensions; do
5618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5621     break 2
5622   fi
5623 done
5624 done
5625 IFS=$as_save_IFS
5626
5627 fi
5628 fi
5629 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5630 if test -n "$DSYMUTIL"; then
5631   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5632 echo "${ECHO_T}$DSYMUTIL" >&6; }
5633 else
5634   { echo "$as_me:$LINENO: result: no" >&5
5635 echo "${ECHO_T}no" >&6; }
5636 fi
5637
5638
5639 fi
5640 if test -z "$ac_cv_prog_DSYMUTIL"; then
5641   ac_ct_DSYMUTIL=$DSYMUTIL
5642   # Extract the first word of "dsymutil", so it can be a program name with args.
5643 set dummy dsymutil; ac_word=$2
5644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5646 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5647   echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649   if test -n "$ac_ct_DSYMUTIL"; then
5650   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5651 else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5654 do
5655   IFS=$as_save_IFS
5656   test -z "$as_dir" && as_dir=.
5657   for ac_exec_ext in '' $ac_executable_extensions; do
5658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5659     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5661     break 2
5662   fi
5663 done
5664 done
5665 IFS=$as_save_IFS
5666
5667 fi
5668 fi
5669 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5670 if test -n "$ac_ct_DSYMUTIL"; then
5671   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5672 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5673 else
5674   { echo "$as_me:$LINENO: result: no" >&5
5675 echo "${ECHO_T}no" >&6; }
5676 fi
5677
5678   if test "x$ac_ct_DSYMUTIL" = x; then
5679     DSYMUTIL=":"
5680   else
5681     case $cross_compiling:$ac_tool_warned in
5682 yes:)
5683 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5684 whose name does not start with the host triplet.  If you think this
5685 configuration is useful to you, please write to autoconf@gnu.org." >&5
5686 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5687 whose name does not start with the host triplet.  If you think this
5688 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5689 ac_tool_warned=yes ;;
5690 esac
5691     DSYMUTIL=$ac_ct_DSYMUTIL
5692   fi
5693 else
5694   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5695 fi
5696
5697     if test -n "$ac_tool_prefix"; then
5698   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5699 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5702 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5703   echo $ECHO_N "(cached) $ECHO_C" >&6
5704 else
5705   if test -n "$NMEDIT"; then
5706   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5707 else
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5710 do
5711   IFS=$as_save_IFS
5712   test -z "$as_dir" && as_dir=.
5713   for ac_exec_ext in '' $ac_executable_extensions; do
5714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717     break 2
5718   fi
5719 done
5720 done
5721 IFS=$as_save_IFS
5722
5723 fi
5724 fi
5725 NMEDIT=$ac_cv_prog_NMEDIT
5726 if test -n "$NMEDIT"; then
5727   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5728 echo "${ECHO_T}$NMEDIT" >&6; }
5729 else
5730   { echo "$as_me:$LINENO: result: no" >&5
5731 echo "${ECHO_T}no" >&6; }
5732 fi
5733
5734
5735 fi
5736 if test -z "$ac_cv_prog_NMEDIT"; then
5737   ac_ct_NMEDIT=$NMEDIT
5738   # Extract the first word of "nmedit", so it can be a program name with args.
5739 set dummy nmedit; ac_word=$2
5740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5742 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5743   echo $ECHO_N "(cached) $ECHO_C" >&6
5744 else
5745   if test -n "$ac_ct_NMEDIT"; then
5746   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751   IFS=$as_save_IFS
5752   test -z "$as_dir" && as_dir=.
5753   for ac_exec_ext in '' $ac_executable_extensions; do
5754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5755     ac_cv_prog_ac_ct_NMEDIT="nmedit"
5756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5757     break 2
5758   fi
5759 done
5760 done
5761 IFS=$as_save_IFS
5762
5763 fi
5764 fi
5765 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5766 if test -n "$ac_ct_NMEDIT"; then
5767   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5768 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5769 else
5770   { echo "$as_me:$LINENO: result: no" >&5
5771 echo "${ECHO_T}no" >&6; }
5772 fi
5773
5774   if test "x$ac_ct_NMEDIT" = x; then
5775     NMEDIT=":"
5776   else
5777     case $cross_compiling:$ac_tool_warned in
5778 yes:)
5779 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5780 whose name does not start with the host triplet.  If you think this
5781 configuration is useful to you, please write to autoconf@gnu.org." >&5
5782 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5783 whose name does not start with the host triplet.  If you think this
5784 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5785 ac_tool_warned=yes ;;
5786 esac
5787     NMEDIT=$ac_ct_NMEDIT
5788   fi
5789 else
5790   NMEDIT="$ac_cv_prog_NMEDIT"
5791 fi
5792
5793     if test -n "$ac_tool_prefix"; then
5794   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5795 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5798 if test "${ac_cv_prog_LIPO+set}" = set; then
5799   echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801   if test -n "$LIPO"; then
5802   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5803 else
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 for as_dir in $PATH
5806 do
5807   IFS=$as_save_IFS
5808   test -z "$as_dir" && as_dir=.
5809   for ac_exec_ext in '' $ac_executable_extensions; do
5810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5811     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5813     break 2
5814   fi
5815 done
5816 done
5817 IFS=$as_save_IFS
5818
5819 fi
5820 fi
5821 LIPO=$ac_cv_prog_LIPO
5822 if test -n "$LIPO"; then
5823   { echo "$as_me:$LINENO: result: $LIPO" >&5
5824 echo "${ECHO_T}$LIPO" >&6; }
5825 else
5826   { echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6; }
5828 fi
5829
5830
5831 fi
5832 if test -z "$ac_cv_prog_LIPO"; then
5833   ac_ct_LIPO=$LIPO
5834   # Extract the first word of "lipo", so it can be a program name with args.
5835 set dummy lipo; ac_word=$2
5836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5838 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5839   echo $ECHO_N "(cached) $ECHO_C" >&6
5840 else
5841   if test -n "$ac_ct_LIPO"; then
5842   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5843 else
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 for as_dir in $PATH
5846 do
5847   IFS=$as_save_IFS
5848   test -z "$as_dir" && as_dir=.
5849   for ac_exec_ext in '' $ac_executable_extensions; do
5850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5851     ac_cv_prog_ac_ct_LIPO="lipo"
5852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5853     break 2
5854   fi
5855 done
5856 done
5857 IFS=$as_save_IFS
5858
5859 fi
5860 fi
5861 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5862 if test -n "$ac_ct_LIPO"; then
5863   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5864 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5865 else
5866   { echo "$as_me:$LINENO: result: no" >&5
5867 echo "${ECHO_T}no" >&6; }
5868 fi
5869
5870   if test "x$ac_ct_LIPO" = x; then
5871     LIPO=":"
5872   else
5873     case $cross_compiling:$ac_tool_warned in
5874 yes:)
5875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5876 whose name does not start with the host triplet.  If you think this
5877 configuration is useful to you, please write to autoconf@gnu.org." >&5
5878 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5879 whose name does not start with the host triplet.  If you think this
5880 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5881 ac_tool_warned=yes ;;
5882 esac
5883     LIPO=$ac_ct_LIPO
5884   fi
5885 else
5886   LIPO="$ac_cv_prog_LIPO"
5887 fi
5888
5889     if test -n "$ac_tool_prefix"; then
5890   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5891 set dummy ${ac_tool_prefix}otool; ac_word=$2
5892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5894 if test "${ac_cv_prog_OTOOL+set}" = set; then
5895   echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897   if test -n "$OTOOL"; then
5898   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5899 else
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH
5902 do
5903   IFS=$as_save_IFS
5904   test -z "$as_dir" && as_dir=.
5905   for ac_exec_ext in '' $ac_executable_extensions; do
5906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5907     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909     break 2
5910   fi
5911 done
5912 done
5913 IFS=$as_save_IFS
5914
5915 fi
5916 fi
5917 OTOOL=$ac_cv_prog_OTOOL
5918 if test -n "$OTOOL"; then
5919   { echo "$as_me:$LINENO: result: $OTOOL" >&5
5920 echo "${ECHO_T}$OTOOL" >&6; }
5921 else
5922   { echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6; }
5924 fi
5925
5926
5927 fi
5928 if test -z "$ac_cv_prog_OTOOL"; then
5929   ac_ct_OTOOL=$OTOOL
5930   # Extract the first word of "otool", so it can be a program name with args.
5931 set dummy otool; ac_word=$2
5932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5934 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5935   echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937   if test -n "$ac_ct_OTOOL"; then
5938   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5939 else
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 for as_dir in $PATH
5942 do
5943   IFS=$as_save_IFS
5944   test -z "$as_dir" && as_dir=.
5945   for ac_exec_ext in '' $ac_executable_extensions; do
5946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5947     ac_cv_prog_ac_ct_OTOOL="otool"
5948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949     break 2
5950   fi
5951 done
5952 done
5953 IFS=$as_save_IFS
5954
5955 fi
5956 fi
5957 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5958 if test -n "$ac_ct_OTOOL"; then
5959   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5960 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
5961 else
5962   { echo "$as_me:$LINENO: result: no" >&5
5963 echo "${ECHO_T}no" >&6; }
5964 fi
5965
5966   if test "x$ac_ct_OTOOL" = x; then
5967     OTOOL=":"
5968   else
5969     case $cross_compiling:$ac_tool_warned in
5970 yes:)
5971 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5972 whose name does not start with the host triplet.  If you think this
5973 configuration is useful to you, please write to autoconf@gnu.org." >&5
5974 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5975 whose name does not start with the host triplet.  If you think this
5976 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5977 ac_tool_warned=yes ;;
5978 esac
5979     OTOOL=$ac_ct_OTOOL
5980   fi
5981 else
5982   OTOOL="$ac_cv_prog_OTOOL"
5983 fi
5984
5985     if test -n "$ac_tool_prefix"; then
5986   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5987 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5990 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993   if test -n "$OTOOL64"; then
5994   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5995 else
5996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 for as_dir in $PATH
5998 do
5999   IFS=$as_save_IFS
6000   test -z "$as_dir" && as_dir=.
6001   for ac_exec_ext in '' $ac_executable_extensions; do
6002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6003     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6005     break 2
6006   fi
6007 done
6008 done
6009 IFS=$as_save_IFS
6010
6011 fi
6012 fi
6013 OTOOL64=$ac_cv_prog_OTOOL64
6014 if test -n "$OTOOL64"; then
6015   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6016 echo "${ECHO_T}$OTOOL64" >&6; }
6017 else
6018   { echo "$as_me:$LINENO: result: no" >&5
6019 echo "${ECHO_T}no" >&6; }
6020 fi
6021
6022
6023 fi
6024 if test -z "$ac_cv_prog_OTOOL64"; then
6025   ac_ct_OTOOL64=$OTOOL64
6026   # Extract the first word of "otool64", so it can be a program name with args.
6027 set dummy otool64; ac_word=$2
6028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6030 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6031   echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033   if test -n "$ac_ct_OTOOL64"; then
6034   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6035 else
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6038 do
6039   IFS=$as_save_IFS
6040   test -z "$as_dir" && as_dir=.
6041   for ac_exec_ext in '' $ac_executable_extensions; do
6042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6043     ac_cv_prog_ac_ct_OTOOL64="otool64"
6044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6045     break 2
6046   fi
6047 done
6048 done
6049 IFS=$as_save_IFS
6050
6051 fi
6052 fi
6053 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6054 if test -n "$ac_ct_OTOOL64"; then
6055   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6056 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6057 else
6058   { echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6; }
6060 fi
6061
6062   if test "x$ac_ct_OTOOL64" = x; then
6063     OTOOL64=":"
6064   else
6065     case $cross_compiling:$ac_tool_warned in
6066 yes:)
6067 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6068 whose name does not start with the host triplet.  If you think this
6069 configuration is useful to you, please write to autoconf@gnu.org." >&5
6070 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6071 whose name does not start with the host triplet.  If you think this
6072 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6073 ac_tool_warned=yes ;;
6074 esac
6075     OTOOL64=$ac_ct_OTOOL64
6076   fi
6077 else
6078   OTOOL64="$ac_cv_prog_OTOOL64"
6079 fi
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6108 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6109 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6110   echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112   lt_cv_apple_cc_single_mod=no
6113       if test -z "${LT_MULTI_MODULE}"; then
6114         # By default we will add the -single_module flag. You can override
6115         # by either setting the environment variable LT_MULTI_MODULE
6116         # non-empty at configure time, or by adding -multi_module to the
6117         # link flags.
6118         rm -rf libconftest.dylib*
6119         echo "int foo(void){return 1;}" > conftest.c
6120         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6121 -dynamiclib -Wl,-single_module conftest.c" >&5
6122         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6123           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6124         _lt_result=$?
6125         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6126           lt_cv_apple_cc_single_mod=yes
6127         else
6128           cat conftest.err >&5
6129         fi
6130         rm -rf libconftest.dylib*
6131         rm -f conftest.*
6132       fi
6133 fi
6134 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6135 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6136     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6137 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6138 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6139   echo $ECHO_N "(cached) $ECHO_C" >&6
6140 else
6141   lt_cv_ld_exported_symbols_list=no
6142       save_LDFLAGS=$LDFLAGS
6143       echo "_main" > conftest.sym
6144       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6145       cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h.  */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h.  */
6151
6152 int
6153 main ()
6154 {
6155
6156   ;
6157   return 0;
6158 }
6159 _ACEOF
6160 rm -f conftest.$ac_objext conftest$ac_exeext
6161 if { (ac_try="$ac_link"
6162 case "(($ac_try" in
6163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164   *) ac_try_echo=$ac_try;;
6165 esac
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167   (eval "$ac_link") 2>conftest.er1
6168   ac_status=$?
6169   grep -v '^ *+' conftest.er1 >conftest.err
6170   rm -f conftest.er1
6171   cat conftest.err >&5
6172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173   (exit $ac_status); } && {
6174          test -z "$ac_c_werror_flag" ||
6175          test ! -s conftest.err
6176        } && test -s conftest$ac_exeext &&
6177        $as_test_x conftest$ac_exeext; then
6178   lt_cv_ld_exported_symbols_list=yes
6179 else
6180   echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6182
6183         lt_cv_ld_exported_symbols_list=no
6184 fi
6185
6186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6187       conftest$ac_exeext conftest.$ac_ext
6188         LDFLAGS="$save_LDFLAGS"
6189
6190 fi
6191 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6192 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6193     case $host_os in
6194     rhapsody* | darwin1.[012])
6195       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6196     darwin1.*)
6197       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6198     darwin*) # darwin 5.x on
6199       # if running on 10.5 or later, the deployment target defaults
6200       # to the OS version, if on x86, and 10.4, the deployment
6201       # target defaults to 10.4. Don't you love it?
6202       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6203         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6204           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6205         10.[012]*)
6206           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6207         10.*)
6208           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6209       esac
6210     ;;
6211   esac
6212     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6213       _lt_dar_single_mod='$single_module'
6214     fi
6215     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6216       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6217     else
6218       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6219     fi
6220     if test "$DSYMUTIL" != ":"; then
6221       _lt_dsymutil='~$DSYMUTIL $lib || :'
6222     else
6223       _lt_dsymutil=
6224     fi
6225     ;;
6226   esac
6227
6228 ac_ext=c
6229 ac_cpp='$CPP $CPPFLAGS'
6230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6233 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6234 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6235 # On Suns, sometimes $CPP names a directory.
6236 if test -n "$CPP" && test -d "$CPP"; then
6237   CPP=
6238 fi
6239 if test -z "$CPP"; then
6240   if test "${ac_cv_prog_CPP+set}" = set; then
6241   echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243       # Double quotes because CPP needs to be expanded
6244     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6245     do
6246       ac_preproc_ok=false
6247 for ac_c_preproc_warn_flag in '' yes
6248 do
6249   # Use a header file that comes with gcc, so configuring glibc
6250   # with a fresh cross-compiler works.
6251   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6252   # <limits.h> exists even on freestanding compilers.
6253   # On the NeXT, cc -E runs the code through the compiler's parser,
6254   # not just through cpp. "Syntax error" is here to catch this case.
6255   cat >conftest.$ac_ext <<_ACEOF
6256 /* confdefs.h.  */
6257 _ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h.  */
6261 #ifdef __STDC__
6262 # include <limits.h>
6263 #else
6264 # include <assert.h>
6265 #endif
6266                      Syntax error
6267 _ACEOF
6268 if { (ac_try="$ac_cpp conftest.$ac_ext"
6269 case "(($ac_try" in
6270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271   *) ac_try_echo=$ac_try;;
6272 esac
6273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6275   ac_status=$?
6276   grep -v '^ *+' conftest.er1 >conftest.err
6277   rm -f conftest.er1
6278   cat conftest.err >&5
6279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280   (exit $ac_status); } >/dev/null && {
6281          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6282          test ! -s conftest.err
6283        }; then
6284   :
6285 else
6286   echo "$as_me: failed program was:" >&5
6287 sed 's/^/| /' conftest.$ac_ext >&5
6288
6289   # Broken: fails on valid input.
6290 continue
6291 fi
6292
6293 rm -f conftest.err conftest.$ac_ext
6294
6295   # OK, works on sane cases.  Now check whether nonexistent headers
6296   # can be detected and how.
6297   cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h.  */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h.  */
6303 #include <ac_nonexistent.h>
6304 _ACEOF
6305 if { (ac_try="$ac_cpp conftest.$ac_ext"
6306 case "(($ac_try" in
6307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6308   *) ac_try_echo=$ac_try;;
6309 esac
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6312   ac_status=$?
6313   grep -v '^ *+' conftest.er1 >conftest.err
6314   rm -f conftest.er1
6315   cat conftest.err >&5
6316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317   (exit $ac_status); } >/dev/null && {
6318          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6319          test ! -s conftest.err
6320        }; then
6321   # Broken: success on invalid input.
6322 continue
6323 else
6324   echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6326
6327   # Passes both tests.
6328 ac_preproc_ok=:
6329 break
6330 fi
6331
6332 rm -f conftest.err conftest.$ac_ext
6333
6334 done
6335 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6336 rm -f conftest.err conftest.$ac_ext
6337 if $ac_preproc_ok; then
6338   break
6339 fi
6340
6341     done
6342     ac_cv_prog_CPP=$CPP
6343
6344 fi
6345   CPP=$ac_cv_prog_CPP
6346 else
6347   ac_cv_prog_CPP=$CPP
6348 fi
6349 { echo "$as_me:$LINENO: result: $CPP" >&5
6350 echo "${ECHO_T}$CPP" >&6; }
6351 ac_preproc_ok=false
6352 for ac_c_preproc_warn_flag in '' yes
6353 do
6354   # Use a header file that comes with gcc, so configuring glibc
6355   # with a fresh cross-compiler works.
6356   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6357   # <limits.h> exists even on freestanding compilers.
6358   # On the NeXT, cc -E runs the code through the compiler's parser,
6359   # not just through cpp. "Syntax error" is here to catch this case.
6360   cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h.  */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h.  */
6366 #ifdef __STDC__
6367 # include <limits.h>
6368 #else
6369 # include <assert.h>
6370 #endif
6371                      Syntax error
6372 _ACEOF
6373 if { (ac_try="$ac_cpp conftest.$ac_ext"
6374 case "(($ac_try" in
6375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376   *) ac_try_echo=$ac_try;;
6377 esac
6378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6379   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6380   ac_status=$?
6381   grep -v '^ *+' conftest.er1 >conftest.err
6382   rm -f conftest.er1
6383   cat conftest.err >&5
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); } >/dev/null && {
6386          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6387          test ! -s conftest.err
6388        }; then
6389   :
6390 else
6391   echo "$as_me: failed program was:" >&5
6392 sed 's/^/| /' conftest.$ac_ext >&5
6393
6394   # Broken: fails on valid input.
6395 continue
6396 fi
6397
6398 rm -f conftest.err conftest.$ac_ext
6399
6400   # OK, works on sane cases.  Now check whether nonexistent headers
6401   # can be detected and how.
6402   cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h.  */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h.  */
6408 #include <ac_nonexistent.h>
6409 _ACEOF
6410 if { (ac_try="$ac_cpp conftest.$ac_ext"
6411 case "(($ac_try" in
6412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413   *) ac_try_echo=$ac_try;;
6414 esac
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6417   ac_status=$?
6418   grep -v '^ *+' conftest.er1 >conftest.err
6419   rm -f conftest.er1
6420   cat conftest.err >&5
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); } >/dev/null && {
6423          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6424          test ! -s conftest.err
6425        }; then
6426   # Broken: success on invalid input.
6427 continue
6428 else
6429   echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6431
6432   # Passes both tests.
6433 ac_preproc_ok=:
6434 break
6435 fi
6436
6437 rm -f conftest.err conftest.$ac_ext
6438
6439 done
6440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6441 rm -f conftest.err conftest.$ac_ext
6442 if $ac_preproc_ok; then
6443   :
6444 else
6445   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6446 See \`config.log' for more details." >&5
6447 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6448 See \`config.log' for more details." >&2;}
6449    { (exit 1); exit 1; }; }
6450 fi
6451
6452 ac_ext=c
6453 ac_cpp='$CPP $CPPFLAGS'
6454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6457
6458
6459 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6460 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6461 if test "${ac_cv_header_stdc+set}" = set; then
6462   echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464   cat >conftest.$ac_ext <<_ACEOF
6465 /* confdefs.h.  */
6466 _ACEOF
6467 cat confdefs.h >>conftest.$ac_ext
6468 cat >>conftest.$ac_ext <<_ACEOF
6469 /* end confdefs.h.  */
6470 #include <stdlib.h>
6471 #include <stdarg.h>
6472 #include <string.h>
6473 #include <float.h>
6474
6475 int
6476 main ()
6477 {
6478
6479   ;
6480   return 0;
6481 }
6482 _ACEOF
6483 rm -f conftest.$ac_objext
6484 if { (ac_try="$ac_compile"
6485 case "(($ac_try" in
6486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6487   *) ac_try_echo=$ac_try;;
6488 esac
6489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6490   (eval "$ac_compile") 2>conftest.er1
6491   ac_status=$?
6492   grep -v '^ *+' conftest.er1 >conftest.err
6493   rm -f conftest.er1
6494   cat conftest.err >&5
6495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); } && {
6497          test -z "$ac_c_werror_flag" ||
6498          test ! -s conftest.err
6499        } && test -s conftest.$ac_objext; then
6500   ac_cv_header_stdc=yes
6501 else
6502   echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.$ac_ext >&5
6504
6505         ac_cv_header_stdc=no
6506 fi
6507
6508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509
6510 if test $ac_cv_header_stdc = yes; then
6511   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6512   cat >conftest.$ac_ext <<_ACEOF
6513 /* confdefs.h.  */
6514 _ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h.  */
6518 #include <string.h>
6519
6520 _ACEOF
6521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6522   $EGREP "memchr" >/dev/null 2>&1; then
6523   :
6524 else
6525   ac_cv_header_stdc=no
6526 fi
6527 rm -f conftest*
6528
6529 fi
6530
6531 if test $ac_cv_header_stdc = yes; then
6532   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6533   cat >conftest.$ac_ext <<_ACEOF
6534 /* confdefs.h.  */
6535 _ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h.  */
6539 #include <stdlib.h>
6540
6541 _ACEOF
6542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6543   $EGREP "free" >/dev/null 2>&1; then
6544   :
6545 else
6546   ac_cv_header_stdc=no
6547 fi
6548 rm -f conftest*
6549
6550 fi
6551
6552 if test $ac_cv_header_stdc = yes; then
6553   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6554   if test "$cross_compiling" = yes; then
6555   :
6556 else
6557   cat >conftest.$ac_ext <<_ACEOF
6558 /* confdefs.h.  */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h.  */
6563 #include <ctype.h>
6564 #include <stdlib.h>
6565 #if ((' ' & 0x0FF) == 0x020)
6566 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6567 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6568 #else
6569 # define ISLOWER(c) \
6570                    (('a' <= (c) && (c) <= 'i') \
6571                      || ('j' <= (c) && (c) <= 'r') \
6572                      || ('s' <= (c) && (c) <= 'z'))
6573 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6574 #endif
6575
6576 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6577 int
6578 main ()
6579 {
6580   int i;
6581   for (i = 0; i < 256; i++)
6582     if (XOR (islower (i), ISLOWER (i))
6583         || toupper (i) != TOUPPER (i))
6584       return 2;
6585   return 0;
6586 }
6587 _ACEOF
6588 rm -f conftest$ac_exeext
6589 if { (ac_try="$ac_link"
6590 case "(($ac_try" in
6591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592   *) ac_try_echo=$ac_try;;
6593 esac
6594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6595   (eval "$ac_link") 2>&5
6596   ac_status=$?
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6599   { (case "(($ac_try" in
6600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601   *) ac_try_echo=$ac_try;;
6602 esac
6603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6604   (eval "$ac_try") 2>&5
6605   ac_status=$?
6606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607   (exit $ac_status); }; }; then
6608   :
6609 else
6610   echo "$as_me: program exited with status $ac_status" >&5
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6613
6614 ( exit $ac_status )
6615 ac_cv_header_stdc=no
6616 fi
6617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6618 fi
6619
6620
6621 fi
6622 fi
6623 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6624 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6625 if test $ac_cv_header_stdc = yes; then
6626
6627 cat >>confdefs.h <<\_ACEOF
6628 #define STDC_HEADERS 1
6629 _ACEOF
6630
6631 fi
6632
6633 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6644                   inttypes.h stdint.h unistd.h
6645 do
6646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6650   echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652   cat >conftest.$ac_ext <<_ACEOF
6653 /* confdefs.h.  */
6654 _ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h.  */
6658 $ac_includes_default
6659
6660 #include <$ac_header>
6661 _ACEOF
6662 rm -f conftest.$ac_objext
6663 if { (ac_try="$ac_compile"
6664 case "(($ac_try" in
6665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6666   *) ac_try_echo=$ac_try;;
6667 esac
6668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6669   (eval "$ac_compile") 2>conftest.er1
6670   ac_status=$?
6671   grep -v '^ *+' conftest.er1 >conftest.err
6672   rm -f conftest.er1
6673   cat conftest.err >&5
6674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675   (exit $ac_status); } && {
6676          test -z "$ac_c_werror_flag" ||
6677          test ! -s conftest.err
6678        } && test -s conftest.$ac_objext; then
6679   eval "$as_ac_Header=yes"
6680 else
6681   echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6683
6684         eval "$as_ac_Header=no"
6685 fi
6686
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 fi
6689 ac_res=`eval echo '${'$as_ac_Header'}'`
6690                { echo "$as_me:$LINENO: result: $ac_res" >&5
6691 echo "${ECHO_T}$ac_res" >&6; }
6692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6693   cat >>confdefs.h <<_ACEOF
6694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6695 _ACEOF
6696
6697 fi
6698
6699 done
6700
6701
6702
6703 for ac_header in dlfcn.h
6704 do
6705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6709   echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711   cat >conftest.$ac_ext <<_ACEOF
6712 /* confdefs.h.  */
6713 _ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h.  */
6717 $ac_includes_default
6718
6719 #include <$ac_header>
6720 _ACEOF
6721 rm -f conftest.$ac_objext
6722 if { (ac_try="$ac_compile"
6723 case "(($ac_try" in
6724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6725   *) ac_try_echo=$ac_try;;
6726 esac
6727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6728   (eval "$ac_compile") 2>conftest.er1
6729   ac_status=$?
6730   grep -v '^ *+' conftest.er1 >conftest.err
6731   rm -f conftest.er1
6732   cat conftest.err >&5
6733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734   (exit $ac_status); } && {
6735          test -z "$ac_c_werror_flag" ||
6736          test ! -s conftest.err
6737        } && test -s conftest.$ac_objext; then
6738   eval "$as_ac_Header=yes"
6739 else
6740   echo "$as_me: failed program was:" >&5
6741 sed 's/^/| /' conftest.$ac_ext >&5
6742
6743         eval "$as_ac_Header=no"
6744 fi
6745
6746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6747 fi
6748 ac_res=`eval echo '${'$as_ac_Header'}'`
6749                { echo "$as_me:$LINENO: result: $ac_res" >&5
6750 echo "${ECHO_T}$ac_res" >&6; }
6751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6752   cat >>confdefs.h <<_ACEOF
6753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6754 _ACEOF
6755
6756 fi
6757
6758 done
6759
6760
6761
6762 # Set options
6763 enable_dlopen=yes
6764 enable_win32_dll=yes
6765
6766 case $host in
6767 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6768   if test -n "$ac_tool_prefix"; then
6769   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6770 set dummy ${ac_tool_prefix}as; ac_word=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_prog_AS+set}" = set; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776   if test -n "$AS"; then
6777   ac_cv_prog_AS="$AS" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782   IFS=$as_save_IFS
6783   test -z "$as_dir" && as_dir=.
6784   for ac_exec_ext in '' $ac_executable_extensions; do
6785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786     ac_cv_prog_AS="${ac_tool_prefix}as"
6787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788     break 2
6789   fi
6790 done
6791 done
6792 IFS=$as_save_IFS
6793
6794 fi
6795 fi
6796 AS=$ac_cv_prog_AS
6797 if test -n "$AS"; then
6798   { echo "$as_me:$LINENO: result: $AS" >&5
6799 echo "${ECHO_T}$AS" >&6; }
6800 else
6801   { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6803 fi
6804
6805
6806 fi
6807 if test -z "$ac_cv_prog_AS"; then
6808   ac_ct_AS=$AS
6809   # Extract the first word of "as", so it can be a program name with args.
6810 set dummy as; ac_word=$2
6811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6814   echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816   if test -n "$ac_ct_AS"; then
6817   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822   IFS=$as_save_IFS
6823   test -z "$as_dir" && as_dir=.
6824   for ac_exec_ext in '' $ac_executable_extensions; do
6825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826     ac_cv_prog_ac_ct_AS="as"
6827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828     break 2
6829   fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6833
6834 fi
6835 fi
6836 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6837 if test -n "$ac_ct_AS"; then
6838   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6839 echo "${ECHO_T}$ac_ct_AS" >&6; }
6840 else
6841   { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6843 fi
6844
6845   if test "x$ac_ct_AS" = x; then
6846     AS="false"
6847   else
6848     case $cross_compiling:$ac_tool_warned in
6849 yes:)
6850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6851 whose name does not start with the host triplet.  If you think this
6852 configuration is useful to you, please write to autoconf@gnu.org." >&5
6853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6854 whose name does not start with the host triplet.  If you think this
6855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6856 ac_tool_warned=yes ;;
6857 esac
6858     AS=$ac_ct_AS
6859   fi
6860 else
6861   AS="$ac_cv_prog_AS"
6862 fi
6863
6864   if test -n "$ac_tool_prefix"; then
6865   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6866 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6870   echo $ECHO_N "(cached) $ECHO_C" >&6
6871 else
6872   if test -n "$DLLTOOL"; then
6873   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6874 else
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878   IFS=$as_save_IFS
6879   test -z "$as_dir" && as_dir=.
6880   for ac_exec_ext in '' $ac_executable_extensions; do
6881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6882     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884     break 2
6885   fi
6886 done
6887 done
6888 IFS=$as_save_IFS
6889
6890 fi
6891 fi
6892 DLLTOOL=$ac_cv_prog_DLLTOOL
6893 if test -n "$DLLTOOL"; then
6894   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6895 echo "${ECHO_T}$DLLTOOL" >&6; }
6896 else
6897   { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6899 fi
6900
6901
6902 fi
6903 if test -z "$ac_cv_prog_DLLTOOL"; then
6904   ac_ct_DLLTOOL=$DLLTOOL
6905   # Extract the first word of "dlltool", so it can be a program name with args.
6906 set dummy dlltool; ac_word=$2
6907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6910   echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912   if test -n "$ac_ct_DLLTOOL"; then
6913   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6914 else
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 for as_dir in $PATH
6917 do
6918   IFS=$as_save_IFS
6919   test -z "$as_dir" && as_dir=.
6920   for ac_exec_ext in '' $ac_executable_extensions; do
6921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6922     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6924     break 2
6925   fi
6926 done
6927 done
6928 IFS=$as_save_IFS
6929
6930 fi
6931 fi
6932 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6933 if test -n "$ac_ct_DLLTOOL"; then
6934   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6935 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6936 else
6937   { echo "$as_me:$LINENO: result: no" >&5
6938 echo "${ECHO_T}no" >&6; }
6939 fi
6940
6941   if test "x$ac_ct_DLLTOOL" = x; then
6942     DLLTOOL="false"
6943   else
6944     case $cross_compiling:$ac_tool_warned in
6945 yes:)
6946 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6947 whose name does not start with the host triplet.  If you think this
6948 configuration is useful to you, please write to autoconf@gnu.org." >&5
6949 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6950 whose name does not start with the host triplet.  If you think this
6951 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6952 ac_tool_warned=yes ;;
6953 esac
6954     DLLTOOL=$ac_ct_DLLTOOL
6955   fi
6956 else
6957   DLLTOOL="$ac_cv_prog_DLLTOOL"
6958 fi
6959
6960   if test -n "$ac_tool_prefix"; then
6961   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6962 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6965 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6966   echo $ECHO_N "(cached) $ECHO_C" >&6
6967 else
6968   if test -n "$OBJDUMP"; then
6969   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6970 else
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6973 do
6974   IFS=$as_save_IFS
6975   test -z "$as_dir" && as_dir=.
6976   for ac_exec_ext in '' $ac_executable_extensions; do
6977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6980     break 2
6981   fi
6982 done
6983 done
6984 IFS=$as_save_IFS
6985
6986 fi
6987 fi
6988 OBJDUMP=$ac_cv_prog_OBJDUMP
6989 if test -n "$OBJDUMP"; then
6990   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6991 echo "${ECHO_T}$OBJDUMP" >&6; }
6992 else
6993   { echo "$as_me:$LINENO: result: no" >&5
6994 echo "${ECHO_T}no" >&6; }
6995 fi
6996
6997
6998 fi
6999 if test -z "$ac_cv_prog_OBJDUMP"; then
7000   ac_ct_OBJDUMP=$OBJDUMP
7001   # Extract the first word of "objdump", so it can be a program name with args.
7002 set dummy objdump; ac_word=$2
7003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7006   echo $ECHO_N "(cached) $ECHO_C" >&6
7007 else
7008   if test -n "$ac_ct_OBJDUMP"; then
7009   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014   IFS=$as_save_IFS
7015   test -z "$as_dir" && as_dir=.
7016   for ac_exec_ext in '' $ac_executable_extensions; do
7017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7018     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7020     break 2
7021   fi
7022 done
7023 done
7024 IFS=$as_save_IFS
7025
7026 fi
7027 fi
7028 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7029 if test -n "$ac_ct_OBJDUMP"; then
7030   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7031 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
7032 else
7033   { echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6; }
7035 fi
7036
7037   if test "x$ac_ct_OBJDUMP" = x; then
7038     OBJDUMP="false"
7039   else
7040     case $cross_compiling:$ac_tool_warned in
7041 yes:)
7042 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7043 whose name does not start with the host triplet.  If you think this
7044 configuration is useful to you, please write to autoconf@gnu.org." >&5
7045 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7046 whose name does not start with the host triplet.  If you think this
7047 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7048 ac_tool_warned=yes ;;
7049 esac
7050     OBJDUMP=$ac_ct_OBJDUMP
7051   fi
7052 else
7053   OBJDUMP="$ac_cv_prog_OBJDUMP"
7054 fi
7055
7056   ;;
7057 esac
7058
7059 test -z "$AS" && AS=as
7060
7061
7062
7063
7064
7065 test -z "$DLLTOOL" && DLLTOOL=dlltool
7066
7067
7068
7069
7070
7071 test -z "$OBJDUMP" && OBJDUMP=objdump
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081             # Check whether --enable-shared was given.
7082 if test "${enable_shared+set}" = set; then
7083   enableval=$enable_shared; p=${PACKAGE-default}
7084     case $enableval in
7085     yes) enable_shared=yes ;;
7086     no) enable_shared=no ;;
7087     *)
7088       enable_shared=no
7089       # Look at the argument we got.  We use all the common list separators.
7090       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7091       for pkg in $enableval; do
7092         IFS="$lt_save_ifs"
7093         if test "X$pkg" = "X$p"; then
7094           enable_shared=yes
7095         fi
7096       done
7097       IFS="$lt_save_ifs"
7098       ;;
7099     esac
7100 else
7101   enable_shared=yes
7102 fi
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112   # Check whether --enable-static was given.
7113 if test "${enable_static+set}" = set; then
7114   enableval=$enable_static; p=${PACKAGE-default}
7115     case $enableval in
7116     yes) enable_static=yes ;;
7117     no) enable_static=no ;;
7118     *)
7119      enable_static=no
7120       # Look at the argument we got.  We use all the common list separators.
7121       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7122       for pkg in $enableval; do
7123         IFS="$lt_save_ifs"
7124         if test "X$pkg" = "X$p"; then
7125           enable_static=yes
7126         fi
7127       done
7128       IFS="$lt_save_ifs"
7129       ;;
7130     esac
7131 else
7132   enable_static=yes
7133 fi
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144 # Check whether --with-pic was given.
7145 if test "${with_pic+set}" = set; then
7146   withval=$with_pic; pic_mode="$withval"
7147 else
7148   pic_mode=default
7149 fi
7150
7151
7152 test -z "$pic_mode" && pic_mode=default
7153
7154
7155
7156
7157
7158
7159
7160   # Check whether --enable-fast-install was given.
7161 if test "${enable_fast_install+set}" = set; then
7162   enableval=$enable_fast_install; p=${PACKAGE-default}
7163     case $enableval in
7164     yes) enable_fast_install=yes ;;
7165     no) enable_fast_install=no ;;
7166     *)
7167       enable_fast_install=no
7168       # Look at the argument we got.  We use all the common list separators.
7169       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7170       for pkg in $enableval; do
7171         IFS="$lt_save_ifs"
7172         if test "X$pkg" = "X$p"; then
7173           enable_fast_install=yes
7174         fi
7175       done
7176       IFS="$lt_save_ifs"
7177       ;;
7178     esac
7179 else
7180   enable_fast_install=yes
7181 fi
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193 # This can be used to rebuild libtool when needed
7194 LIBTOOL_DEPS="$ltmain"
7195
7196 # Always use our own libtool.
7197 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223 test -z "$LN_S" && LN_S="ln -s"
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238 if test -n "${ZSH_VERSION+set}" ; then
7239    setopt NO_GLOB_SUBST
7240 fi
7241
7242 { echo "$as_me:$LINENO: checking for objdir" >&5
7243 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7244 if test "${lt_cv_objdir+set}" = set; then
7245   echo $ECHO_N "(cached) $ECHO_C" >&6
7246 else
7247   rm -f .libs 2>/dev/null
7248 mkdir .libs 2>/dev/null
7249 if test -d .libs; then
7250   lt_cv_objdir=.libs
7251 else
7252   # MS-DOS does not allow filenames that begin with a dot.
7253   lt_cv_objdir=_libs
7254 fi
7255 rmdir .libs 2>/dev/null
7256 fi
7257 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7258 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7259 objdir=$lt_cv_objdir
7260
7261
7262
7263
7264
7265 cat >>confdefs.h <<_ACEOF
7266 #define LT_OBJDIR "$lt_cv_objdir/"
7267 _ACEOF
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285 case $host_os in
7286 aix3*)
7287   # AIX sometimes has problems with the GCC collect2 program.  For some
7288   # reason, if we set the COLLECT_NAMES environment variable, the problems
7289   # vanish in a puff of smoke.
7290   if test "X${COLLECT_NAMES+set}" != Xset; then
7291     COLLECT_NAMES=
7292     export COLLECT_NAMES
7293   fi
7294   ;;
7295 esac
7296
7297 # Sed substitution that helps us do robust quoting.  It backslashifies
7298 # metacharacters that are still active within double-quoted strings.
7299 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7300
7301 # Same as above, but do not quote variable references.
7302 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7303
7304 # Sed substitution to delay expansion of an escaped shell variable in a
7305 # double_quote_subst'ed string.
7306 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7307
7308 # Sed substitution to delay expansion of an escaped single quote.
7309 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7310
7311 # Sed substitution to avoid accidental globbing in evaled expressions
7312 no_glob_subst='s/\*/\\\*/g'
7313
7314 # Global variables:
7315 ofile=libtool
7316 can_build_shared=yes
7317
7318 # All known linkers require a `.a' archive for static linking (except MSVC,
7319 # which needs '.lib').
7320 libext=a
7321
7322 with_gnu_ld="$lt_cv_prog_gnu_ld"
7323
7324 old_CC="$CC"
7325 old_CFLAGS="$CFLAGS"
7326
7327 # Set sane defaults for various variables
7328 test -z "$CC" && CC=cc
7329 test -z "$LTCC" && LTCC=$CC
7330 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7331 test -z "$LD" && LD=ld
7332 test -z "$ac_objext" && ac_objext=o
7333
7334 for cc_temp in $compiler""; do
7335   case $cc_temp in
7336     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7337     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7338     \-*) ;;
7339     *) break;;
7340   esac
7341 done
7342 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7343
7344
7345 # Only perform the check for file, if the check method requires it
7346 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7347 case $deplibs_check_method in
7348 file_magic*)
7349   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7350     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7351 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7352 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7353   echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355   case $MAGIC_CMD in
7356 [\\/*] |  ?:[\\/]*)
7357   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7358   ;;
7359 *)
7360   lt_save_MAGIC_CMD="$MAGIC_CMD"
7361   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7362   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7363   for ac_dir in $ac_dummy; do
7364     IFS="$lt_save_ifs"
7365     test -z "$ac_dir" && ac_dir=.
7366     if test -f $ac_dir/${ac_tool_prefix}file; then
7367       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7368       if test -n "$file_magic_test_file"; then
7369         case $deplibs_check_method in
7370         "file_magic "*)
7371           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7372           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7373           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7374             $EGREP "$file_magic_regex" > /dev/null; then
7375             :
7376           else
7377             cat <<_LT_EOF 1>&2
7378
7379 *** Warning: the command libtool uses to detect shared libraries,
7380 *** $file_magic_cmd, produces output that libtool cannot recognize.
7381 *** The result is that libtool may fail to recognize shared libraries
7382 *** as such.  This will affect the creation of libtool libraries that
7383 *** depend on shared libraries, but programs linked with such libtool
7384 *** libraries will work regardless of this problem.  Nevertheless, you
7385 *** may want to report the problem to your system manager and/or to
7386 *** bug-libtool@gnu.org
7387
7388 _LT_EOF
7389           fi ;;
7390         esac
7391       fi
7392       break
7393     fi
7394   done
7395   IFS="$lt_save_ifs"
7396   MAGIC_CMD="$lt_save_MAGIC_CMD"
7397   ;;
7398 esac
7399 fi
7400
7401 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7402 if test -n "$MAGIC_CMD"; then
7403   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7404 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7405 else
7406   { echo "$as_me:$LINENO: result: no" >&5
7407 echo "${ECHO_T}no" >&6; }
7408 fi
7409
7410
7411
7412
7413
7414 if test -z "$lt_cv_path_MAGIC_CMD"; then
7415   if test -n "$ac_tool_prefix"; then
7416     { echo "$as_me:$LINENO: checking for file" >&5
7417 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7418 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7419   echo $ECHO_N "(cached) $ECHO_C" >&6
7420 else
7421   case $MAGIC_CMD in
7422 [\\/*] |  ?:[\\/]*)
7423   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7424   ;;
7425 *)
7426   lt_save_MAGIC_CMD="$MAGIC_CMD"
7427   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7428   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7429   for ac_dir in $ac_dummy; do
7430     IFS="$lt_save_ifs"
7431     test -z "$ac_dir" && ac_dir=.
7432     if test -f $ac_dir/file; then
7433       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7434       if test -n "$file_magic_test_file"; then
7435         case $deplibs_check_method in
7436         "file_magic "*)
7437           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7438           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7439           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7440             $EGREP "$file_magic_regex" > /dev/null; then
7441             :
7442           else
7443             cat <<_LT_EOF 1>&2
7444
7445 *** Warning: the command libtool uses to detect shared libraries,
7446 *** $file_magic_cmd, produces output that libtool cannot recognize.
7447 *** The result is that libtool may fail to recognize shared libraries
7448 *** as such.  This will affect the creation of libtool libraries that
7449 *** depend on shared libraries, but programs linked with such libtool
7450 *** libraries will work regardless of this problem.  Nevertheless, you
7451 *** may want to report the problem to your system manager and/or to
7452 *** bug-libtool@gnu.org
7453
7454 _LT_EOF
7455           fi ;;
7456         esac
7457       fi
7458       break
7459     fi
7460   done
7461   IFS="$lt_save_ifs"
7462   MAGIC_CMD="$lt_save_MAGIC_CMD"
7463   ;;
7464 esac
7465 fi
7466
7467 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7468 if test -n "$MAGIC_CMD"; then
7469   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7470 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7471 else
7472   { echo "$as_me:$LINENO: result: no" >&5
7473 echo "${ECHO_T}no" >&6; }
7474 fi
7475
7476
7477   else
7478     MAGIC_CMD=:
7479   fi
7480 fi
7481
7482   fi
7483   ;;
7484 esac
7485
7486 # Use C for the default configuration in the libtool script
7487
7488 lt_save_CC="$CC"
7489 ac_ext=c
7490 ac_cpp='$CPP $CPPFLAGS'
7491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7494
7495
7496 # Source file extension for C test sources.
7497 ac_ext=c
7498
7499 # Object file extension for compiled C test sources.
7500 objext=o
7501 objext=$objext
7502
7503 # Code to be used in simple compile tests
7504 lt_simple_compile_test_code="int some_variable = 0;"
7505
7506 # Code to be used in simple link tests
7507 lt_simple_link_test_code='int main(){return(0);}'
7508
7509
7510
7511
7512
7513
7514
7515 # If no C compiler was specified, use CC.
7516 LTCC=${LTCC-"$CC"}
7517
7518 # If no C compiler flags were specified, use CFLAGS.
7519 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7520
7521 # Allow CC to be a program name with arguments.
7522 compiler=$CC
7523
7524 # Save the default compiler, since it gets overwritten when the other
7525 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7526 compiler_DEFAULT=$CC
7527
7528 # save warnings/boilerplate of simple test code
7529 ac_outfile=conftest.$ac_objext
7530 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7531 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7532 _lt_compiler_boilerplate=`cat conftest.err`
7533 $RM conftest*
7534
7535 ac_outfile=conftest.$ac_objext
7536 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7537 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7538 _lt_linker_boilerplate=`cat conftest.err`
7539 $RM -r conftest*
7540
7541
7542 ## CAVEAT EMPTOR:
7543 ## There is no encapsulation within the following macros, do not change
7544 ## the running order or otherwise move them around unless you know exactly
7545 ## what you are doing...
7546 if test -n "$compiler"; then
7547
7548 lt_prog_compiler_no_builtin_flag=
7549
7550 if test "$GCC" = yes; then
7551   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7552
7553   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7554 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7555 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7556   echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558   lt_cv_prog_compiler_rtti_exceptions=no
7559    ac_outfile=conftest.$ac_objext
7560    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7561    lt_compiler_flag="-fno-rtti -fno-exceptions"
7562    # Insert the option either (1) after the last *FLAGS variable, or
7563    # (2) before a word containing "conftest.", or (3) at the end.
7564    # Note that $ac_compile itself does not contain backslashes and begins
7565    # with a dollar sign (not a hyphen), so the echo should work correctly.
7566    # The option is referenced via a variable to avoid confusing sed.
7567    lt_compile=`echo "$ac_compile" | $SED \
7568    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7569    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7570    -e 's:$: $lt_compiler_flag:'`
7571    (eval echo "\"\$as_me:7571: $lt_compile\"" >&5)
7572    (eval "$lt_compile" 2>conftest.err)
7573    ac_status=$?
7574    cat conftest.err >&5
7575    echo "$as_me:7575: \$? = $ac_status" >&5
7576    if (exit $ac_status) && test -s "$ac_outfile"; then
7577      # The compiler can only warn and ignore the option if not recognized
7578      # So say no if there are warnings other than the usual output.
7579      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7580      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7581      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7582        lt_cv_prog_compiler_rtti_exceptions=yes
7583      fi
7584    fi
7585    $RM conftest*
7586
7587 fi
7588 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7589 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7590
7591 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7592     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7593 else
7594     :
7595 fi
7596
7597 fi
7598
7599
7600
7601
7602
7603
7604   lt_prog_compiler_wl=
7605 lt_prog_compiler_pic=
7606 lt_prog_compiler_static=
7607
7608 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7609 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7610
7611   if test "$GCC" = yes; then
7612     lt_prog_compiler_wl='-Wl,'
7613     lt_prog_compiler_static='-static'
7614
7615     case $host_os in
7616       aix*)
7617       # All AIX code is PIC.
7618       if test "$host_cpu" = ia64; then
7619         # AIX 5 now supports IA64 processor
7620         lt_prog_compiler_static='-Bstatic'
7621       fi
7622       ;;
7623
7624     amigaos*)
7625       case $host_cpu in
7626       powerpc)
7627             # see comment about AmigaOS4 .so support
7628             lt_prog_compiler_pic='-fPIC'
7629         ;;
7630       m68k)
7631             # FIXME: we need at least 68020 code to build shared libraries, but
7632             # adding the `-m68020' flag to GCC prevents building anything better,
7633             # like `-m68040'.
7634             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7635         ;;
7636       esac
7637       ;;
7638
7639     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7640       # PIC is the default for these OSes.
7641       ;;
7642
7643     mingw* | cygwin* | pw32* | os2*)
7644       # This hack is so that the source file can tell whether it is being
7645       # built for inclusion in a dll (and should export symbols for example).
7646       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7647       # (--disable-auto-import) libraries
7648       lt_prog_compiler_pic='-DDLL_EXPORT'
7649       ;;
7650
7651     darwin* | rhapsody*)
7652       # PIC is the default on this platform
7653       # Common symbols not allowed in MH_DYLIB files
7654       lt_prog_compiler_pic='-fno-common'
7655       ;;
7656
7657     hpux*)
7658       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7659       # not for PA HP-UX.
7660       case $host_cpu in
7661       hppa*64*|ia64*)
7662         # +Z the default
7663         ;;
7664       *)
7665         lt_prog_compiler_pic='-fPIC'
7666         ;;
7667       esac
7668       ;;
7669
7670     interix[3-9]*)
7671       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7672       # Instead, we relocate shared libraries at runtime.
7673       ;;
7674
7675     msdosdjgpp*)
7676       # Just because we use GCC doesn't mean we suddenly get shared libraries
7677       # on systems that don't support them.
7678       lt_prog_compiler_can_build_shared=no
7679       enable_shared=no
7680       ;;
7681
7682     *nto* | *qnx*)
7683       # QNX uses GNU C++, but need to define -shared option too, otherwise
7684       # it will coredump.
7685       lt_prog_compiler_pic='-fPIC -shared'
7686       ;;
7687
7688     sysv4*MP*)
7689       if test -d /usr/nec; then
7690         lt_prog_compiler_pic=-Kconform_pic
7691       fi
7692       ;;
7693
7694     *)
7695       lt_prog_compiler_pic='-fPIC'
7696       ;;
7697     esac
7698   else
7699     # PORTME Check for flag to pass linker flags through the system compiler.
7700     case $host_os in
7701     aix*)
7702       lt_prog_compiler_wl='-Wl,'
7703       if test "$host_cpu" = ia64; then
7704         # AIX 5 now supports IA64 processor
7705         lt_prog_compiler_static='-Bstatic'
7706       else
7707         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7708       fi
7709       ;;
7710
7711     mingw* | cygwin* | pw32* | os2*)
7712       # This hack is so that the source file can tell whether it is being
7713       # built for inclusion in a dll (and should export symbols for example).
7714       lt_prog_compiler_pic='-DDLL_EXPORT'
7715       ;;
7716
7717     hpux9* | hpux10* | hpux11*)
7718       lt_prog_compiler_wl='-Wl,'
7719       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7720       # not for PA HP-UX.
7721       case $host_cpu in
7722       hppa*64*|ia64*)
7723         # +Z the default
7724         ;;
7725       *)
7726         lt_prog_compiler_pic='+Z'
7727         ;;
7728       esac
7729       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7730       lt_prog_compiler_static='${wl}-a ${wl}archive'
7731       ;;
7732
7733     irix5* | irix6* | nonstopux*)
7734       lt_prog_compiler_wl='-Wl,'
7735       # PIC (with -KPIC) is the default.
7736       lt_prog_compiler_static='-non_shared'
7737       ;;
7738
7739     linux* | k*bsd*-gnu)
7740       case $cc_basename in
7741       icc* | ecc* | ifort*)
7742         lt_prog_compiler_wl='-Wl,'
7743         lt_prog_compiler_pic='-KPIC'
7744         lt_prog_compiler_static='-static'
7745         ;;
7746       pgcc* | pgf77* | pgf90* | pgf95*)
7747         # Portland Group compilers (*not* the Pentium gcc compiler,
7748         # which looks to be a dead project)
7749         lt_prog_compiler_wl='-Wl,'
7750         lt_prog_compiler_pic='-fpic'
7751         lt_prog_compiler_static='-Bstatic'
7752         ;;
7753       ccc*)
7754         lt_prog_compiler_wl='-Wl,'
7755         # All Alpha code is PIC.
7756         lt_prog_compiler_static='-non_shared'
7757         ;;
7758       xl*)
7759         # IBM XL C 8.0/Fortran 10.1 on PPC
7760         lt_prog_compiler_wl='-Wl,'
7761         lt_prog_compiler_pic='-qpic'
7762         lt_prog_compiler_static='-qstaticlink'
7763         ;;
7764       *)
7765         case `$CC -V 2>&1 | sed 5q` in
7766         *Sun\ C*)
7767           # Sun C 5.9
7768           lt_prog_compiler_pic='-KPIC'
7769           lt_prog_compiler_static='-Bstatic'
7770           lt_prog_compiler_wl='-Wl,'
7771           ;;
7772         *Sun\ F*)
7773           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7774           lt_prog_compiler_pic='-KPIC'
7775           lt_prog_compiler_static='-Bstatic'
7776           lt_prog_compiler_wl=''
7777           ;;
7778         esac
7779         ;;
7780       esac
7781       ;;
7782
7783     newsos6)
7784       lt_prog_compiler_pic='-KPIC'
7785       lt_prog_compiler_static='-Bstatic'
7786       ;;
7787
7788     *nto* | *qnx*)
7789       # QNX uses GNU C++, but need to define -shared option too, otherwise
7790       # it will coredump.
7791       lt_prog_compiler_pic='-fPIC -shared'
7792       ;;
7793
7794     osf3* | osf4* | osf5*)
7795       lt_prog_compiler_wl='-Wl,'
7796       # All OSF/1 code is PIC.
7797       lt_prog_compiler_static='-non_shared'
7798       ;;
7799
7800     rdos*)
7801       lt_prog_compiler_static='-non_shared'
7802       ;;
7803
7804     solaris*)
7805       lt_prog_compiler_pic='-KPIC'
7806       lt_prog_compiler_static='-Bstatic'
7807       case $cc_basename in
7808       f77* | f90* | f95*)
7809         lt_prog_compiler_wl='-Qoption ld ';;
7810       *)
7811         lt_prog_compiler_wl='-Wl,';;
7812       esac
7813       ;;
7814
7815     sunos4*)
7816       lt_prog_compiler_wl='-Qoption ld '
7817       lt_prog_compiler_pic='-PIC'
7818       lt_prog_compiler_static='-Bstatic'
7819       ;;
7820
7821     sysv4 | sysv4.2uw2* | sysv4.3*)
7822       lt_prog_compiler_wl='-Wl,'
7823       lt_prog_compiler_pic='-KPIC'
7824       lt_prog_compiler_static='-Bstatic'
7825       ;;
7826
7827     sysv4*MP*)
7828       if test -d /usr/nec ;then
7829         lt_prog_compiler_pic='-Kconform_pic'
7830         lt_prog_compiler_static='-Bstatic'
7831       fi
7832       ;;
7833
7834     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7835       lt_prog_compiler_wl='-Wl,'
7836       lt_prog_compiler_pic='-KPIC'
7837       lt_prog_compiler_static='-Bstatic'
7838       ;;
7839
7840     unicos*)
7841       lt_prog_compiler_wl='-Wl,'
7842       lt_prog_compiler_can_build_shared=no
7843       ;;
7844
7845     uts4*)
7846       lt_prog_compiler_pic='-pic'
7847       lt_prog_compiler_static='-Bstatic'
7848       ;;
7849
7850     *)
7851       lt_prog_compiler_can_build_shared=no
7852       ;;
7853     esac
7854   fi
7855
7856 case $host_os in
7857   # For platforms which do not support PIC, -DPIC is meaningless:
7858   *djgpp*)
7859     lt_prog_compiler_pic=
7860     ;;
7861   *)
7862     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7863     ;;
7864 esac
7865 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7866 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7867
7868
7869
7870
7871
7872
7873 #
7874 # Check to make sure the PIC flag actually works.
7875 #
7876 if test -n "$lt_prog_compiler_pic"; then
7877   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7878 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7879 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7880   echo $ECHO_N "(cached) $ECHO_C" >&6
7881 else
7882   lt_cv_prog_compiler_pic_works=no
7883    ac_outfile=conftest.$ac_objext
7884    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7885    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7886    # Insert the option either (1) after the last *FLAGS variable, or
7887    # (2) before a word containing "conftest.", or (3) at the end.
7888    # Note that $ac_compile itself does not contain backslashes and begins
7889    # with a dollar sign (not a hyphen), so the echo should work correctly.
7890    # The option is referenced via a variable to avoid confusing sed.
7891    lt_compile=`echo "$ac_compile" | $SED \
7892    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7893    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7894    -e 's:$: $lt_compiler_flag:'`
7895    (eval echo "\"\$as_me:7895: $lt_compile\"" >&5)
7896    (eval "$lt_compile" 2>conftest.err)
7897    ac_status=$?
7898    cat conftest.err >&5
7899    echo "$as_me:7899: \$? = $ac_status" >&5
7900    if (exit $ac_status) && test -s "$ac_outfile"; then
7901      # The compiler can only warn and ignore the option if not recognized
7902      # So say no if there are warnings other than the usual output.
7903      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7904      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7905      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7906        lt_cv_prog_compiler_pic_works=yes
7907      fi
7908    fi
7909    $RM conftest*
7910
7911 fi
7912 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7913 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7914
7915 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7916     case $lt_prog_compiler_pic in
7917      "" | " "*) ;;
7918      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7919      esac
7920 else
7921     lt_prog_compiler_pic=
7922      lt_prog_compiler_can_build_shared=no
7923 fi
7924
7925 fi
7926
7927
7928
7929
7930
7931
7932 #
7933 # Check to make sure the static flag actually works.
7934 #
7935 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7936 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7937 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7938 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7939   echo $ECHO_N "(cached) $ECHO_C" >&6
7940 else
7941   lt_cv_prog_compiler_static_works=no
7942    save_LDFLAGS="$LDFLAGS"
7943    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7944    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7945    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7946      # The linker can only warn and ignore the option if not recognized
7947      # So say no if there are warnings
7948      if test -s conftest.err; then
7949        # Append any errors to the config.log.
7950        cat conftest.err 1>&5
7951        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7952        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7953        if diff conftest.exp conftest.er2 >/dev/null; then
7954          lt_cv_prog_compiler_static_works=yes
7955        fi
7956      else
7957        lt_cv_prog_compiler_static_works=yes
7958      fi
7959    fi
7960    $RM -r conftest*
7961    LDFLAGS="$save_LDFLAGS"
7962
7963 fi
7964 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7965 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7966
7967 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7968     :
7969 else
7970     lt_prog_compiler_static=
7971 fi
7972
7973
7974
7975
7976
7977
7978
7979   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7980 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7981 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7982   echo $ECHO_N "(cached) $ECHO_C" >&6
7983 else
7984   lt_cv_prog_compiler_c_o=no
7985    $RM -r conftest 2>/dev/null
7986    mkdir conftest
7987    cd conftest
7988    mkdir out
7989    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7990
7991    lt_compiler_flag="-o out/conftest2.$ac_objext"
7992    # Insert the option either (1) after the last *FLAGS variable, or
7993    # (2) before a word containing "conftest.", or (3) at the end.
7994    # Note that $ac_compile itself does not contain backslashes and begins
7995    # with a dollar sign (not a hyphen), so the echo should work correctly.
7996    lt_compile=`echo "$ac_compile" | $SED \
7997    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7998    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7999    -e 's:$: $lt_compiler_flag:'`
8000    (eval echo "\"\$as_me:8000: $lt_compile\"" >&5)
8001    (eval "$lt_compile" 2>out/conftest.err)
8002    ac_status=$?
8003    cat out/conftest.err >&5
8004    echo "$as_me:8004: \$? = $ac_status" >&5
8005    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8006    then
8007      # The compiler can only warn and ignore the option if not recognized
8008      # So say no if there are warnings
8009      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8010      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8011      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8012        lt_cv_prog_compiler_c_o=yes
8013      fi
8014    fi
8015    chmod u+w . 2>&5
8016    $RM conftest*
8017    # SGI C++ compiler will create directory out/ii_files/ for
8018    # template instantiation
8019    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8020    $RM out/* && rmdir out
8021    cd ..
8022    $RM -r conftest
8023    $RM conftest*
8024
8025 fi
8026 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8027 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8028
8029
8030
8031
8032
8033
8034   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8035 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8036 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8037   echo $ECHO_N "(cached) $ECHO_C" >&6
8038 else
8039   lt_cv_prog_compiler_c_o=no
8040    $RM -r conftest 2>/dev/null
8041    mkdir conftest
8042    cd conftest
8043    mkdir out
8044    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8045
8046    lt_compiler_flag="-o out/conftest2.$ac_objext"
8047    # Insert the option either (1) after the last *FLAGS variable, or
8048    # (2) before a word containing "conftest.", or (3) at the end.
8049    # Note that $ac_compile itself does not contain backslashes and begins
8050    # with a dollar sign (not a hyphen), so the echo should work correctly.
8051    lt_compile=`echo "$ac_compile" | $SED \
8052    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8053    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8054    -e 's:$: $lt_compiler_flag:'`
8055    (eval echo "\"\$as_me:8055: $lt_compile\"" >&5)
8056    (eval "$lt_compile" 2>out/conftest.err)
8057    ac_status=$?
8058    cat out/conftest.err >&5
8059    echo "$as_me:8059: \$? = $ac_status" >&5
8060    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8061    then
8062      # The compiler can only warn and ignore the option if not recognized
8063      # So say no if there are warnings
8064      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8065      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8066      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8067        lt_cv_prog_compiler_c_o=yes
8068      fi
8069    fi
8070    chmod u+w . 2>&5
8071    $RM conftest*
8072    # SGI C++ compiler will create directory out/ii_files/ for
8073    # template instantiation
8074    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8075    $RM out/* && rmdir out
8076    cd ..
8077    $RM -r conftest
8078    $RM conftest*
8079
8080 fi
8081 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8082 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8083
8084
8085
8086
8087 hard_links="nottested"
8088 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8089   # do not overwrite the value of need_locks provided by the user
8090   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8091 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8092   hard_links=yes
8093   $RM conftest*
8094   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8095   touch conftest.a
8096   ln conftest.a conftest.b 2>&5 || hard_links=no
8097   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8098   { echo "$as_me:$LINENO: result: $hard_links" >&5
8099 echo "${ECHO_T}$hard_links" >&6; }
8100   if test "$hard_links" = no; then
8101     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8102 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8103     need_locks=warn
8104   fi
8105 else
8106   need_locks=no
8107 fi
8108
8109
8110
8111
8112
8113
8114   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8115 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8116
8117   runpath_var=
8118   allow_undefined_flag=
8119   always_export_symbols=no
8120   archive_cmds=
8121   archive_expsym_cmds=
8122   compiler_needs_object=no
8123   enable_shared_with_static_runtimes=no
8124   export_dynamic_flag_spec=
8125   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8126   hardcode_automatic=no
8127   hardcode_direct=no
8128   hardcode_direct_absolute=no
8129   hardcode_libdir_flag_spec=
8130   hardcode_libdir_flag_spec_ld=
8131   hardcode_libdir_separator=
8132   hardcode_minus_L=no
8133   hardcode_shlibpath_var=unsupported
8134   inherit_rpath=no
8135   link_all_deplibs=unknown
8136   module_cmds=
8137   module_expsym_cmds=
8138   old_archive_from_new_cmds=
8139   old_archive_from_expsyms_cmds=
8140   thread_safe_flag_spec=
8141   whole_archive_flag_spec=
8142   # include_expsyms should be a list of space-separated symbols to be *always*
8143   # included in the symbol list
8144   include_expsyms=
8145   # exclude_expsyms can be an extended regexp of symbols to exclude
8146   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8147   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8148   # as well as any symbol that contains `d'.
8149   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8150   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8151   # platforms (ab)use it in PIC code, but their linkers get confused if
8152   # the symbol is explicitly referenced.  Since portable code cannot
8153   # rely on this symbol name, it's probably fine to never include it in
8154   # preloaded symbol tables.
8155   # Exclude shared library initialization/finalization symbols.
8156   extract_expsyms_cmds=
8157
8158   case $host_os in
8159   cygwin* | mingw* | pw32*)
8160     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8161     # When not using gcc, we currently assume that we are using
8162     # Microsoft Visual C++.
8163     if test "$GCC" != yes; then
8164       with_gnu_ld=no
8165     fi
8166     ;;
8167   interix*)
8168     # we just hope/assume this is gcc and not c89 (= MSVC++)
8169     with_gnu_ld=yes
8170     ;;
8171   openbsd*)
8172     with_gnu_ld=no
8173     ;;
8174   esac
8175
8176   ld_shlibs=yes
8177   if test "$with_gnu_ld" = yes; then
8178     # If archive_cmds runs LD, not CC, wlarc should be empty
8179     wlarc='${wl}'
8180
8181     # Set some defaults for GNU ld with shared library support. These
8182     # are reset later if shared libraries are not supported. Putting them
8183     # here allows them to be overridden if necessary.
8184     runpath_var=LD_RUN_PATH
8185     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8186     export_dynamic_flag_spec='${wl}--export-dynamic'
8187     # ancient GNU ld didn't support --whole-archive et. al.
8188     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8189       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8190     else
8191       whole_archive_flag_spec=
8192     fi
8193     supports_anon_versioning=no
8194     case `$LD -v 2>&1` in
8195       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8196       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8197       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8198       *\ 2.11.*) ;; # other 2.11 versions
8199       *) supports_anon_versioning=yes ;;
8200     esac
8201
8202     # See if GNU ld supports shared libraries.
8203     case $host_os in
8204     aix[3-9]*)
8205       # On AIX/PPC, the GNU linker is very broken
8206       if test "$host_cpu" != ia64; then
8207         ld_shlibs=no
8208         cat <<_LT_EOF 1>&2
8209
8210 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8211 *** to be unable to reliably create shared libraries on AIX.
8212 *** Therefore, libtool is disabling shared libraries support.  If you
8213 *** really care for shared libraries, you may want to modify your PATH
8214 *** so that a non-GNU linker is found, and then restart.
8215
8216 _LT_EOF
8217       fi
8218       ;;
8219
8220     amigaos*)
8221       case $host_cpu in
8222       powerpc)
8223             # see comment about AmigaOS4 .so support
8224             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8225             archive_expsym_cmds=''
8226         ;;
8227       m68k)
8228             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)'
8229             hardcode_libdir_flag_spec='-L$libdir'
8230             hardcode_minus_L=yes
8231         ;;
8232       esac
8233       ;;
8234
8235     beos*)
8236       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8237         allow_undefined_flag=unsupported
8238         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8239         # support --undefined.  This deserves some investigation.  FIXME
8240         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8241       else
8242         ld_shlibs=no
8243       fi
8244       ;;
8245
8246     cygwin* | mingw* | pw32*)
8247       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8248       # as there is no search path for DLLs.
8249       hardcode_libdir_flag_spec='-L$libdir'
8250       allow_undefined_flag=unsupported
8251       always_export_symbols=no
8252       enable_shared_with_static_runtimes=yes
8253       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8254
8255       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8256         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8257         # If the export-symbols file already is a .def file (1st line
8258         # is EXPORTS), use it as is; otherwise, prepend...
8259         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8260           cp $export_symbols $output_objdir/$soname.def;
8261         else
8262           echo EXPORTS > $output_objdir/$soname.def;
8263           cat $export_symbols >> $output_objdir/$soname.def;
8264         fi~
8265         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8266       else
8267         ld_shlibs=no
8268       fi
8269       ;;
8270
8271     interix[3-9]*)
8272       hardcode_direct=no
8273       hardcode_shlibpath_var=no
8274       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8275       export_dynamic_flag_spec='${wl}-E'
8276       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8277       # Instead, shared libraries are loaded at an image base (0x10000000 by
8278       # default) and relocated if they conflict, which is a slow very memory
8279       # consuming and fragmenting process.  To avoid this, we pick a random,
8280       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8281       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8282       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8283       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'
8284       ;;
8285
8286     gnu* | linux* | tpf* | k*bsd*-gnu)
8287       tmp_diet=no
8288       if test "$host_os" = linux-dietlibc; then
8289         case $cc_basename in
8290           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8291         esac
8292       fi
8293       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8294          && test "$tmp_diet" = no
8295       then
8296         tmp_addflag=
8297         tmp_sharedflag='-shared'
8298         case $cc_basename,$host_cpu in
8299         pgcc*)                          # Portland Group C compiler
8300           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'
8301           tmp_addflag=' $pic_flag'
8302           ;;
8303         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8304           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'
8305           tmp_addflag=' $pic_flag -Mnomain' ;;
8306         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8307           tmp_addflag=' -i_dynamic' ;;
8308         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8309           tmp_addflag=' -i_dynamic -nofor_main' ;;
8310         ifc* | ifort*)                  # Intel Fortran compiler
8311           tmp_addflag=' -nofor_main' ;;
8312         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8313           tmp_sharedflag='-qmkshrobj'
8314           tmp_addflag= ;;
8315         esac
8316         case `$CC -V 2>&1 | sed 5q` in
8317         *Sun\ C*)                       # Sun C 5.9
8318           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'
8319           compiler_needs_object=yes
8320           tmp_sharedflag='-G' ;;
8321         *Sun\ F*)                       # Sun Fortran 8.3
8322           tmp_sharedflag='-G' ;;
8323         esac
8324         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8325
8326         if test "x$supports_anon_versioning" = xyes; then
8327           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8328             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8329             echo "local: *; };" >> $output_objdir/$libname.ver~
8330             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8331         fi
8332
8333         case $cc_basename in
8334         xlf*)
8335           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8336           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8337           hardcode_libdir_flag_spec=
8338           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8339           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8340           if test "x$supports_anon_versioning" = xyes; then
8341             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8342               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8343               echo "local: *; };" >> $output_objdir/$libname.ver~
8344               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8345           fi
8346           ;;
8347         esac
8348       else
8349         ld_shlibs=no
8350       fi
8351       ;;
8352
8353     netbsd*)
8354       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8355         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8356         wlarc=
8357       else
8358         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8359         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8360       fi
8361       ;;
8362
8363     solaris*)
8364       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8365         ld_shlibs=no
8366         cat <<_LT_EOF 1>&2
8367
8368 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8369 *** create shared libraries on Solaris systems.  Therefore, libtool
8370 *** is disabling shared libraries support.  We urge you to upgrade GNU
8371 *** binutils to release 2.9.1 or newer.  Another option is to modify
8372 *** your PATH or compiler configuration so that the native linker is
8373 *** used, and then restart.
8374
8375 _LT_EOF
8376       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8377         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8378         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8379       else
8380         ld_shlibs=no
8381       fi
8382       ;;
8383
8384     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8385       case `$LD -v 2>&1` in
8386         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8387         ld_shlibs=no
8388         cat <<_LT_EOF 1>&2
8389
8390 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8391 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8392 *** is disabling shared libraries support.  We urge you to upgrade GNU
8393 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8394 *** your PATH or compiler configuration so that the native linker is
8395 *** used, and then restart.
8396
8397 _LT_EOF
8398         ;;
8399         *)
8400           # For security reasons, it is highly recommended that you always
8401           # use absolute paths for naming shared libraries, and exclude the
8402           # DT_RUNPATH tag from executables and libraries.  But doing so
8403           # requires that you compile everything twice, which is a pain.
8404           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8405             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8406             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8407             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8408           else
8409             ld_shlibs=no
8410           fi
8411         ;;
8412       esac
8413       ;;
8414
8415     sunos4*)
8416       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8417       wlarc=
8418       hardcode_direct=yes
8419       hardcode_shlibpath_var=no
8420       ;;
8421
8422     *)
8423       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8424         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8425         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8426       else
8427         ld_shlibs=no
8428       fi
8429       ;;
8430     esac
8431
8432     if test "$ld_shlibs" = no; then
8433       runpath_var=
8434       hardcode_libdir_flag_spec=
8435       export_dynamic_flag_spec=
8436       whole_archive_flag_spec=
8437     fi
8438   else
8439     # PORTME fill in a description of your system's linker (not GNU ld)
8440     case $host_os in
8441     aix3*)
8442       allow_undefined_flag=unsupported
8443       always_export_symbols=yes
8444       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'
8445       # Note: this linker hardcodes the directories in LIBPATH if there
8446       # are no directories specified by -L.
8447       hardcode_minus_L=yes
8448       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8449         # Neither direct hardcoding nor static linking is supported with a
8450         # broken collect2.
8451         hardcode_direct=unsupported
8452       fi
8453       ;;
8454
8455     aix[4-9]*)
8456       if test "$host_cpu" = ia64; then
8457         # On IA64, the linker does run time linking by default, so we don't
8458         # have to do anything special.
8459         aix_use_runtimelinking=no
8460         exp_sym_flag='-Bexport'
8461         no_entry_flag=""
8462       else
8463         # If we're using GNU nm, then we don't want the "-C" option.
8464         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8465         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8466           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'
8467         else
8468           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'
8469         fi
8470         aix_use_runtimelinking=no
8471
8472         # Test if we are trying to use run time linking or normal
8473         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8474         # need to do runtime linking.
8475         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8476           for ld_flag in $LDFLAGS; do
8477           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8478             aix_use_runtimelinking=yes
8479             break
8480           fi
8481           done
8482           ;;
8483         esac
8484
8485         exp_sym_flag='-bexport'
8486         no_entry_flag='-bnoentry'
8487       fi
8488
8489       # When large executables or shared objects are built, AIX ld can
8490       # have problems creating the table of contents.  If linking a library
8491       # or program results in "error TOC overflow" add -mminimal-toc to
8492       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8493       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8494
8495       archive_cmds=''
8496       hardcode_direct=yes
8497       hardcode_direct_absolute=yes
8498       hardcode_libdir_separator=':'
8499       link_all_deplibs=yes
8500       file_list_spec='${wl}-f,'
8501
8502       if test "$GCC" = yes; then
8503         case $host_os in aix4.[012]|aix4.[012].*)
8504         # We only want to do this on AIX 4.2 and lower, the check
8505         # below for broken collect2 doesn't work under 4.3+
8506           collect2name=`${CC} -print-prog-name=collect2`
8507           if test -f "$collect2name" &&
8508            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8509           then
8510           # We have reworked collect2
8511           :
8512           else
8513           # We have old collect2
8514           hardcode_direct=unsupported
8515           # It fails to find uninstalled libraries when the uninstalled
8516           # path is not listed in the libpath.  Setting hardcode_minus_L
8517           # to unsupported forces relinking
8518           hardcode_minus_L=yes
8519           hardcode_libdir_flag_spec='-L$libdir'
8520           hardcode_libdir_separator=
8521           fi
8522           ;;
8523         esac
8524         shared_flag='-shared'
8525         if test "$aix_use_runtimelinking" = yes; then
8526           shared_flag="$shared_flag "'${wl}-G'
8527         fi
8528       else
8529         # not using gcc
8530         if test "$host_cpu" = ia64; then
8531         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8532         # chokes on -Wl,-G. The following line is correct:
8533           shared_flag='-G'
8534         else
8535           if test "$aix_use_runtimelinking" = yes; then
8536             shared_flag='${wl}-G'
8537           else
8538             shared_flag='${wl}-bM:SRE'
8539           fi
8540         fi
8541       fi
8542
8543       # It seems that -bexpall does not export symbols beginning with
8544       # underscore (_), so it is better to generate a list of symbols to export.
8545       always_export_symbols=yes
8546       if test "$aix_use_runtimelinking" = yes; then
8547         # Warning - without using the other runtime loading flags (-brtl),
8548         # -berok will link without error, but may produce a broken library.
8549         allow_undefined_flag='-berok'
8550         # Determine the default libpath from the value encoded in an
8551         # empty executable.
8552         cat >conftest.$ac_ext <<_ACEOF
8553 /* confdefs.h.  */
8554 _ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h.  */
8558
8559 int
8560 main ()
8561 {
8562
8563   ;
8564   return 0;
8565 }
8566 _ACEOF
8567 rm -f conftest.$ac_objext conftest$ac_exeext
8568 if { (ac_try="$ac_link"
8569 case "(($ac_try" in
8570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571   *) ac_try_echo=$ac_try;;
8572 esac
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574   (eval "$ac_link") 2>conftest.er1
8575   ac_status=$?
8576   grep -v '^ *+' conftest.er1 >conftest.err
8577   rm -f conftest.er1
8578   cat conftest.err >&5
8579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580   (exit $ac_status); } && {
8581          test -z "$ac_c_werror_flag" ||
8582          test ! -s conftest.err
8583        } && test -s conftest$ac_exeext &&
8584        $as_test_x conftest$ac_exeext; then
8585
8586 lt_aix_libpath_sed='
8587     /Import File Strings/,/^$/ {
8588         /^0/ {
8589             s/^0  *\(.*\)$/\1/
8590             p
8591         }
8592     }'
8593 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8594 # Check for a 64-bit object if we didn't find anything.
8595 if test -z "$aix_libpath"; then
8596   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8597 fi
8598 else
8599   echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8601
8602
8603 fi
8604
8605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8606       conftest$ac_exeext conftest.$ac_ext
8607 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8608
8609         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8610         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"
8611       else
8612         if test "$host_cpu" = ia64; then
8613           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8614           allow_undefined_flag="-z nodefs"
8615           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"
8616         else
8617          # Determine the default libpath from the value encoded in an
8618          # empty executable.
8619          cat >conftest.$ac_ext <<_ACEOF
8620 /* confdefs.h.  */
8621 _ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h.  */
8625
8626 int
8627 main ()
8628 {
8629
8630   ;
8631   return 0;
8632 }
8633 _ACEOF
8634 rm -f conftest.$ac_objext conftest$ac_exeext
8635 if { (ac_try="$ac_link"
8636 case "(($ac_try" in
8637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638   *) ac_try_echo=$ac_try;;
8639 esac
8640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641   (eval "$ac_link") 2>conftest.er1
8642   ac_status=$?
8643   grep -v '^ *+' conftest.er1 >conftest.err
8644   rm -f conftest.er1
8645   cat conftest.err >&5
8646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647   (exit $ac_status); } && {
8648          test -z "$ac_c_werror_flag" ||
8649          test ! -s conftest.err
8650        } && test -s conftest$ac_exeext &&
8651        $as_test_x conftest$ac_exeext; then
8652
8653 lt_aix_libpath_sed='
8654     /Import File Strings/,/^$/ {
8655         /^0/ {
8656             s/^0  *\(.*\)$/\1/
8657             p
8658         }
8659     }'
8660 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8661 # Check for a 64-bit object if we didn't find anything.
8662 if test -z "$aix_libpath"; then
8663   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8664 fi
8665 else
8666   echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8668
8669
8670 fi
8671
8672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8673       conftest$ac_exeext conftest.$ac_ext
8674 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8675
8676          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8677           # Warning - without using the other run time loading flags,
8678           # -berok will link without error, but may produce a broken library.
8679           no_undefined_flag=' ${wl}-bernotok'
8680           allow_undefined_flag=' ${wl}-berok'
8681           # Exported symbols can be pulled into shared objects from archives
8682           whole_archive_flag_spec='$convenience'
8683           archive_cmds_need_lc=yes
8684           # This is similar to how AIX traditionally builds its shared libraries.
8685           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'
8686         fi
8687       fi
8688       ;;
8689
8690     amigaos*)
8691       case $host_cpu in
8692       powerpc)
8693             # see comment about AmigaOS4 .so support
8694             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8695             archive_expsym_cmds=''
8696         ;;
8697       m68k)
8698             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)'
8699             hardcode_libdir_flag_spec='-L$libdir'
8700             hardcode_minus_L=yes
8701         ;;
8702       esac
8703       ;;
8704
8705     bsdi[45]*)
8706       export_dynamic_flag_spec=-rdynamic
8707       ;;
8708
8709     cygwin* | mingw* | pw32*)
8710       # When not using gcc, we currently assume that we are using
8711       # Microsoft Visual C++.
8712       # hardcode_libdir_flag_spec is actually meaningless, as there is
8713       # no search path for DLLs.
8714       hardcode_libdir_flag_spec=' '
8715       allow_undefined_flag=unsupported
8716       # Tell ltmain to make .lib files, not .a files.
8717       libext=lib
8718       # Tell ltmain to make .dll files, not .so files.
8719       shrext_cmds=".dll"
8720       # FIXME: Setting linknames here is a bad hack.
8721       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8722       # The linker will automatically build a .lib file if we build a DLL.
8723       old_archive_from_new_cmds='true'
8724       # FIXME: Should let the user specify the lib program.
8725       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8726       fix_srcfile_path='`cygpath -w "$srcfile"`'
8727       enable_shared_with_static_runtimes=yes
8728       ;;
8729
8730     darwin* | rhapsody*)
8731
8732
8733   archive_cmds_need_lc=no
8734   hardcode_direct=no
8735   hardcode_automatic=yes
8736   hardcode_shlibpath_var=unsupported
8737   whole_archive_flag_spec=''
8738   link_all_deplibs=yes
8739   allow_undefined_flag="$_lt_dar_allow_undefined"
8740   if test "$GCC" = "yes"; then
8741     output_verbose_link_cmd=echo
8742     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8743     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8744     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}"
8745     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}"
8746
8747   else
8748   ld_shlibs=no
8749   fi
8750
8751       ;;
8752
8753     dgux*)
8754       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8755       hardcode_libdir_flag_spec='-L$libdir'
8756       hardcode_shlibpath_var=no
8757       ;;
8758
8759     freebsd1*)
8760       ld_shlibs=no
8761       ;;
8762
8763     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8764     # support.  Future versions do this automatically, but an explicit c++rt0.o
8765     # does not break anything, and helps significantly (at the cost of a little
8766     # extra space).
8767     freebsd2.2*)
8768       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8769       hardcode_libdir_flag_spec='-R$libdir'
8770       hardcode_direct=yes
8771       hardcode_shlibpath_var=no
8772       ;;
8773
8774     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8775     freebsd2*)
8776       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8777       hardcode_direct=yes
8778       hardcode_minus_L=yes
8779       hardcode_shlibpath_var=no
8780       ;;
8781
8782     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8783     freebsd* | dragonfly*)
8784       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8785       hardcode_libdir_flag_spec='-R$libdir'
8786       hardcode_direct=yes
8787       hardcode_shlibpath_var=no
8788       ;;
8789
8790     hpux9*)
8791       if test "$GCC" = yes; then
8792         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'
8793       else
8794         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'
8795       fi
8796       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8797       hardcode_libdir_separator=:
8798       hardcode_direct=yes
8799
8800       # hardcode_minus_L: Not really in the search PATH,
8801       # but as the default location of the library.
8802       hardcode_minus_L=yes
8803       export_dynamic_flag_spec='${wl}-E'
8804       ;;
8805
8806     hpux10*)
8807       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8808         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8809       else
8810         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8811       fi
8812       if test "$with_gnu_ld" = no; then
8813         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8814         hardcode_libdir_flag_spec_ld='+b $libdir'
8815         hardcode_libdir_separator=:
8816         hardcode_direct=yes
8817         hardcode_direct_absolute=yes
8818         export_dynamic_flag_spec='${wl}-E'
8819         # hardcode_minus_L: Not really in the search PATH,
8820         # but as the default location of the library.
8821         hardcode_minus_L=yes
8822       fi
8823       ;;
8824
8825     hpux11*)
8826       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8827         case $host_cpu in
8828         hppa*64*)
8829           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8830           ;;
8831         ia64*)
8832           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8833           ;;
8834         *)
8835           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8836           ;;
8837         esac
8838       else
8839         case $host_cpu in
8840         hppa*64*)
8841           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8842           ;;
8843         ia64*)
8844           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8845           ;;
8846         *)
8847           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8848           ;;
8849         esac
8850       fi
8851       if test "$with_gnu_ld" = no; then
8852         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8853         hardcode_libdir_separator=:
8854
8855         case $host_cpu in
8856         hppa*64*|ia64*)
8857           hardcode_direct=no
8858           hardcode_shlibpath_var=no
8859           ;;
8860         *)
8861           hardcode_direct=yes
8862           hardcode_direct_absolute=yes
8863           export_dynamic_flag_spec='${wl}-E'
8864
8865           # hardcode_minus_L: Not really in the search PATH,
8866           # but as the default location of the library.
8867           hardcode_minus_L=yes
8868           ;;
8869         esac
8870       fi
8871       ;;
8872
8873     irix5* | irix6* | nonstopux*)
8874       if test "$GCC" = yes; then
8875         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'
8876         # Try to use the -exported_symbol ld option, if it does not
8877         # work, assume that -exports_file does not work either and
8878         # implicitly export all symbols.
8879         save_LDFLAGS="$LDFLAGS"
8880         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8881         cat >conftest.$ac_ext <<_ACEOF
8882 int foo(void) {}
8883 _ACEOF
8884 rm -f conftest.$ac_objext conftest$ac_exeext
8885 if { (ac_try="$ac_link"
8886 case "(($ac_try" in
8887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888   *) ac_try_echo=$ac_try;;
8889 esac
8890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891   (eval "$ac_link") 2>conftest.er1
8892   ac_status=$?
8893   grep -v '^ *+' conftest.er1 >conftest.err
8894   rm -f conftest.er1
8895   cat conftest.err >&5
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); } && {
8898          test -z "$ac_c_werror_flag" ||
8899          test ! -s conftest.err
8900        } && test -s conftest$ac_exeext &&
8901        $as_test_x conftest$ac_exeext; then
8902   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'
8903
8904 else
8905   echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8907
8908
8909 fi
8910
8911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8912       conftest$ac_exeext conftest.$ac_ext
8913         LDFLAGS="$save_LDFLAGS"
8914       else
8915         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'
8916         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'
8917       fi
8918       archive_cmds_need_lc='no'
8919       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8920       hardcode_libdir_separator=:
8921       inherit_rpath=yes
8922       link_all_deplibs=yes
8923       ;;
8924
8925     netbsd*)
8926       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8927         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8928       else
8929         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8930       fi
8931       hardcode_libdir_flag_spec='-R$libdir'
8932       hardcode_direct=yes
8933       hardcode_shlibpath_var=no
8934       ;;
8935
8936     newsos6)
8937       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8938       hardcode_direct=yes
8939       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8940       hardcode_libdir_separator=:
8941       hardcode_shlibpath_var=no
8942       ;;
8943
8944     *nto* | *qnx*)
8945       ;;
8946
8947     openbsd*)
8948       if test -f /usr/libexec/ld.so; then
8949         hardcode_direct=yes
8950         hardcode_shlibpath_var=no
8951         hardcode_direct_absolute=yes
8952         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8953           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8954           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8955           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8956           export_dynamic_flag_spec='${wl}-E'
8957         else
8958           case $host_os in
8959            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8960              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8961              hardcode_libdir_flag_spec='-R$libdir'
8962              ;;
8963            *)
8964              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8965              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8966              ;;
8967           esac
8968         fi
8969       else
8970         ld_shlibs=no
8971       fi
8972       ;;
8973
8974     os2*)
8975       hardcode_libdir_flag_spec='-L$libdir'
8976       hardcode_minus_L=yes
8977       allow_undefined_flag=unsupported
8978       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'
8979       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8980       ;;
8981
8982     osf3*)
8983       if test "$GCC" = yes; then
8984         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8985         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'
8986       else
8987         allow_undefined_flag=' -expect_unresolved \*'
8988         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'
8989       fi
8990       archive_cmds_need_lc='no'
8991       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8992       hardcode_libdir_separator=:
8993       ;;
8994
8995     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8996       if test "$GCC" = yes; then
8997         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8998         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'
8999         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9000       else
9001         allow_undefined_flag=' -expect_unresolved \*'
9002         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'
9003         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~
9004         $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'
9005
9006         # Both c and cxx compiler support -rpath directly
9007         hardcode_libdir_flag_spec='-rpath $libdir'
9008       fi
9009       archive_cmds_need_lc='no'
9010       hardcode_libdir_separator=:
9011       ;;
9012
9013     solaris*)
9014       no_undefined_flag=' -z defs'
9015       if test "$GCC" = yes; then
9016         wlarc='${wl}'
9017         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9018         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9019           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9020       else
9021         case `$CC -V 2>&1` in
9022         *"Compilers 5.0"*)
9023           wlarc=''
9024           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9025           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9026           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9027           ;;
9028         *)
9029           wlarc='${wl}'
9030           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9031           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9032           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9033           ;;
9034         esac
9035       fi
9036       hardcode_libdir_flag_spec='-R$libdir'
9037       hardcode_shlibpath_var=no
9038       case $host_os in
9039       solaris2.[0-5] | solaris2.[0-5].*) ;;
9040       *)
9041         # The compiler driver will combine and reorder linker options,
9042         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9043         # but is careful enough not to reorder.
9044         # Supported since Solaris 2.6 (maybe 2.5.1?)
9045         if test "$GCC" = yes; then
9046           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9047         else
9048           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9049         fi
9050         ;;
9051       esac
9052       link_all_deplibs=yes
9053       ;;
9054
9055     sunos4*)
9056       if test "x$host_vendor" = xsequent; then
9057         # Use $CC to link under sequent, because it throws in some extra .o
9058         # files that make .init and .fini sections work.
9059         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9060       else
9061         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9062       fi
9063       hardcode_libdir_flag_spec='-L$libdir'
9064       hardcode_direct=yes
9065       hardcode_minus_L=yes
9066       hardcode_shlibpath_var=no
9067       ;;
9068
9069     sysv4)
9070       case $host_vendor in
9071         sni)
9072           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9073           hardcode_direct=yes # is this really true???
9074         ;;
9075         siemens)
9076           ## LD is ld it makes a PLAMLIB
9077           ## CC just makes a GrossModule.
9078           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9079           reload_cmds='$CC -r -o $output$reload_objs'
9080           hardcode_direct=no
9081         ;;
9082         motorola)
9083           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9084           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9085         ;;
9086       esac
9087       runpath_var='LD_RUN_PATH'
9088       hardcode_shlibpath_var=no
9089       ;;
9090
9091     sysv4.3*)
9092       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9093       hardcode_shlibpath_var=no
9094       export_dynamic_flag_spec='-Bexport'
9095       ;;
9096
9097     sysv4*MP*)
9098       if test -d /usr/nec; then
9099         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9100         hardcode_shlibpath_var=no
9101         runpath_var=LD_RUN_PATH
9102         hardcode_runpath_var=yes
9103         ld_shlibs=yes
9104       fi
9105       ;;
9106
9107     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9108       no_undefined_flag='${wl}-z,text'
9109       archive_cmds_need_lc=no
9110       hardcode_shlibpath_var=no
9111       runpath_var='LD_RUN_PATH'
9112
9113       if test "$GCC" = yes; then
9114         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9115         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9116       else
9117         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9118         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9119       fi
9120       ;;
9121
9122     sysv5* | sco3.2v5* | sco5v6*)
9123       # Note: We can NOT use -z defs as we might desire, because we do not
9124       # link with -lc, and that would cause any symbols used from libc to
9125       # always be unresolved, which means just about no library would
9126       # ever link correctly.  If we're not using GNU ld we use -z text
9127       # though, which does catch some bad symbols but isn't as heavy-handed
9128       # as -z defs.
9129       no_undefined_flag='${wl}-z,text'
9130       allow_undefined_flag='${wl}-z,nodefs'
9131       archive_cmds_need_lc=no
9132       hardcode_shlibpath_var=no
9133       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9134       hardcode_libdir_separator=':'
9135       link_all_deplibs=yes
9136       export_dynamic_flag_spec='${wl}-Bexport'
9137       runpath_var='LD_RUN_PATH'
9138
9139       if test "$GCC" = yes; then
9140         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9141         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9142       else
9143         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9144         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9145       fi
9146       ;;
9147
9148     uts4*)
9149       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9150       hardcode_libdir_flag_spec='-L$libdir'
9151       hardcode_shlibpath_var=no
9152       ;;
9153
9154     *)
9155       ld_shlibs=no
9156       ;;
9157     esac
9158
9159     if test x$host_vendor = xsni; then
9160       case $host in
9161       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9162         export_dynamic_flag_spec='${wl}-Blargedynsym'
9163         ;;
9164       esac
9165     fi
9166   fi
9167
9168 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9169 echo "${ECHO_T}$ld_shlibs" >&6; }
9170 test "$ld_shlibs" = no && can_build_shared=no
9171
9172 with_gnu_ld=$with_gnu_ld
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188 #
9189 # Do we need to explicitly link libc?
9190 #
9191 case "x$archive_cmds_need_lc" in
9192 x|xyes)
9193   # Assume -lc should be added
9194   archive_cmds_need_lc=yes
9195
9196   if test "$enable_shared" = yes && test "$GCC" = yes; then
9197     case $archive_cmds in
9198     *'~'*)
9199       # FIXME: we may have to deal with multi-command sequences.
9200       ;;
9201     '$CC '*)
9202       # Test whether the compiler implicitly links with -lc since on some
9203       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9204       # to ld, don't add -lc before -lgcc.
9205       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9206 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9207       $RM conftest*
9208       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9209
9210       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9211   (eval $ac_compile) 2>&5
9212   ac_status=$?
9213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214   (exit $ac_status); } 2>conftest.err; then
9215         soname=conftest
9216         lib=conftest
9217         libobjs=conftest.$ac_objext
9218         deplibs=
9219         wl=$lt_prog_compiler_wl
9220         pic_flag=$lt_prog_compiler_pic
9221         compiler_flags=-v
9222         linker_flags=-v
9223         verstring=
9224         output_objdir=.
9225         libname=conftest
9226         lt_save_allow_undefined_flag=$allow_undefined_flag
9227         allow_undefined_flag=
9228         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9229   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9230   ac_status=$?
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); }
9233         then
9234           archive_cmds_need_lc=no
9235         else
9236           archive_cmds_need_lc=yes
9237         fi
9238         allow_undefined_flag=$lt_save_allow_undefined_flag
9239       else
9240         cat conftest.err 1>&5
9241       fi
9242       $RM conftest*
9243       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9244 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9245       ;;
9246     esac
9247   fi
9248   ;;
9249 esac
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9408 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9409
9410 if test "$GCC" = yes; then
9411   case $host_os in
9412     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9413     *) lt_awk_arg="/^libraries:/" ;;
9414   esac
9415   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9416   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9417     # if the path contains ";" then we assume it to be the separator
9418     # otherwise default to the standard path separator (i.e. ":") - it is
9419     # assumed that no part of a normal pathname contains ";" but that should
9420     # okay in the real world where ";" in dirpaths is itself problematic.
9421     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9422   else
9423     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9424   fi
9425   # Ok, now we have the path, separated by spaces, we can step through it
9426   # and add multilib dir if necessary.
9427   lt_tmp_lt_search_path_spec=
9428   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9429   for lt_sys_path in $lt_search_path_spec; do
9430     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9431       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9432     else
9433       test -d "$lt_sys_path" && \
9434         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9435     fi
9436   done
9437   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9438 BEGIN {RS=" "; FS="/|\n";} {
9439   lt_foo="";
9440   lt_count=0;
9441   for (lt_i = NF; lt_i > 0; lt_i--) {
9442     if ($lt_i != "" && $lt_i != ".") {
9443       if ($lt_i == "..") {
9444         lt_count++;
9445       } else {
9446         if (lt_count == 0) {
9447           lt_foo="/" $lt_i lt_foo;
9448         } else {
9449           lt_count--;
9450         }
9451       }
9452     }
9453   }
9454   if (lt_foo != "") { lt_freq[lt_foo]++; }
9455   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9456 }'`
9457   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9458 else
9459   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9460 fi
9461 library_names_spec=
9462 libname_spec='lib$name'
9463 soname_spec=
9464 shrext_cmds=".so"
9465 postinstall_cmds=
9466 postuninstall_cmds=
9467 finish_cmds=
9468 finish_eval=
9469 shlibpath_var=
9470 shlibpath_overrides_runpath=unknown
9471 version_type=none
9472 dynamic_linker="$host_os ld.so"
9473 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9474 need_lib_prefix=unknown
9475 hardcode_into_libs=no
9476
9477 # when you set need_version to no, make sure it does not cause -set_version
9478 # flags to be left without arguments
9479 need_version=unknown
9480
9481 case $host_os in
9482 aix3*)
9483   version_type=linux
9484   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9485   shlibpath_var=LIBPATH
9486
9487   # AIX 3 has no versioning support, so we append a major version to the name.
9488   soname_spec='${libname}${release}${shared_ext}$major'
9489   ;;
9490
9491 aix[4-9]*)
9492   version_type=linux
9493   need_lib_prefix=no
9494   need_version=no
9495   hardcode_into_libs=yes
9496   if test "$host_cpu" = ia64; then
9497     # AIX 5 supports IA64
9498     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9499     shlibpath_var=LD_LIBRARY_PATH
9500   else
9501     # With GCC up to 2.95.x, collect2 would create an import file
9502     # for dependence libraries.  The import file would start with
9503     # the line `#! .'.  This would cause the generated library to
9504     # depend on `.', always an invalid library.  This was fixed in
9505     # development snapshots of GCC prior to 3.0.
9506     case $host_os in
9507       aix4 | aix4.[01] | aix4.[01].*)
9508       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9509            echo ' yes '
9510            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9511         :
9512       else
9513         can_build_shared=no
9514       fi
9515       ;;
9516     esac
9517     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9518     # soname into executable. Probably we can add versioning support to
9519     # collect2, so additional links can be useful in future.
9520     if test "$aix_use_runtimelinking" = yes; then
9521       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9522       # instead of lib<name>.a to let people know that these are not
9523       # typical AIX shared libraries.
9524       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525     else
9526       # We preserve .a as extension for shared libraries through AIX4.2
9527       # and later when we are not doing run time linking.
9528       library_names_spec='${libname}${release}.a $libname.a'
9529       soname_spec='${libname}${release}${shared_ext}$major'
9530     fi
9531     shlibpath_var=LIBPATH
9532   fi
9533   ;;
9534
9535 amigaos*)
9536   case $host_cpu in
9537   powerpc)
9538     # Since July 2007 AmigaOS4 officially supports .so libraries.
9539     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9540     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541     ;;
9542   m68k)
9543     library_names_spec='$libname.ixlibrary $libname.a'
9544     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9545     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'
9546     ;;
9547   esac
9548   ;;
9549
9550 beos*)
9551   library_names_spec='${libname}${shared_ext}'
9552   dynamic_linker="$host_os ld.so"
9553   shlibpath_var=LIBRARY_PATH
9554   ;;
9555
9556 bsdi[45]*)
9557   version_type=linux
9558   need_version=no
9559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9560   soname_spec='${libname}${release}${shared_ext}$major'
9561   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9562   shlibpath_var=LD_LIBRARY_PATH
9563   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9564   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9565   # the default ld.so.conf also contains /usr/contrib/lib and
9566   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9567   # libtool to hard-code these into programs
9568   ;;
9569
9570 cygwin* | mingw* | pw32*)
9571   version_type=windows
9572   shrext_cmds=".dll"
9573   need_version=no
9574   need_lib_prefix=no
9575
9576   case $GCC,$host_os in
9577   yes,cygwin* | yes,mingw* | yes,pw32*)
9578     library_names_spec='$libname.dll.a'
9579     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9580     postinstall_cmds='base_file=`basename \${file}`~
9581       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9582       dldir=$destdir/`dirname \$dlpath`~
9583       test -d \$dldir || mkdir -p \$dldir~
9584       $install_prog $dir/$dlname \$dldir/$dlname~
9585       chmod a+x \$dldir/$dlname~
9586       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9587         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9588       fi'
9589     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9590       dlpath=$dir/\$dldll~
9591        $RM \$dlpath'
9592     shlibpath_overrides_runpath=yes
9593
9594     case $host_os in
9595     cygwin*)
9596       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9597       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9598       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9599       ;;
9600     mingw*)
9601       # MinGW DLLs use traditional 'lib' prefix
9602       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9603       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9604       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9605         # It is most probably a Windows format PATH printed by
9606         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9607         # path with ; separators, and with drive letters. We can handle the
9608         # drive letters (cygwin fileutils understands them), so leave them,
9609         # especially as we might pass files found there to a mingw objdump,
9610         # which wouldn't understand a cygwinified path. Ahh.
9611         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9612       else
9613         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9614       fi
9615       ;;
9616     pw32*)
9617       # pw32 DLLs use 'pw' prefix rather than 'lib'
9618       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9619       ;;
9620     esac
9621     ;;
9622
9623   *)
9624     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9625     ;;
9626   esac
9627   dynamic_linker='Win32 ld.exe'
9628   # FIXME: first we should search . and the directory the executable is in
9629   shlibpath_var=PATH
9630   ;;
9631
9632 darwin* | rhapsody*)
9633   dynamic_linker="$host_os dyld"
9634   version_type=darwin
9635   need_lib_prefix=no
9636   need_version=no
9637   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9638   soname_spec='${libname}${release}${major}$shared_ext'
9639   shlibpath_overrides_runpath=yes
9640   shlibpath_var=DYLD_LIBRARY_PATH
9641   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9642
9643   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9644   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9645   ;;
9646
9647 dgux*)
9648   version_type=linux
9649   need_lib_prefix=no
9650   need_version=no
9651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9652   soname_spec='${libname}${release}${shared_ext}$major'
9653   shlibpath_var=LD_LIBRARY_PATH
9654   ;;
9655
9656 freebsd1*)
9657   dynamic_linker=no
9658   ;;
9659
9660 freebsd* | dragonfly*)
9661   # DragonFly does not have aout.  When/if they implement a new
9662   # versioning mechanism, adjust this.
9663   if test -x /usr/bin/objformat; then
9664     objformat=`/usr/bin/objformat`
9665   else
9666     case $host_os in
9667     freebsd[123]*) objformat=aout ;;
9668     *) objformat=elf ;;
9669     esac
9670   fi
9671   version_type=freebsd-$objformat
9672   case $version_type in
9673     freebsd-elf*)
9674       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9675       need_version=no
9676       need_lib_prefix=no
9677       ;;
9678     freebsd-*)
9679       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9680       need_version=yes
9681       ;;
9682   esac
9683   shlibpath_var=LD_LIBRARY_PATH
9684   case $host_os in
9685   freebsd2*)
9686     shlibpath_overrides_runpath=yes
9687     ;;
9688   freebsd3.[01]* | freebsdelf3.[01]*)
9689     shlibpath_overrides_runpath=yes
9690     hardcode_into_libs=yes
9691     ;;
9692   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9693   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9694     shlibpath_overrides_runpath=no
9695     hardcode_into_libs=yes
9696     ;;
9697   *) # from 4.6 on, and DragonFly
9698     shlibpath_overrides_runpath=yes
9699     hardcode_into_libs=yes
9700     ;;
9701   esac
9702   ;;
9703
9704 gnu*)
9705   version_type=linux
9706   need_lib_prefix=no
9707   need_version=no
9708   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9709   soname_spec='${libname}${release}${shared_ext}$major'
9710   shlibpath_var=LD_LIBRARY_PATH
9711   hardcode_into_libs=yes
9712   ;;
9713
9714 hpux9* | hpux10* | hpux11*)
9715   # Give a soname corresponding to the major version so that dld.sl refuses to
9716   # link against other versions.
9717   version_type=sunos
9718   need_lib_prefix=no
9719   need_version=no
9720   case $host_cpu in
9721   ia64*)
9722     shrext_cmds='.so'
9723     hardcode_into_libs=yes
9724     dynamic_linker="$host_os dld.so"
9725     shlibpath_var=LD_LIBRARY_PATH
9726     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9727     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728     soname_spec='${libname}${release}${shared_ext}$major'
9729     if test "X$HPUX_IA64_MODE" = X32; then
9730       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9731     else
9732       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9733     fi
9734     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9735     ;;
9736   hppa*64*)
9737     shrext_cmds='.sl'
9738     hardcode_into_libs=yes
9739     dynamic_linker="$host_os dld.sl"
9740     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9741     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9743     soname_spec='${libname}${release}${shared_ext}$major'
9744     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9745     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9746     ;;
9747   *)
9748     shrext_cmds='.sl'
9749     dynamic_linker="$host_os dld.sl"
9750     shlibpath_var=SHLIB_PATH
9751     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753     soname_spec='${libname}${release}${shared_ext}$major'
9754     ;;
9755   esac
9756   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9757   postinstall_cmds='chmod 555 $lib'
9758   ;;
9759
9760 interix[3-9]*)
9761   version_type=linux
9762   need_lib_prefix=no
9763   need_version=no
9764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9765   soname_spec='${libname}${release}${shared_ext}$major'
9766   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9767   shlibpath_var=LD_LIBRARY_PATH
9768   shlibpath_overrides_runpath=no
9769   hardcode_into_libs=yes
9770   ;;
9771
9772 irix5* | irix6* | nonstopux*)
9773   case $host_os in
9774     nonstopux*) version_type=nonstopux ;;
9775     *)
9776         if test "$lt_cv_prog_gnu_ld" = yes; then
9777                 version_type=linux
9778         else
9779                 version_type=irix
9780         fi ;;
9781   esac
9782   need_lib_prefix=no
9783   need_version=no
9784   soname_spec='${libname}${release}${shared_ext}$major'
9785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9786   case $host_os in
9787   irix5* | nonstopux*)
9788     libsuff= shlibsuff=
9789     ;;
9790   *)
9791     case $LD in # libtool.m4 will add one of these switches to LD
9792     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9793       libsuff= shlibsuff= libmagic=32-bit;;
9794     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9795       libsuff=32 shlibsuff=N32 libmagic=N32;;
9796     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9797       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9798     *) libsuff= shlibsuff= libmagic=never-match;;
9799     esac
9800     ;;
9801   esac
9802   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9803   shlibpath_overrides_runpath=no
9804   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9805   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9806   hardcode_into_libs=yes
9807   ;;
9808
9809 # No shared lib support for Linux oldld, aout, or coff.
9810 linux*oldld* | linux*aout* | linux*coff*)
9811   dynamic_linker=no
9812   ;;
9813
9814 # This must be Linux ELF.
9815 linux* | k*bsd*-gnu)
9816   version_type=linux
9817   need_lib_prefix=no
9818   need_version=no
9819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9820   soname_spec='${libname}${release}${shared_ext}$major'
9821   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9822   shlibpath_var=LD_LIBRARY_PATH
9823   shlibpath_overrides_runpath=no
9824   # Some binutils ld are patched to set DT_RUNPATH
9825   save_LDFLAGS=$LDFLAGS
9826   save_libdir=$libdir
9827   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9828        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9829   cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h.  */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h.  */
9835
9836 int
9837 main ()
9838 {
9839
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9846 case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851   (eval "$ac_link") 2>conftest.er1
9852   ac_status=$?
9853   grep -v '^ *+' conftest.er1 >conftest.err
9854   rm -f conftest.er1
9855   cat conftest.err >&5
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); } && {
9858          test -z "$ac_c_werror_flag" ||
9859          test ! -s conftest.err
9860        } && test -s conftest$ac_exeext &&
9861        $as_test_x conftest$ac_exeext; then
9862   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9863   shlibpath_overrides_runpath=yes
9864 fi
9865
9866 else
9867   echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9869
9870
9871 fi
9872
9873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9874       conftest$ac_exeext conftest.$ac_ext
9875   LDFLAGS=$save_LDFLAGS
9876   libdir=$save_libdir
9877
9878   # This implies no fast_install, which is unacceptable.
9879   # Some rework will be needed to allow for fast_install
9880   # before this can be enabled.
9881   hardcode_into_libs=yes
9882
9883   # Append ld.so.conf contents to the search path
9884   if test -f /etc/ld.so.conf; then
9885     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' ' '`
9886     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9887   fi
9888
9889   # We used to test for /lib/ld.so.1 and disable shared libraries on
9890   # powerpc, because MkLinux only supported shared libraries with the
9891   # GNU dynamic linker.  Since this was broken with cross compilers,
9892   # most powerpc-linux boxes support dynamic linking these days and
9893   # people can always --disable-shared, the test was removed, and we
9894   # assume the GNU/Linux dynamic linker is in use.
9895   dynamic_linker='GNU/Linux ld.so'
9896   ;;
9897
9898 netbsd*)
9899   version_type=sunos
9900   need_lib_prefix=no
9901   need_version=no
9902   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9903     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9904     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9905     dynamic_linker='NetBSD (a.out) ld.so'
9906   else
9907     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9908     soname_spec='${libname}${release}${shared_ext}$major'
9909     dynamic_linker='NetBSD ld.elf_so'
9910   fi
9911   shlibpath_var=LD_LIBRARY_PATH
9912   shlibpath_overrides_runpath=yes
9913   hardcode_into_libs=yes
9914   ;;
9915
9916 newsos6)
9917   version_type=linux
9918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9919   shlibpath_var=LD_LIBRARY_PATH
9920   shlibpath_overrides_runpath=yes
9921   ;;
9922
9923 *nto* | *qnx*)
9924   version_type=qnx
9925   need_lib_prefix=no
9926   need_version=no
9927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9928   soname_spec='${libname}${release}${shared_ext}$major'
9929   shlibpath_var=LD_LIBRARY_PATH
9930   shlibpath_overrides_runpath=no
9931   hardcode_into_libs=yes
9932   dynamic_linker='ldqnx.so'
9933   ;;
9934
9935 openbsd*)
9936   version_type=sunos
9937   sys_lib_dlsearch_path_spec="/usr/lib"
9938   need_lib_prefix=no
9939   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9940   case $host_os in
9941     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9942     *)                          need_version=no  ;;
9943   esac
9944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9945   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9946   shlibpath_var=LD_LIBRARY_PATH
9947   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9948     case $host_os in
9949       openbsd2.[89] | openbsd2.[89].*)
9950         shlibpath_overrides_runpath=no
9951         ;;
9952       *)
9953         shlibpath_overrides_runpath=yes
9954         ;;
9955       esac
9956   else
9957     shlibpath_overrides_runpath=yes
9958   fi
9959   ;;
9960
9961 os2*)
9962   libname_spec='$name'
9963   shrext_cmds=".dll"
9964   need_lib_prefix=no
9965   library_names_spec='$libname${shared_ext} $libname.a'
9966   dynamic_linker='OS/2 ld.exe'
9967   shlibpath_var=LIBPATH
9968   ;;
9969
9970 osf3* | osf4* | osf5*)
9971   version_type=osf
9972   need_lib_prefix=no
9973   need_version=no
9974   soname_spec='${libname}${release}${shared_ext}$major'
9975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9976   shlibpath_var=LD_LIBRARY_PATH
9977   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9978   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9979   ;;
9980
9981 rdos*)
9982   dynamic_linker=no
9983   ;;
9984
9985 solaris*)
9986   version_type=linux
9987   need_lib_prefix=no
9988   need_version=no
9989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9990   soname_spec='${libname}${release}${shared_ext}$major'
9991   shlibpath_var=LD_LIBRARY_PATH
9992   shlibpath_overrides_runpath=yes
9993   hardcode_into_libs=yes
9994   # ldd complains unless libraries are executable
9995   postinstall_cmds='chmod +x $lib'
9996   ;;
9997
9998 sunos4*)
9999   version_type=sunos
10000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10001   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10002   shlibpath_var=LD_LIBRARY_PATH
10003   shlibpath_overrides_runpath=yes
10004   if test "$with_gnu_ld" = yes; then
10005     need_lib_prefix=no
10006   fi
10007   need_version=yes
10008   ;;
10009
10010 sysv4 | sysv4.3*)
10011   version_type=linux
10012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013   soname_spec='${libname}${release}${shared_ext}$major'
10014   shlibpath_var=LD_LIBRARY_PATH
10015   case $host_vendor in
10016     sni)
10017       shlibpath_overrides_runpath=no
10018       need_lib_prefix=no
10019       runpath_var=LD_RUN_PATH
10020       ;;
10021     siemens)
10022       need_lib_prefix=no
10023       ;;
10024     motorola)
10025       need_lib_prefix=no
10026       need_version=no
10027       shlibpath_overrides_runpath=no
10028       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10029       ;;
10030   esac
10031   ;;
10032
10033 sysv4*MP*)
10034   if test -d /usr/nec ;then
10035     version_type=linux
10036     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10037     soname_spec='$libname${shared_ext}.$major'
10038     shlibpath_var=LD_LIBRARY_PATH
10039   fi
10040   ;;
10041
10042 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10043   version_type=freebsd-elf
10044   need_lib_prefix=no
10045   need_version=no
10046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10047   soname_spec='${libname}${release}${shared_ext}$major'
10048   shlibpath_var=LD_LIBRARY_PATH
10049   shlibpath_overrides_runpath=yes
10050   hardcode_into_libs=yes
10051   if test "$with_gnu_ld" = yes; then
10052     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10053   else
10054     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10055     case $host_os in
10056       sco3.2v5*)
10057         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10058         ;;
10059     esac
10060   fi
10061   sys_lib_dlsearch_path_spec='/usr/lib'
10062   ;;
10063
10064 tpf*)
10065   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10066   version_type=linux
10067   need_lib_prefix=no
10068   need_version=no
10069   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10070   shlibpath_var=LD_LIBRARY_PATH
10071   shlibpath_overrides_runpath=no
10072   hardcode_into_libs=yes
10073   ;;
10074
10075 uts4*)
10076   version_type=linux
10077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10078   soname_spec='${libname}${release}${shared_ext}$major'
10079   shlibpath_var=LD_LIBRARY_PATH
10080   ;;
10081
10082 *)
10083   dynamic_linker=no
10084   ;;
10085 esac
10086 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10087 echo "${ECHO_T}$dynamic_linker" >&6; }
10088 test "$dynamic_linker" = no && can_build_shared=no
10089
10090 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10091 if test "$GCC" = yes; then
10092   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10093 fi
10094
10095 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10096   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10097 fi
10098 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10099   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10100 fi
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10189 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10190 hardcode_action=
10191 if test -n "$hardcode_libdir_flag_spec" ||
10192    test -n "$runpath_var" ||
10193    test "X$hardcode_automatic" = "Xyes" ; then
10194
10195   # We can hardcode non-existent directories.
10196   if test "$hardcode_direct" != no &&
10197      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10198      # have to relink, otherwise we might link with an installed library
10199      # when we should be linking with a yet-to-be-installed one
10200      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10201      test "$hardcode_minus_L" != no; then
10202     # Linking always hardcodes the temporary library directory.
10203     hardcode_action=relink
10204   else
10205     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10206     hardcode_action=immediate
10207   fi
10208 else
10209   # We cannot hardcode anything, or else we can only hardcode existing
10210   # directories.
10211   hardcode_action=unsupported
10212 fi
10213 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10214 echo "${ECHO_T}$hardcode_action" >&6; }
10215
10216 if test "$hardcode_action" = relink ||
10217    test "$inherit_rpath" = yes; then
10218   # Fast installation is not supported
10219   enable_fast_install=no
10220 elif test "$shlibpath_overrides_runpath" = yes ||
10221      test "$enable_shared" = no; then
10222   # Fast installation is not necessary
10223   enable_fast_install=needless
10224 fi
10225
10226
10227
10228
10229
10230
10231   if test "x$enable_dlopen" != xyes; then
10232   enable_dlopen=unknown
10233   enable_dlopen_self=unknown
10234   enable_dlopen_self_static=unknown
10235 else
10236   lt_cv_dlopen=no
10237   lt_cv_dlopen_libs=
10238
10239   case $host_os in
10240   beos*)
10241     lt_cv_dlopen="load_add_on"
10242     lt_cv_dlopen_libs=
10243     lt_cv_dlopen_self=yes
10244     ;;
10245
10246   mingw* | pw32*)
10247     lt_cv_dlopen="LoadLibrary"
10248     lt_cv_dlopen_libs=
10249     ;;
10250
10251   cygwin*)
10252     lt_cv_dlopen="dlopen"
10253     lt_cv_dlopen_libs=
10254     ;;
10255
10256   darwin*)
10257   # if libdl is installed we need to link against it
10258     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10259 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10260 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10261   echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263   ac_check_lib_save_LIBS=$LIBS
10264 LIBS="-ldl  $LIBS"
10265 cat >conftest.$ac_ext <<_ACEOF
10266 /* confdefs.h.  */
10267 _ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h.  */
10271
10272 /* Override any GCC internal prototype to avoid an error.
10273    Use char because int might match the return type of a GCC
10274    builtin and then its argument prototype would still apply.  */
10275 #ifdef __cplusplus
10276 extern "C"
10277 #endif
10278 char dlopen ();
10279 int
10280 main ()
10281 {
10282 return dlopen ();
10283   ;
10284   return 0;
10285 }
10286 _ACEOF
10287 rm -f conftest.$ac_objext conftest$ac_exeext
10288 if { (ac_try="$ac_link"
10289 case "(($ac_try" in
10290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291   *) ac_try_echo=$ac_try;;
10292 esac
10293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294   (eval "$ac_link") 2>conftest.er1
10295   ac_status=$?
10296   grep -v '^ *+' conftest.er1 >conftest.err
10297   rm -f conftest.er1
10298   cat conftest.err >&5
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); } && {
10301          test -z "$ac_c_werror_flag" ||
10302          test ! -s conftest.err
10303        } && test -s conftest$ac_exeext &&
10304        $as_test_x conftest$ac_exeext; then
10305   ac_cv_lib_dl_dlopen=yes
10306 else
10307   echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10309
10310         ac_cv_lib_dl_dlopen=no
10311 fi
10312
10313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10314       conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10316 fi
10317 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10318 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10319 if test $ac_cv_lib_dl_dlopen = yes; then
10320   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10321 else
10322
10323     lt_cv_dlopen="dyld"
10324     lt_cv_dlopen_libs=
10325     lt_cv_dlopen_self=yes
10326
10327 fi
10328
10329     ;;
10330
10331   *)
10332     { echo "$as_me:$LINENO: checking for shl_load" >&5
10333 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10334 if test "${ac_cv_func_shl_load+set}" = set; then
10335   echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337   cat >conftest.$ac_ext <<_ACEOF
10338 /* confdefs.h.  */
10339 _ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h.  */
10343 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10345 #define shl_load innocuous_shl_load
10346
10347 /* System header to define __stub macros and hopefully few prototypes,
10348     which can conflict with char shl_load (); below.
10349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10350     <limits.h> exists even on freestanding compilers.  */
10351
10352 #ifdef __STDC__
10353 # include <limits.h>
10354 #else
10355 # include <assert.h>
10356 #endif
10357
10358 #undef shl_load
10359
10360 /* Override any GCC internal prototype to avoid an error.
10361    Use char because int might match the return type of a GCC
10362    builtin and then its argument prototype would still apply.  */
10363 #ifdef __cplusplus
10364 extern "C"
10365 #endif
10366 char shl_load ();
10367 /* The GNU C library defines this for functions which it implements
10368     to always fail with ENOSYS.  Some functions are actually named
10369     something starting with __ and the normal name is an alias.  */
10370 #if defined __stub_shl_load || defined __stub___shl_load
10371 choke me
10372 #endif
10373
10374 int
10375 main ()
10376 {
10377 return shl_load ();
10378   ;
10379   return 0;
10380 }
10381 _ACEOF
10382 rm -f conftest.$ac_objext conftest$ac_exeext
10383 if { (ac_try="$ac_link"
10384 case "(($ac_try" in
10385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386   *) ac_try_echo=$ac_try;;
10387 esac
10388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389   (eval "$ac_link") 2>conftest.er1
10390   ac_status=$?
10391   grep -v '^ *+' conftest.er1 >conftest.err
10392   rm -f conftest.er1
10393   cat conftest.err >&5
10394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395   (exit $ac_status); } && {
10396          test -z "$ac_c_werror_flag" ||
10397          test ! -s conftest.err
10398        } && test -s conftest$ac_exeext &&
10399        $as_test_x conftest$ac_exeext; then
10400   ac_cv_func_shl_load=yes
10401 else
10402   echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.$ac_ext >&5
10404
10405         ac_cv_func_shl_load=no
10406 fi
10407
10408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10409       conftest$ac_exeext conftest.$ac_ext
10410 fi
10411 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10412 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10413 if test $ac_cv_func_shl_load = yes; then
10414   lt_cv_dlopen="shl_load"
10415 else
10416   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10417 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10418 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10419   echo $ECHO_N "(cached) $ECHO_C" >&6
10420 else
10421   ac_check_lib_save_LIBS=$LIBS
10422 LIBS="-ldld  $LIBS"
10423 cat >conftest.$ac_ext <<_ACEOF
10424 /* confdefs.h.  */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h.  */
10429
10430 /* Override any GCC internal prototype to avoid an error.
10431    Use char because int might match the return type of a GCC
10432    builtin and then its argument prototype would still apply.  */
10433 #ifdef __cplusplus
10434 extern "C"
10435 #endif
10436 char shl_load ();
10437 int
10438 main ()
10439 {
10440 return shl_load ();
10441   ;
10442   return 0;
10443 }
10444 _ACEOF
10445 rm -f conftest.$ac_objext conftest$ac_exeext
10446 if { (ac_try="$ac_link"
10447 case "(($ac_try" in
10448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449   *) ac_try_echo=$ac_try;;
10450 esac
10451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10452   (eval "$ac_link") 2>conftest.er1
10453   ac_status=$?
10454   grep -v '^ *+' conftest.er1 >conftest.err
10455   rm -f conftest.er1
10456   cat conftest.err >&5
10457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458   (exit $ac_status); } && {
10459          test -z "$ac_c_werror_flag" ||
10460          test ! -s conftest.err
10461        } && test -s conftest$ac_exeext &&
10462        $as_test_x conftest$ac_exeext; then
10463   ac_cv_lib_dld_shl_load=yes
10464 else
10465   echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10467
10468         ac_cv_lib_dld_shl_load=no
10469 fi
10470
10471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10472       conftest$ac_exeext conftest.$ac_ext
10473 LIBS=$ac_check_lib_save_LIBS
10474 fi
10475 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10476 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10477 if test $ac_cv_lib_dld_shl_load = yes; then
10478   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10479 else
10480   { echo "$as_me:$LINENO: checking for dlopen" >&5
10481 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10482 if test "${ac_cv_func_dlopen+set}" = set; then
10483   echo $ECHO_N "(cached) $ECHO_C" >&6
10484 else
10485   cat >conftest.$ac_ext <<_ACEOF
10486 /* confdefs.h.  */
10487 _ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h.  */
10491 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10493 #define dlopen innocuous_dlopen
10494
10495 /* System header to define __stub macros and hopefully few prototypes,
10496     which can conflict with char dlopen (); below.
10497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10498     <limits.h> exists even on freestanding compilers.  */
10499
10500 #ifdef __STDC__
10501 # include <limits.h>
10502 #else
10503 # include <assert.h>
10504 #endif
10505
10506 #undef dlopen
10507
10508 /* Override any GCC internal prototype to avoid an error.
10509    Use char because int might match the return type of a GCC
10510    builtin and then its argument prototype would still apply.  */
10511 #ifdef __cplusplus
10512 extern "C"
10513 #endif
10514 char dlopen ();
10515 /* The GNU C library defines this for functions which it implements
10516     to always fail with ENOSYS.  Some functions are actually named
10517     something starting with __ and the normal name is an alias.  */
10518 #if defined __stub_dlopen || defined __stub___dlopen
10519 choke me
10520 #endif
10521
10522 int
10523 main ()
10524 {
10525 return dlopen ();
10526   ;
10527   return 0;
10528 }
10529 _ACEOF
10530 rm -f conftest.$ac_objext conftest$ac_exeext
10531 if { (ac_try="$ac_link"
10532 case "(($ac_try" in
10533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534   *) ac_try_echo=$ac_try;;
10535 esac
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537   (eval "$ac_link") 2>conftest.er1
10538   ac_status=$?
10539   grep -v '^ *+' conftest.er1 >conftest.err
10540   rm -f conftest.er1
10541   cat conftest.err >&5
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); } && {
10544          test -z "$ac_c_werror_flag" ||
10545          test ! -s conftest.err
10546        } && test -s conftest$ac_exeext &&
10547        $as_test_x conftest$ac_exeext; then
10548   ac_cv_func_dlopen=yes
10549 else
10550   echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10552
10553         ac_cv_func_dlopen=no
10554 fi
10555
10556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10557       conftest$ac_exeext conftest.$ac_ext
10558 fi
10559 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10560 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10561 if test $ac_cv_func_dlopen = yes; then
10562   lt_cv_dlopen="dlopen"
10563 else
10564   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10565 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10566 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10567   echo $ECHO_N "(cached) $ECHO_C" >&6
10568 else
10569   ac_check_lib_save_LIBS=$LIBS
10570 LIBS="-ldl  $LIBS"
10571 cat >conftest.$ac_ext <<_ACEOF
10572 /* confdefs.h.  */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h.  */
10577
10578 /* Override any GCC internal prototype to avoid an error.
10579    Use char because int might match the return type of a GCC
10580    builtin and then its argument prototype would still apply.  */
10581 #ifdef __cplusplus
10582 extern "C"
10583 #endif
10584 char dlopen ();
10585 int
10586 main ()
10587 {
10588 return dlopen ();
10589   ;
10590   return 0;
10591 }
10592 _ACEOF
10593 rm -f conftest.$ac_objext conftest$ac_exeext
10594 if { (ac_try="$ac_link"
10595 case "(($ac_try" in
10596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597   *) ac_try_echo=$ac_try;;
10598 esac
10599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600   (eval "$ac_link") 2>conftest.er1
10601   ac_status=$?
10602   grep -v '^ *+' conftest.er1 >conftest.err
10603   rm -f conftest.er1
10604   cat conftest.err >&5
10605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606   (exit $ac_status); } && {
10607          test -z "$ac_c_werror_flag" ||
10608          test ! -s conftest.err
10609        } && test -s conftest$ac_exeext &&
10610        $as_test_x conftest$ac_exeext; then
10611   ac_cv_lib_dl_dlopen=yes
10612 else
10613   echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10615
10616         ac_cv_lib_dl_dlopen=no
10617 fi
10618
10619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10620       conftest$ac_exeext conftest.$ac_ext
10621 LIBS=$ac_check_lib_save_LIBS
10622 fi
10623 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10624 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10625 if test $ac_cv_lib_dl_dlopen = yes; then
10626   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10627 else
10628   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10629 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10630 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10631   echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10633   ac_check_lib_save_LIBS=$LIBS
10634 LIBS="-lsvld  $LIBS"
10635 cat >conftest.$ac_ext <<_ACEOF
10636 /* confdefs.h.  */
10637 _ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h.  */
10641
10642 /* Override any GCC internal prototype to avoid an error.
10643    Use char because int might match the return type of a GCC
10644    builtin and then its argument prototype would still apply.  */
10645 #ifdef __cplusplus
10646 extern "C"
10647 #endif
10648 char dlopen ();
10649 int
10650 main ()
10651 {
10652 return dlopen ();
10653   ;
10654   return 0;
10655 }
10656 _ACEOF
10657 rm -f conftest.$ac_objext conftest$ac_exeext
10658 if { (ac_try="$ac_link"
10659 case "(($ac_try" in
10660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661   *) ac_try_echo=$ac_try;;
10662 esac
10663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10664   (eval "$ac_link") 2>conftest.er1
10665   ac_status=$?
10666   grep -v '^ *+' conftest.er1 >conftest.err
10667   rm -f conftest.er1
10668   cat conftest.err >&5
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); } && {
10671          test -z "$ac_c_werror_flag" ||
10672          test ! -s conftest.err
10673        } && test -s conftest$ac_exeext &&
10674        $as_test_x conftest$ac_exeext; then
10675   ac_cv_lib_svld_dlopen=yes
10676 else
10677   echo "$as_me: failed program was:" >&5
10678 sed 's/^/| /' conftest.$ac_ext >&5
10679
10680         ac_cv_lib_svld_dlopen=no
10681 fi
10682
10683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10684       conftest$ac_exeext conftest.$ac_ext
10685 LIBS=$ac_check_lib_save_LIBS
10686 fi
10687 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10688 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10689 if test $ac_cv_lib_svld_dlopen = yes; then
10690   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10691 else
10692   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10693 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10694 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10695   echo $ECHO_N "(cached) $ECHO_C" >&6
10696 else
10697   ac_check_lib_save_LIBS=$LIBS
10698 LIBS="-ldld  $LIBS"
10699 cat >conftest.$ac_ext <<_ACEOF
10700 /* confdefs.h.  */
10701 _ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h.  */
10705
10706 /* Override any GCC internal prototype to avoid an error.
10707    Use char because int might match the return type of a GCC
10708    builtin and then its argument prototype would still apply.  */
10709 #ifdef __cplusplus
10710 extern "C"
10711 #endif
10712 char dld_link ();
10713 int
10714 main ()
10715 {
10716 return dld_link ();
10717   ;
10718   return 0;
10719 }
10720 _ACEOF
10721 rm -f conftest.$ac_objext conftest$ac_exeext
10722 if { (ac_try="$ac_link"
10723 case "(($ac_try" in
10724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725   *) ac_try_echo=$ac_try;;
10726 esac
10727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728   (eval "$ac_link") 2>conftest.er1
10729   ac_status=$?
10730   grep -v '^ *+' conftest.er1 >conftest.err
10731   rm -f conftest.er1
10732   cat conftest.err >&5
10733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734   (exit $ac_status); } && {
10735          test -z "$ac_c_werror_flag" ||
10736          test ! -s conftest.err
10737        } && test -s conftest$ac_exeext &&
10738        $as_test_x conftest$ac_exeext; then
10739   ac_cv_lib_dld_dld_link=yes
10740 else
10741   echo "$as_me: failed program was:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10743
10744         ac_cv_lib_dld_dld_link=no
10745 fi
10746
10747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10748       conftest$ac_exeext conftest.$ac_ext
10749 LIBS=$ac_check_lib_save_LIBS
10750 fi
10751 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10752 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10753 if test $ac_cv_lib_dld_dld_link = yes; then
10754   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10755 fi
10756
10757
10758 fi
10759
10760
10761 fi
10762
10763
10764 fi
10765
10766
10767 fi
10768
10769
10770 fi
10771
10772     ;;
10773   esac
10774
10775   if test "x$lt_cv_dlopen" != xno; then
10776     enable_dlopen=yes
10777   else
10778     enable_dlopen=no
10779   fi
10780
10781   case $lt_cv_dlopen in
10782   dlopen)
10783     save_CPPFLAGS="$CPPFLAGS"
10784     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10785
10786     save_LDFLAGS="$LDFLAGS"
10787     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10788
10789     save_LIBS="$LIBS"
10790     LIBS="$lt_cv_dlopen_libs $LIBS"
10791
10792     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10793 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10794 if test "${lt_cv_dlopen_self+set}" = set; then
10795   echo $ECHO_N "(cached) $ECHO_C" >&6
10796 else
10797           if test "$cross_compiling" = yes; then :
10798   lt_cv_dlopen_self=cross
10799 else
10800   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10801   lt_status=$lt_dlunknown
10802   cat > conftest.$ac_ext <<_LT_EOF
10803 #line 10803 "configure"
10804 #include "confdefs.h"
10805
10806 #if HAVE_DLFCN_H
10807 #include <dlfcn.h>
10808 #endif
10809
10810 #include <stdio.h>
10811
10812 #ifdef RTLD_GLOBAL
10813 #  define LT_DLGLOBAL           RTLD_GLOBAL
10814 #else
10815 #  ifdef DL_GLOBAL
10816 #    define LT_DLGLOBAL         DL_GLOBAL
10817 #  else
10818 #    define LT_DLGLOBAL         0
10819 #  endif
10820 #endif
10821
10822 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10823    find out it does not work in some platform. */
10824 #ifndef LT_DLLAZY_OR_NOW
10825 #  ifdef RTLD_LAZY
10826 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10827 #  else
10828 #    ifdef DL_LAZY
10829 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10830 #    else
10831 #      ifdef RTLD_NOW
10832 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10833 #      else
10834 #        ifdef DL_NOW
10835 #          define LT_DLLAZY_OR_NOW      DL_NOW
10836 #        else
10837 #          define LT_DLLAZY_OR_NOW      0
10838 #        endif
10839 #      endif
10840 #    endif
10841 #  endif
10842 #endif
10843
10844 #ifdef __cplusplus
10845 extern "C" void exit (int);
10846 #endif
10847
10848 void fnord() { int i=42;}
10849 int main ()
10850 {
10851   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10852   int status = $lt_dlunknown;
10853
10854   if (self)
10855     {
10856       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10857       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10858       /* dlclose (self); */
10859     }
10860   else
10861     puts (dlerror ());
10862
10863     exit (status);
10864 }
10865 _LT_EOF
10866   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10867   (eval $ac_link) 2>&5
10868   ac_status=$?
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10871     (./conftest; exit; ) >&5 2>/dev/null
10872     lt_status=$?
10873     case x$lt_status in
10874       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10875       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10876       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10877     esac
10878   else :
10879     # compilation failed
10880     lt_cv_dlopen_self=no
10881   fi
10882 fi
10883 rm -fr conftest*
10884
10885
10886 fi
10887 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10888 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10889
10890     if test "x$lt_cv_dlopen_self" = xyes; then
10891       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10892       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10893 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10894 if test "${lt_cv_dlopen_self_static+set}" = set; then
10895   echo $ECHO_N "(cached) $ECHO_C" >&6
10896 else
10897           if test "$cross_compiling" = yes; then :
10898   lt_cv_dlopen_self_static=cross
10899 else
10900   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10901   lt_status=$lt_dlunknown
10902   cat > conftest.$ac_ext <<_LT_EOF
10903 #line 10903 "configure"
10904 #include "confdefs.h"
10905
10906 #if HAVE_DLFCN_H
10907 #include <dlfcn.h>
10908 #endif
10909
10910 #include <stdio.h>
10911
10912 #ifdef RTLD_GLOBAL
10913 #  define LT_DLGLOBAL           RTLD_GLOBAL
10914 #else
10915 #  ifdef DL_GLOBAL
10916 #    define LT_DLGLOBAL         DL_GLOBAL
10917 #  else
10918 #    define LT_DLGLOBAL         0
10919 #  endif
10920 #endif
10921
10922 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10923    find out it does not work in some platform. */
10924 #ifndef LT_DLLAZY_OR_NOW
10925 #  ifdef RTLD_LAZY
10926 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10927 #  else
10928 #    ifdef DL_LAZY
10929 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10930 #    else
10931 #      ifdef RTLD_NOW
10932 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10933 #      else
10934 #        ifdef DL_NOW
10935 #          define LT_DLLAZY_OR_NOW      DL_NOW
10936 #        else
10937 #          define LT_DLLAZY_OR_NOW      0
10938 #        endif
10939 #      endif
10940 #    endif
10941 #  endif
10942 #endif
10943
10944 #ifdef __cplusplus
10945 extern "C" void exit (int);
10946 #endif
10947
10948 void fnord() { int i=42;}
10949 int main ()
10950 {
10951   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10952   int status = $lt_dlunknown;
10953
10954   if (self)
10955     {
10956       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10957       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10958       /* dlclose (self); */
10959     }
10960   else
10961     puts (dlerror ());
10962
10963     exit (status);
10964 }
10965 _LT_EOF
10966   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10967   (eval $ac_link) 2>&5
10968   ac_status=$?
10969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10971     (./conftest; exit; ) >&5 2>/dev/null
10972     lt_status=$?
10973     case x$lt_status in
10974       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10975       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10976       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10977     esac
10978   else :
10979     # compilation failed
10980     lt_cv_dlopen_self_static=no
10981   fi
10982 fi
10983 rm -fr conftest*
10984
10985
10986 fi
10987 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10988 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10989     fi
10990
10991     CPPFLAGS="$save_CPPFLAGS"
10992     LDFLAGS="$save_LDFLAGS"
10993     LIBS="$save_LIBS"
10994     ;;
10995   esac
10996
10997   case $lt_cv_dlopen_self in
10998   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10999   *) enable_dlopen_self=unknown ;;
11000   esac
11001
11002   case $lt_cv_dlopen_self_static in
11003   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11004   *) enable_dlopen_self_static=unknown ;;
11005   esac
11006 fi
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024 striplib=
11025 old_striplib=
11026 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11027 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11028 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11029   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11030   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11031   { echo "$as_me:$LINENO: result: yes" >&5
11032 echo "${ECHO_T}yes" >&6; }
11033 else
11034 # FIXME - insert some real tests, host_os isn't really good enough
11035   case $host_os in
11036   darwin*)
11037     if test -n "$STRIP" ; then
11038       striplib="$STRIP -x"
11039       old_striplib="$STRIP -S"
11040       { echo "$as_me:$LINENO: result: yes" >&5
11041 echo "${ECHO_T}yes" >&6; }
11042     else
11043       { echo "$as_me:$LINENO: result: no" >&5
11044 echo "${ECHO_T}no" >&6; }
11045     fi
11046     ;;
11047   *)
11048     { echo "$as_me:$LINENO: result: no" >&5
11049 echo "${ECHO_T}no" >&6; }
11050     ;;
11051   esac
11052 fi
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065   # Report which library types will actually be built
11066   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11067 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11068   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11069 echo "${ECHO_T}$can_build_shared" >&6; }
11070
11071   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11072 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11073   test "$can_build_shared" = "no" && enable_shared=no
11074
11075   # On AIX, shared libraries and static libraries use the same namespace, and
11076   # are all built from PIC.
11077   case $host_os in
11078   aix3*)
11079     test "$enable_shared" = yes && enable_static=no
11080     if test -n "$RANLIB"; then
11081       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11082       postinstall_cmds='$RANLIB $lib'
11083     fi
11084     ;;
11085
11086   aix[4-9]*)
11087     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11088       test "$enable_shared" = yes && enable_static=no
11089     fi
11090     ;;
11091   esac
11092   { echo "$as_me:$LINENO: result: $enable_shared" >&5
11093 echo "${ECHO_T}$enable_shared" >&6; }
11094
11095   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11096 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11097   # Make sure either enable_shared or enable_static is yes.
11098   test "$enable_shared" = yes || enable_static=yes
11099   { echo "$as_me:$LINENO: result: $enable_static" >&5
11100 echo "${ECHO_T}$enable_static" >&6; }
11101
11102
11103
11104
11105 fi
11106 ac_ext=c
11107 ac_cpp='$CPP $CPPFLAGS'
11108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11111
11112 CC="$lt_save_CC"
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126         ac_config_commands="$ac_config_commands libtool"
11127
11128
11129
11130
11131 # Only expand once:
11132
11133
11134 { echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
11135 echo $ECHO_N "checking which extension is used for runtime loadable modules... $ECHO_C" >&6; }
11136 if test "${libltdl_cv_shlibext+set}" = set; then
11137   echo $ECHO_N "(cached) $ECHO_C" >&6
11138 else
11139
11140 module=yes
11141 eval libltdl_cv_shlibext=$shrext_cmds
11142
11143 fi
11144 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
11145 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
11146 if test -n "$libltdl_cv_shlibext"; then
11147
11148 cat >>confdefs.h <<_ACEOF
11149 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11150 _ACEOF
11151
11152 fi
11153
11154 { echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
11155 echo $ECHO_N "checking which variable specifies run-time module search path... $ECHO_C" >&6; }
11156 if test "${lt_cv_module_path_var+set}" = set; then
11157   echo $ECHO_N "(cached) $ECHO_C" >&6
11158 else
11159   lt_cv_module_path_var="$shlibpath_var"
11160 fi
11161 { echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
11162 echo "${ECHO_T}$lt_cv_module_path_var" >&6; }
11163 if test -n "$lt_cv_module_path_var"; then
11164
11165 cat >>confdefs.h <<_ACEOF
11166 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11167 _ACEOF
11168
11169 fi
11170
11171 { echo "$as_me:$LINENO: checking for the default library search path" >&5
11172 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
11173 if test "${lt_cv_sys_dlsearch_path+set}" = set; then
11174   echo $ECHO_N "(cached) $ECHO_C" >&6
11175 else
11176   lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11177 fi
11178 { echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
11179 echo "${ECHO_T}$lt_cv_sys_dlsearch_path" >&6; }
11180 if test -n "$lt_cv_sys_dlsearch_path"; then
11181   sys_dlsearch_path=
11182   for dir in $lt_cv_sys_dlsearch_path; do
11183     if test -z "$sys_dlsearch_path"; then
11184       sys_dlsearch_path="$dir"
11185     else
11186       sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11187     fi
11188   done
11189
11190 cat >>confdefs.h <<_ACEOF
11191 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11192 _ACEOF
11193
11194 fi
11195
11196
11197 LT_DLLOADERS=
11198
11199
11200 ac_ext=c
11201 ac_cpp='$CPP $CPPFLAGS'
11202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11205
11206
11207 LIBADD_DLOPEN=
11208 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11209 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
11210 if test "${ac_cv_search_dlopen+set}" = set; then
11211   echo $ECHO_N "(cached) $ECHO_C" >&6
11212 else
11213   ac_func_search_save_LIBS=$LIBS
11214 cat >conftest.$ac_ext <<_ACEOF
11215 /* confdefs.h.  */
11216 _ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h.  */
11220
11221 /* Override any GCC internal prototype to avoid an error.
11222    Use char because int might match the return type of a GCC
11223    builtin and then its argument prototype would still apply.  */
11224 #ifdef __cplusplus
11225 extern "C"
11226 #endif
11227 char dlopen ();
11228 int
11229 main ()
11230 {
11231 return dlopen ();
11232   ;
11233   return 0;
11234 }
11235 _ACEOF
11236 for ac_lib in '' dl; do
11237   if test -z "$ac_lib"; then
11238     ac_res="none required"
11239   else
11240     ac_res=-l$ac_lib
11241     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11242   fi
11243   rm -f conftest.$ac_objext conftest$ac_exeext
11244 if { (ac_try="$ac_link"
11245 case "(($ac_try" in
11246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247   *) ac_try_echo=$ac_try;;
11248 esac
11249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250   (eval "$ac_link") 2>conftest.er1
11251   ac_status=$?
11252   grep -v '^ *+' conftest.er1 >conftest.err
11253   rm -f conftest.er1
11254   cat conftest.err >&5
11255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256   (exit $ac_status); } && {
11257          test -z "$ac_c_werror_flag" ||
11258          test ! -s conftest.err
11259        } && test -s conftest$ac_exeext &&
11260        $as_test_x conftest$ac_exeext; then
11261   ac_cv_search_dlopen=$ac_res
11262 else
11263   echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11265
11266
11267 fi
11268
11269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11270       conftest$ac_exeext
11271   if test "${ac_cv_search_dlopen+set}" = set; then
11272   break
11273 fi
11274 done
11275 if test "${ac_cv_search_dlopen+set}" = set; then
11276   :
11277 else
11278   ac_cv_search_dlopen=no
11279 fi
11280 rm conftest.$ac_ext
11281 LIBS=$ac_func_search_save_LIBS
11282 fi
11283 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11284 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
11285 ac_res=$ac_cv_search_dlopen
11286 if test "$ac_res" != no; then
11287   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11288
11289 cat >>confdefs.h <<\_ACEOF
11290 #define HAVE_LIBDL 1
11291 _ACEOF
11292
11293         if test "$ac_cv_search_dlopen" != "none required" ; then
11294           LIBADD_DLOPEN="-ldl"
11295         fi
11296         libltdl_cv_lib_dl_dlopen="yes"
11297         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11298 else
11299   cat >conftest.$ac_ext <<_ACEOF
11300 /* confdefs.h.  */
11301 _ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h.  */
11305 #if HAVE_DLFCN_H
11306 #  include <dlfcn.h>
11307 #endif
11308
11309 int
11310 main ()
11311 {
11312 dlopen(0, 0);
11313   ;
11314   return 0;
11315 }
11316 _ACEOF
11317 rm -f conftest.$ac_objext conftest$ac_exeext
11318 if { (ac_try="$ac_link"
11319 case "(($ac_try" in
11320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321   *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324   (eval "$ac_link") 2>conftest.er1
11325   ac_status=$?
11326   grep -v '^ *+' conftest.er1 >conftest.err
11327   rm -f conftest.er1
11328   cat conftest.err >&5
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); } && {
11331          test -z "$ac_c_werror_flag" ||
11332          test ! -s conftest.err
11333        } && test -s conftest$ac_exeext &&
11334        $as_test_x conftest$ac_exeext; then
11335
11336 cat >>confdefs.h <<\_ACEOF
11337 #define HAVE_LIBDL 1
11338 _ACEOF
11339
11340             libltdl_cv_func_dlopen="yes"
11341             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11342 else
11343   echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11345
11346         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11347 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11348 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11349   echo $ECHO_N "(cached) $ECHO_C" >&6
11350 else
11351   ac_check_lib_save_LIBS=$LIBS
11352 LIBS="-lsvld  $LIBS"
11353 cat >conftest.$ac_ext <<_ACEOF
11354 /* confdefs.h.  */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h.  */
11359
11360 /* Override any GCC internal prototype to avoid an error.
11361    Use char because int might match the return type of a GCC
11362    builtin and then its argument prototype would still apply.  */
11363 #ifdef __cplusplus
11364 extern "C"
11365 #endif
11366 char dlopen ();
11367 int
11368 main ()
11369 {
11370 return dlopen ();
11371   ;
11372   return 0;
11373 }
11374 _ACEOF
11375 rm -f conftest.$ac_objext conftest$ac_exeext
11376 if { (ac_try="$ac_link"
11377 case "(($ac_try" in
11378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379   *) ac_try_echo=$ac_try;;
11380 esac
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382   (eval "$ac_link") 2>conftest.er1
11383   ac_status=$?
11384   grep -v '^ *+' conftest.er1 >conftest.err
11385   rm -f conftest.er1
11386   cat conftest.err >&5
11387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388   (exit $ac_status); } && {
11389          test -z "$ac_c_werror_flag" ||
11390          test ! -s conftest.err
11391        } && test -s conftest$ac_exeext &&
11392        $as_test_x conftest$ac_exeext; then
11393   ac_cv_lib_svld_dlopen=yes
11394 else
11395   echo "$as_me: failed program was:" >&5
11396 sed 's/^/| /' conftest.$ac_ext >&5
11397
11398         ac_cv_lib_svld_dlopen=no
11399 fi
11400
11401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11402       conftest$ac_exeext conftest.$ac_ext
11403 LIBS=$ac_check_lib_save_LIBS
11404 fi
11405 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11406 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11407 if test $ac_cv_lib_svld_dlopen = yes; then
11408
11409 cat >>confdefs.h <<\_ACEOF
11410 #define HAVE_LIBDL 1
11411 _ACEOF
11412
11413                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11414                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11415 fi
11416
11417 fi
11418
11419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11420       conftest$ac_exeext conftest.$ac_ext
11421 fi
11422
11423 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11424 then
11425   lt_save_LIBS="$LIBS"
11426   LIBS="$LIBS $LIBADD_DLOPEN"
11427
11428 for ac_func in dlerror
11429 do
11430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11431 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11434   echo $ECHO_N "(cached) $ECHO_C" >&6
11435 else
11436   cat >conftest.$ac_ext <<_ACEOF
11437 /* confdefs.h.  */
11438 _ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h.  */
11442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11444 #define $ac_func innocuous_$ac_func
11445
11446 /* System header to define __stub macros and hopefully few prototypes,
11447     which can conflict with char $ac_func (); below.
11448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11449     <limits.h> exists even on freestanding compilers.  */
11450
11451 #ifdef __STDC__
11452 # include <limits.h>
11453 #else
11454 # include <assert.h>
11455 #endif
11456
11457 #undef $ac_func
11458
11459 /* Override any GCC internal prototype to avoid an error.
11460    Use char because int might match the return type of a GCC
11461    builtin and then its argument prototype would still apply.  */
11462 #ifdef __cplusplus
11463 extern "C"
11464 #endif
11465 char $ac_func ();
11466 /* The GNU C library defines this for functions which it implements
11467     to always fail with ENOSYS.  Some functions are actually named
11468     something starting with __ and the normal name is an alias.  */
11469 #if defined __stub_$ac_func || defined __stub___$ac_func
11470 choke me
11471 #endif
11472
11473 int
11474 main ()
11475 {
11476 return $ac_func ();
11477   ;
11478   return 0;
11479 }
11480 _ACEOF
11481 rm -f conftest.$ac_objext conftest$ac_exeext
11482 if { (ac_try="$ac_link"
11483 case "(($ac_try" in
11484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485   *) ac_try_echo=$ac_try;;
11486 esac
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488   (eval "$ac_link") 2>conftest.er1
11489   ac_status=$?
11490   grep -v '^ *+' conftest.er1 >conftest.err
11491   rm -f conftest.er1
11492   cat conftest.err >&5
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); } && {
11495          test -z "$ac_c_werror_flag" ||
11496          test ! -s conftest.err
11497        } && test -s conftest$ac_exeext &&
11498        $as_test_x conftest$ac_exeext; then
11499   eval "$as_ac_var=yes"
11500 else
11501   echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11503
11504         eval "$as_ac_var=no"
11505 fi
11506
11507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11508       conftest$ac_exeext conftest.$ac_ext
11509 fi
11510 ac_res=`eval echo '${'$as_ac_var'}'`
11511                { echo "$as_me:$LINENO: result: $ac_res" >&5
11512 echo "${ECHO_T}$ac_res" >&6; }
11513 if test `eval echo '${'$as_ac_var'}'` = yes; then
11514   cat >>confdefs.h <<_ACEOF
11515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11516 _ACEOF
11517
11518 fi
11519 done
11520
11521   LIBS="$lt_save_LIBS"
11522 fi
11523
11524
11525 LIBADD_SHL_LOAD=
11526 { echo "$as_me:$LINENO: checking for shl_load" >&5
11527 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11528 if test "${ac_cv_func_shl_load+set}" = set; then
11529   echo $ECHO_N "(cached) $ECHO_C" >&6
11530 else
11531   cat >conftest.$ac_ext <<_ACEOF
11532 /* confdefs.h.  */
11533 _ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h.  */
11537 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11538    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11539 #define shl_load innocuous_shl_load
11540
11541 /* System header to define __stub macros and hopefully few prototypes,
11542     which can conflict with char shl_load (); below.
11543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11544     <limits.h> exists even on freestanding compilers.  */
11545
11546 #ifdef __STDC__
11547 # include <limits.h>
11548 #else
11549 # include <assert.h>
11550 #endif
11551
11552 #undef shl_load
11553
11554 /* Override any GCC internal prototype to avoid an error.
11555    Use char because int might match the return type of a GCC
11556    builtin and then its argument prototype would still apply.  */
11557 #ifdef __cplusplus
11558 extern "C"
11559 #endif
11560 char shl_load ();
11561 /* The GNU C library defines this for functions which it implements
11562     to always fail with ENOSYS.  Some functions are actually named
11563     something starting with __ and the normal name is an alias.  */
11564 #if defined __stub_shl_load || defined __stub___shl_load
11565 choke me
11566 #endif
11567
11568 int
11569 main ()
11570 {
11571 return shl_load ();
11572   ;
11573   return 0;
11574 }
11575 _ACEOF
11576 rm -f conftest.$ac_objext conftest$ac_exeext
11577 if { (ac_try="$ac_link"
11578 case "(($ac_try" in
11579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580   *) ac_try_echo=$ac_try;;
11581 esac
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583   (eval "$ac_link") 2>conftest.er1
11584   ac_status=$?
11585   grep -v '^ *+' conftest.er1 >conftest.err
11586   rm -f conftest.er1
11587   cat conftest.err >&5
11588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589   (exit $ac_status); } && {
11590          test -z "$ac_c_werror_flag" ||
11591          test ! -s conftest.err
11592        } && test -s conftest$ac_exeext &&
11593        $as_test_x conftest$ac_exeext; then
11594   ac_cv_func_shl_load=yes
11595 else
11596   echo "$as_me: failed program was:" >&5
11597 sed 's/^/| /' conftest.$ac_ext >&5
11598
11599         ac_cv_func_shl_load=no
11600 fi
11601
11602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11603       conftest$ac_exeext conftest.$ac_ext
11604 fi
11605 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11606 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11607 if test $ac_cv_func_shl_load = yes; then
11608
11609 cat >>confdefs.h <<\_ACEOF
11610 #define HAVE_SHL_LOAD 1
11611 _ACEOF
11612
11613         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11614 else
11615   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11616 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11617 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11618   echo $ECHO_N "(cached) $ECHO_C" >&6
11619 else
11620   ac_check_lib_save_LIBS=$LIBS
11621 LIBS="-ldld  $LIBS"
11622 cat >conftest.$ac_ext <<_ACEOF
11623 /* confdefs.h.  */
11624 _ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h.  */
11628
11629 /* Override any GCC internal prototype to avoid an error.
11630    Use char because int might match the return type of a GCC
11631    builtin and then its argument prototype would still apply.  */
11632 #ifdef __cplusplus
11633 extern "C"
11634 #endif
11635 char shl_load ();
11636 int
11637 main ()
11638 {
11639 return shl_load ();
11640   ;
11641   return 0;
11642 }
11643 _ACEOF
11644 rm -f conftest.$ac_objext conftest$ac_exeext
11645 if { (ac_try="$ac_link"
11646 case "(($ac_try" in
11647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11648   *) ac_try_echo=$ac_try;;
11649 esac
11650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11651   (eval "$ac_link") 2>conftest.er1
11652   ac_status=$?
11653   grep -v '^ *+' conftest.er1 >conftest.err
11654   rm -f conftest.er1
11655   cat conftest.err >&5
11656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657   (exit $ac_status); } && {
11658          test -z "$ac_c_werror_flag" ||
11659          test ! -s conftest.err
11660        } && test -s conftest$ac_exeext &&
11661        $as_test_x conftest$ac_exeext; then
11662   ac_cv_lib_dld_shl_load=yes
11663 else
11664   echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11666
11667         ac_cv_lib_dld_shl_load=no
11668 fi
11669
11670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11671       conftest$ac_exeext conftest.$ac_ext
11672 LIBS=$ac_check_lib_save_LIBS
11673 fi
11674 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11675 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11676 if test $ac_cv_lib_dld_shl_load = yes; then
11677
11678 cat >>confdefs.h <<\_ACEOF
11679 #define HAVE_SHL_LOAD 1
11680 _ACEOF
11681
11682             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11683             LIBADD_SHL_LOAD="-ldld"
11684 fi
11685
11686 fi
11687
11688
11689
11690 case $host_os in
11691 darwin[1567].*)
11692 # We only want this for pre-Mac OS X 10.4.
11693   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11694 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11695 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11696   echo $ECHO_N "(cached) $ECHO_C" >&6
11697 else
11698   cat >conftest.$ac_ext <<_ACEOF
11699 /* confdefs.h.  */
11700 _ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h.  */
11704 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11706 #define _dyld_func_lookup innocuous__dyld_func_lookup
11707
11708 /* System header to define __stub macros and hopefully few prototypes,
11709     which can conflict with char _dyld_func_lookup (); below.
11710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11711     <limits.h> exists even on freestanding compilers.  */
11712
11713 #ifdef __STDC__
11714 # include <limits.h>
11715 #else
11716 # include <assert.h>
11717 #endif
11718
11719 #undef _dyld_func_lookup
11720
11721 /* Override any GCC internal prototype to avoid an error.
11722    Use char because int might match the return type of a GCC
11723    builtin and then its argument prototype would still apply.  */
11724 #ifdef __cplusplus
11725 extern "C"
11726 #endif
11727 char _dyld_func_lookup ();
11728 /* The GNU C library defines this for functions which it implements
11729     to always fail with ENOSYS.  Some functions are actually named
11730     something starting with __ and the normal name is an alias.  */
11731 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11732 choke me
11733 #endif
11734
11735 int
11736 main ()
11737 {
11738 return _dyld_func_lookup ();
11739   ;
11740   return 0;
11741 }
11742 _ACEOF
11743 rm -f conftest.$ac_objext conftest$ac_exeext
11744 if { (ac_try="$ac_link"
11745 case "(($ac_try" in
11746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747   *) ac_try_echo=$ac_try;;
11748 esac
11749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750   (eval "$ac_link") 2>conftest.er1
11751   ac_status=$?
11752   grep -v '^ *+' conftest.er1 >conftest.err
11753   rm -f conftest.er1
11754   cat conftest.err >&5
11755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756   (exit $ac_status); } && {
11757          test -z "$ac_c_werror_flag" ||
11758          test ! -s conftest.err
11759        } && test -s conftest$ac_exeext &&
11760        $as_test_x conftest$ac_exeext; then
11761   ac_cv_func__dyld_func_lookup=yes
11762 else
11763   echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11765
11766         ac_cv_func__dyld_func_lookup=no
11767 fi
11768
11769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11770       conftest$ac_exeext conftest.$ac_ext
11771 fi
11772 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11773 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11774 if test $ac_cv_func__dyld_func_lookup = yes; then
11775
11776 cat >>confdefs.h <<\_ACEOF
11777 #define HAVE_DYLD 1
11778 _ACEOF
11779
11780         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11781 fi
11782
11783   ;;
11784 beos*)
11785   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11786   ;;
11787 cygwin* | mingw* | os2* | pw32*)
11788   { echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
11789 echo $ECHO_N "checking whether cygwin_conv_path is declared... $ECHO_C" >&6; }
11790 if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
11791   echo $ECHO_N "(cached) $ECHO_C" >&6
11792 else
11793   cat >conftest.$ac_ext <<_ACEOF
11794 /* confdefs.h.  */
11795 _ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h.  */
11799 #include <sys/cygwin.h>
11800
11801 int
11802 main ()
11803 {
11804 #ifndef cygwin_conv_path
11805   (void) cygwin_conv_path;
11806 #endif
11807
11808   ;
11809   return 0;
11810 }
11811 _ACEOF
11812 rm -f conftest.$ac_objext
11813 if { (ac_try="$ac_compile"
11814 case "(($ac_try" in
11815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816   *) ac_try_echo=$ac_try;;
11817 esac
11818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11819   (eval "$ac_compile") 2>conftest.er1
11820   ac_status=$?
11821   grep -v '^ *+' conftest.er1 >conftest.err
11822   rm -f conftest.er1
11823   cat conftest.err >&5
11824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); } && {
11826          test -z "$ac_c_werror_flag" ||
11827          test ! -s conftest.err
11828        } && test -s conftest.$ac_objext; then
11829   ac_cv_have_decl_cygwin_conv_path=yes
11830 else
11831   echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11833
11834         ac_cv_have_decl_cygwin_conv_path=no
11835 fi
11836
11837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11838 fi
11839 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
11840 echo "${ECHO_T}$ac_cv_have_decl_cygwin_conv_path" >&6; }
11841 if test $ac_cv_have_decl_cygwin_conv_path = yes; then
11842
11843 cat >>confdefs.h <<_ACEOF
11844 #define HAVE_DECL_CYGWIN_CONV_PATH 1
11845 _ACEOF
11846
11847
11848 else
11849   cat >>confdefs.h <<_ACEOF
11850 #define HAVE_DECL_CYGWIN_CONV_PATH 0
11851 _ACEOF
11852
11853
11854 fi
11855
11856
11857   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11858   ;;
11859 esac
11860
11861 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11862 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11863 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11864   echo $ECHO_N "(cached) $ECHO_C" >&6
11865 else
11866   ac_check_lib_save_LIBS=$LIBS
11867 LIBS="-ldld  $LIBS"
11868 cat >conftest.$ac_ext <<_ACEOF
11869 /* confdefs.h.  */
11870 _ACEOF
11871 cat confdefs.h >>conftest.$ac_ext
11872 cat >>conftest.$ac_ext <<_ACEOF
11873 /* end confdefs.h.  */
11874
11875 /* Override any GCC internal prototype to avoid an error.
11876    Use char because int might match the return type of a GCC
11877    builtin and then its argument prototype would still apply.  */
11878 #ifdef __cplusplus
11879 extern "C"
11880 #endif
11881 char dld_link ();
11882 int
11883 main ()
11884 {
11885 return dld_link ();
11886   ;
11887   return 0;
11888 }
11889 _ACEOF
11890 rm -f conftest.$ac_objext conftest$ac_exeext
11891 if { (ac_try="$ac_link"
11892 case "(($ac_try" in
11893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894   *) ac_try_echo=$ac_try;;
11895 esac
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897   (eval "$ac_link") 2>conftest.er1
11898   ac_status=$?
11899   grep -v '^ *+' conftest.er1 >conftest.err
11900   rm -f conftest.er1
11901   cat conftest.err >&5
11902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903   (exit $ac_status); } && {
11904          test -z "$ac_c_werror_flag" ||
11905          test ! -s conftest.err
11906        } && test -s conftest$ac_exeext &&
11907        $as_test_x conftest$ac_exeext; then
11908   ac_cv_lib_dld_dld_link=yes
11909 else
11910   echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11912
11913         ac_cv_lib_dld_dld_link=no
11914 fi
11915
11916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11917       conftest$ac_exeext conftest.$ac_ext
11918 LIBS=$ac_check_lib_save_LIBS
11919 fi
11920 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11921 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11922 if test $ac_cv_lib_dld_dld_link = yes; then
11923
11924 cat >>confdefs.h <<\_ACEOF
11925 #define HAVE_DLD 1
11926 _ACEOF
11927
11928                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11929 fi
11930
11931
11932
11933
11934 LT_DLPREOPEN=
11935 if test -n "$LT_DLLOADERS"
11936 then
11937   for lt_loader in $LT_DLLOADERS; do
11938     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11939   done
11940
11941 cat >>confdefs.h <<\_ACEOF
11942 #define HAVE_LIBDLLOADER 1
11943 _ACEOF
11944
11945 fi
11946
11947
11948 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11949
11950
11951 ac_ext=c
11952 ac_cpp='$CPP $CPPFLAGS'
11953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11956
11957
11958 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11959 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11960 if test "${lt_cv_sys_symbol_underscore+set}" = set; then
11961   echo $ECHO_N "(cached) $ECHO_C" >&6
11962 else
11963   lt_cv_sys_symbol_underscore=no
11964   cat > conftest.$ac_ext <<_LT_EOF
11965 void nm_test_func(){}
11966 int main(){nm_test_func;return 0;}
11967 _LT_EOF
11968   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11969   (eval $ac_compile) 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); }; then
11973     # Now try to grab the symbols.
11974     ac_nlist=conftest.nm
11975     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11976   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11977   ac_status=$?
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); } && test -s "$ac_nlist"; then
11980       # See whether the symbols have a leading underscore.
11981       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11982         lt_cv_sys_symbol_underscore=yes
11983       else
11984         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11985           :
11986         else
11987           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11988         fi
11989       fi
11990     else
11991       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11992     fi
11993   else
11994     echo "configure: failed program was:" >&5
11995     cat conftest.c >&5
11996   fi
11997   rm -rf conftest*
11998
11999 fi
12000 { echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
12001 echo "${ECHO_T}$lt_cv_sys_symbol_underscore" >&6; }
12002   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12003
12004
12005 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12006   if test x"$libltdl_cv_func_dlopen" = xyes ||
12007      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12008         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
12009 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
12010 if test "${libltdl_cv_need_uscore+set}" = set; then
12011   echo $ECHO_N "(cached) $ECHO_C" >&6
12012 else
12013   libltdl_cv_need_uscore=unknown
12014           save_LIBS="$LIBS"
12015           LIBS="$LIBS $LIBADD_DLOPEN"
12016           if test "$cross_compiling" = yes; then :
12017   libltdl_cv_need_uscore=cross
12018 else
12019   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12020   lt_status=$lt_dlunknown
12021   cat > conftest.$ac_ext <<_LT_EOF
12022 #line 12022 "configure"
12023 #include "confdefs.h"
12024
12025 #if HAVE_DLFCN_H
12026 #include <dlfcn.h>
12027 #endif
12028
12029 #include <stdio.h>
12030
12031 #ifdef RTLD_GLOBAL
12032 #  define LT_DLGLOBAL           RTLD_GLOBAL
12033 #else
12034 #  ifdef DL_GLOBAL
12035 #    define LT_DLGLOBAL         DL_GLOBAL
12036 #  else
12037 #    define LT_DLGLOBAL         0
12038 #  endif
12039 #endif
12040
12041 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12042    find out it does not work in some platform. */
12043 #ifndef LT_DLLAZY_OR_NOW
12044 #  ifdef RTLD_LAZY
12045 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12046 #  else
12047 #    ifdef DL_LAZY
12048 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12049 #    else
12050 #      ifdef RTLD_NOW
12051 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12052 #      else
12053 #        ifdef DL_NOW
12054 #          define LT_DLLAZY_OR_NOW      DL_NOW
12055 #        else
12056 #          define LT_DLLAZY_OR_NOW      0
12057 #        endif
12058 #      endif
12059 #    endif
12060 #  endif
12061 #endif
12062
12063 #ifdef __cplusplus
12064 extern "C" void exit (int);
12065 #endif
12066
12067 void fnord() { int i=42;}
12068 int main ()
12069 {
12070   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12071   int status = $lt_dlunknown;
12072
12073   if (self)
12074     {
12075       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12076       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12077       /* dlclose (self); */
12078     }
12079   else
12080     puts (dlerror ());
12081
12082     exit (status);
12083 }
12084 _LT_EOF
12085   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12086   (eval $ac_link) 2>&5
12087   ac_status=$?
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12090     (./conftest; exit; ) >&5 2>/dev/null
12091     lt_status=$?
12092     case x$lt_status in
12093       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12094       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12095       x$lt_dlunknown|x*)  ;;
12096     esac
12097   else :
12098     # compilation failed
12099
12100   fi
12101 fi
12102 rm -fr conftest*
12103
12104           LIBS="$save_LIBS"
12105
12106 fi
12107 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
12108 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
12109   fi
12110 fi
12111
12112 if test x"$libltdl_cv_need_uscore" = xyes; then
12113
12114 cat >>confdefs.h <<\_ACEOF
12115 #define NEED_USCORE 1
12116 _ACEOF
12117
12118 fi
12119
12120 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
12121 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
12122 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
12123   echo $ECHO_N "(cached) $ECHO_C" >&6
12124 else
12125   # PORTME does your system automatically load deplibs for dlopen?
12126   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12127   # For now, we just catch OSes we know something about -- in the
12128   # future, we'll try test this programmatically.
12129   lt_cv_sys_dlopen_deplibs=unknown
12130   case $host_os in
12131   aix3*|aix4.1.*|aix4.2.*)
12132     # Unknown whether this is true for these versions of AIX, but
12133     # we want this `case' here to explicitly catch those versions.
12134     lt_cv_sys_dlopen_deplibs=unknown
12135     ;;
12136   aix[4-9]*)
12137     lt_cv_sys_dlopen_deplibs=yes
12138     ;;
12139   amigaos*)
12140     case $host_cpu in
12141     powerpc)
12142       lt_cv_sys_dlopen_deplibs=no
12143       ;;
12144     esac
12145     ;;
12146   darwin*)
12147     # Assuming the user has installed a libdl from somewhere, this is true
12148     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12149     lt_cv_sys_dlopen_deplibs=yes
12150     ;;
12151   freebsd* | dragonfly*)
12152     lt_cv_sys_dlopen_deplibs=yes
12153     ;;
12154   gnu* | linux* | k*bsd*-gnu)
12155     # GNU and its variants, using gnu ld.so (Glibc)
12156     lt_cv_sys_dlopen_deplibs=yes
12157     ;;
12158   hpux10*|hpux11*)
12159     lt_cv_sys_dlopen_deplibs=yes
12160     ;;
12161   interix*)
12162     lt_cv_sys_dlopen_deplibs=yes
12163     ;;
12164   irix[12345]*|irix6.[01]*)
12165     # Catch all versions of IRIX before 6.2, and indicate that we don't
12166     # know how it worked for any of those versions.
12167     lt_cv_sys_dlopen_deplibs=unknown
12168     ;;
12169   irix*)
12170     # The case above catches anything before 6.2, and it's known that
12171     # at 6.2 and later dlopen does load deplibs.
12172     lt_cv_sys_dlopen_deplibs=yes
12173     ;;
12174   netbsd*)
12175     lt_cv_sys_dlopen_deplibs=yes
12176     ;;
12177   openbsd*)
12178     lt_cv_sys_dlopen_deplibs=yes
12179     ;;
12180   osf[1234]*)
12181     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12182     # it did *not* use an RPATH in a shared library to find objects the
12183     # library depends on, so we explicitly say `no'.
12184     lt_cv_sys_dlopen_deplibs=no
12185     ;;
12186   osf5.0|osf5.0a|osf5.1)
12187     # dlopen *does* load deplibs and with the right loader patch applied
12188     # it even uses RPATH in a shared library to search for shared objects
12189     # that the library depends on, but there's no easy way to know if that
12190     # patch is installed.  Since this is the case, all we can really
12191     # say is unknown -- it depends on the patch being installed.  If
12192     # it is, this changes to `yes'.  Without it, it would be `no'.
12193     lt_cv_sys_dlopen_deplibs=unknown
12194     ;;
12195   osf*)
12196     # the two cases above should catch all versions of osf <= 5.1.  Read
12197     # the comments above for what we know about them.
12198     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12199     # is used to find them so we can finally say `yes'.
12200     lt_cv_sys_dlopen_deplibs=yes
12201     ;;
12202   qnx*)
12203     lt_cv_sys_dlopen_deplibs=yes
12204     ;;
12205   solaris*)
12206     lt_cv_sys_dlopen_deplibs=yes
12207     ;;
12208   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12209     libltdl_cv_sys_dlopen_deplibs=yes
12210     ;;
12211   esac
12212
12213 fi
12214 { echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
12215 echo "${ECHO_T}$lt_cv_sys_dlopen_deplibs" >&6; }
12216 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12217
12218 cat >>confdefs.h <<\_ACEOF
12219 #define LTDL_DLOPEN_DEPLIBS 1
12220 _ACEOF
12221
12222 fi
12223
12224 :
12225
12226
12227 for ac_header in argz.h
12228 do
12229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12233   echo $ECHO_N "(cached) $ECHO_C" >&6
12234 else
12235   cat >conftest.$ac_ext <<_ACEOF
12236 /* confdefs.h.  */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h.  */
12241 $ac_includes_default
12242
12243 #include <$ac_header>
12244 _ACEOF
12245 rm -f conftest.$ac_objext
12246 if { (ac_try="$ac_compile"
12247 case "(($ac_try" in
12248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12249   *) ac_try_echo=$ac_try;;
12250 esac
12251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12252   (eval "$ac_compile") 2>conftest.er1
12253   ac_status=$?
12254   grep -v '^ *+' conftest.er1 >conftest.err
12255   rm -f conftest.er1
12256   cat conftest.err >&5
12257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258   (exit $ac_status); } && {
12259          test -z "$ac_c_werror_flag" ||
12260          test ! -s conftest.err
12261        } && test -s conftest.$ac_objext; then
12262   eval "$as_ac_Header=yes"
12263 else
12264   echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.$ac_ext >&5
12266
12267         eval "$as_ac_Header=no"
12268 fi
12269
12270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12271 fi
12272 ac_res=`eval echo '${'$as_ac_Header'}'`
12273                { echo "$as_me:$LINENO: result: $ac_res" >&5
12274 echo "${ECHO_T}$ac_res" >&6; }
12275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12276   cat >>confdefs.h <<_ACEOF
12277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12278 _ACEOF
12279
12280 fi
12281
12282 done
12283
12284
12285 { echo "$as_me:$LINENO: checking for error_t" >&5
12286 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
12287 if test "${ac_cv_type_error_t+set}" = set; then
12288   echo $ECHO_N "(cached) $ECHO_C" >&6
12289 else
12290   cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h.  */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h.  */
12296 #if defined(HAVE_ARGZ_H)
12297 #  include <argz.h>
12298 #endif
12299
12300 typedef error_t ac__type_new_;
12301 int
12302 main ()
12303 {
12304 if ((ac__type_new_ *) 0)
12305   return 0;
12306 if (sizeof (ac__type_new_))
12307   return 0;
12308   ;
12309   return 0;
12310 }
12311 _ACEOF
12312 rm -f conftest.$ac_objext
12313 if { (ac_try="$ac_compile"
12314 case "(($ac_try" in
12315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12316   *) ac_try_echo=$ac_try;;
12317 esac
12318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12319   (eval "$ac_compile") 2>conftest.er1
12320   ac_status=$?
12321   grep -v '^ *+' conftest.er1 >conftest.err
12322   rm -f conftest.er1
12323   cat conftest.err >&5
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); } && {
12326          test -z "$ac_c_werror_flag" ||
12327          test ! -s conftest.err
12328        } && test -s conftest.$ac_objext; then
12329   ac_cv_type_error_t=yes
12330 else
12331   echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12333
12334         ac_cv_type_error_t=no
12335 fi
12336
12337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12338 fi
12339 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12340 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
12341 if test $ac_cv_type_error_t = yes; then
12342
12343 cat >>confdefs.h <<_ACEOF
12344 #define HAVE_ERROR_T 1
12345 _ACEOF
12346
12347
12348 else
12349
12350 cat >>confdefs.h <<\_ACEOF
12351 #define error_t int
12352 _ACEOF
12353
12354
12355 cat >>confdefs.h <<\_ACEOF
12356 #define __error_t_defined 1
12357 _ACEOF
12358
12359 fi
12360
12361
12362 ARGZ_H=
12363
12364
12365
12366
12367
12368
12369
12370 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12371         argz_next argz_stringify
12372 do
12373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12374 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12377   echo $ECHO_N "(cached) $ECHO_C" >&6
12378 else
12379   cat >conftest.$ac_ext <<_ACEOF
12380 /* confdefs.h.  */
12381 _ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h.  */
12385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12386    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12387 #define $ac_func innocuous_$ac_func
12388
12389 /* System header to define __stub macros and hopefully few prototypes,
12390     which can conflict with char $ac_func (); below.
12391     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12392     <limits.h> exists even on freestanding compilers.  */
12393
12394 #ifdef __STDC__
12395 # include <limits.h>
12396 #else
12397 # include <assert.h>
12398 #endif
12399
12400 #undef $ac_func
12401
12402 /* Override any GCC internal prototype to avoid an error.
12403    Use char because int might match the return type of a GCC
12404    builtin and then its argument prototype would still apply.  */
12405 #ifdef __cplusplus
12406 extern "C"
12407 #endif
12408 char $ac_func ();
12409 /* The GNU C library defines this for functions which it implements
12410     to always fail with ENOSYS.  Some functions are actually named
12411     something starting with __ and the normal name is an alias.  */
12412 #if defined __stub_$ac_func || defined __stub___$ac_func
12413 choke me
12414 #endif
12415
12416 int
12417 main ()
12418 {
12419 return $ac_func ();
12420   ;
12421   return 0;
12422 }
12423 _ACEOF
12424 rm -f conftest.$ac_objext conftest$ac_exeext
12425 if { (ac_try="$ac_link"
12426 case "(($ac_try" in
12427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428   *) ac_try_echo=$ac_try;;
12429 esac
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431   (eval "$ac_link") 2>conftest.er1
12432   ac_status=$?
12433   grep -v '^ *+' conftest.er1 >conftest.err
12434   rm -f conftest.er1
12435   cat conftest.err >&5
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); } && {
12438          test -z "$ac_c_werror_flag" ||
12439          test ! -s conftest.err
12440        } && test -s conftest$ac_exeext &&
12441        $as_test_x conftest$ac_exeext; then
12442   eval "$as_ac_var=yes"
12443 else
12444   echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12446
12447         eval "$as_ac_var=no"
12448 fi
12449
12450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12451       conftest$ac_exeext conftest.$ac_ext
12452 fi
12453 ac_res=`eval echo '${'$as_ac_var'}'`
12454                { echo "$as_me:$LINENO: result: $ac_res" >&5
12455 echo "${ECHO_T}$ac_res" >&6; }
12456 if test `eval echo '${'$as_ac_var'}'` = yes; then
12457   cat >>confdefs.h <<_ACEOF
12458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12459 _ACEOF
12460
12461 else
12462   ARGZ_H=argz.h; case " $LIBOBJS " in
12463   *" argz.$ac_objext "* ) ;;
12464   *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12465  ;;
12466 esac
12467
12468 fi
12469 done
12470
12471
12472 if test -z "$ARGZ_H"; then
12473   { echo "$as_me:$LINENO: checking if argz actually works" >&5
12474 echo $ECHO_N "checking if argz actually works... $ECHO_C" >&6; }
12475 if test "${lt_cv_sys_argz_works+set}" = set; then
12476   echo $ECHO_N "(cached) $ECHO_C" >&6
12477 else
12478   case $host_os in #(
12479          *cygwin*)
12480            lt_cv_sys_argz_works=no
12481            if test "$cross_compiling" != no; then
12482              lt_cv_sys_argz_works="guessing no"
12483            else
12484              lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12485              save_IFS=$IFS
12486              IFS=-.
12487              set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12488              IFS=$save_IFS
12489              lt_os_major=${2-0}
12490              lt_os_minor=${3-0}
12491              lt_os_micro=${4-0}
12492              if test "$lt_os_major" -gt 1 \
12493                 || { test "$lt_os_major" -eq 1 \
12494                   && { test "$lt_os_minor" -gt 5 \
12495                     || { test "$lt_os_minor" -eq 5 \
12496                       && test "$lt_os_micro" -gt 24; }; }; }; then
12497                lt_cv_sys_argz_works=yes
12498              fi
12499            fi
12500            ;; #(
12501          *) lt_cv_sys_argz_works=yes ;;
12502          esac
12503 fi
12504 { echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
12505 echo "${ECHO_T}$lt_cv_sys_argz_works" >&6; }
12506      if test $lt_cv_sys_argz_works = yes; then
12507
12508 cat >>confdefs.h <<\_ACEOF
12509 #define HAVE_WORKING_ARGZ 1
12510 _ACEOF
12511
12512 else
12513   ARGZ_H=argz.h
12514         case " $LIBOBJS " in
12515   *" argz.$ac_objext "* ) ;;
12516   *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12517  ;;
12518 esac
12519
12520 fi
12521
12522 fi
12523
12524
12525
12526
12527 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
12528 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
12529 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
12530   echo $ECHO_N "(cached) $ECHO_C" >&6
12531 else
12532   if test -n "$lt_cv_sys_global_symbol_pipe"; then
12533     libltdl_cv_preloaded_symbols=yes
12534   else
12535     libltdl_cv_preloaded_symbols=no
12536   fi
12537
12538 fi
12539 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
12540 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
12541 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12542
12543 cat >>confdefs.h <<\_ACEOF
12544 #define HAVE_PRELOADED_SYMBOLS 1
12545 _ACEOF
12546
12547 fi
12548
12549
12550
12551 # lt_cv_dlopen_self gets defined by LT_SYS_DLOPEN_SELF, called by LT_INIT
12552 if test "$lt_cv_dlopen_self" = yes; then
12553
12554 cat >>confdefs.h <<\_ACEOF
12555 #define LTDL_DLOPEN_SELF_WORKS 1
12556 _ACEOF
12557
12558 fi
12559
12560 # Check whether --enable-ltdl-install was given.
12561 if test "${enable_ltdl_install+set}" = set; then
12562   enableval=$enable_ltdl_install;
12563 fi
12564
12565
12566 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12567   *yes*) ;;
12568   *) enable_ltdl_convenience=yes ;;
12569 esac
12570
12571  if test x"${enable_ltdl_install-no}" != xno; then
12572   INSTALL_LTDL_TRUE=
12573   INSTALL_LTDL_FALSE='#'
12574 else
12575   INSTALL_LTDL_TRUE='#'
12576   INSTALL_LTDL_FALSE=
12577 fi
12578
12579   if test x"${enable_ltdl_convenience-no}" != xno; then
12580   CONVENIENCE_LTDL_TRUE=
12581   CONVENIENCE_LTDL_FALSE='#'
12582 else
12583   CONVENIENCE_LTDL_TRUE='#'
12584   CONVENIENCE_LTDL_FALSE=
12585 fi
12586
12587
12588
12589
12590
12591
12592 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12593 # the user used.  This is so that ltdl.h can pick up the parent projects
12594 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12595 # definitions required by ltdl.c.
12596 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12607 do
12608 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12612   echo $ECHO_N "(cached) $ECHO_C" >&6
12613 else
12614   cat >conftest.$ac_ext <<_ACEOF
12615 /* confdefs.h.  */
12616 _ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h.  */
12620 $ac_includes_default
12621
12622 #include <$ac_header>
12623 _ACEOF
12624 rm -f conftest.$ac_objext
12625 if { (ac_try="$ac_compile"
12626 case "(($ac_try" in
12627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628   *) ac_try_echo=$ac_try;;
12629 esac
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631   (eval "$ac_compile") 2>conftest.er1
12632   ac_status=$?
12633   grep -v '^ *+' conftest.er1 >conftest.err
12634   rm -f conftest.er1
12635   cat conftest.err >&5
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); } && {
12638          test -z "$ac_c_werror_flag" ||
12639          test ! -s conftest.err
12640        } && test -s conftest.$ac_objext; then
12641   eval "$as_ac_Header=yes"
12642 else
12643   echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12645
12646         eval "$as_ac_Header=no"
12647 fi
12648
12649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12650 fi
12651 ac_res=`eval echo '${'$as_ac_Header'}'`
12652                { echo "$as_me:$LINENO: result: $ac_res" >&5
12653 echo "${ECHO_T}$ac_res" >&6; }
12654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12655   cat >>confdefs.h <<_ACEOF
12656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12657 _ACEOF
12658
12659 fi
12660
12661 done
12662
12663
12664
12665
12666
12667 for ac_func in closedir opendir readdir
12668 do
12669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12670 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12673   echo $ECHO_N "(cached) $ECHO_C" >&6
12674 else
12675   cat >conftest.$ac_ext <<_ACEOF
12676 /* confdefs.h.  */
12677 _ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h.  */
12681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12683 #define $ac_func innocuous_$ac_func
12684
12685 /* System header to define __stub macros and hopefully few prototypes,
12686     which can conflict with char $ac_func (); below.
12687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12688     <limits.h> exists even on freestanding compilers.  */
12689
12690 #ifdef __STDC__
12691 # include <limits.h>
12692 #else
12693 # include <assert.h>
12694 #endif
12695
12696 #undef $ac_func
12697
12698 /* Override any GCC internal prototype to avoid an error.
12699    Use char because int might match the return type of a GCC
12700    builtin and then its argument prototype would still apply.  */
12701 #ifdef __cplusplus
12702 extern "C"
12703 #endif
12704 char $ac_func ();
12705 /* The GNU C library defines this for functions which it implements
12706     to always fail with ENOSYS.  Some functions are actually named
12707     something starting with __ and the normal name is an alias.  */
12708 #if defined __stub_$ac_func || defined __stub___$ac_func
12709 choke me
12710 #endif
12711
12712 int
12713 main ()
12714 {
12715 return $ac_func ();
12716   ;
12717   return 0;
12718 }
12719 _ACEOF
12720 rm -f conftest.$ac_objext conftest$ac_exeext
12721 if { (ac_try="$ac_link"
12722 case "(($ac_try" in
12723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724   *) ac_try_echo=$ac_try;;
12725 esac
12726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12727   (eval "$ac_link") 2>conftest.er1
12728   ac_status=$?
12729   grep -v '^ *+' conftest.er1 >conftest.err
12730   rm -f conftest.er1
12731   cat conftest.err >&5
12732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733   (exit $ac_status); } && {
12734          test -z "$ac_c_werror_flag" ||
12735          test ! -s conftest.err
12736        } && test -s conftest$ac_exeext &&
12737        $as_test_x conftest$ac_exeext; then
12738   eval "$as_ac_var=yes"
12739 else
12740   echo "$as_me: failed program was:" >&5
12741 sed 's/^/| /' conftest.$ac_ext >&5
12742
12743         eval "$as_ac_var=no"
12744 fi
12745
12746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12747       conftest$ac_exeext conftest.$ac_ext
12748 fi
12749 ac_res=`eval echo '${'$as_ac_var'}'`
12750                { echo "$as_me:$LINENO: result: $ac_res" >&5
12751 echo "${ECHO_T}$ac_res" >&6; }
12752 if test `eval echo '${'$as_ac_var'}'` = yes; then
12753   cat >>confdefs.h <<_ACEOF
12754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12755 _ACEOF
12756
12757 else
12758   case " $LIBOBJS " in
12759   *" lt__dirent.$ac_objext "* ) ;;
12760   *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext"
12761  ;;
12762 esac
12763
12764 fi
12765 done
12766
12767
12768
12769 for ac_func in strlcat strlcpy
12770 do
12771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12772 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12775   echo $ECHO_N "(cached) $ECHO_C" >&6
12776 else
12777   cat >conftest.$ac_ext <<_ACEOF
12778 /* confdefs.h.  */
12779 _ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h.  */
12783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12785 #define $ac_func innocuous_$ac_func
12786
12787 /* System header to define __stub macros and hopefully few prototypes,
12788     which can conflict with char $ac_func (); below.
12789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12790     <limits.h> exists even on freestanding compilers.  */
12791
12792 #ifdef __STDC__
12793 # include <limits.h>
12794 #else
12795 # include <assert.h>
12796 #endif
12797
12798 #undef $ac_func
12799
12800 /* Override any GCC internal prototype to avoid an error.
12801    Use char because int might match the return type of a GCC
12802    builtin and then its argument prototype would still apply.  */
12803 #ifdef __cplusplus
12804 extern "C"
12805 #endif
12806 char $ac_func ();
12807 /* The GNU C library defines this for functions which it implements
12808     to always fail with ENOSYS.  Some functions are actually named
12809     something starting with __ and the normal name is an alias.  */
12810 #if defined __stub_$ac_func || defined __stub___$ac_func
12811 choke me
12812 #endif
12813
12814 int
12815 main ()
12816 {
12817 return $ac_func ();
12818   ;
12819   return 0;
12820 }
12821 _ACEOF
12822 rm -f conftest.$ac_objext conftest$ac_exeext
12823 if { (ac_try="$ac_link"
12824 case "(($ac_try" in
12825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12826   *) ac_try_echo=$ac_try;;
12827 esac
12828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12829   (eval "$ac_link") 2>conftest.er1
12830   ac_status=$?
12831   grep -v '^ *+' conftest.er1 >conftest.err
12832   rm -f conftest.er1
12833   cat conftest.err >&5
12834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835   (exit $ac_status); } && {
12836          test -z "$ac_c_werror_flag" ||
12837          test ! -s conftest.err
12838        } && test -s conftest$ac_exeext &&
12839        $as_test_x conftest$ac_exeext; then
12840   eval "$as_ac_var=yes"
12841 else
12842   echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12844
12845         eval "$as_ac_var=no"
12846 fi
12847
12848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12849       conftest$ac_exeext conftest.$ac_ext
12850 fi
12851 ac_res=`eval echo '${'$as_ac_var'}'`
12852                { echo "$as_me:$LINENO: result: $ac_res" >&5
12853 echo "${ECHO_T}$ac_res" >&6; }
12854 if test `eval echo '${'$as_ac_var'}'` = yes; then
12855   cat >>confdefs.h <<_ACEOF
12856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12857 _ACEOF
12858
12859 else
12860   case " $LIBOBJS " in
12861   *" lt__strl.$ac_objext "* ) ;;
12862   *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext"
12863  ;;
12864 esac
12865
12866 fi
12867 done
12868
12869
12870 name=ltdl
12871 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
12872
12873
12874
12875
12876 ## -------- ##
12877 ## Outputs. ##
12878 ## -------- ##
12879 ac_config_files="$ac_config_files Makefile"
12880
12881 cat >confcache <<\_ACEOF
12882 # This file is a shell script that caches the results of configure
12883 # tests run on this system so they can be shared between configure
12884 # scripts and configure runs, see configure's option --config-cache.
12885 # It is not useful on other systems.  If it contains results you don't
12886 # want to keep, you may remove or edit it.
12887 #
12888 # config.status only pays attention to the cache file if you give it
12889 # the --recheck option to rerun configure.
12890 #
12891 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12892 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12893 # following values.
12894
12895 _ACEOF
12896
12897 # The following way of writing the cache mishandles newlines in values,
12898 # but we know of no workaround that is simple, portable, and efficient.
12899 # So, we kill variables containing newlines.
12900 # Ultrix sh set writes to stderr and can't be redirected directly,
12901 # and sets the high bit in the cache file unless we assign to the vars.
12902 (
12903   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12904     eval ac_val=\$$ac_var
12905     case $ac_val in #(
12906     *${as_nl}*)
12907       case $ac_var in #(
12908       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12909 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12910       esac
12911       case $ac_var in #(
12912       _ | IFS | as_nl) ;; #(
12913       *) $as_unset $ac_var ;;
12914       esac ;;
12915     esac
12916   done
12917
12918   (set) 2>&1 |
12919     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12920     *${as_nl}ac_space=\ *)
12921       # `set' does not quote correctly, so add quotes (double-quote
12922       # substitution turns \\\\ into \\, and sed turns \\ into \).
12923       sed -n \
12924         "s/'/'\\\\''/g;
12925           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12926       ;; #(
12927     *)
12928       # `set' quotes correctly as required by POSIX, so do not add quotes.
12929       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12930       ;;
12931     esac |
12932     sort
12933 ) |
12934   sed '
12935      /^ac_cv_env_/b end
12936      t clear
12937      :clear
12938      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12939      t end
12940      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12941      :end' >>confcache
12942 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12943   if test -w "$cache_file"; then
12944     test "x$cache_file" != "x/dev/null" &&
12945       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12946 echo "$as_me: updating cache $cache_file" >&6;}
12947     cat confcache >$cache_file
12948   else
12949     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12950 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12951   fi
12952 fi
12953 rm -f confcache
12954
12955 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12956 # Let make expand exec_prefix.
12957 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12958
12959 DEFS=-DHAVE_CONFIG_H
12960
12961 ac_libobjs=
12962 ac_ltlibobjs=
12963 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12964   # 1. Remove the extension, and $U if already installed.
12965   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12966   ac_i=`echo "$ac_i" | sed "$ac_script"`
12967   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12968   #    will be set to the directory where LIBOBJS objects are built.
12969   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12970   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12971 done
12972 LIBOBJS=$ac_libobjs
12973
12974 LTLIBOBJS=$ac_ltlibobjs
12975
12976
12977 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12978   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12979 Usually this means the macro was only invoked conditionally." >&5
12980 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12981 Usually this means the macro was only invoked conditionally." >&2;}
12982    { (exit 1); exit 1; }; }
12983 fi
12984 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12985   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12986 Usually this means the macro was only invoked conditionally." >&5
12987 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12988 Usually this means the macro was only invoked conditionally." >&2;}
12989    { (exit 1); exit 1; }; }
12990 fi
12991 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
12992   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
12993 Usually this means the macro was only invoked conditionally." >&5
12994 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
12995 Usually this means the macro was only invoked conditionally." >&2;}
12996    { (exit 1); exit 1; }; }
12997 fi
12998 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
12999   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
13000 Usually this means the macro was only invoked conditionally." >&5
13001 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
13002 Usually this means the macro was only invoked conditionally." >&2;}
13003    { (exit 1); exit 1; }; }
13004 fi
13005 LT_CONFIG_H=config.h
13006
13007 : ${CONFIG_STATUS=./config.status}
13008 ac_clean_files_save=$ac_clean_files
13009 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13010 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13011 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13012 cat >$CONFIG_STATUS <<_ACEOF
13013 #! $SHELL
13014 # Generated by $as_me.
13015 # Run this file to recreate the current configuration.
13016 # Compiler output produced by configure, useful for debugging
13017 # configure, is in config.log if it exists.
13018
13019 debug=false
13020 ac_cs_recheck=false
13021 ac_cs_silent=false
13022 SHELL=\${CONFIG_SHELL-$SHELL}
13023 _ACEOF
13024
13025 cat >>$CONFIG_STATUS <<\_ACEOF
13026 ## --------------------- ##
13027 ## M4sh Initialization.  ##
13028 ## --------------------- ##
13029
13030 # Be more Bourne compatible
13031 DUALCASE=1; export DUALCASE # for MKS sh
13032 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13033   emulate sh
13034   NULLCMD=:
13035   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13036   # is contrary to our usage.  Disable this feature.
13037   alias -g '${1+"$@"}'='"$@"'
13038   setopt NO_GLOB_SUBST
13039 else
13040   case `(set -o) 2>/dev/null` in
13041   *posix*) set -o posix ;;
13042 esac
13043
13044 fi
13045
13046
13047
13048
13049 # PATH needs CR
13050 # Avoid depending upon Character Ranges.
13051 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13052 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13053 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13054 as_cr_digits='0123456789'
13055 as_cr_alnum=$as_cr_Letters$as_cr_digits
13056
13057 # The user is always right.
13058 if test "${PATH_SEPARATOR+set}" != set; then
13059   echo "#! /bin/sh" >conf$$.sh
13060   echo  "exit 0"   >>conf$$.sh
13061   chmod +x conf$$.sh
13062   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13063     PATH_SEPARATOR=';'
13064   else
13065     PATH_SEPARATOR=:
13066   fi
13067   rm -f conf$$.sh
13068 fi
13069
13070 # Support unset when possible.
13071 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13072   as_unset=unset
13073 else
13074   as_unset=false
13075 fi
13076
13077
13078 # IFS
13079 # We need space, tab and new line, in precisely that order.  Quoting is
13080 # there to prevent editors from complaining about space-tab.
13081 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13082 # splitting by setting IFS to empty value.)
13083 as_nl='
13084 '
13085 IFS=" ""        $as_nl"
13086
13087 # Find who we are.  Look in the path if we contain no directory separator.
13088 case $0 in
13089   *[\\/]* ) as_myself=$0 ;;
13090   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13091 for as_dir in $PATH
13092 do
13093   IFS=$as_save_IFS
13094   test -z "$as_dir" && as_dir=.
13095   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13096 done
13097 IFS=$as_save_IFS
13098
13099      ;;
13100 esac
13101 # We did not find ourselves, most probably we were run as `sh COMMAND'
13102 # in which case we are not to be found in the path.
13103 if test "x$as_myself" = x; then
13104   as_myself=$0
13105 fi
13106 if test ! -f "$as_myself"; then
13107   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13108   { (exit 1); exit 1; }
13109 fi
13110
13111 # Work around bugs in pre-3.0 UWIN ksh.
13112 for as_var in ENV MAIL MAILPATH
13113 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13114 done
13115 PS1='$ '
13116 PS2='> '
13117 PS4='+ '
13118
13119 # NLS nuisances.
13120 for as_var in \
13121   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13122   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13123   LC_TELEPHONE LC_TIME
13124 do
13125   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13126     eval $as_var=C; export $as_var
13127   else
13128     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13129   fi
13130 done
13131
13132 # Required to use basename.
13133 if expr a : '\(a\)' >/dev/null 2>&1 &&
13134    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13135   as_expr=expr
13136 else
13137   as_expr=false
13138 fi
13139
13140 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13141   as_basename=basename
13142 else
13143   as_basename=false
13144 fi
13145
13146
13147 # Name of the executable.
13148 as_me=`$as_basename -- "$0" ||
13149 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13150          X"$0" : 'X\(//\)$' \| \
13151          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13152 echo X/"$0" |
13153     sed '/^.*\/\([^/][^/]*\)\/*$/{
13154             s//\1/
13155             q
13156           }
13157           /^X\/\(\/\/\)$/{
13158             s//\1/
13159             q
13160           }
13161           /^X\/\(\/\).*/{
13162             s//\1/
13163             q
13164           }
13165           s/.*/./; q'`
13166
13167 # CDPATH.
13168 $as_unset CDPATH
13169
13170
13171
13172   as_lineno_1=$LINENO
13173   as_lineno_2=$LINENO
13174   test "x$as_lineno_1" != "x$as_lineno_2" &&
13175   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13176
13177   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13178   # uniformly replaced by the line number.  The first 'sed' inserts a
13179   # line-number line after each line using $LINENO; the second 'sed'
13180   # does the real work.  The second script uses 'N' to pair each
13181   # line-number line with the line containing $LINENO, and appends
13182   # trailing '-' during substitution so that $LINENO is not a special
13183   # case at line end.
13184   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13185   # scripts with optimization help from Paolo Bonzini.  Blame Lee
13186   # E. McMahon (1931-1989) for sed's syntax.  :-)
13187   sed -n '
13188     p
13189     /[$]LINENO/=
13190   ' <$as_myself |
13191     sed '
13192       s/[$]LINENO.*/&-/
13193       t lineno
13194       b
13195       :lineno
13196       N
13197       :loop
13198       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13199       t loop
13200       s/-\n.*//
13201     ' >$as_me.lineno &&
13202   chmod +x "$as_me.lineno" ||
13203     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13204    { (exit 1); exit 1; }; }
13205
13206   # Don't try to exec as it changes $[0], causing all sort of problems
13207   # (the dirname of $[0] is not the place where we might find the
13208   # original and so on.  Autoconf is especially sensitive to this).
13209   . "./$as_me.lineno"
13210   # Exit status is that of the last command.
13211   exit
13212 }
13213
13214
13215 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13216   as_dirname=dirname
13217 else
13218   as_dirname=false
13219 fi
13220
13221 ECHO_C= ECHO_N= ECHO_T=
13222 case `echo -n x` in
13223 -n*)
13224   case `echo 'x\c'` in
13225   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13226   *)   ECHO_C='\c';;
13227   esac;;
13228 *)
13229   ECHO_N='-n';;
13230 esac
13231
13232 if expr a : '\(a\)' >/dev/null 2>&1 &&
13233    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13234   as_expr=expr
13235 else
13236   as_expr=false
13237 fi
13238
13239 rm -f conf$$ conf$$.exe conf$$.file
13240 if test -d conf$$.dir; then
13241   rm -f conf$$.dir/conf$$.file
13242 else
13243   rm -f conf$$.dir
13244   mkdir conf$$.dir
13245 fi
13246 echo >conf$$.file
13247 if ln -s conf$$.file conf$$ 2>/dev/null; then
13248   as_ln_s='ln -s'
13249   # ... but there are two gotchas:
13250   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13251   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13252   # In both cases, we have to default to `cp -p'.
13253   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13254     as_ln_s='cp -p'
13255 elif ln conf$$.file conf$$ 2>/dev/null; then
13256   as_ln_s=ln
13257 else
13258   as_ln_s='cp -p'
13259 fi
13260 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13261 rmdir conf$$.dir 2>/dev/null
13262
13263 if mkdir -p . 2>/dev/null; then
13264   as_mkdir_p=:
13265 else
13266   test -d ./-p && rmdir ./-p
13267   as_mkdir_p=false
13268 fi
13269
13270 if test -x / >/dev/null 2>&1; then
13271   as_test_x='test -x'
13272 else
13273   if ls -dL / >/dev/null 2>&1; then
13274     as_ls_L_option=L
13275   else
13276     as_ls_L_option=
13277   fi
13278   as_test_x='
13279     eval sh -c '\''
13280       if test -d "$1"; then
13281         test -d "$1/.";
13282       else
13283         case $1 in
13284         -*)set "./$1";;
13285         esac;
13286         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13287         ???[sx]*):;;*)false;;esac;fi
13288     '\'' sh
13289   '
13290 fi
13291 as_executable_p=$as_test_x
13292
13293 # Sed expression to map a string onto a valid CPP name.
13294 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13295
13296 # Sed expression to map a string onto a valid variable name.
13297 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13298
13299
13300 exec 6>&1
13301
13302 # Save the log message, to keep $[0] and so on meaningful, and to
13303 # report actual input values of CONFIG_FILES etc. instead of their
13304 # values after options handling.
13305 ac_log="
13306 This file was extended by libltdl $as_me 2.2.4, which was
13307 generated by GNU Autoconf 2.61.  Invocation command line was
13308
13309   CONFIG_FILES    = $CONFIG_FILES
13310   CONFIG_HEADERS  = $CONFIG_HEADERS
13311   CONFIG_LINKS    = $CONFIG_LINKS
13312   CONFIG_COMMANDS = $CONFIG_COMMANDS
13313   $ $0 $@
13314
13315 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13316 "
13317
13318 _ACEOF
13319
13320 cat >>$CONFIG_STATUS <<_ACEOF
13321 # Files that config.status was made for.
13322 config_files="$ac_config_files"
13323 config_headers="$ac_config_headers"
13324 config_commands="$ac_config_commands"
13325
13326 _ACEOF
13327
13328 cat >>$CONFIG_STATUS <<\_ACEOF
13329 ac_cs_usage="\
13330 \`$as_me' instantiates files from templates according to the
13331 current configuration.
13332
13333 Usage: $0 [OPTIONS] [FILE]...
13334
13335   -h, --help       print this help, then exit
13336   -V, --version    print version number and configuration settings, then exit
13337   -q, --quiet      do not print progress messages
13338   -d, --debug      don't remove temporary files
13339       --recheck    update $as_me by reconfiguring in the same conditions
13340   --file=FILE[:TEMPLATE]
13341                    instantiate the configuration file FILE
13342   --header=FILE[:TEMPLATE]
13343                    instantiate the configuration header FILE
13344
13345 Configuration files:
13346 $config_files
13347
13348 Configuration headers:
13349 $config_headers
13350
13351 Configuration commands:
13352 $config_commands
13353
13354 Report bugs to <bug-autoconf@gnu.org>."
13355
13356 _ACEOF
13357 cat >>$CONFIG_STATUS <<_ACEOF
13358 ac_cs_version="\\
13359 libltdl config.status 2.2.4
13360 configured by $0, generated by GNU Autoconf 2.61,
13361   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13362
13363 Copyright (C) 2006 Free Software Foundation, Inc.
13364 This config.status script is free software; the Free Software Foundation
13365 gives unlimited permission to copy, distribute and modify it."
13366
13367 ac_pwd='$ac_pwd'
13368 srcdir='$srcdir'
13369 INSTALL='$INSTALL'
13370 MKDIR_P='$MKDIR_P'
13371 _ACEOF
13372
13373 cat >>$CONFIG_STATUS <<\_ACEOF
13374 # If no file are specified by the user, then we need to provide default
13375 # value.  By we need to know if files were specified by the user.
13376 ac_need_defaults=:
13377 while test $# != 0
13378 do
13379   case $1 in
13380   --*=*)
13381     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13382     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13383     ac_shift=:
13384     ;;
13385   *)
13386     ac_option=$1
13387     ac_optarg=$2
13388     ac_shift=shift
13389     ;;
13390   esac
13391
13392   case $ac_option in
13393   # Handling of the options.
13394   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13395     ac_cs_recheck=: ;;
13396   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13397     echo "$ac_cs_version"; exit ;;
13398   --debug | --debu | --deb | --de | --d | -d )
13399     debug=: ;;
13400   --file | --fil | --fi | --f )
13401     $ac_shift
13402     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13403     ac_need_defaults=false;;
13404   --header | --heade | --head | --hea )
13405     $ac_shift
13406     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13407     ac_need_defaults=false;;
13408   --he | --h)
13409     # Conflict between --help and --header
13410     { echo "$as_me: error: ambiguous option: $1
13411 Try \`$0 --help' for more information." >&2
13412    { (exit 1); exit 1; }; };;
13413   --help | --hel | -h )
13414     echo "$ac_cs_usage"; exit ;;
13415   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13416   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13417     ac_cs_silent=: ;;
13418
13419   # This is an error.
13420   -*) { echo "$as_me: error: unrecognized option: $1
13421 Try \`$0 --help' for more information." >&2
13422    { (exit 1); exit 1; }; } ;;
13423
13424   *) ac_config_targets="$ac_config_targets $1"
13425      ac_need_defaults=false ;;
13426
13427   esac
13428   shift
13429 done
13430
13431 ac_configure_extra_args=
13432
13433 if $ac_cs_silent; then
13434   exec 6>/dev/null
13435   ac_configure_extra_args="$ac_configure_extra_args --silent"
13436 fi
13437
13438 _ACEOF
13439 cat >>$CONFIG_STATUS <<_ACEOF
13440 if \$ac_cs_recheck; then
13441   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13442   CONFIG_SHELL=$SHELL
13443   export CONFIG_SHELL
13444   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13445 fi
13446
13447 _ACEOF
13448 cat >>$CONFIG_STATUS <<\_ACEOF
13449 exec 5>>config.log
13450 {
13451   echo
13452   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13453 ## Running $as_me. ##
13454 _ASBOX
13455   echo "$ac_log"
13456 } >&5
13457
13458 _ACEOF
13459 cat >>$CONFIG_STATUS <<_ACEOF
13460 #
13461 # INIT-COMMANDS
13462 #
13463 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13464
13465
13466 # The HP-UX ksh and POSIX shell print the target directory to stdout
13467 # if CDPATH is set.
13468 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13469
13470 sed_quote_subst='$sed_quote_subst'
13471 double_quote_subst='$double_quote_subst'
13472 delay_variable_subst='$delay_variable_subst'
13473 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13474 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13475 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13476 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13477 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13478 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13479 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13480 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13481 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13482 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13483 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13484 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13485 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13486 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13487 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13488 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13489 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13490 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13491 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13492 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13493 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13494 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13495 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13496 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13497 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13498 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13499 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13500 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13501 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13502 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13503 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13504 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13505 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13506 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13507 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13508 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13509 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13510 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13511 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13512 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13513 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13514 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13515 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13516 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13517 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13518 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13519 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"`'
13520 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"`'
13521 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13522 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13523 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13524 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13525 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13526 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13527 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13528 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13529 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13530 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13531 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13532 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13533 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13534 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13535 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13536 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13537 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13538 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13539 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13540 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13541 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13542 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13543 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13544 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13545 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13546 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13547 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13548 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13549 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13550 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13551 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13552 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13553 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13554 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13555 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13556 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13557 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13558 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13559 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13560 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13561 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13562 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13563 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13564 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13565 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13566 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13567 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13568 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13569 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13570 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13571 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13572 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13573 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13574 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13575 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13576 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13577 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13578 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13579 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13580 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13581 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13582 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13583 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13584 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13585 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13586 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13587 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13588 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13589 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13590 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13591 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13592 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13593
13594 LTCC='$LTCC'
13595 LTCFLAGS='$LTCFLAGS'
13596 compiler='$compiler_DEFAULT'
13597
13598 # Quote evaled strings.
13599 for var in SED \
13600 GREP \
13601 EGREP \
13602 FGREP \
13603 LD \
13604 NM \
13605 LN_S \
13606 lt_SP2NL \
13607 lt_NL2SP \
13608 reload_flag \
13609 deplibs_check_method \
13610 file_magic_cmd \
13611 AR \
13612 AR_FLAGS \
13613 STRIP \
13614 RANLIB \
13615 CC \
13616 CFLAGS \
13617 compiler \
13618 lt_cv_sys_global_symbol_pipe \
13619 lt_cv_sys_global_symbol_to_cdecl \
13620 lt_cv_sys_global_symbol_to_c_name_address \
13621 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13622 SHELL \
13623 ECHO \
13624 lt_prog_compiler_no_builtin_flag \
13625 lt_prog_compiler_wl \
13626 lt_prog_compiler_pic \
13627 lt_prog_compiler_static \
13628 lt_cv_prog_compiler_c_o \
13629 need_locks \
13630 DSYMUTIL \
13631 NMEDIT \
13632 LIPO \
13633 OTOOL \
13634 OTOOL64 \
13635 shrext_cmds \
13636 export_dynamic_flag_spec \
13637 whole_archive_flag_spec \
13638 compiler_needs_object \
13639 with_gnu_ld \
13640 allow_undefined_flag \
13641 no_undefined_flag \
13642 hardcode_libdir_flag_spec \
13643 hardcode_libdir_flag_spec_ld \
13644 hardcode_libdir_separator \
13645 fix_srcfile_path \
13646 exclude_expsyms \
13647 include_expsyms \
13648 file_list_spec \
13649 variables_saved_for_relink \
13650 libname_spec \
13651 library_names_spec \
13652 soname_spec \
13653 finish_eval \
13654 old_striplib \
13655 striplib; do
13656     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13657     *[\\\\\\\`\\"\\\$]*)
13658       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13659       ;;
13660     *)
13661       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13662       ;;
13663     esac
13664 done
13665
13666 # Double-quote double-evaled strings.
13667 for var in reload_cmds \
13668 old_postinstall_cmds \
13669 old_postuninstall_cmds \
13670 old_archive_cmds \
13671 extract_expsyms_cmds \
13672 old_archive_from_new_cmds \
13673 old_archive_from_expsyms_cmds \
13674 archive_cmds \
13675 archive_expsym_cmds \
13676 module_cmds \
13677 module_expsym_cmds \
13678 export_symbols_cmds \
13679 prelink_cmds \
13680 postinstall_cmds \
13681 postuninstall_cmds \
13682 finish_cmds \
13683 sys_lib_search_path_spec \
13684 sys_lib_dlsearch_path_spec; do
13685     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13686     *[\\\\\\\`\\"\\\$]*)
13687       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13688       ;;
13689     *)
13690       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13691       ;;
13692     esac
13693 done
13694
13695 # Fix-up fallback echo if it was mangled by the above quoting rules.
13696 case \$lt_ECHO in
13697 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13698   ;;
13699 esac
13700
13701 ac_aux_dir='$ac_aux_dir'
13702 xsi_shell='$xsi_shell'
13703 lt_shell_append='$lt_shell_append'
13704
13705 # See if we are running on zsh, and set the options which allow our
13706 # commands through without removal of \ escapes INIT.
13707 if test -n "\${ZSH_VERSION+set}" ; then
13708    setopt NO_GLOB_SUBST
13709 fi
13710
13711
13712     PACKAGE='$PACKAGE'
13713     VERSION='$VERSION'
13714     TIMESTAMP='$TIMESTAMP'
13715     RM='$RM'
13716     ofile='$ofile'
13717
13718
13719
13720
13721 _ACEOF
13722
13723 cat >>$CONFIG_STATUS <<\_ACEOF
13724
13725 # Handling of arguments.
13726 for ac_config_target in $ac_config_targets
13727 do
13728   case $ac_config_target in
13729     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
13730     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13731     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13732     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13733
13734   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13735 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13736    { (exit 1); exit 1; }; };;
13737   esac
13738 done
13739
13740
13741 # If the user did not use the arguments to specify the items to instantiate,
13742 # then the envvar interface is used.  Set only those that are not.
13743 # We use the long form for the default assignment because of an extremely
13744 # bizarre bug on SunOS 4.1.3.
13745 if $ac_need_defaults; then
13746   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13747   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13748   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13749 fi
13750
13751 # Have a temporary directory for convenience.  Make it in the build tree
13752 # simply because there is no reason against having it here, and in addition,
13753 # creating and moving files from /tmp can sometimes cause problems.
13754 # Hook for its removal unless debugging.
13755 # Note that there is a small window in which the directory will not be cleaned:
13756 # after its creation but before its name has been assigned to `$tmp'.
13757 $debug ||
13758 {
13759   tmp=
13760   trap 'exit_status=$?
13761   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13762 ' 0
13763   trap '{ (exit 1); exit 1; }' 1 2 13 15
13764 }
13765 # Create a (secure) tmp directory for tmp files.
13766
13767 {
13768   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13769   test -n "$tmp" && test -d "$tmp"
13770 }  ||
13771 {
13772   tmp=./conf$$-$RANDOM
13773   (umask 077 && mkdir "$tmp")
13774 } ||
13775 {
13776    echo "$me: cannot create a temporary directory in ." >&2
13777    { (exit 1); exit 1; }
13778 }
13779
13780 #
13781 # Set up the sed scripts for CONFIG_FILES section.
13782 #
13783
13784 # No need to generate the scripts if there are no CONFIG_FILES.
13785 # This happens for instance when ./config.status config.h
13786 if test -n "$CONFIG_FILES"; then
13787
13788 _ACEOF
13789
13790
13791
13792 ac_delim='%!_!# '
13793 for ac_last_try in false false false false false :; do
13794   cat >conf$$subs.sed <<_ACEOF
13795 SHELL!$SHELL$ac_delim
13796 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13797 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13798 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13799 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13800 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13801 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13802 exec_prefix!$exec_prefix$ac_delim
13803 prefix!$prefix$ac_delim
13804 program_transform_name!$program_transform_name$ac_delim
13805 bindir!$bindir$ac_delim
13806 sbindir!$sbindir$ac_delim
13807 libexecdir!$libexecdir$ac_delim
13808 datarootdir!$datarootdir$ac_delim
13809 datadir!$datadir$ac_delim
13810 sysconfdir!$sysconfdir$ac_delim
13811 sharedstatedir!$sharedstatedir$ac_delim
13812 localstatedir!$localstatedir$ac_delim
13813 includedir!$includedir$ac_delim
13814 oldincludedir!$oldincludedir$ac_delim
13815 docdir!$docdir$ac_delim
13816 infodir!$infodir$ac_delim
13817 htmldir!$htmldir$ac_delim
13818 dvidir!$dvidir$ac_delim
13819 pdfdir!$pdfdir$ac_delim
13820 psdir!$psdir$ac_delim
13821 libdir!$libdir$ac_delim
13822 localedir!$localedir$ac_delim
13823 mandir!$mandir$ac_delim
13824 DEFS!$DEFS$ac_delim
13825 ECHO_C!$ECHO_C$ac_delim
13826 ECHO_N!$ECHO_N$ac_delim
13827 ECHO_T!$ECHO_T$ac_delim
13828 LIBS!$LIBS$ac_delim
13829 build_alias!$build_alias$ac_delim
13830 host_alias!$host_alias$ac_delim
13831 target_alias!$target_alias$ac_delim
13832 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13833 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13834 INSTALL_DATA!$INSTALL_DATA$ac_delim
13835 am__isrc!$am__isrc$ac_delim
13836 CYGPATH_W!$CYGPATH_W$ac_delim
13837 PACKAGE!$PACKAGE$ac_delim
13838 VERSION!$VERSION$ac_delim
13839 ACLOCAL!$ACLOCAL$ac_delim
13840 AUTOCONF!$AUTOCONF$ac_delim
13841 AUTOMAKE!$AUTOMAKE$ac_delim
13842 AUTOHEADER!$AUTOHEADER$ac_delim
13843 MAKEINFO!$MAKEINFO$ac_delim
13844 install_sh!$install_sh$ac_delim
13845 STRIP!$STRIP$ac_delim
13846 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
13847 mkdir_p!$mkdir_p$ac_delim
13848 AWK!$AWK$ac_delim
13849 SET_MAKE!$SET_MAKE$ac_delim
13850 am__leading_dot!$am__leading_dot$ac_delim
13851 AMTAR!$AMTAR$ac_delim
13852 am__tar!$am__tar$ac_delim
13853 am__untar!$am__untar$ac_delim
13854 AS!$AS$ac_delim
13855 DLLTOOL!$DLLTOOL$ac_delim
13856 OBJDUMP!$OBJDUMP$ac_delim
13857 LIBTOOL!$LIBTOOL$ac_delim
13858 build!$build$ac_delim
13859 build_cpu!$build_cpu$ac_delim
13860 build_vendor!$build_vendor$ac_delim
13861 build_os!$build_os$ac_delim
13862 host!$host$ac_delim
13863 host_cpu!$host_cpu$ac_delim
13864 host_vendor!$host_vendor$ac_delim
13865 host_os!$host_os$ac_delim
13866 CC!$CC$ac_delim
13867 CFLAGS!$CFLAGS$ac_delim
13868 LDFLAGS!$LDFLAGS$ac_delim
13869 CPPFLAGS!$CPPFLAGS$ac_delim
13870 ac_ct_CC!$ac_ct_CC$ac_delim
13871 EXEEXT!$EXEEXT$ac_delim
13872 OBJEXT!$OBJEXT$ac_delim
13873 DEPDIR!$DEPDIR$ac_delim
13874 am__include!$am__include$ac_delim
13875 am__quote!$am__quote$ac_delim
13876 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
13877 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
13878 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
13879 CCDEPMODE!$CCDEPMODE$ac_delim
13880 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
13881 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
13882 SED!$SED$ac_delim
13883 GREP!$GREP$ac_delim
13884 EGREP!$EGREP$ac_delim
13885 FGREP!$FGREP$ac_delim
13886 LD!$LD$ac_delim
13887 DUMPBIN!$DUMPBIN$ac_delim
13888 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
13889 NM!$NM$ac_delim
13890 LN_S!$LN_S$ac_delim
13891 AR!$AR$ac_delim
13892 _ACEOF
13893
13894   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13895     break
13896   elif $ac_last_try; then
13897     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13898 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13899    { (exit 1); exit 1; }; }
13900   else
13901     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13902   fi
13903 done
13904
13905 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13906 if test -n "$ac_eof"; then
13907   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13908   ac_eof=`expr $ac_eof + 1`
13909 fi
13910
13911 cat >>$CONFIG_STATUS <<_ACEOF
13912 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13913 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13914 _ACEOF
13915 sed '
13916 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13917 s/^/s,@/; s/!/@,|#_!!_#|/
13918 :n
13919 t n
13920 s/'"$ac_delim"'$/,g/; t
13921 s/$/\\/; p
13922 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13923 ' >>$CONFIG_STATUS <conf$$subs.sed
13924 rm -f conf$$subs.sed
13925 cat >>$CONFIG_STATUS <<_ACEOF
13926 CEOF$ac_eof
13927 _ACEOF
13928
13929
13930 ac_delim='%!_!# '
13931 for ac_last_try in false false false false false :; do
13932   cat >conf$$subs.sed <<_ACEOF
13933 RANLIB!$RANLIB$ac_delim
13934 lt_ECHO!$lt_ECHO$ac_delim
13935 DSYMUTIL!$DSYMUTIL$ac_delim
13936 NMEDIT!$NMEDIT$ac_delim
13937 LIPO!$LIPO$ac_delim
13938 OTOOL!$OTOOL$ac_delim
13939 OTOOL64!$OTOOL64$ac_delim
13940 CPP!$CPP$ac_delim
13941 LT_DLLOADERS!$LT_DLLOADERS$ac_delim
13942 LIBADD_DLOPEN!$LIBADD_DLOPEN$ac_delim
13943 LIBADD_SHL_LOAD!$LIBADD_SHL_LOAD$ac_delim
13944 LIBADD_DLD_LINK!$LIBADD_DLD_LINK$ac_delim
13945 LT_DLPREOPEN!$LT_DLPREOPEN$ac_delim
13946 LIBADD_DL!$LIBADD_DL$ac_delim
13947 sys_symbol_underscore!$sys_symbol_underscore$ac_delim
13948 LIBOBJS!$LIBOBJS$ac_delim
13949 ARGZ_H!$ARGZ_H$ac_delim
13950 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
13951 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
13952 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
13953 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
13954 LT_CONFIG_H!$LT_CONFIG_H$ac_delim
13955 LTDLOPEN!$LTDLOPEN$ac_delim
13956 LTLIBOBJS!$LTLIBOBJS$ac_delim
13957 _ACEOF
13958
13959   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
13960     break
13961   elif $ac_last_try; then
13962     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13963 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13964    { (exit 1); exit 1; }; }
13965   else
13966     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13967   fi
13968 done
13969
13970 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13971 if test -n "$ac_eof"; then
13972   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13973   ac_eof=`expr $ac_eof + 1`
13974 fi
13975
13976 cat >>$CONFIG_STATUS <<_ACEOF
13977 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13978 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13979 _ACEOF
13980 sed '
13981 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13982 s/^/s,@/; s/!/@,|#_!!_#|/
13983 :n
13984 t n
13985 s/'"$ac_delim"'$/,g/; t
13986 s/$/\\/; p
13987 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13988 ' >>$CONFIG_STATUS <conf$$subs.sed
13989 rm -f conf$$subs.sed
13990 cat >>$CONFIG_STATUS <<_ACEOF
13991 :end
13992 s/|#_!!_#|//g
13993 CEOF$ac_eof
13994 _ACEOF
13995
13996
13997 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13998 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13999 # trailing colons and then remove the whole line if VPATH becomes empty
14000 # (actually we leave an empty line to preserve line numbers).
14001 if test "x$srcdir" = x.; then
14002   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14003 s/:*\$(srcdir):*/:/
14004 s/:*\${srcdir}:*/:/
14005 s/:*@srcdir@:*/:/
14006 s/^\([^=]*=[     ]*\):*/\1/
14007 s/:*$//
14008 s/^[^=]*=[       ]*$//
14009 }'
14010 fi
14011
14012 cat >>$CONFIG_STATUS <<\_ACEOF
14013 fi # test -n "$CONFIG_FILES"
14014
14015
14016 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
14017 do
14018   case $ac_tag in
14019   :[FHLC]) ac_mode=$ac_tag; continue;;
14020   esac
14021   case $ac_mode$ac_tag in
14022   :[FHL]*:*);;
14023   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14024 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14025    { (exit 1); exit 1; }; };;
14026   :[FH]-) ac_tag=-:-;;
14027   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14028   esac
14029   ac_save_IFS=$IFS
14030   IFS=:
14031   set x $ac_tag
14032   IFS=$ac_save_IFS
14033   shift
14034   ac_file=$1
14035   shift
14036
14037   case $ac_mode in
14038   :L) ac_source=$1;;
14039   :[FH])
14040     ac_file_inputs=
14041     for ac_f
14042     do
14043       case $ac_f in
14044       -) ac_f="$tmp/stdin";;
14045       *) # Look for the file first in the build tree, then in the source tree
14046          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14047          # because $ac_f cannot contain `:'.
14048          test -f "$ac_f" ||
14049            case $ac_f in
14050            [\\/$]*) false;;
14051            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14052            esac ||
14053            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14054 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14055    { (exit 1); exit 1; }; };;
14056       esac
14057       ac_file_inputs="$ac_file_inputs $ac_f"
14058     done
14059
14060     # Let's still pretend it is `configure' which instantiates (i.e., don't
14061     # use $as_me), people would be surprised to read:
14062     #    /* config.h.  Generated by config.status.  */
14063     configure_input="Generated from "`IFS=:
14064           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14065     if test x"$ac_file" != x-; then
14066       configure_input="$ac_file.  $configure_input"
14067       { echo "$as_me:$LINENO: creating $ac_file" >&5
14068 echo "$as_me: creating $ac_file" >&6;}
14069     fi
14070
14071     case $ac_tag in
14072     *:-:* | *:-) cat >"$tmp/stdin";;
14073     esac
14074     ;;
14075   esac
14076
14077   ac_dir=`$as_dirname -- "$ac_file" ||
14078 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14079          X"$ac_file" : 'X\(//\)[^/]' \| \
14080          X"$ac_file" : 'X\(//\)$' \| \
14081          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14082 echo X"$ac_file" |
14083     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14084             s//\1/
14085             q
14086           }
14087           /^X\(\/\/\)[^/].*/{
14088             s//\1/
14089             q
14090           }
14091           /^X\(\/\/\)$/{
14092             s//\1/
14093             q
14094           }
14095           /^X\(\/\).*/{
14096             s//\1/
14097             q
14098           }
14099           s/.*/./; q'`
14100   { as_dir="$ac_dir"
14101   case $as_dir in #(
14102   -*) as_dir=./$as_dir;;
14103   esac
14104   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14105     as_dirs=
14106     while :; do
14107       case $as_dir in #(
14108       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14109       *) as_qdir=$as_dir;;
14110       esac
14111       as_dirs="'$as_qdir' $as_dirs"
14112       as_dir=`$as_dirname -- "$as_dir" ||
14113 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14114          X"$as_dir" : 'X\(//\)[^/]' \| \
14115          X"$as_dir" : 'X\(//\)$' \| \
14116          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14117 echo X"$as_dir" |
14118     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14119             s//\1/
14120             q
14121           }
14122           /^X\(\/\/\)[^/].*/{
14123             s//\1/
14124             q
14125           }
14126           /^X\(\/\/\)$/{
14127             s//\1/
14128             q
14129           }
14130           /^X\(\/\).*/{
14131             s//\1/
14132             q
14133           }
14134           s/.*/./; q'`
14135       test -d "$as_dir" && break
14136     done
14137     test -z "$as_dirs" || eval "mkdir $as_dirs"
14138   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14139 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14140    { (exit 1); exit 1; }; }; }
14141   ac_builddir=.
14142
14143 case "$ac_dir" in
14144 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14145 *)
14146   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14147   # A ".." for each directory in $ac_dir_suffix.
14148   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14149   case $ac_top_builddir_sub in
14150   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14151   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14152   esac ;;
14153 esac
14154 ac_abs_top_builddir=$ac_pwd
14155 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14156 # for backward compatibility:
14157 ac_top_builddir=$ac_top_build_prefix
14158
14159 case $srcdir in
14160   .)  # We are building in place.
14161     ac_srcdir=.
14162     ac_top_srcdir=$ac_top_builddir_sub
14163     ac_abs_top_srcdir=$ac_pwd ;;
14164   [\\/]* | ?:[\\/]* )  # Absolute name.
14165     ac_srcdir=$srcdir$ac_dir_suffix;
14166     ac_top_srcdir=$srcdir
14167     ac_abs_top_srcdir=$srcdir ;;
14168   *) # Relative name.
14169     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14170     ac_top_srcdir=$ac_top_build_prefix$srcdir
14171     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14172 esac
14173 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14174
14175
14176   case $ac_mode in
14177   :F)
14178   #
14179   # CONFIG_FILE
14180   #
14181
14182   case $INSTALL in
14183   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14184   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14185   esac
14186   ac_MKDIR_P=$MKDIR_P
14187   case $MKDIR_P in
14188   [\\/$]* | ?:[\\/]* ) ;;
14189   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14190   esac
14191 _ACEOF
14192
14193 cat >>$CONFIG_STATUS <<\_ACEOF
14194 # If the template does not know about datarootdir, expand it.
14195 # FIXME: This hack should be removed a few years after 2.60.
14196 ac_datarootdir_hack=; ac_datarootdir_seen=
14197
14198 case `sed -n '/datarootdir/ {
14199   p
14200   q
14201 }
14202 /@datadir@/p
14203 /@docdir@/p
14204 /@infodir@/p
14205 /@localedir@/p
14206 /@mandir@/p
14207 ' $ac_file_inputs` in
14208 *datarootdir*) ac_datarootdir_seen=yes;;
14209 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14210   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14211 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14212 _ACEOF
14213 cat >>$CONFIG_STATUS <<_ACEOF
14214   ac_datarootdir_hack='
14215   s&@datadir@&$datadir&g
14216   s&@docdir@&$docdir&g
14217   s&@infodir@&$infodir&g
14218   s&@localedir@&$localedir&g
14219   s&@mandir@&$mandir&g
14220     s&\\\${datarootdir}&$datarootdir&g' ;;
14221 esac
14222 _ACEOF
14223
14224 # Neutralize VPATH when `$srcdir' = `.'.
14225 # Shell code in configure.ac might set extrasub.
14226 # FIXME: do we really want to maintain this feature?
14227 cat >>$CONFIG_STATUS <<_ACEOF
14228   sed "$ac_vpsub
14229 $extrasub
14230 _ACEOF
14231 cat >>$CONFIG_STATUS <<\_ACEOF
14232 :t
14233 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14234 s&@configure_input@&$configure_input&;t t
14235 s&@top_builddir@&$ac_top_builddir_sub&;t t
14236 s&@srcdir@&$ac_srcdir&;t t
14237 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14238 s&@top_srcdir@&$ac_top_srcdir&;t t
14239 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14240 s&@builddir@&$ac_builddir&;t t
14241 s&@abs_builddir@&$ac_abs_builddir&;t t
14242 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14243 s&@INSTALL@&$ac_INSTALL&;t t
14244 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14245 $ac_datarootdir_hack
14246 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
14247
14248 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14249   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14250   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14251   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14252 which seems to be undefined.  Please make sure it is defined." >&5
14253 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14254 which seems to be undefined.  Please make sure it is defined." >&2;}
14255
14256   rm -f "$tmp/stdin"
14257   case $ac_file in
14258   -) cat "$tmp/out"; rm -f "$tmp/out";;
14259   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14260   esac
14261  ;;
14262   :H)
14263   #
14264   # CONFIG_HEADER
14265   #
14266 _ACEOF
14267
14268 # Transform confdefs.h into a sed script `conftest.defines', that
14269 # substitutes the proper values into config.h.in to produce config.h.
14270 rm -f conftest.defines conftest.tail
14271 # First, append a space to every undef/define line, to ease matching.
14272 echo 's/$/ /' >conftest.defines
14273 # Then, protect against being on the right side of a sed subst, or in
14274 # an unquoted here document, in config.status.  If some macros were
14275 # called several times there might be several #defines for the same
14276 # symbol, which is useless.  But do not sort them, since the last
14277 # AC_DEFINE must be honored.
14278 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14279 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14280 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14281 # PARAMS is the parameter list in the macro definition--in most cases, it's
14282 # just an empty string.
14283 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
14284 ac_dB='\\)[      (].*,\\1define\\2'
14285 ac_dC=' '
14286 ac_dD=' ,'
14287
14288 uniq confdefs.h |
14289   sed -n '
14290         t rset
14291         :rset
14292         s/^[     ]*#[    ]*define[       ][      ]*//
14293         t ok
14294         d
14295         :ok
14296         s/[\\&,]/\\&/g
14297         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14298         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14299   ' >>conftest.defines
14300
14301 # Remove the space that was appended to ease matching.
14302 # Then replace #undef with comments.  This is necessary, for
14303 # example, in the case of _POSIX_SOURCE, which is predefined and required
14304 # on some systems where configure will not decide to define it.
14305 # (The regexp can be short, since the line contains either #define or #undef.)
14306 echo 's/ $//
14307 s,^[     #]*u.*,/* & */,' >>conftest.defines
14308
14309 # Break up conftest.defines:
14310 ac_max_sed_lines=50
14311
14312 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14313 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14314 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14315 # et cetera.
14316 ac_in='$ac_file_inputs'
14317 ac_out='"$tmp/out1"'
14318 ac_nxt='"$tmp/out2"'
14319
14320 while :
14321 do
14322   # Write a here document:
14323     cat >>$CONFIG_STATUS <<_ACEOF
14324     # First, check the format of the line:
14325     cat >"\$tmp/defines.sed" <<\\CEOF
14326 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
14327 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
14328 b
14329 :def
14330 _ACEOF
14331   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14332   echo 'CEOF
14333     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14334   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14335   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14336   grep . conftest.tail >/dev/null || break
14337   rm -f conftest.defines
14338   mv conftest.tail conftest.defines
14339 done
14340 rm -f conftest.defines conftest.tail
14341
14342 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14343 cat >>$CONFIG_STATUS <<\_ACEOF
14344   if test x"$ac_file" != x-; then
14345     echo "/* $configure_input  */" >"$tmp/config.h"
14346     cat "$ac_result" >>"$tmp/config.h"
14347     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14348       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14349 echo "$as_me: $ac_file is unchanged" >&6;}
14350     else
14351       rm -f $ac_file
14352       mv "$tmp/config.h" $ac_file
14353     fi
14354   else
14355     echo "/* $configure_input  */"
14356     cat "$ac_result"
14357   fi
14358   rm -f "$tmp/out12"
14359 # Compute $ac_file's index in $config_headers.
14360 _am_arg=$ac_file
14361 _am_stamp_count=1
14362 for _am_header in $config_headers :; do
14363   case $_am_header in
14364     $_am_arg | $_am_arg:* )
14365       break ;;
14366     * )
14367       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14368   esac
14369 done
14370 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14371 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14372          X"$_am_arg" : 'X\(//\)[^/]' \| \
14373          X"$_am_arg" : 'X\(//\)$' \| \
14374          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14375 echo X"$_am_arg" |
14376     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14377             s//\1/
14378             q
14379           }
14380           /^X\(\/\/\)[^/].*/{
14381             s//\1/
14382             q
14383           }
14384           /^X\(\/\/\)$/{
14385             s//\1/
14386             q
14387           }
14388           /^X\(\/\).*/{
14389             s//\1/
14390             q
14391           }
14392           s/.*/./; q'`/stamp-h$_am_stamp_count
14393  ;;
14394
14395   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14396 echo "$as_me: executing $ac_file commands" >&6;}
14397  ;;
14398   esac
14399
14400
14401   case $ac_file$ac_mode in
14402     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14403   # Strip MF so we end up with the name of the file.
14404   mf=`echo "$mf" | sed -e 's/:.*$//'`
14405   # Check whether this is an Automake generated Makefile or not.
14406   # We used to match only the files named `Makefile.in', but
14407   # some people rename them; so instead we look at the file content.
14408   # Grep'ing the first line is not enough: some people post-process
14409   # each Makefile.in and add a new line on top of each file to say so.
14410   # Grep'ing the whole file is not good either: AIX grep has a line
14411   # limit of 2048, but all sed's we know have understand at least 4000.
14412   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14413     dirpart=`$as_dirname -- "$mf" ||
14414 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14415          X"$mf" : 'X\(//\)[^/]' \| \
14416          X"$mf" : 'X\(//\)$' \| \
14417          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14418 echo X"$mf" |
14419     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14420             s//\1/
14421             q
14422           }
14423           /^X\(\/\/\)[^/].*/{
14424             s//\1/
14425             q
14426           }
14427           /^X\(\/\/\)$/{
14428             s//\1/
14429             q
14430           }
14431           /^X\(\/\).*/{
14432             s//\1/
14433             q
14434           }
14435           s/.*/./; q'`
14436   else
14437     continue
14438   fi
14439   # Extract the definition of DEPDIR, am__include, and am__quote
14440   # from the Makefile without running `make'.
14441   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14442   test -z "$DEPDIR" && continue
14443   am__include=`sed -n 's/^am__include = //p' < "$mf"`
14444   test -z "am__include" && continue
14445   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14446   # When using ansi2knr, U may be empty or an underscore; expand it
14447   U=`sed -n 's/^U = //p' < "$mf"`
14448   # Find all dependency output files, they are included files with
14449   # $(DEPDIR) in their names.  We invoke sed twice because it is the
14450   # simplest approach to changing $(DEPDIR) to its actual value in the
14451   # expansion.
14452   for file in `sed -n "
14453     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14454        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14455     # Make sure the directory exists.
14456     test -f "$dirpart/$file" && continue
14457     fdir=`$as_dirname -- "$file" ||
14458 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14459          X"$file" : 'X\(//\)[^/]' \| \
14460          X"$file" : 'X\(//\)$' \| \
14461          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14462 echo X"$file" |
14463     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14464             s//\1/
14465             q
14466           }
14467           /^X\(\/\/\)[^/].*/{
14468             s//\1/
14469             q
14470           }
14471           /^X\(\/\/\)$/{
14472             s//\1/
14473             q
14474           }
14475           /^X\(\/\).*/{
14476             s//\1/
14477             q
14478           }
14479           s/.*/./; q'`
14480     { as_dir=$dirpart/$fdir
14481   case $as_dir in #(
14482   -*) as_dir=./$as_dir;;
14483   esac
14484   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14485     as_dirs=
14486     while :; do
14487       case $as_dir in #(
14488       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14489       *) as_qdir=$as_dir;;
14490       esac
14491       as_dirs="'$as_qdir' $as_dirs"
14492       as_dir=`$as_dirname -- "$as_dir" ||
14493 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14494          X"$as_dir" : 'X\(//\)[^/]' \| \
14495          X"$as_dir" : 'X\(//\)$' \| \
14496          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14497 echo X"$as_dir" |
14498     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14499             s//\1/
14500             q
14501           }
14502           /^X\(\/\/\)[^/].*/{
14503             s//\1/
14504             q
14505           }
14506           /^X\(\/\/\)$/{
14507             s//\1/
14508             q
14509           }
14510           /^X\(\/\).*/{
14511             s//\1/
14512             q
14513           }
14514           s/.*/./; q'`
14515       test -d "$as_dir" && break
14516     done
14517     test -z "$as_dirs" || eval "mkdir $as_dirs"
14518   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14519 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14520    { (exit 1); exit 1; }; }; }
14521     # echo "creating $dirpart/$file"
14522     echo '# dummy' > "$dirpart/$file"
14523   done
14524 done
14525  ;;
14526     "libtool":C)
14527
14528     # See if we are running on zsh, and set the options which allow our
14529     # commands through without removal of \ escapes.
14530     if test -n "${ZSH_VERSION+set}" ; then
14531       setopt NO_GLOB_SUBST
14532     fi
14533
14534     cfgfile="${ofile}T"
14535     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14536     $RM "$cfgfile"
14537
14538     cat <<_LT_EOF >> "$cfgfile"
14539 #! $SHELL
14540
14541 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14542 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14543 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14544 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14545 #
14546 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14547 #                 2006, 2007, 2008 Free Software Foundation, Inc.
14548 #   Written by Gordon Matzigkeit, 1996
14549 #
14550 #   This file is part of GNU Libtool.
14551 #
14552 # GNU Libtool is free software; you can redistribute it and/or
14553 # modify it under the terms of the GNU General Public License as
14554 # published by the Free Software Foundation; either version 2 of
14555 # the License, or (at your option) any later version.
14556 #
14557 # As a special exception to the GNU General Public License,
14558 # if you distribute this file as part of a program or library that
14559 # is built using GNU Libtool, you may include this file under the
14560 # same distribution terms that you use for the rest of that program.
14561 #
14562 # GNU Libtool is distributed in the hope that it will be useful,
14563 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14564 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14565 # GNU General Public License for more details.
14566 #
14567 # You should have received a copy of the GNU General Public License
14568 # along with GNU Libtool; see the file COPYING.  If not, a copy
14569 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14570 # obtained by writing to the Free Software Foundation, Inc.,
14571 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14572
14573
14574 # The names of the tagged configurations supported by this script.
14575 available_tags=""
14576
14577 # ### BEGIN LIBTOOL CONFIG
14578
14579 # Which release of libtool.m4 was used?
14580 macro_version=$macro_version
14581 macro_revision=$macro_revision
14582
14583 # Assembler program.
14584 AS=$AS
14585
14586 # DLL creation program.
14587 DLLTOOL=$DLLTOOL
14588
14589 # Object dumper program.
14590 OBJDUMP=$OBJDUMP
14591
14592 # Whether or not to build shared libraries.
14593 build_libtool_libs=$enable_shared
14594
14595 # Whether or not to build static libraries.
14596 build_old_libs=$enable_static
14597
14598 # What type of objects to build.
14599 pic_mode=$pic_mode
14600
14601 # Whether or not to optimize for fast installation.
14602 fast_install=$enable_fast_install
14603
14604 # The host system.
14605 host_alias=$host_alias
14606 host=$host
14607 host_os=$host_os
14608
14609 # The build system.
14610 build_alias=$build_alias
14611 build=$build
14612 build_os=$build_os
14613
14614 # A sed program that does not truncate output.
14615 SED=$lt_SED
14616
14617 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14618 Xsed="\$SED -e 1s/^X//"
14619
14620 # A grep program that handles long lines.
14621 GREP=$lt_GREP
14622
14623 # An ERE matcher.
14624 EGREP=$lt_EGREP
14625
14626 # A literal string matcher.
14627 FGREP=$lt_FGREP
14628
14629 # A BSD- or MS-compatible name lister.
14630 NM=$lt_NM
14631
14632 # Whether we need soft or hard links.
14633 LN_S=$lt_LN_S
14634
14635 # What is the maximum length of a command?
14636 max_cmd_len=$max_cmd_len
14637
14638 # Object file suffix (normally "o").
14639 objext=$ac_objext
14640
14641 # Executable file suffix (normally "").
14642 exeext=$exeext
14643
14644 # whether the shell understands "unset".
14645 lt_unset=$lt_unset
14646
14647 # turn spaces into newlines.
14648 SP2NL=$lt_lt_SP2NL
14649
14650 # turn newlines into spaces.
14651 NL2SP=$lt_lt_NL2SP
14652
14653 # How to create reloadable object files.
14654 reload_flag=$lt_reload_flag
14655 reload_cmds=$lt_reload_cmds
14656
14657 # Method to check whether dependent libraries are shared objects.
14658 deplibs_check_method=$lt_deplibs_check_method
14659
14660 # Command to use when deplibs_check_method == "file_magic".
14661 file_magic_cmd=$lt_file_magic_cmd
14662
14663 # The archiver.
14664 AR=$lt_AR
14665 AR_FLAGS=$lt_AR_FLAGS
14666
14667 # A symbol stripping program.
14668 STRIP=$lt_STRIP
14669
14670 # Commands used to install an old-style archive.
14671 RANLIB=$lt_RANLIB
14672 old_postinstall_cmds=$lt_old_postinstall_cmds
14673 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14674
14675 # A C compiler.
14676 LTCC=$lt_CC
14677
14678 # LTCC compiler flags.
14679 LTCFLAGS=$lt_CFLAGS
14680
14681 # Take the output of nm and produce a listing of raw symbols and C names.
14682 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14683
14684 # Transform the output of nm in a proper C declaration.
14685 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14686
14687 # Transform the output of nm in a C name address pair.
14688 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14689
14690 # Transform the output of nm in a C name address pair when lib prefix is needed.
14691 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14692
14693 # The name of the directory that contains temporary libtool files.
14694 objdir=$objdir
14695
14696 # Shell to use when invoking shell scripts.
14697 SHELL=$lt_SHELL
14698
14699 # An echo program that does not interpret backslashes.
14700 ECHO=$lt_ECHO
14701
14702 # Used to examine libraries when file_magic_cmd begins with "file".
14703 MAGIC_CMD=$MAGIC_CMD
14704
14705 # Must we lock files when doing compilation?
14706 need_locks=$lt_need_locks
14707
14708 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14709 DSYMUTIL=$lt_DSYMUTIL
14710
14711 # Tool to change global to local symbols on Mac OS X.
14712 NMEDIT=$lt_NMEDIT
14713
14714 # Tool to manipulate fat objects and archives on Mac OS X.
14715 LIPO=$lt_LIPO
14716
14717 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14718 OTOOL=$lt_OTOOL
14719
14720 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14721 OTOOL64=$lt_OTOOL64
14722
14723 # Old archive suffix (normally "a").
14724 libext=$libext
14725
14726 # Shared library suffix (normally ".so").
14727 shrext_cmds=$lt_shrext_cmds
14728
14729 # The commands to extract the exported symbol list from a shared archive.
14730 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14731
14732 # Variables whose values should be saved in libtool wrapper scripts and
14733 # restored at link time.
14734 variables_saved_for_relink=$lt_variables_saved_for_relink
14735
14736 # Do we need the "lib" prefix for modules?
14737 need_lib_prefix=$need_lib_prefix
14738
14739 # Do we need a version for libraries?
14740 need_version=$need_version
14741
14742 # Library versioning type.
14743 version_type=$version_type
14744
14745 # Shared library runtime path variable.
14746 runpath_var=$runpath_var
14747
14748 # Shared library path variable.
14749 shlibpath_var=$shlibpath_var
14750
14751 # Is shlibpath searched before the hard-coded library search path?
14752 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14753
14754 # Format of library name prefix.
14755 libname_spec=$lt_libname_spec
14756
14757 # List of archive names.  First name is the real one, the rest are links.
14758 # The last name is the one that the linker finds with -lNAME
14759 library_names_spec=$lt_library_names_spec
14760
14761 # The coded name of the library, if different from the real name.
14762 soname_spec=$lt_soname_spec
14763
14764 # Command to use after installation of a shared archive.
14765 postinstall_cmds=$lt_postinstall_cmds
14766
14767 # Command to use after uninstallation of a shared archive.
14768 postuninstall_cmds=$lt_postuninstall_cmds
14769
14770 # Commands used to finish a libtool library installation in a directory.
14771 finish_cmds=$lt_finish_cmds
14772
14773 # As "finish_cmds", except a single script fragment to be evaled but
14774 # not shown.
14775 finish_eval=$lt_finish_eval
14776
14777 # Whether we should hardcode library paths into libraries.
14778 hardcode_into_libs=$hardcode_into_libs
14779
14780 # Compile-time system search path for libraries.
14781 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14782
14783 # Run-time system search path for libraries.
14784 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14785
14786 # Whether dlopen is supported.
14787 dlopen_support=$enable_dlopen
14788
14789 # Whether dlopen of programs is supported.
14790 dlopen_self=$enable_dlopen_self
14791
14792 # Whether dlopen of statically linked programs is supported.
14793 dlopen_self_static=$enable_dlopen_self_static
14794
14795 # Commands to strip libraries.
14796 old_striplib=$lt_old_striplib
14797 striplib=$lt_striplib
14798
14799
14800 # The linker used to build libraries.
14801 LD=$lt_LD
14802
14803 # Commands used to build an old-style archive.
14804 old_archive_cmds=$lt_old_archive_cmds
14805
14806 # A language specific compiler.
14807 CC=$lt_compiler
14808
14809 # Is the compiler the GNU compiler?
14810 with_gcc=$GCC
14811
14812 # Compiler flag to turn off builtin functions.
14813 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14814
14815 # How to pass a linker flag through the compiler.
14816 wl=$lt_lt_prog_compiler_wl
14817
14818 # Additional compiler flags for building library objects.
14819 pic_flag=$lt_lt_prog_compiler_pic
14820
14821 # Compiler flag to prevent dynamic linking.
14822 link_static_flag=$lt_lt_prog_compiler_static
14823
14824 # Does compiler simultaneously support -c and -o options?
14825 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14826
14827 # Whether or not to add -lc for building shared libraries.
14828 build_libtool_need_lc=$archive_cmds_need_lc
14829
14830 # Whether or not to disallow shared libs when runtime libs are static.
14831 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14832
14833 # Compiler flag to allow reflexive dlopens.
14834 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14835
14836 # Compiler flag to generate shared objects directly from archives.
14837 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14838
14839 # Whether the compiler copes with passing no objects directly.
14840 compiler_needs_object=$lt_compiler_needs_object
14841
14842 # Create an old-style archive from a shared archive.
14843 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14844
14845 # Create a temporary old-style archive to link instead of a shared archive.
14846 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14847
14848 # Commands used to build a shared archive.
14849 archive_cmds=$lt_archive_cmds
14850 archive_expsym_cmds=$lt_archive_expsym_cmds
14851
14852 # Commands used to build a loadable module if different from building
14853 # a shared archive.
14854 module_cmds=$lt_module_cmds
14855 module_expsym_cmds=$lt_module_expsym_cmds
14856
14857 # Whether we are building with GNU ld or not.
14858 with_gnu_ld=$lt_with_gnu_ld
14859
14860 # Flag that allows shared libraries with undefined symbols to be built.
14861 allow_undefined_flag=$lt_allow_undefined_flag
14862
14863 # Flag that enforces no undefined symbols.
14864 no_undefined_flag=$lt_no_undefined_flag
14865
14866 # Flag to hardcode \$libdir into a binary during linking.
14867 # This must work even if \$libdir does not exist
14868 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14869
14870 # If ld is used when linking, flag to hardcode \$libdir into a binary
14871 # during linking.  This must work even if \$libdir does not exist.
14872 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14873
14874 # Whether we need a single "-rpath" flag with a separated argument.
14875 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14876
14877 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14878 # DIR into the resulting binary.
14879 hardcode_direct=$hardcode_direct
14880
14881 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14882 # DIR into the resulting binary and the resulting library dependency is
14883 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14884 # library is relocated.
14885 hardcode_direct_absolute=$hardcode_direct_absolute
14886
14887 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14888 # into the resulting binary.
14889 hardcode_minus_L=$hardcode_minus_L
14890
14891 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14892 # into the resulting binary.
14893 hardcode_shlibpath_var=$hardcode_shlibpath_var
14894
14895 # Set to "yes" if building a shared library automatically hardcodes DIR
14896 # into the library and all subsequent libraries and executables linked
14897 # against it.
14898 hardcode_automatic=$hardcode_automatic
14899
14900 # Set to yes if linker adds runtime paths of dependent libraries
14901 # to runtime path list.
14902 inherit_rpath=$inherit_rpath
14903
14904 # Whether libtool must link a program against all its dependency libraries.
14905 link_all_deplibs=$link_all_deplibs
14906
14907 # Fix the shell variable \$srcfile for the compiler.
14908 fix_srcfile_path=$lt_fix_srcfile_path
14909
14910 # Set to "yes" if exported symbols are required.
14911 always_export_symbols=$always_export_symbols
14912
14913 # The commands to list exported symbols.
14914 export_symbols_cmds=$lt_export_symbols_cmds
14915
14916 # Symbols that should not be listed in the preloaded symbols.
14917 exclude_expsyms=$lt_exclude_expsyms
14918
14919 # Symbols that must always be exported.
14920 include_expsyms=$lt_include_expsyms
14921
14922 # Commands necessary for linking programs (against libraries) with templates.
14923 prelink_cmds=$lt_prelink_cmds
14924
14925 # Specify filename containing input files.
14926 file_list_spec=$lt_file_list_spec
14927
14928 # How to hardcode a shared library path into an executable.
14929 hardcode_action=$hardcode_action
14930
14931 # ### END LIBTOOL CONFIG
14932
14933 _LT_EOF
14934
14935   case $host_os in
14936   aix3*)
14937     cat <<\_LT_EOF >> "$cfgfile"
14938 # AIX sometimes has problems with the GCC collect2 program.  For some
14939 # reason, if we set the COLLECT_NAMES environment variable, the problems
14940 # vanish in a puff of smoke.
14941 if test "X${COLLECT_NAMES+set}" != Xset; then
14942   COLLECT_NAMES=
14943   export COLLECT_NAMES
14944 fi
14945 _LT_EOF
14946     ;;
14947   esac
14948
14949
14950 ltmain="$ac_aux_dir/ltmain.sh"
14951
14952
14953   # We use sed instead of cat because bash on DJGPP gets confused if
14954   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14955   # text mode, it properly converts lines to CR/LF.  This bash problem
14956   # is reportedly fixed, but why not run on old versions too?
14957   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14958     || (rm -f "$cfgfile"; exit 1)
14959
14960   case $xsi_shell in
14961   yes)
14962     cat << \_LT_EOF >> "$cfgfile"
14963
14964 # func_dirname file append nondir_replacement
14965 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14966 # otherwise set result to NONDIR_REPLACEMENT.
14967 func_dirname ()
14968 {
14969   case ${1} in
14970     */*) func_dirname_result="${1%/*}${2}" ;;
14971     *  ) func_dirname_result="${3}" ;;
14972   esac
14973 }
14974
14975 # func_basename file
14976 func_basename ()
14977 {
14978   func_basename_result="${1##*/}"
14979 }
14980
14981 # func_dirname_and_basename file append nondir_replacement
14982 # perform func_basename and func_dirname in a single function
14983 # call:
14984 #   dirname:  Compute the dirname of FILE.  If nonempty,
14985 #             add APPEND to the result, otherwise set result
14986 #             to NONDIR_REPLACEMENT.
14987 #             value returned in "$func_dirname_result"
14988 #   basename: Compute filename of FILE.
14989 #             value retuned in "$func_basename_result"
14990 # Implementation must be kept synchronized with func_dirname
14991 # and func_basename. For efficiency, we do not delegate to
14992 # those functions but instead duplicate the functionality here.
14993 func_dirname_and_basename ()
14994 {
14995   case ${1} in
14996     */*) func_dirname_result="${1%/*}${2}" ;;
14997     *  ) func_dirname_result="${3}" ;;
14998   esac
14999   func_basename_result="${1##*/}"
15000 }
15001
15002 # func_stripname prefix suffix name
15003 # strip PREFIX and SUFFIX off of NAME.
15004 # PREFIX and SUFFIX must not contain globbing or regex special
15005 # characters, hashes, percent signs, but SUFFIX may contain a leading
15006 # dot (in which case that matches only a dot).
15007 func_stripname ()
15008 {
15009   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15010   # positional parameters, so assign one to ordinary parameter first.
15011   func_stripname_result=${3}
15012   func_stripname_result=${func_stripname_result#"${1}"}
15013   func_stripname_result=${func_stripname_result%"${2}"}
15014 }
15015
15016 # func_opt_split
15017 func_opt_split ()
15018 {
15019   func_opt_split_opt=${1%%=*}
15020   func_opt_split_arg=${1#*=}
15021 }
15022
15023 # func_lo2o object
15024 func_lo2o ()
15025 {
15026   case ${1} in
15027     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15028     *)    func_lo2o_result=${1} ;;
15029   esac
15030 }
15031
15032 # func_xform libobj-or-source
15033 func_xform ()
15034 {
15035   func_xform_result=${1%.*}.lo
15036 }
15037
15038 # func_arith arithmetic-term...
15039 func_arith ()
15040 {
15041   func_arith_result=$(( $* ))
15042 }
15043
15044 # func_len string
15045 # STRING may not start with a hyphen.
15046 func_len ()
15047 {
15048   func_len_result=${#1}
15049 }
15050
15051 _LT_EOF
15052     ;;
15053   *) # Bourne compatible functions.
15054     cat << \_LT_EOF >> "$cfgfile"
15055
15056 # func_dirname file append nondir_replacement
15057 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15058 # otherwise set result to NONDIR_REPLACEMENT.
15059 func_dirname ()
15060 {
15061   # Extract subdirectory from the argument.
15062   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15063   if test "X$func_dirname_result" = "X${1}"; then
15064     func_dirname_result="${3}"
15065   else
15066     func_dirname_result="$func_dirname_result${2}"
15067   fi
15068 }
15069
15070 # func_basename file
15071 func_basename ()
15072 {
15073   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15074 }
15075
15076
15077 # func_stripname prefix suffix name
15078 # strip PREFIX and SUFFIX off of NAME.
15079 # PREFIX and SUFFIX must not contain globbing or regex special
15080 # characters, hashes, percent signs, but SUFFIX may contain a leading
15081 # dot (in which case that matches only a dot).
15082 # func_strip_suffix prefix name
15083 func_stripname ()
15084 {
15085   case ${2} in
15086     .*) func_stripname_result=`$ECHO "X${3}" \
15087            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15088     *)  func_stripname_result=`$ECHO "X${3}" \
15089            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15090   esac
15091 }
15092
15093 # sed scripts:
15094 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15095 my_sed_long_arg='1s/^-[^=]*=//'
15096
15097 # func_opt_split
15098 func_opt_split ()
15099 {
15100   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15101   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15102 }
15103
15104 # func_lo2o object
15105 func_lo2o ()
15106 {
15107   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15108 }
15109
15110 # func_xform libobj-or-source
15111 func_xform ()
15112 {
15113   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15114 }
15115
15116 # func_arith arithmetic-term...
15117 func_arith ()
15118 {
15119   func_arith_result=`expr "$@"`
15120 }
15121
15122 # func_len string
15123 # STRING may not start with a hyphen.
15124 func_len ()
15125 {
15126   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15127 }
15128
15129 _LT_EOF
15130 esac
15131
15132 case $lt_shell_append in
15133   yes)
15134     cat << \_LT_EOF >> "$cfgfile"
15135
15136 # func_append var value
15137 # Append VALUE to the end of shell variable VAR.
15138 func_append ()
15139 {
15140   eval "$1+=\$2"
15141 }
15142 _LT_EOF
15143     ;;
15144   *)
15145     cat << \_LT_EOF >> "$cfgfile"
15146
15147 # func_append var value
15148 # Append VALUE to the end of shell variable VAR.
15149 func_append ()
15150 {
15151   eval "$1=\$$1\$2"
15152 }
15153
15154 _LT_EOF
15155     ;;
15156   esac
15157
15158
15159   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15160     || (rm -f "$cfgfile"; exit 1)
15161
15162   mv -f "$cfgfile" "$ofile" ||
15163     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15164   chmod +x "$ofile"
15165
15166  ;;
15167
15168   esac
15169 done # for ac_tag
15170
15171
15172 { (exit 0); exit 0; }
15173 _ACEOF
15174 chmod +x $CONFIG_STATUS
15175 ac_clean_files=$ac_clean_files_save
15176
15177
15178 # configure is writing to config.log, and then calls config.status.
15179 # config.status does its own redirection, appending to config.log.
15180 # Unfortunately, on DOS this fails, as config.log is still kept open
15181 # by configure, so config.status won't be able to write to it; its
15182 # output is simply discarded.  So we exec the FD to /dev/null,
15183 # effectively closing config.log, so it can be properly (re)opened and
15184 # appended to by config.status.  When coming back to configure, we
15185 # need to make the FD available again.
15186 if test "$no_create" != yes; then
15187   ac_cs_success=:
15188   ac_config_status_args=
15189   test "$silent" = yes &&
15190     ac_config_status_args="$ac_config_status_args --quiet"
15191   exec 5>/dev/null
15192   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15193   exec 5>>config.log
15194   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15195   # would make configure fail if this is the last instruction.
15196   $ac_cs_success || { (exit 1); exit 1; }
15197 fi
15198