"Initial commit to Gerrit"
[profile/ivi/libasyncns.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libasyncns 0.7.
4 #
5 # Report bugs to <mznflapaf (at) 0pointer (dot) de>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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   # Pre-4.2 versions of Zsh do 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 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$ECHO in
581 X*--fallback-echo)
582   # Remove one level of quotation (which was required for Make).
583   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584   ;;
585 esac
586
587 echo=${ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589   # Discard the --no-reexec flag, and continue.
590   shift
591 elif test "X$1" = X--fallback-echo; then
592   # Avoid inline document here, it may be left over
593   :
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595   # Yippee, $echo works!
596   :
597 else
598   # Restart under the correct shell.
599   exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603   # used as fallback echo
604   shift
605   cat <<EOF
606 $*
607 EOF
608   exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621        echo_test_string=`eval $cmd` &&
622        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623     then
624       break
625     fi
626   done
627 fi
628
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631    test "X$echo_testing_string" = "X$echo_test_string"; then
632   :
633 else
634   # The Solaris, AIX, and Digital Unix default echo programs unquote
635   # backslashes.  This makes it impossible to quote backslashes using
636   #   echo "$something" | sed 's/\\/\\\\/g'
637   #
638   # So, first we look for a working echo in the user's PATH.
639
640   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641   for dir in $PATH /usr/ucb; do
642     IFS="$lt_save_ifs"
643     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646        test "X$echo_testing_string" = "X$echo_test_string"; then
647       echo="$dir/echo"
648       break
649     fi
650   done
651   IFS="$lt_save_ifs"
652
653   if test "X$echo" = Xecho; then
654     # We didn't find a better echo, so look for alternatives.
655     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657        test "X$echo_testing_string" = "X$echo_test_string"; then
658       # This shell has a builtin print -r that does the trick.
659       echo='print -r'
660     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661          test "X$CONFIG_SHELL" != X/bin/ksh; then
662       # If we have ksh, try running configure again with it.
663       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664       export ORIGINAL_CONFIG_SHELL
665       CONFIG_SHELL=/bin/ksh
666       export CONFIG_SHELL
667       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668     else
669       # Try using printf.
670       echo='printf %s\n'
671       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673          test "X$echo_testing_string" = "X$echo_test_string"; then
674         # Cool, printf works
675         :
676       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677            test "X$echo_testing_string" = 'X\t' &&
678            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679            test "X$echo_testing_string" = "X$echo_test_string"; then
680         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681         export CONFIG_SHELL
682         SHELL="$CONFIG_SHELL"
683         export SHELL
684         echo="$CONFIG_SHELL $0 --fallback-echo"
685       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686            test "X$echo_testing_string" = 'X\t' &&
687            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688            test "X$echo_testing_string" = "X$echo_test_string"; then
689         echo="$CONFIG_SHELL $0 --fallback-echo"
690       else
691         # maybe with a smaller string...
692         prev=:
693
694         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696           then
697             break
698           fi
699           prev="$cmd"
700         done
701
702         if test "$prev" != 'sed 50q "$0"'; then
703           echo_test_string=`eval $prev`
704           export echo_test_string
705           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706         else
707           # Oops.  We lost completely, so just stick with echo.
708           echo=echo
709         fi
710       fi
711     fi
712   fi
713 fi
714 fi
715
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
718 ECHO=$echo
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721 fi
722
723
724
725
726 tagnames=${tagnames+${tagnames},}CXX
727
728 tagnames=${tagnames+${tagnames},}F77
729
730 exec 7<&0 </dev/null 6>&1
731
732 # Name of the host.
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737 #
738 # Initializations.
739 #
740 ac_default_prefix=/usr/local
741 ac_clean_files=
742 ac_config_libobj_dir=.
743 LIBOBJS=
744 cross_compiling=no
745 subdirs=
746 MFLAGS=
747 MAKEFLAGS=
748 SHELL=${CONFIG_SHELL-/bin/sh}
749
750 # Identity of this package.
751 PACKAGE_NAME='libasyncns'
752 PACKAGE_TARNAME='libasyncns'
753 PACKAGE_VERSION='0.7'
754 PACKAGE_STRING='libasyncns 0.7'
755 PACKAGE_BUGREPORT='mznflapaf (at) 0pointer (dot) de'
756
757 ac_unique_file="libasyncns/asyncns.c"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
760 #include <stdio.h>
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
763 #endif
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
766 #endif
767 #ifdef STDC_HEADERS
768 # include <stdlib.h>
769 # include <stddef.h>
770 #else
771 # ifdef HAVE_STDLIB_H
772 #  include <stdlib.h>
773 # endif
774 #endif
775 #ifdef HAVE_STRING_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777 #  include <memory.h>
778 # endif
779 # include <string.h>
780 #endif
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
783 #endif
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
786 #endif
787 #ifdef HAVE_STDINT_H
788 # include <stdint.h>
789 #endif
790 #ifdef HAVE_UNISTD_H
791 # include <unistd.h>
792 #endif"
793
794 ac_subst_vars='LTLIBOBJS
795 USE_LYNX_FALSE
796 USE_LYNX_TRUE
797 have_lynx
798 PTHREAD_CFLAGS
799 PTHREAD_LIBS
800 PTHREAD_CC
801 acx_pthread_config
802 LIBOBJS
803 LIBTOOL
804 ac_ct_F77
805 FFLAGS
806 F77
807 CXXCPP
808 am__fastdepCXX_FALSE
809 am__fastdepCXX_TRUE
810 CXXDEPMODE
811 ac_ct_CXX
812 CXXFLAGS
813 CXX
814 NMEDIT
815 DSYMUTIL
816 RANLIB
817 AR
818 ECHO
819 SED
820 host_os
821 host_vendor
822 host_cpu
823 host
824 build_os
825 build_vendor
826 build_cpu
827 build
828 LN_S
829 EGREP
830 GREP
831 CPP
832 am__fastdepCC_FALSE
833 am__fastdepCC_TRUE
834 CCDEPMODE
835 AMDEPBACKSLASH
836 AMDEP_FALSE
837 AMDEP_TRUE
838 am__quote
839 am__include
840 DEPDIR
841 OBJEXT
842 EXEEXT
843 ac_ct_CC
844 CPPFLAGS
845 LDFLAGS
846 CFLAGS
847 CC
848 LIBASYNCNS_VERSION_INFO
849 PACKAGE_URL
850 am__untar
851 am__tar
852 AMTAR
853 am__leading_dot
854 SET_MAKE
855 AWK
856 mkdir_p
857 MKDIR_P
858 INSTALL_STRIP_PROGRAM
859 STRIP
860 install_sh
861 MAKEINFO
862 AUTOHEADER
863 AUTOMAKE
864 AUTOCONF
865 ACLOCAL
866 VERSION
867 PACKAGE
868 CYGPATH_W
869 am__isrc
870 INSTALL_DATA
871 INSTALL_SCRIPT
872 INSTALL_PROGRAM
873 target_alias
874 host_alias
875 build_alias
876 LIBS
877 ECHO_T
878 ECHO_N
879 ECHO_C
880 DEFS
881 mandir
882 localedir
883 libdir
884 psdir
885 pdfdir
886 dvidir
887 htmldir
888 infodir
889 docdir
890 oldincludedir
891 includedir
892 localstatedir
893 sharedstatedir
894 sysconfdir
895 datadir
896 datarootdir
897 libexecdir
898 sbindir
899 bindir
900 program_transform_name
901 prefix
902 exec_prefix
903 PACKAGE_BUGREPORT
904 PACKAGE_STRING
905 PACKAGE_VERSION
906 PACKAGE_TARNAME
907 PACKAGE_NAME
908 PATH_SEPARATOR
909 SHELL'
910 ac_subst_files=''
911 ac_user_opts='
912 enable_option_checking
913 enable_dependency_tracking
914 enable_shared
915 enable_static
916 enable_fast_install
917 with_gnu_ld
918 enable_libtool_lock
919 with_pic
920 with_tags
921 enable_assert
922 enable_lynx
923 '
924       ac_precious_vars='build_alias
925 host_alias
926 target_alias
927 CC
928 CFLAGS
929 LDFLAGS
930 LIBS
931 CPPFLAGS
932 CPP
933 CXX
934 CXXFLAGS
935 CCC
936 CXXCPP
937 F77
938 FFLAGS'
939
940
941 # Initialize some variables set by options.
942 ac_init_help=
943 ac_init_version=false
944 ac_unrecognized_opts=
945 ac_unrecognized_sep=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
948 cache_file=/dev/null
949 exec_prefix=NONE
950 no_create=
951 no_recursion=
952 prefix=NONE
953 program_prefix=NONE
954 program_suffix=NONE
955 program_transform_name=s,x,x,
956 silent=
957 site=
958 srcdir=
959 verbose=
960 x_includes=NONE
961 x_libraries=NONE
962
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 includedir='${prefix}/include'
978 oldincludedir='/usr/include'
979 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
980 infodir='${datarootdir}/info'
981 htmldir='${docdir}'
982 dvidir='${docdir}'
983 pdfdir='${docdir}'
984 psdir='${docdir}'
985 libdir='${exec_prefix}/lib'
986 localedir='${datarootdir}/locale'
987 mandir='${datarootdir}/man'
988
989 ac_prev=
990 ac_dashdash=
991 for ac_option
992 do
993   # If the previous option needs an argument, assign it.
994   if test -n "$ac_prev"; then
995     eval $ac_prev=\$ac_option
996     ac_prev=
997     continue
998   fi
999
1000   case $ac_option in
1001   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002   *)    ac_optarg=yes ;;
1003   esac
1004
1005   # Accept the important Cygnus configure options, so we can diagnose typos.
1006
1007   case $ac_dashdash$ac_option in
1008   --)
1009     ac_dashdash=yes ;;
1010
1011   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012     ac_prev=bindir ;;
1013   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014     bindir=$ac_optarg ;;
1015
1016   -build | --build | --buil | --bui | --bu)
1017     ac_prev=build_alias ;;
1018   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019     build_alias=$ac_optarg ;;
1020
1021   -cache-file | --cache-file | --cache-fil | --cache-fi \
1022   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023     ac_prev=cache_file ;;
1024   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026     cache_file=$ac_optarg ;;
1027
1028   --config-cache | -C)
1029     cache_file=config.cache ;;
1030
1031   -datadir | --datadir | --datadi | --datad)
1032     ac_prev=datadir ;;
1033   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034     datadir=$ac_optarg ;;
1035
1036   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037   | --dataroo | --dataro | --datar)
1038     ac_prev=datarootdir ;;
1039   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041     datarootdir=$ac_optarg ;;
1042
1043   -disable-* | --disable-*)
1044     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045     # Reject names that are not valid shell variable names.
1046     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1048    { (exit 1); exit 1; }; }
1049     ac_useropt_orig=$ac_useropt
1050     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051     case $ac_user_opts in
1052       *"
1053 "enable_$ac_useropt"
1054 "*) ;;
1055       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056          ac_unrecognized_sep=', ';;
1057     esac
1058     eval enable_$ac_useropt=no ;;
1059
1060   -docdir | --docdir | --docdi | --doc | --do)
1061     ac_prev=docdir ;;
1062   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063     docdir=$ac_optarg ;;
1064
1065   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066     ac_prev=dvidir ;;
1067   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068     dvidir=$ac_optarg ;;
1069
1070   -enable-* | --enable-*)
1071     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072     # Reject names that are not valid shell variable names.
1073     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1075    { (exit 1); exit 1; }; }
1076     ac_useropt_orig=$ac_useropt
1077     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078     case $ac_user_opts in
1079       *"
1080 "enable_$ac_useropt"
1081 "*) ;;
1082       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083          ac_unrecognized_sep=', ';;
1084     esac
1085     eval enable_$ac_useropt=\$ac_optarg ;;
1086
1087   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089   | --exec | --exe | --ex)
1090     ac_prev=exec_prefix ;;
1091   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093   | --exec=* | --exe=* | --ex=*)
1094     exec_prefix=$ac_optarg ;;
1095
1096   -gas | --gas | --ga | --g)
1097     # Obsolete; use --with-gas.
1098     with_gas=yes ;;
1099
1100   -help | --help | --hel | --he | -h)
1101     ac_init_help=long ;;
1102   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103     ac_init_help=recursive ;;
1104   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105     ac_init_help=short ;;
1106
1107   -host | --host | --hos | --ho)
1108     ac_prev=host_alias ;;
1109   -host=* | --host=* | --hos=* | --ho=*)
1110     host_alias=$ac_optarg ;;
1111
1112   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113     ac_prev=htmldir ;;
1114   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115   | --ht=*)
1116     htmldir=$ac_optarg ;;
1117
1118   -includedir | --includedir | --includedi | --included | --include \
1119   | --includ | --inclu | --incl | --inc)
1120     ac_prev=includedir ;;
1121   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122   | --includ=* | --inclu=* | --incl=* | --inc=*)
1123     includedir=$ac_optarg ;;
1124
1125   -infodir | --infodir | --infodi | --infod | --info | --inf)
1126     ac_prev=infodir ;;
1127   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128     infodir=$ac_optarg ;;
1129
1130   -libdir | --libdir | --libdi | --libd)
1131     ac_prev=libdir ;;
1132   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133     libdir=$ac_optarg ;;
1134
1135   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136   | --libexe | --libex | --libe)
1137     ac_prev=libexecdir ;;
1138   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139   | --libexe=* | --libex=* | --libe=*)
1140     libexecdir=$ac_optarg ;;
1141
1142   -localedir | --localedir | --localedi | --localed | --locale)
1143     ac_prev=localedir ;;
1144   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145     localedir=$ac_optarg ;;
1146
1147   -localstatedir | --localstatedir | --localstatedi | --localstated \
1148   | --localstate | --localstat | --localsta | --localst | --locals)
1149     ac_prev=localstatedir ;;
1150   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152     localstatedir=$ac_optarg ;;
1153
1154   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155     ac_prev=mandir ;;
1156   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157     mandir=$ac_optarg ;;
1158
1159   -nfp | --nfp | --nf)
1160     # Obsolete; use --without-fp.
1161     with_fp=no ;;
1162
1163   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164   | --no-cr | --no-c | -n)
1165     no_create=yes ;;
1166
1167   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169     no_recursion=yes ;;
1170
1171   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173   | --oldin | --oldi | --old | --ol | --o)
1174     ac_prev=oldincludedir ;;
1175   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178     oldincludedir=$ac_optarg ;;
1179
1180   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181     ac_prev=prefix ;;
1182   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183     prefix=$ac_optarg ;;
1184
1185   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186   | --program-pre | --program-pr | --program-p)
1187     ac_prev=program_prefix ;;
1188   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190     program_prefix=$ac_optarg ;;
1191
1192   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193   | --program-suf | --program-su | --program-s)
1194     ac_prev=program_suffix ;;
1195   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197     program_suffix=$ac_optarg ;;
1198
1199   -program-transform-name | --program-transform-name \
1200   | --program-transform-nam | --program-transform-na \
1201   | --program-transform-n | --program-transform- \
1202   | --program-transform | --program-transfor \
1203   | --program-transfo | --program-transf \
1204   | --program-trans | --program-tran \
1205   | --progr-tra | --program-tr | --program-t)
1206     ac_prev=program_transform_name ;;
1207   -program-transform-name=* | --program-transform-name=* \
1208   | --program-transform-nam=* | --program-transform-na=* \
1209   | --program-transform-n=* | --program-transform-=* \
1210   | --program-transform=* | --program-transfor=* \
1211   | --program-transfo=* | --program-transf=* \
1212   | --program-trans=* | --program-tran=* \
1213   | --progr-tra=* | --program-tr=* | --program-t=*)
1214     program_transform_name=$ac_optarg ;;
1215
1216   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217     ac_prev=pdfdir ;;
1218   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219     pdfdir=$ac_optarg ;;
1220
1221   -psdir | --psdir | --psdi | --psd | --ps)
1222     ac_prev=psdir ;;
1223   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224     psdir=$ac_optarg ;;
1225
1226   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227   | -silent | --silent | --silen | --sile | --sil)
1228     silent=yes ;;
1229
1230   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231     ac_prev=sbindir ;;
1232   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233   | --sbi=* | --sb=*)
1234     sbindir=$ac_optarg ;;
1235
1236   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238   | --sharedst | --shareds | --shared | --share | --shar \
1239   | --sha | --sh)
1240     ac_prev=sharedstatedir ;;
1241   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244   | --sha=* | --sh=*)
1245     sharedstatedir=$ac_optarg ;;
1246
1247   -site | --site | --sit)
1248     ac_prev=site ;;
1249   -site=* | --site=* | --sit=*)
1250     site=$ac_optarg ;;
1251
1252   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253     ac_prev=srcdir ;;
1254   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255     srcdir=$ac_optarg ;;
1256
1257   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258   | --syscon | --sysco | --sysc | --sys | --sy)
1259     ac_prev=sysconfdir ;;
1260   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262     sysconfdir=$ac_optarg ;;
1263
1264   -target | --target | --targe | --targ | --tar | --ta | --t)
1265     ac_prev=target_alias ;;
1266   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267     target_alias=$ac_optarg ;;
1268
1269   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270     verbose=yes ;;
1271
1272   -version | --version | --versio | --versi | --vers | -V)
1273     ac_init_version=: ;;
1274
1275   -with-* | --with-*)
1276     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277     # Reject names that are not valid shell variable names.
1278     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1280    { (exit 1); exit 1; }; }
1281     ac_useropt_orig=$ac_useropt
1282     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283     case $ac_user_opts in
1284       *"
1285 "with_$ac_useropt"
1286 "*) ;;
1287       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288          ac_unrecognized_sep=', ';;
1289     esac
1290     eval with_$ac_useropt=\$ac_optarg ;;
1291
1292   -without-* | --without-*)
1293     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294     # Reject names that are not valid shell variable names.
1295     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1297    { (exit 1); exit 1; }; }
1298     ac_useropt_orig=$ac_useropt
1299     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300     case $ac_user_opts in
1301       *"
1302 "with_$ac_useropt"
1303 "*) ;;
1304       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1305          ac_unrecognized_sep=', ';;
1306     esac
1307     eval with_$ac_useropt=no ;;
1308
1309   --x)
1310     # Obsolete; use --with-x.
1311     with_x=yes ;;
1312
1313   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314   | --x-incl | --x-inc | --x-in | --x-i)
1315     ac_prev=x_includes ;;
1316   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318     x_includes=$ac_optarg ;;
1319
1320   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322     ac_prev=x_libraries ;;
1323   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325     x_libraries=$ac_optarg ;;
1326
1327   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1328 Try \`$0 --help' for more information." >&2
1329    { (exit 1); exit 1; }; }
1330     ;;
1331
1332   *=*)
1333     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334     # Reject names that are not valid shell variable names.
1335     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1336       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1337    { (exit 1); exit 1; }; }
1338     eval $ac_envvar=\$ac_optarg
1339     export $ac_envvar ;;
1340
1341   *)
1342     # FIXME: should be removed in autoconf 3.0.
1343     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1347     ;;
1348
1349   esac
1350 done
1351
1352 if test -n "$ac_prev"; then
1353   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1355    { (exit 1); exit 1; }; }
1356 fi
1357
1358 if test -n "$ac_unrecognized_opts"; then
1359   case $enable_option_checking in
1360     no) ;;
1361     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1362    { (exit 1); exit 1; }; } ;;
1363     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364   esac
1365 fi
1366
1367 # Check all directory arguments for consistency.
1368 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369                 datadir sysconfdir sharedstatedir localstatedir includedir \
1370                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371                 libdir localedir mandir
1372 do
1373   eval ac_val=\$$ac_var
1374   # Remove trailing slashes.
1375   case $ac_val in
1376     */ )
1377       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378       eval $ac_var=\$ac_val;;
1379   esac
1380   # Be sure to have absolute directory names.
1381   case $ac_val in
1382     [\\/$]* | ?:[\\/]* )  continue;;
1383     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384   esac
1385   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1386    { (exit 1); exit 1; }; }
1387 done
1388
1389 # There might be people who depend on the old broken behavior: `$host'
1390 # used to hold the argument of --host etc.
1391 # FIXME: To remove some day.
1392 build=$build_alias
1393 host=$host_alias
1394 target=$target_alias
1395
1396 # FIXME: To remove some day.
1397 if test "x$host_alias" != x; then
1398   if test "x$build_alias" = x; then
1399     cross_compiling=maybe
1400     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1401     If a cross compiler is detected then cross compile mode will be used." >&2
1402   elif test "x$build_alias" != "x$host_alias"; then
1403     cross_compiling=yes
1404   fi
1405 fi
1406
1407 ac_tool_prefix=
1408 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409
1410 test "$silent" = yes && exec 6>/dev/null
1411
1412
1413 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414 ac_ls_di=`ls -di .` &&
1415 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1417    { (exit 1); exit 1; }; }
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1420    { (exit 1); exit 1; }; }
1421
1422
1423 # Find the source files, if location was not specified.
1424 if test -z "$srcdir"; then
1425   ac_srcdir_defaulted=yes
1426   # Try the directory containing this script, then the parent directory.
1427   ac_confdir=`$as_dirname -- "$as_myself" ||
1428 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429          X"$as_myself" : 'X\(//\)[^/]' \| \
1430          X"$as_myself" : 'X\(//\)$' \| \
1431          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1432 $as_echo X"$as_myself" |
1433     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434             s//\1/
1435             q
1436           }
1437           /^X\(\/\/\)[^/].*/{
1438             s//\1/
1439             q
1440           }
1441           /^X\(\/\/\)$/{
1442             s//\1/
1443             q
1444           }
1445           /^X\(\/\).*/{
1446             s//\1/
1447             q
1448           }
1449           s/.*/./; q'`
1450   srcdir=$ac_confdir
1451   if test ! -r "$srcdir/$ac_unique_file"; then
1452     srcdir=..
1453   fi
1454 else
1455   ac_srcdir_defaulted=no
1456 fi
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1458   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1460    { (exit 1); exit 1; }; }
1461 fi
1462 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1463 ac_abs_confdir=`(
1464         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1465    { (exit 1); exit 1; }; }
1466         pwd)`
1467 # When building in place, set srcdir=.
1468 if test "$ac_abs_confdir" = "$ac_pwd"; then
1469   srcdir=.
1470 fi
1471 # Remove unnecessary trailing slashes from srcdir.
1472 # Double slashes in file names in object file debugging info
1473 # mess up M-x gdb in Emacs.
1474 case $srcdir in
1475 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1476 esac
1477 for ac_var in $ac_precious_vars; do
1478   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1479   eval ac_env_${ac_var}_value=\$${ac_var}
1480   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1481   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1482 done
1483
1484 #
1485 # Report the --help message.
1486 #
1487 if test "$ac_init_help" = "long"; then
1488   # Omit some internal or obsolete options to make the list less imposing.
1489   # This message is too long to be a string in the A/UX 3.1 sh.
1490   cat <<_ACEOF
1491 \`configure' configures libasyncns 0.7 to adapt to many kinds of systems.
1492
1493 Usage: $0 [OPTION]... [VAR=VALUE]...
1494
1495 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1496 VAR=VALUE.  See below for descriptions of some of the useful variables.
1497
1498 Defaults for the options are specified in brackets.
1499
1500 Configuration:
1501   -h, --help              display this help and exit
1502       --help=short        display options specific to this package
1503       --help=recursive    display the short help of all the included packages
1504   -V, --version           display version information and exit
1505   -q, --quiet, --silent   do not print \`checking...' messages
1506       --cache-file=FILE   cache test results in FILE [disabled]
1507   -C, --config-cache      alias for \`--cache-file=config.cache'
1508   -n, --no-create         do not create output files
1509       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1510
1511 Installation directories:
1512   --prefix=PREFIX         install architecture-independent files in PREFIX
1513                           [$ac_default_prefix]
1514   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1515                           [PREFIX]
1516
1517 By default, \`make install' will install all the files in
1518 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1519 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1520 for instance \`--prefix=\$HOME'.
1521
1522 For better control, use the options below.
1523
1524 Fine tuning of the installation directories:
1525   --bindir=DIR            user executables [EPREFIX/bin]
1526   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1527   --libexecdir=DIR        program executables [EPREFIX/libexec]
1528   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1529   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1530   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1531   --libdir=DIR            object code libraries [EPREFIX/lib]
1532   --includedir=DIR        C header files [PREFIX/include]
1533   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1534   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1535   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1536   --infodir=DIR           info documentation [DATAROOTDIR/info]
1537   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1538   --mandir=DIR            man documentation [DATAROOTDIR/man]
1539   --docdir=DIR            documentation root [DATAROOTDIR/doc/libasyncns]
1540   --htmldir=DIR           html documentation [DOCDIR]
1541   --dvidir=DIR            dvi documentation [DOCDIR]
1542   --pdfdir=DIR            pdf documentation [DOCDIR]
1543   --psdir=DIR             ps documentation [DOCDIR]
1544 _ACEOF
1545
1546   cat <<\_ACEOF
1547
1548 Program names:
1549   --program-prefix=PREFIX            prepend PREFIX to installed program names
1550   --program-suffix=SUFFIX            append SUFFIX to installed program names
1551   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1552
1553 System types:
1554   --build=BUILD     configure for building on BUILD [guessed]
1555   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1556 _ACEOF
1557 fi
1558
1559 if test -n "$ac_init_help"; then
1560   case $ac_init_help in
1561      short | recursive ) echo "Configuration of libasyncns 0.7:";;
1562    esac
1563   cat <<\_ACEOF
1564
1565 Optional Features:
1566   --disable-option-checking  ignore unrecognized --enable/--with options
1567   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1568   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1569   --disable-dependency-tracking  speeds up one-time build
1570   --enable-dependency-tracking   do not reject slow dependency extractors
1571   --enable-shared[=PKGS]  build shared libraries [default=yes]
1572   --enable-static[=PKGS]  build static libraries [default=yes]
1573   --enable-fast-install[=PKGS]
1574                           optimize for fast installation [default=yes]
1575   --disable-libtool-lock  avoid locking (might break parallel builds)
1576   --disable-assert        turn off assertions
1577   --disable-lynx          Turn off lynx usage for documentation generation
1578
1579 Optional Packages:
1580   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1581   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1582   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1583   --with-pic              try to use only PIC/non-PIC objects [default=use
1584                           both]
1585   --with-tags[=TAGS]      include additional configurations [automatic]
1586
1587 Some influential environment variables:
1588   CC          C compiler command
1589   CFLAGS      C compiler flags
1590   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1591               nonstandard directory <lib dir>
1592   LIBS        libraries to pass to the linker, e.g. -l<library>
1593   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1594               you have headers in a nonstandard directory <include dir>
1595   CPP         C preprocessor
1596   CXX         C++ compiler command
1597   CXXFLAGS    C++ compiler flags
1598   CXXCPP      C++ preprocessor
1599   F77         Fortran 77 compiler command
1600   FFLAGS      Fortran 77 compiler flags
1601
1602 Use these variables to override the choices made by `configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1604
1605 Report bugs to <mznflapaf (at) 0pointer (dot) de>.
1606 _ACEOF
1607 ac_status=$?
1608 fi
1609
1610 if test "$ac_init_help" = "recursive"; then
1611   # If there are subdirs, report their specific --help.
1612   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613     test -d "$ac_dir" ||
1614       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1615       continue
1616     ac_builddir=.
1617
1618 case "$ac_dir" in
1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *)
1621   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1622   # A ".." for each directory in $ac_dir_suffix.
1623   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1624   case $ac_top_builddir_sub in
1625   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627   esac ;;
1628 esac
1629 ac_abs_top_builddir=$ac_pwd
1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631 # for backward compatibility:
1632 ac_top_builddir=$ac_top_build_prefix
1633
1634 case $srcdir in
1635   .)  # We are building in place.
1636     ac_srcdir=.
1637     ac_top_srcdir=$ac_top_builddir_sub
1638     ac_abs_top_srcdir=$ac_pwd ;;
1639   [\\/]* | ?:[\\/]* )  # Absolute name.
1640     ac_srcdir=$srcdir$ac_dir_suffix;
1641     ac_top_srcdir=$srcdir
1642     ac_abs_top_srcdir=$srcdir ;;
1643   *) # Relative name.
1644     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645     ac_top_srcdir=$ac_top_build_prefix$srcdir
1646     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1647 esac
1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1649
1650     cd "$ac_dir" || { ac_status=$?; continue; }
1651     # Check for guested configure.
1652     if test -f "$ac_srcdir/configure.gnu"; then
1653       echo &&
1654       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655     elif test -f "$ac_srcdir/configure"; then
1656       echo &&
1657       $SHELL "$ac_srcdir/configure" --help=recursive
1658     else
1659       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1660     fi || ac_status=$?
1661     cd "$ac_pwd" || { ac_status=$?; break; }
1662   done
1663 fi
1664
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1667   cat <<\_ACEOF
1668 libasyncns configure 0.7
1669 generated by GNU Autoconf 2.63
1670
1671 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1672 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1673 This configure script is free software; the Free Software Foundation
1674 gives unlimited permission to copy, distribute and modify it.
1675 _ACEOF
1676   exit
1677 fi
1678 cat >config.log <<_ACEOF
1679 This file contains any messages produced by compilers while
1680 running configure, to aid debugging if configure makes a mistake.
1681
1682 It was created by libasyncns $as_me 0.7, which was
1683 generated by GNU Autoconf 2.63.  Invocation command line was
1684
1685   $ $0 $@
1686
1687 _ACEOF
1688 exec 5>>config.log
1689 {
1690 cat <<_ASUNAME
1691 ## --------- ##
1692 ## Platform. ##
1693 ## --------- ##
1694
1695 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1696 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1697 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1698 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1699 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1700
1701 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1702 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1703
1704 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1705 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1706 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1707 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1708 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1709 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1710 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1711
1712 _ASUNAME
1713
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1716 do
1717   IFS=$as_save_IFS
1718   test -z "$as_dir" && as_dir=.
1719   $as_echo "PATH: $as_dir"
1720 done
1721 IFS=$as_save_IFS
1722
1723 } >&5
1724
1725 cat >&5 <<_ACEOF
1726
1727
1728 ## ----------- ##
1729 ## Core tests. ##
1730 ## ----------- ##
1731
1732 _ACEOF
1733
1734
1735 # Keep a trace of the command line.
1736 # Strip out --no-create and --no-recursion so they do not pile up.
1737 # Strip out --silent because we don't want to record it for future runs.
1738 # Also quote any args containing shell meta-characters.
1739 # Make two passes to allow for proper duplicate-argument suppression.
1740 ac_configure_args=
1741 ac_configure_args0=
1742 ac_configure_args1=
1743 ac_must_keep_next=false
1744 for ac_pass in 1 2
1745 do
1746   for ac_arg
1747   do
1748     case $ac_arg in
1749     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1750     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1751     | -silent | --silent | --silen | --sile | --sil)
1752       continue ;;
1753     *\'*)
1754       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1755     esac
1756     case $ac_pass in
1757     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1758     2)
1759       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1760       if test $ac_must_keep_next = true; then
1761         ac_must_keep_next=false # Got value, back to normal.
1762       else
1763         case $ac_arg in
1764           *=* | --config-cache | -C | -disable-* | --disable-* \
1765           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1766           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1767           | -with-* | --with-* | -without-* | --without-* | --x)
1768             case "$ac_configure_args0 " in
1769               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1770             esac
1771             ;;
1772           -* ) ac_must_keep_next=true ;;
1773         esac
1774       fi
1775       ac_configure_args="$ac_configure_args '$ac_arg'"
1776       ;;
1777     esac
1778   done
1779 done
1780 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1781 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1782
1783 # When interrupted or exit'd, cleanup temporary files, and complete
1784 # config.log.  We remove comments because anyway the quotes in there
1785 # would cause problems or look ugly.
1786 # WARNING: Use '\'' to represent an apostrophe within the trap.
1787 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1788 trap 'exit_status=$?
1789   # Save into config.log some information that might help in debugging.
1790   {
1791     echo
1792
1793     cat <<\_ASBOX
1794 ## ---------------- ##
1795 ## Cache variables. ##
1796 ## ---------------- ##
1797 _ASBOX
1798     echo
1799     # The following way of writing the cache mishandles newlines in values,
1800 (
1801   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1802     eval ac_val=\$$ac_var
1803     case $ac_val in #(
1804     *${as_nl}*)
1805       case $ac_var in #(
1806       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1807 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1808       esac
1809       case $ac_var in #(
1810       _ | IFS | as_nl) ;; #(
1811       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1812       *) $as_unset $ac_var ;;
1813       esac ;;
1814     esac
1815   done
1816   (set) 2>&1 |
1817     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1818     *${as_nl}ac_space=\ *)
1819       sed -n \
1820         "s/'\''/'\''\\\\'\'''\''/g;
1821           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1822       ;; #(
1823     *)
1824       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1825       ;;
1826     esac |
1827     sort
1828 )
1829     echo
1830
1831     cat <<\_ASBOX
1832 ## ----------------- ##
1833 ## Output variables. ##
1834 ## ----------------- ##
1835 _ASBOX
1836     echo
1837     for ac_var in $ac_subst_vars
1838     do
1839       eval ac_val=\$$ac_var
1840       case $ac_val in
1841       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1842       esac
1843       $as_echo "$ac_var='\''$ac_val'\''"
1844     done | sort
1845     echo
1846
1847     if test -n "$ac_subst_files"; then
1848       cat <<\_ASBOX
1849 ## ------------------- ##
1850 ## File substitutions. ##
1851 ## ------------------- ##
1852 _ASBOX
1853       echo
1854       for ac_var in $ac_subst_files
1855       do
1856         eval ac_val=\$$ac_var
1857         case $ac_val in
1858         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859         esac
1860         $as_echo "$ac_var='\''$ac_val'\''"
1861       done | sort
1862       echo
1863     fi
1864
1865     if test -s confdefs.h; then
1866       cat <<\_ASBOX
1867 ## ----------- ##
1868 ## confdefs.h. ##
1869 ## ----------- ##
1870 _ASBOX
1871       echo
1872       cat confdefs.h
1873       echo
1874     fi
1875     test "$ac_signal" != 0 &&
1876       $as_echo "$as_me: caught signal $ac_signal"
1877     $as_echo "$as_me: exit $exit_status"
1878   } >&5
1879   rm -f core *.core core.conftest.* &&
1880     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1881     exit $exit_status
1882 ' 0
1883 for ac_signal in 1 2 13 15; do
1884   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1885 done
1886 ac_signal=0
1887
1888 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1889 rm -f -r conftest* confdefs.h
1890
1891 # Predefined preprocessor variables.
1892
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_NAME "$PACKAGE_NAME"
1895 _ACEOF
1896
1897
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1900 _ACEOF
1901
1902
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1905 _ACEOF
1906
1907
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_STRING "$PACKAGE_STRING"
1910 _ACEOF
1911
1912
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1915 _ACEOF
1916
1917
1918 # Let the site file select an alternate cache file if it wants to.
1919 # Prefer an explicitly selected file to automatically selected ones.
1920 ac_site_file1=NONE
1921 ac_site_file2=NONE
1922 if test -n "$CONFIG_SITE"; then
1923   ac_site_file1=$CONFIG_SITE
1924 elif test "x$prefix" != xNONE; then
1925   ac_site_file1=$prefix/share/config.site
1926   ac_site_file2=$prefix/etc/config.site
1927 else
1928   ac_site_file1=$ac_default_prefix/share/config.site
1929   ac_site_file2=$ac_default_prefix/etc/config.site
1930 fi
1931 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1932 do
1933   test "x$ac_site_file" = xNONE && continue
1934   if test -r "$ac_site_file"; then
1935     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1936 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1937     sed 's/^/| /' "$ac_site_file" >&5
1938     . "$ac_site_file"
1939   fi
1940 done
1941
1942 if test -r "$cache_file"; then
1943   # Some versions of bash will fail to source /dev/null (special
1944   # files actually), so we avoid doing that.
1945   if test -f "$cache_file"; then
1946     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1947 $as_echo "$as_me: loading cache $cache_file" >&6;}
1948     case $cache_file in
1949       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1950       *)                      . "./$cache_file";;
1951     esac
1952   fi
1953 else
1954   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1955 $as_echo "$as_me: creating cache $cache_file" >&6;}
1956   >$cache_file
1957 fi
1958
1959 # Check that the precious variables saved in the cache have kept the same
1960 # value.
1961 ac_cache_corrupted=false
1962 for ac_var in $ac_precious_vars; do
1963   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1964   eval ac_new_set=\$ac_env_${ac_var}_set
1965   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1966   eval ac_new_val=\$ac_env_${ac_var}_value
1967   case $ac_old_set,$ac_new_set in
1968     set,)
1969       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1970 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1971       ac_cache_corrupted=: ;;
1972     ,set)
1973       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1974 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1975       ac_cache_corrupted=: ;;
1976     ,);;
1977     *)
1978       if test "x$ac_old_val" != "x$ac_new_val"; then
1979         # differences in whitespace do not lead to failure.
1980         ac_old_val_w=`echo x $ac_old_val`
1981         ac_new_val_w=`echo x $ac_new_val`
1982         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1983           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1984 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1985           ac_cache_corrupted=:
1986         else
1987           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1988 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1989           eval $ac_var=\$ac_old_val
1990         fi
1991         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1992 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1993         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1994 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1995       fi;;
1996   esac
1997   # Pass precious variables to config.status.
1998   if test "$ac_new_set" = set; then
1999     case $ac_new_val in
2000     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2001     *) ac_arg=$ac_var=$ac_new_val ;;
2002     esac
2003     case " $ac_configure_args " in
2004       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2005       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2006     esac
2007   fi
2008 done
2009 if $ac_cache_corrupted; then
2010   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2012   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2013 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2014   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2015 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2016    { (exit 1); exit 1; }; }
2017 fi
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043 ac_ext=c
2044 ac_cpp='$CPP $CPPFLAGS'
2045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2048
2049
2050
2051 ac_config_headers="$ac_config_headers config.h"
2052
2053
2054 am__api_version='1.10'
2055
2056 ac_aux_dir=
2057 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2058   if test -f "$ac_dir/install-sh"; then
2059     ac_aux_dir=$ac_dir
2060     ac_install_sh="$ac_aux_dir/install-sh -c"
2061     break
2062   elif test -f "$ac_dir/install.sh"; then
2063     ac_aux_dir=$ac_dir
2064     ac_install_sh="$ac_aux_dir/install.sh -c"
2065     break
2066   elif test -f "$ac_dir/shtool"; then
2067     ac_aux_dir=$ac_dir
2068     ac_install_sh="$ac_aux_dir/shtool install -c"
2069     break
2070   fi
2071 done
2072 if test -z "$ac_aux_dir"; then
2073   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2074 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2075    { (exit 1); exit 1; }; }
2076 fi
2077
2078 # These three variables are undocumented and unsupported,
2079 # and are intended to be withdrawn in a future Autoconf release.
2080 # They can cause serious problems if a builder's source tree is in a directory
2081 # whose full name contains unusual characters.
2082 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2083 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2084 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2085
2086
2087 # Find a good install program.  We prefer a C program (faster),
2088 # so one script is as good as another.  But avoid the broken or
2089 # incompatible versions:
2090 # SysV /etc/install, /usr/sbin/install
2091 # SunOS /usr/etc/install
2092 # IRIX /sbin/install
2093 # AIX /bin/install
2094 # AmigaOS /C/install, which installs bootblocks on floppy discs
2095 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2096 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2097 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2098 # OS/2's system install, which has a completely different semantic
2099 # ./install, which can be erroneously created by make from ./install.sh.
2100 # Reject install programs that cannot install multiple files.
2101 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2102 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2103 if test -z "$INSTALL"; then
2104 if test "${ac_cv_path_install+set}" = set; then
2105   $as_echo_n "(cached) " >&6
2106 else
2107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 for as_dir in $PATH
2109 do
2110   IFS=$as_save_IFS
2111   test -z "$as_dir" && as_dir=.
2112   # Account for people who put trailing slashes in PATH elements.
2113 case $as_dir/ in
2114   ./ | .// | /cC/* | \
2115   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2116   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2117   /usr/ucb/* ) ;;
2118   *)
2119     # OSF1 and SCO ODT 3.0 have their own names for install.
2120     # Don't use installbsd from OSF since it installs stuff as root
2121     # by default.
2122     for ac_prog in ginstall scoinst install; do
2123       for ac_exec_ext in '' $ac_executable_extensions; do
2124         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2125           if test $ac_prog = install &&
2126             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2127             # AIX install.  It has an incompatible calling convention.
2128             :
2129           elif test $ac_prog = install &&
2130             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2131             # program-specific install script used by HP pwplus--don't use.
2132             :
2133           else
2134             rm -rf conftest.one conftest.two conftest.dir
2135             echo one > conftest.one
2136             echo two > conftest.two
2137             mkdir conftest.dir
2138             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2139               test -s conftest.one && test -s conftest.two &&
2140               test -s conftest.dir/conftest.one &&
2141               test -s conftest.dir/conftest.two
2142             then
2143               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2144               break 3
2145             fi
2146           fi
2147         fi
2148       done
2149     done
2150     ;;
2151 esac
2152
2153 done
2154 IFS=$as_save_IFS
2155
2156 rm -rf conftest.one conftest.two conftest.dir
2157
2158 fi
2159   if test "${ac_cv_path_install+set}" = set; then
2160     INSTALL=$ac_cv_path_install
2161   else
2162     # As a last resort, use the slow shell script.  Don't cache a
2163     # value for INSTALL within a source directory, because that will
2164     # break other packages using the cache if that directory is
2165     # removed, or if the value is a relative name.
2166     INSTALL=$ac_install_sh
2167   fi
2168 fi
2169 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2170 $as_echo "$INSTALL" >&6; }
2171
2172 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2173 # It thinks the first close brace ends the variable substitution.
2174 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2175
2176 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2177
2178 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2179
2180 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2181 $as_echo_n "checking whether build environment is sane... " >&6; }
2182 # Just in case
2183 sleep 1
2184 echo timestamp > conftest.file
2185 # Do `set' in a subshell so we don't clobber the current shell's
2186 # arguments.  Must try -L first in case configure is actually a
2187 # symlink; some systems play weird games with the mod time of symlinks
2188 # (eg FreeBSD returns the mod time of the symlink's containing
2189 # directory).
2190 if (
2191    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2192    if test "$*" = "X"; then
2193       # -L didn't work.
2194       set X `ls -t $srcdir/configure conftest.file`
2195    fi
2196    rm -f conftest.file
2197    if test "$*" != "X $srcdir/configure conftest.file" \
2198       && test "$*" != "X conftest.file $srcdir/configure"; then
2199
2200       # If neither matched, then we have a broken ls.  This can happen
2201       # if, for instance, CONFIG_SHELL is bash and it inherits a
2202       # broken ls alias from the environment.  This has actually
2203       # happened.  Such a system could not be considered "sane".
2204       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2205 alias in your environment" >&5
2206 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2207 alias in your environment" >&2;}
2208    { (exit 1); exit 1; }; }
2209    fi
2210
2211    test "$2" = conftest.file
2212    )
2213 then
2214    # Ok.
2215    :
2216 else
2217    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2218 Check your system clock" >&5
2219 $as_echo "$as_me: error: newly created file is older than distributed files!
2220 Check your system clock" >&2;}
2221    { (exit 1); exit 1; }; }
2222 fi
2223 { $as_echo "$as_me:$LINENO: result: yes" >&5
2224 $as_echo "yes" >&6; }
2225 test "$program_prefix" != NONE &&
2226   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2227 # Use a double $ so make ignores it.
2228 test "$program_suffix" != NONE &&
2229   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2230 # Double any \ or $.
2231 # By default was `s,x,x', remove it if useless.
2232 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2233 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2234
2235 # expand $ac_aux_dir to an absolute path
2236 am_aux_dir=`cd $ac_aux_dir && pwd`
2237
2238 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2239 # Use eval to expand $SHELL
2240 if eval "$MISSING --run true"; then
2241   am_missing_run="$MISSING --run "
2242 else
2243   am_missing_run=
2244   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2245 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2246 fi
2247
2248 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2249 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2250 if test -z "$MKDIR_P"; then
2251   if test "${ac_cv_path_mkdir+set}" = set; then
2252   $as_echo_n "(cached) " >&6
2253 else
2254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2256 do
2257   IFS=$as_save_IFS
2258   test -z "$as_dir" && as_dir=.
2259   for ac_prog in mkdir gmkdir; do
2260          for ac_exec_ext in '' $ac_executable_extensions; do
2261            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2262            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2263              'mkdir (GNU coreutils) '* | \
2264              'mkdir (coreutils) '* | \
2265              'mkdir (fileutils) '4.1*)
2266                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2267                break 3;;
2268            esac
2269          done
2270        done
2271 done
2272 IFS=$as_save_IFS
2273
2274 fi
2275
2276   if test "${ac_cv_path_mkdir+set}" = set; then
2277     MKDIR_P="$ac_cv_path_mkdir -p"
2278   else
2279     # As a last resort, use the slow shell script.  Don't cache a
2280     # value for MKDIR_P within a source directory, because that will
2281     # break other packages using the cache if that directory is
2282     # removed, or if the value is a relative name.
2283     test -d ./--version && rmdir ./--version
2284     MKDIR_P="$ac_install_sh -d"
2285   fi
2286 fi
2287 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2288 $as_echo "$MKDIR_P" >&6; }
2289
2290 mkdir_p="$MKDIR_P"
2291 case $mkdir_p in
2292   [\\/$]* | ?:[\\/]*) ;;
2293   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2294 esac
2295
2296 for ac_prog in gawk mawk nawk awk
2297 do
2298   # Extract the first word of "$ac_prog", so it can be a program name with args.
2299 set dummy $ac_prog; ac_word=$2
2300 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 $as_echo_n "checking for $ac_word... " >&6; }
2302 if test "${ac_cv_prog_AWK+set}" = set; then
2303   $as_echo_n "(cached) " >&6
2304 else
2305   if test -n "$AWK"; then
2306   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2307 else
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2310 do
2311   IFS=$as_save_IFS
2312   test -z "$as_dir" && as_dir=.
2313   for ac_exec_ext in '' $ac_executable_extensions; do
2314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2315     ac_cv_prog_AWK="$ac_prog"
2316     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317     break 2
2318   fi
2319 done
2320 done
2321 IFS=$as_save_IFS
2322
2323 fi
2324 fi
2325 AWK=$ac_cv_prog_AWK
2326 if test -n "$AWK"; then
2327   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2328 $as_echo "$AWK" >&6; }
2329 else
2330   { $as_echo "$as_me:$LINENO: result: no" >&5
2331 $as_echo "no" >&6; }
2332 fi
2333
2334
2335   test -n "$AWK" && break
2336 done
2337
2338 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2339 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2340 set x ${MAKE-make}
2341 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2342 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2343   $as_echo_n "(cached) " >&6
2344 else
2345   cat >conftest.make <<\_ACEOF
2346 SHELL = /bin/sh
2347 all:
2348         @echo '@@@%%%=$(MAKE)=@@@%%%'
2349 _ACEOF
2350 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2351 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2352   *@@@%%%=?*=@@@%%%*)
2353     eval ac_cv_prog_make_${ac_make}_set=yes;;
2354   *)
2355     eval ac_cv_prog_make_${ac_make}_set=no;;
2356 esac
2357 rm -f conftest.make
2358 fi
2359 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2360   { $as_echo "$as_me:$LINENO: result: yes" >&5
2361 $as_echo "yes" >&6; }
2362   SET_MAKE=
2363 else
2364   { $as_echo "$as_me:$LINENO: result: no" >&5
2365 $as_echo "no" >&6; }
2366   SET_MAKE="MAKE=${MAKE-make}"
2367 fi
2368
2369 rm -rf .tst 2>/dev/null
2370 mkdir .tst 2>/dev/null
2371 if test -d .tst; then
2372   am__leading_dot=.
2373 else
2374   am__leading_dot=_
2375 fi
2376 rmdir .tst 2>/dev/null
2377
2378 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2379   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2380   # is not polluted with repeated "-I."
2381   am__isrc=' -I$(srcdir)'
2382   # test to see if srcdir already configured
2383   if test -f $srcdir/config.status; then
2384     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2385 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2386    { (exit 1); exit 1; }; }
2387   fi
2388 fi
2389
2390 # test whether we have cygpath
2391 if test -z "$CYGPATH_W"; then
2392   if (cygpath --version) >/dev/null 2>/dev/null; then
2393     CYGPATH_W='cygpath -w'
2394   else
2395     CYGPATH_W=echo
2396   fi
2397 fi
2398
2399
2400 # Define the identity of the package.
2401  PACKAGE='libasyncns'
2402  VERSION='0.7'
2403
2404
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE "$PACKAGE"
2407 _ACEOF
2408
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define VERSION "$VERSION"
2412 _ACEOF
2413
2414 # Some tools Automake needs.
2415
2416 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2417
2418
2419 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2420
2421
2422 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2423
2424
2425 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2426
2427
2428 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2429
2430 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2431
2432 # Installed binaries are usually stripped using `strip' when the user
2433 # run `make install-strip'.  However `strip' might not be the right
2434 # tool to use in cross-compilation environments, therefore Automake
2435 # will honor the `STRIP' environment variable to overrule this program.
2436 if test "$cross_compiling" != no; then
2437   if test -n "$ac_tool_prefix"; then
2438   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2439 set dummy ${ac_tool_prefix}strip; ac_word=$2
2440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 $as_echo_n "checking for $ac_word... " >&6; }
2442 if test "${ac_cv_prog_STRIP+set}" = set; then
2443   $as_echo_n "(cached) " >&6
2444 else
2445   if test -n "$STRIP"; then
2446   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451   IFS=$as_save_IFS
2452   test -z "$as_dir" && as_dir=.
2453   for ac_exec_ext in '' $ac_executable_extensions; do
2454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2456     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457     break 2
2458   fi
2459 done
2460 done
2461 IFS=$as_save_IFS
2462
2463 fi
2464 fi
2465 STRIP=$ac_cv_prog_STRIP
2466 if test -n "$STRIP"; then
2467   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2468 $as_echo "$STRIP" >&6; }
2469 else
2470   { $as_echo "$as_me:$LINENO: result: no" >&5
2471 $as_echo "no" >&6; }
2472 fi
2473
2474
2475 fi
2476 if test -z "$ac_cv_prog_STRIP"; then
2477   ac_ct_STRIP=$STRIP
2478   # Extract the first word of "strip", so it can be a program name with args.
2479 set dummy strip; ac_word=$2
2480 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 $as_echo_n "checking for $ac_word... " >&6; }
2482 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2483   $as_echo_n "(cached) " >&6
2484 else
2485   if test -n "$ac_ct_STRIP"; then
2486   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491   IFS=$as_save_IFS
2492   test -z "$as_dir" && as_dir=.
2493   for ac_exec_ext in '' $ac_executable_extensions; do
2494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2495     ac_cv_prog_ac_ct_STRIP="strip"
2496     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497     break 2
2498   fi
2499 done
2500 done
2501 IFS=$as_save_IFS
2502
2503 fi
2504 fi
2505 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2506 if test -n "$ac_ct_STRIP"; then
2507   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2508 $as_echo "$ac_ct_STRIP" >&6; }
2509 else
2510   { $as_echo "$as_me:$LINENO: result: no" >&5
2511 $as_echo "no" >&6; }
2512 fi
2513
2514   if test "x$ac_ct_STRIP" = x; then
2515     STRIP=":"
2516   else
2517     case $cross_compiling:$ac_tool_warned in
2518 yes:)
2519 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2521 ac_tool_warned=yes ;;
2522 esac
2523     STRIP=$ac_ct_STRIP
2524   fi
2525 else
2526   STRIP="$ac_cv_prog_STRIP"
2527 fi
2528
2529 fi
2530 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2531
2532 # We need awk for the "check" target.  The system "awk" is bad on
2533 # some platforms.
2534 # Always define AMTAR for backward compatibility.
2535
2536 AMTAR=${AMTAR-"${am_missing_run}tar"}
2537
2538 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2539
2540
2541
2542
2543
2544
2545 PACKAGE_URL=http://0pointer.de/lennart/projects/libasyncns/
2546
2547
2548 LIBASYNCNS_VERSION_INFO=3:1:3
2549
2550
2551 if type -p stow > /dev/null && test -d /usr/local/stow ; then
2552    { $as_echo "$as_me:$LINENO: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&5
2553 $as_echo "$as_me: *** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***" >&6;}
2554    ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
2555 fi
2556
2557 # Checks for programs.
2558 ac_ext=c
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563 if test -n "$ac_tool_prefix"; then
2564   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2565 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if test "${ac_cv_prog_CC+set}" = set; then
2569   $as_echo_n "(cached) " >&6
2570 else
2571   if test -n "$CC"; then
2572   ac_cv_prog_CC="$CC" # Let the user override the test.
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2576 do
2577   IFS=$as_save_IFS
2578   test -z "$as_dir" && as_dir=.
2579   for ac_exec_ext in '' $ac_executable_extensions; do
2580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2582     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583     break 2
2584   fi
2585 done
2586 done
2587 IFS=$as_save_IFS
2588
2589 fi
2590 fi
2591 CC=$ac_cv_prog_CC
2592 if test -n "$CC"; then
2593   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2594 $as_echo "$CC" >&6; }
2595 else
2596   { $as_echo "$as_me:$LINENO: result: no" >&5
2597 $as_echo "no" >&6; }
2598 fi
2599
2600
2601 fi
2602 if test -z "$ac_cv_prog_CC"; then
2603   ac_ct_CC=$CC
2604   # Extract the first word of "gcc", so it can be a program name with args.
2605 set dummy gcc; ac_word=$2
2606 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2607 $as_echo_n "checking for $ac_word... " >&6; }
2608 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2609   $as_echo_n "(cached) " >&6
2610 else
2611   if test -n "$ac_ct_CC"; then
2612   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2613 else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2616 do
2617   IFS=$as_save_IFS
2618   test -z "$as_dir" && as_dir=.
2619   for ac_exec_ext in '' $ac_executable_extensions; do
2620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621     ac_cv_prog_ac_ct_CC="gcc"
2622     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623     break 2
2624   fi
2625 done
2626 done
2627 IFS=$as_save_IFS
2628
2629 fi
2630 fi
2631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2632 if test -n "$ac_ct_CC"; then
2633   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2634 $as_echo "$ac_ct_CC" >&6; }
2635 else
2636   { $as_echo "$as_me:$LINENO: result: no" >&5
2637 $as_echo "no" >&6; }
2638 fi
2639
2640   if test "x$ac_ct_CC" = x; then
2641     CC=""
2642   else
2643     case $cross_compiling:$ac_tool_warned in
2644 yes:)
2645 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2647 ac_tool_warned=yes ;;
2648 esac
2649     CC=$ac_ct_CC
2650   fi
2651 else
2652   CC="$ac_cv_prog_CC"
2653 fi
2654
2655 if test -z "$CC"; then
2656           if test -n "$ac_tool_prefix"; then
2657     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2658 set dummy ${ac_tool_prefix}cc; ac_word=$2
2659 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if test "${ac_cv_prog_CC+set}" = set; then
2662   $as_echo_n "(cached) " >&6
2663 else
2664   if test -n "$CC"; then
2665   ac_cv_prog_CC="$CC" # Let the user override the test.
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670   IFS=$as_save_IFS
2671   test -z "$as_dir" && as_dir=.
2672   for ac_exec_ext in '' $ac_executable_extensions; do
2673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674     ac_cv_prog_CC="${ac_tool_prefix}cc"
2675     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676     break 2
2677   fi
2678 done
2679 done
2680 IFS=$as_save_IFS
2681
2682 fi
2683 fi
2684 CC=$ac_cv_prog_CC
2685 if test -n "$CC"; then
2686   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2687 $as_echo "$CC" >&6; }
2688 else
2689   { $as_echo "$as_me:$LINENO: result: no" >&5
2690 $as_echo "no" >&6; }
2691 fi
2692
2693
2694   fi
2695 fi
2696 if test -z "$CC"; then
2697   # Extract the first word of "cc", so it can be a program name with args.
2698 set dummy cc; ac_word=$2
2699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if test "${ac_cv_prog_CC+set}" = set; then
2702   $as_echo_n "(cached) " >&6
2703 else
2704   if test -n "$CC"; then
2705   ac_cv_prog_CC="$CC" # Let the user override the test.
2706 else
2707   ac_prog_rejected=no
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711   IFS=$as_save_IFS
2712   test -z "$as_dir" && as_dir=.
2713   for ac_exec_ext in '' $ac_executable_extensions; do
2714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2716        ac_prog_rejected=yes
2717        continue
2718      fi
2719     ac_cv_prog_CC="cc"
2720     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721     break 2
2722   fi
2723 done
2724 done
2725 IFS=$as_save_IFS
2726
2727 if test $ac_prog_rejected = yes; then
2728   # We found a bogon in the path, so make sure we never use it.
2729   set dummy $ac_cv_prog_CC
2730   shift
2731   if test $# != 0; then
2732     # We chose a different compiler from the bogus one.
2733     # However, it has the same basename, so the bogon will be chosen
2734     # first if we set CC to just the basename; use the full file name.
2735     shift
2736     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2737   fi
2738 fi
2739 fi
2740 fi
2741 CC=$ac_cv_prog_CC
2742 if test -n "$CC"; then
2743   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2744 $as_echo "$CC" >&6; }
2745 else
2746   { $as_echo "$as_me:$LINENO: result: no" >&5
2747 $as_echo "no" >&6; }
2748 fi
2749
2750
2751 fi
2752 if test -z "$CC"; then
2753   if test -n "$ac_tool_prefix"; then
2754   for ac_prog in cl.exe
2755   do
2756     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if test "${ac_cv_prog_CC+set}" = set; then
2761   $as_echo_n "(cached) " >&6
2762 else
2763   if test -n "$CC"; then
2764   ac_cv_prog_CC="$CC" # Let the user override the test.
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2768 do
2769   IFS=$as_save_IFS
2770   test -z "$as_dir" && as_dir=.
2771   for ac_exec_ext in '' $ac_executable_extensions; do
2772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2774     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2775     break 2
2776   fi
2777 done
2778 done
2779 IFS=$as_save_IFS
2780
2781 fi
2782 fi
2783 CC=$ac_cv_prog_CC
2784 if test -n "$CC"; then
2785   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2786 $as_echo "$CC" >&6; }
2787 else
2788   { $as_echo "$as_me:$LINENO: result: no" >&5
2789 $as_echo "no" >&6; }
2790 fi
2791
2792
2793     test -n "$CC" && break
2794   done
2795 fi
2796 if test -z "$CC"; then
2797   ac_ct_CC=$CC
2798   for ac_prog in cl.exe
2799 do
2800   # Extract the first word of "$ac_prog", so it can be a program name with args.
2801 set dummy $ac_prog; ac_word=$2
2802 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2803 $as_echo_n "checking for $ac_word... " >&6; }
2804 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2805   $as_echo_n "(cached) " >&6
2806 else
2807   if test -n "$ac_ct_CC"; then
2808   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2809 else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH
2812 do
2813   IFS=$as_save_IFS
2814   test -z "$as_dir" && as_dir=.
2815   for ac_exec_ext in '' $ac_executable_extensions; do
2816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2817     ac_cv_prog_ac_ct_CC="$ac_prog"
2818     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2819     break 2
2820   fi
2821 done
2822 done
2823 IFS=$as_save_IFS
2824
2825 fi
2826 fi
2827 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2828 if test -n "$ac_ct_CC"; then
2829   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2830 $as_echo "$ac_ct_CC" >&6; }
2831 else
2832   { $as_echo "$as_me:$LINENO: result: no" >&5
2833 $as_echo "no" >&6; }
2834 fi
2835
2836
2837   test -n "$ac_ct_CC" && break
2838 done
2839
2840   if test "x$ac_ct_CC" = x; then
2841     CC=""
2842   else
2843     case $cross_compiling:$ac_tool_warned in
2844 yes:)
2845 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847 ac_tool_warned=yes ;;
2848 esac
2849     CC=$ac_ct_CC
2850   fi
2851 fi
2852
2853 fi
2854
2855
2856 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2858 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2859 See \`config.log' for more details." >&5
2860 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2861 See \`config.log' for more details." >&2;}
2862    { (exit 1); exit 1; }; }; }
2863
2864 # Provide some information about the compiler.
2865 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2866 set X $ac_compile
2867 ac_compiler=$2
2868 { (ac_try="$ac_compiler --version >&5"
2869 case "(($ac_try" in
2870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871   *) ac_try_echo=$ac_try;;
2872 esac
2873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2874 $as_echo "$ac_try_echo") >&5
2875   (eval "$ac_compiler --version >&5") 2>&5
2876   ac_status=$?
2877   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878   (exit $ac_status); }
2879 { (ac_try="$ac_compiler -v >&5"
2880 case "(($ac_try" in
2881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882   *) ac_try_echo=$ac_try;;
2883 esac
2884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2885 $as_echo "$ac_try_echo") >&5
2886   (eval "$ac_compiler -v >&5") 2>&5
2887   ac_status=$?
2888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); }
2890 { (ac_try="$ac_compiler -V >&5"
2891 case "(($ac_try" in
2892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893   *) ac_try_echo=$ac_try;;
2894 esac
2895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2896 $as_echo "$ac_try_echo") >&5
2897   (eval "$ac_compiler -V >&5") 2>&5
2898   ac_status=$?
2899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }
2901
2902 cat >conftest.$ac_ext <<_ACEOF
2903 /* confdefs.h.  */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h.  */
2908
2909 int
2910 main ()
2911 {
2912
2913   ;
2914   return 0;
2915 }
2916 _ACEOF
2917 ac_clean_files_save=$ac_clean_files
2918 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2919 # Try to create an executable without -o first, disregard a.out.
2920 # It will help us diagnose broken compilers, and finding out an intuition
2921 # of exeext.
2922 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2923 $as_echo_n "checking for C compiler default output file name... " >&6; }
2924 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2925
2926 # The possible output files:
2927 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2928
2929 ac_rmfiles=
2930 for ac_file in $ac_files
2931 do
2932   case $ac_file in
2933     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2934     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2935   esac
2936 done
2937 rm -f $ac_rmfiles
2938
2939 if { (ac_try="$ac_link_default"
2940 case "(($ac_try" in
2941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942   *) ac_try_echo=$ac_try;;
2943 esac
2944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2945 $as_echo "$ac_try_echo") >&5
2946   (eval "$ac_link_default") 2>&5
2947   ac_status=$?
2948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); }; then
2950   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2951 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2952 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2953 # so that the user can short-circuit this test for compilers unknown to
2954 # Autoconf.
2955 for ac_file in $ac_files ''
2956 do
2957   test -f "$ac_file" || continue
2958   case $ac_file in
2959     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2960         ;;
2961     [ab].out )
2962         # We found the default executable, but exeext='' is most
2963         # certainly right.
2964         break;;
2965     *.* )
2966         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2967         then :; else
2968            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2969         fi
2970         # We set ac_cv_exeext here because the later test for it is not
2971         # safe: cross compilers may not add the suffix if given an `-o'
2972         # argument, so we may need to know it at that point already.
2973         # Even if this section looks crufty: it has the advantage of
2974         # actually working.
2975         break;;
2976     * )
2977         break;;
2978   esac
2979 done
2980 test "$ac_cv_exeext" = no && ac_cv_exeext=
2981
2982 else
2983   ac_file=''
2984 fi
2985
2986 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2987 $as_echo "$ac_file" >&6; }
2988 if test -z "$ac_file"; then
2989   $as_echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2995 See \`config.log' for more details." >&5
2996 $as_echo "$as_me: error: C compiler cannot create executables
2997 See \`config.log' for more details." >&2;}
2998    { (exit 77); exit 77; }; }; }
2999 fi
3000
3001 ac_exeext=$ac_cv_exeext
3002
3003 # Check that the compiler produces executables we can run.  If not, either
3004 # the compiler is broken, or we cross compile.
3005 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3006 $as_echo_n "checking whether the C compiler works... " >&6; }
3007 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3008 # If not cross compiling, check that we can run a simple program.
3009 if test "$cross_compiling" != yes; then
3010   if { ac_try='./$ac_file'
3011   { (case "(($ac_try" in
3012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013   *) ac_try_echo=$ac_try;;
3014 esac
3015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3016 $as_echo "$ac_try_echo") >&5
3017   (eval "$ac_try") 2>&5
3018   ac_status=$?
3019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); }; }; then
3021     cross_compiling=no
3022   else
3023     if test "$cross_compiling" = maybe; then
3024         cross_compiling=yes
3025     else
3026         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3029 If you meant to cross compile, use \`--host'.
3030 See \`config.log' for more details." >&5
3031 $as_echo "$as_me: error: cannot run C compiled programs.
3032 If you meant to cross compile, use \`--host'.
3033 See \`config.log' for more details." >&2;}
3034    { (exit 1); exit 1; }; }; }
3035     fi
3036   fi
3037 fi
3038 { $as_echo "$as_me:$LINENO: result: yes" >&5
3039 $as_echo "yes" >&6; }
3040
3041 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3042 ac_clean_files=$ac_clean_files_save
3043 # Check that the compiler produces executables we can run.  If not, either
3044 # the compiler is broken, or we cross compile.
3045 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3046 $as_echo_n "checking whether we are cross compiling... " >&6; }
3047 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3048 $as_echo "$cross_compiling" >&6; }
3049
3050 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3051 $as_echo_n "checking for suffix of executables... " >&6; }
3052 if { (ac_try="$ac_link"
3053 case "(($ac_try" in
3054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055   *) ac_try_echo=$ac_try;;
3056 esac
3057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3058 $as_echo "$ac_try_echo") >&5
3059   (eval "$ac_link") 2>&5
3060   ac_status=$?
3061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); }; then
3063   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3064 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3065 # work properly (i.e., refer to `conftest.exe'), while it won't with
3066 # `rm'.
3067 for ac_file in conftest.exe conftest conftest.*; do
3068   test -f "$ac_file" || continue
3069   case $ac_file in
3070     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3071     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3072           break;;
3073     * ) break;;
3074   esac
3075 done
3076 else
3077   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3079 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3080 See \`config.log' for more details." >&5
3081 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3082 See \`config.log' for more details." >&2;}
3083    { (exit 1); exit 1; }; }; }
3084 fi
3085
3086 rm -f conftest$ac_cv_exeext
3087 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3088 $as_echo "$ac_cv_exeext" >&6; }
3089
3090 rm -f conftest.$ac_ext
3091 EXEEXT=$ac_cv_exeext
3092 ac_exeext=$EXEEXT
3093 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3094 $as_echo_n "checking for suffix of object files... " >&6; }
3095 if test "${ac_cv_objext+set}" = set; then
3096   $as_echo_n "(cached) " >&6
3097 else
3098   cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h.  */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h.  */
3104
3105 int
3106 main ()
3107 {
3108
3109   ;
3110   return 0;
3111 }
3112 _ACEOF
3113 rm -f conftest.o conftest.obj
3114 if { (ac_try="$ac_compile"
3115 case "(($ac_try" in
3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117   *) ac_try_echo=$ac_try;;
3118 esac
3119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3120 $as_echo "$ac_try_echo") >&5
3121   (eval "$ac_compile") 2>&5
3122   ac_status=$?
3123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); }; then
3125   for ac_file in conftest.o conftest.obj conftest.*; do
3126   test -f "$ac_file" || continue;
3127   case $ac_file in
3128     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3129     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3130        break;;
3131   esac
3132 done
3133 else
3134   $as_echo "$as_me: failed program was:" >&5
3135 sed 's/^/| /' conftest.$ac_ext >&5
3136
3137 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3140 See \`config.log' for more details." >&5
3141 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3142 See \`config.log' for more details." >&2;}
3143    { (exit 1); exit 1; }; }; }
3144 fi
3145
3146 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3147 fi
3148 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3149 $as_echo "$ac_cv_objext" >&6; }
3150 OBJEXT=$ac_cv_objext
3151 ac_objext=$OBJEXT
3152 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3153 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3154 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3155   $as_echo_n "(cached) " >&6
3156 else
3157   cat >conftest.$ac_ext <<_ACEOF
3158 /* confdefs.h.  */
3159 _ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h.  */
3163
3164 int
3165 main ()
3166 {
3167 #ifndef __GNUC__
3168        choke me
3169 #endif
3170
3171   ;
3172   return 0;
3173 }
3174 _ACEOF
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3182 $as_echo "$ac_try_echo") >&5
3183   (eval "$ac_compile") 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } && {
3190          test -z "$ac_c_werror_flag" ||
3191          test ! -s conftest.err
3192        } && test -s conftest.$ac_objext; then
3193   ac_compiler_gnu=yes
3194 else
3195   $as_echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198         ac_compiler_gnu=no
3199 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3203
3204 fi
3205 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3206 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3207 if test $ac_compiler_gnu = yes; then
3208   GCC=yes
3209 else
3210   GCC=
3211 fi
3212 ac_test_CFLAGS=${CFLAGS+set}
3213 ac_save_CFLAGS=$CFLAGS
3214 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3215 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3216 if test "${ac_cv_prog_cc_g+set}" = set; then
3217   $as_echo_n "(cached) " >&6
3218 else
3219   ac_save_c_werror_flag=$ac_c_werror_flag
3220    ac_c_werror_flag=yes
3221    ac_cv_prog_cc_g=no
3222    CFLAGS="-g"
3223    cat >conftest.$ac_ext <<_ACEOF
3224 /* confdefs.h.  */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h.  */
3229
3230 int
3231 main ()
3232 {
3233
3234   ;
3235   return 0;
3236 }
3237 _ACEOF
3238 rm -f conftest.$ac_objext
3239 if { (ac_try="$ac_compile"
3240 case "(($ac_try" in
3241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242   *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3245 $as_echo "$ac_try_echo") >&5
3246   (eval "$ac_compile") 2>conftest.er1
3247   ac_status=$?
3248   grep -v '^ *+' conftest.er1 >conftest.err
3249   rm -f conftest.er1
3250   cat conftest.err >&5
3251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252   (exit $ac_status); } && {
3253          test -z "$ac_c_werror_flag" ||
3254          test ! -s conftest.err
3255        } && test -s conftest.$ac_objext; then
3256   ac_cv_prog_cc_g=yes
3257 else
3258   $as_echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261         CFLAGS=""
3262       cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h.  */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h.  */
3268
3269 int
3270 main ()
3271 {
3272
3273   ;
3274   return 0;
3275 }
3276 _ACEOF
3277 rm -f conftest.$ac_objext
3278 if { (ac_try="$ac_compile"
3279 case "(($ac_try" in
3280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281   *) ac_try_echo=$ac_try;;
3282 esac
3283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3284 $as_echo "$ac_try_echo") >&5
3285   (eval "$ac_compile") 2>conftest.er1
3286   ac_status=$?
3287   grep -v '^ *+' conftest.er1 >conftest.err
3288   rm -f conftest.er1
3289   cat conftest.err >&5
3290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); } && {
3292          test -z "$ac_c_werror_flag" ||
3293          test ! -s conftest.err
3294        } && test -s conftest.$ac_objext; then
3295   :
3296 else
3297   $as_echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3299
3300         ac_c_werror_flag=$ac_save_c_werror_flag
3301          CFLAGS="-g"
3302          cat >conftest.$ac_ext <<_ACEOF
3303 /* confdefs.h.  */
3304 _ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h.  */
3308
3309 int
3310 main ()
3311 {
3312
3313   ;
3314   return 0;
3315 }
3316 _ACEOF
3317 rm -f conftest.$ac_objext
3318 if { (ac_try="$ac_compile"
3319 case "(($ac_try" in
3320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321   *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3324 $as_echo "$ac_try_echo") >&5
3325   (eval "$ac_compile") 2>conftest.er1
3326   ac_status=$?
3327   grep -v '^ *+' conftest.er1 >conftest.err
3328   rm -f conftest.er1
3329   cat conftest.err >&5
3330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331   (exit $ac_status); } && {
3332          test -z "$ac_c_werror_flag" ||
3333          test ! -s conftest.err
3334        } && test -s conftest.$ac_objext; then
3335   ac_cv_prog_cc_g=yes
3336 else
3337   $as_echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3339
3340
3341 fi
3342
3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344 fi
3345
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 fi
3348
3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350    ac_c_werror_flag=$ac_save_c_werror_flag
3351 fi
3352 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3353 $as_echo "$ac_cv_prog_cc_g" >&6; }
3354 if test "$ac_test_CFLAGS" = set; then
3355   CFLAGS=$ac_save_CFLAGS
3356 elif test $ac_cv_prog_cc_g = yes; then
3357   if test "$GCC" = yes; then
3358     CFLAGS="-g -O2"
3359   else
3360     CFLAGS="-g"
3361   fi
3362 else
3363   if test "$GCC" = yes; then
3364     CFLAGS="-O2"
3365   else
3366     CFLAGS=
3367   fi
3368 fi
3369 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3370 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3371 if test "${ac_cv_prog_cc_c89+set}" = set; then
3372   $as_echo_n "(cached) " >&6
3373 else
3374   ac_cv_prog_cc_c89=no
3375 ac_save_CC=$CC
3376 cat >conftest.$ac_ext <<_ACEOF
3377 /* confdefs.h.  */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h.  */
3382 #include <stdarg.h>
3383 #include <stdio.h>
3384 #include <sys/types.h>
3385 #include <sys/stat.h>
3386 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3387 struct buf { int x; };
3388 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3389 static char *e (p, i)
3390      char **p;
3391      int i;
3392 {
3393   return p[i];
3394 }
3395 static char *f (char * (*g) (char **, int), char **p, ...)
3396 {
3397   char *s;
3398   va_list v;
3399   va_start (v,p);
3400   s = g (p, va_arg (v,int));
3401   va_end (v);
3402   return s;
3403 }
3404
3405 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3406    function prototypes and stuff, but not '\xHH' hex character constants.
3407    These don't provoke an error unfortunately, instead are silently treated
3408    as 'x'.  The following induces an error, until -std is added to get
3409    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3410    array size at least.  It's necessary to write '\x00'==0 to get something
3411    that's true only with -std.  */
3412 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3413
3414 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3415    inside strings and character constants.  */
3416 #define FOO(x) 'x'
3417 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3418
3419 int test (int i, double x);
3420 struct s1 {int (*f) (int a);};
3421 struct s2 {int (*f) (double a);};
3422 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3423 int argc;
3424 char **argv;
3425 int
3426 main ()
3427 {
3428 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3429   ;
3430   return 0;
3431 }
3432 _ACEOF
3433 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3434         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3435 do
3436   CC="$ac_save_CC $ac_arg"
3437   rm -f conftest.$ac_objext
3438 if { (ac_try="$ac_compile"
3439 case "(($ac_try" in
3440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441   *) ac_try_echo=$ac_try;;
3442 esac
3443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3444 $as_echo "$ac_try_echo") >&5
3445   (eval "$ac_compile") 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } && {
3452          test -z "$ac_c_werror_flag" ||
3453          test ! -s conftest.err
3454        } && test -s conftest.$ac_objext; then
3455   ac_cv_prog_cc_c89=$ac_arg
3456 else
3457   $as_echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460
3461 fi
3462
3463 rm -f core conftest.err conftest.$ac_objext
3464   test "x$ac_cv_prog_cc_c89" != "xno" && break
3465 done
3466 rm -f conftest.$ac_ext
3467 CC=$ac_save_CC
3468
3469 fi
3470 # AC_CACHE_VAL
3471 case "x$ac_cv_prog_cc_c89" in
3472   x)
3473     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3474 $as_echo "none needed" >&6; } ;;
3475   xno)
3476     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3477 $as_echo "unsupported" >&6; } ;;
3478   *)
3479     CC="$CC $ac_cv_prog_cc_c89"
3480     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3481 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3482 esac
3483
3484
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490 DEPDIR="${am__leading_dot}deps"
3491
3492 ac_config_commands="$ac_config_commands depfiles"
3493
3494
3495 am_make=${MAKE-make}
3496 cat > confinc << 'END'
3497 am__doit:
3498         @echo done
3499 .PHONY: am__doit
3500 END
3501 # If we don't find an include directive, just comment out the code.
3502 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3503 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3504 am__include="#"
3505 am__quote=
3506 _am_result=none
3507 # First try GNU make style include.
3508 echo "include confinc" > confmf
3509 # We grep out `Entering directory' and `Leaving directory'
3510 # messages which can occur if `w' ends up in MAKEFLAGS.
3511 # In particular we don't look at `^make:' because GNU make might
3512 # be invoked under some other name (usually "gmake"), in which
3513 # case it prints its new name instead of `make'.
3514 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3515    am__include=include
3516    am__quote=
3517    _am_result=GNU
3518 fi
3519 # Now try BSD make style include.
3520 if test "$am__include" = "#"; then
3521    echo '.include "confinc"' > confmf
3522    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3523       am__include=.include
3524       am__quote="\""
3525       _am_result=BSD
3526    fi
3527 fi
3528
3529
3530 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3531 $as_echo "$_am_result" >&6; }
3532 rm -f confinc confmf
3533
3534 # Check whether --enable-dependency-tracking was given.
3535 if test "${enable_dependency_tracking+set}" = set; then
3536   enableval=$enable_dependency_tracking;
3537 fi
3538
3539 if test "x$enable_dependency_tracking" != xno; then
3540   am_depcomp="$ac_aux_dir/depcomp"
3541   AMDEPBACKSLASH='\'
3542 fi
3543  if test "x$enable_dependency_tracking" != xno; then
3544   AMDEP_TRUE=
3545   AMDEP_FALSE='#'
3546 else
3547   AMDEP_TRUE='#'
3548   AMDEP_FALSE=
3549 fi
3550
3551
3552
3553 depcc="$CC"   am_compiler_list=
3554
3555 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3556 $as_echo_n "checking dependency style of $depcc... " >&6; }
3557 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3558   $as_echo_n "(cached) " >&6
3559 else
3560   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3561   # We make a subdir and do the tests there.  Otherwise we can end up
3562   # making bogus files that we don't know about and never remove.  For
3563   # instance it was reported that on HP-UX the gcc test will end up
3564   # making a dummy file named `D' -- because `-MD' means `put the output
3565   # in D'.
3566   mkdir conftest.dir
3567   # Copy depcomp to subdir because otherwise we won't find it if we're
3568   # using a relative directory.
3569   cp "$am_depcomp" conftest.dir
3570   cd conftest.dir
3571   # We will build objects and dependencies in a subdirectory because
3572   # it helps to detect inapplicable dependency modes.  For instance
3573   # both Tru64's cc and ICC support -MD to output dependencies as a
3574   # side effect of compilation, but ICC will put the dependencies in
3575   # the current directory while Tru64 will put them in the object
3576   # directory.
3577   mkdir sub
3578
3579   am_cv_CC_dependencies_compiler_type=none
3580   if test "$am_compiler_list" = ""; then
3581      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3582   fi
3583   for depmode in $am_compiler_list; do
3584     # Setup a source with many dependencies, because some compilers
3585     # like to wrap large dependency lists on column 80 (with \), and
3586     # we should not choose a depcomp mode which is confused by this.
3587     #
3588     # We need to recreate these files for each test, as the compiler may
3589     # overwrite some of them when testing with obscure command lines.
3590     # This happens at least with the AIX C compiler.
3591     : > sub/conftest.c
3592     for i in 1 2 3 4 5 6; do
3593       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3594       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3595       # Solaris 8's {/usr,}/bin/sh.
3596       touch sub/conftst$i.h
3597     done
3598     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3599
3600     case $depmode in
3601     nosideeffect)
3602       # after this tag, mechanisms are not by side-effect, so they'll
3603       # only be used when explicitly requested
3604       if test "x$enable_dependency_tracking" = xyes; then
3605         continue
3606       else
3607         break
3608       fi
3609       ;;
3610     none) break ;;
3611     esac
3612     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3613     # mode.  It turns out that the SunPro C++ compiler does not properly
3614     # handle `-M -o', and we need to detect this.
3615     if depmode=$depmode \
3616        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3617        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3618        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3619          >/dev/null 2>conftest.err &&
3620        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3621        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3622        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3623        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3624       # icc doesn't choke on unknown options, it will just issue warnings
3625       # or remarks (even with -Werror).  So we grep stderr for any message
3626       # that says an option was ignored or not supported.
3627       # When given -MP, icc 7.0 and 7.1 complain thusly:
3628       #   icc: Command line warning: ignoring option '-M'; no argument required
3629       # The diagnosis changed in icc 8.0:
3630       #   icc: Command line remark: option '-MP' not supported
3631       if (grep 'ignoring option' conftest.err ||
3632           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3633         am_cv_CC_dependencies_compiler_type=$depmode
3634         break
3635       fi
3636     fi
3637   done
3638
3639   cd ..
3640   rm -rf conftest.dir
3641 else
3642   am_cv_CC_dependencies_compiler_type=none
3643 fi
3644
3645 fi
3646 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3647 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3648 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3649
3650  if
3651   test "x$enable_dependency_tracking" != xno \
3652   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3653   am__fastdepCC_TRUE=
3654   am__fastdepCC_FALSE='#'
3655 else
3656   am__fastdepCC_TRUE='#'
3657   am__fastdepCC_FALSE=
3658 fi
3659
3660
3661    { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3662 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3663 if test "${ac_cv_prog_cc_c99+set}" = set; then
3664   $as_echo_n "(cached) " >&6
3665 else
3666   ac_cv_prog_cc_c99=no
3667 ac_save_CC=$CC
3668 cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h.  */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h.  */
3674 #include <stdarg.h>
3675 #include <stdbool.h>
3676 #include <stdlib.h>
3677 #include <wchar.h>
3678 #include <stdio.h>
3679
3680 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3681 #define debug(...) fprintf (stderr, __VA_ARGS__)
3682 #define showlist(...) puts (#__VA_ARGS__)
3683 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3684 static void
3685 test_varargs_macros (void)
3686 {
3687   int x = 1234;
3688   int y = 5678;
3689   debug ("Flag");
3690   debug ("X = %d\n", x);
3691   showlist (The first, second, and third items.);
3692   report (x>y, "x is %d but y is %d", x, y);
3693 }
3694
3695 // Check long long types.
3696 #define BIG64 18446744073709551615ull
3697 #define BIG32 4294967295ul
3698 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3699 #if !BIG_OK
3700   your preprocessor is broken;
3701 #endif
3702 #if BIG_OK
3703 #else
3704   your preprocessor is broken;
3705 #endif
3706 static long long int bignum = -9223372036854775807LL;
3707 static unsigned long long int ubignum = BIG64;
3708
3709 struct incomplete_array
3710 {
3711   int datasize;
3712   double data[];
3713 };
3714
3715 struct named_init {
3716   int number;
3717   const wchar_t *name;
3718   double average;
3719 };
3720
3721 typedef const char *ccp;
3722
3723 static inline int
3724 test_restrict (ccp restrict text)
3725 {
3726   // See if C++-style comments work.
3727   // Iterate through items via the restricted pointer.
3728   // Also check for declarations in for loops.
3729   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3730     continue;
3731   return 0;
3732 }
3733
3734 // Check varargs and va_copy.
3735 static void
3736 test_varargs (const char *format, ...)
3737 {
3738   va_list args;
3739   va_start (args, format);
3740   va_list args_copy;
3741   va_copy (args_copy, args);
3742
3743   const char *str;
3744   int number;
3745   float fnumber;
3746
3747   while (*format)
3748     {
3749       switch (*format++)
3750         {
3751         case 's': // string
3752           str = va_arg (args_copy, const char *);
3753           break;
3754         case 'd': // int
3755           number = va_arg (args_copy, int);
3756           break;
3757         case 'f': // float
3758           fnumber = va_arg (args_copy, double);
3759           break;
3760         default:
3761           break;
3762         }
3763     }
3764   va_end (args_copy);
3765   va_end (args);
3766 }
3767
3768 int
3769 main ()
3770 {
3771
3772   // Check bool.
3773   _Bool success = false;
3774
3775   // Check restrict.
3776   if (test_restrict ("String literal") == 0)
3777     success = true;
3778   char *restrict newvar = "Another string";
3779
3780   // Check varargs.
3781   test_varargs ("s, d' f .", "string", 65, 34.234);
3782   test_varargs_macros ();
3783
3784   // Check flexible array members.
3785   struct incomplete_array *ia =
3786     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3787   ia->datasize = 10;
3788   for (int i = 0; i < ia->datasize; ++i)
3789     ia->data[i] = i * 1.234;
3790
3791   // Check named initializers.
3792   struct named_init ni = {
3793     .number = 34,
3794     .name = L"Test wide string",
3795     .average = 543.34343,
3796   };
3797
3798   ni.number = 58;
3799
3800   int dynamic_array[ni.number];
3801   dynamic_array[ni.number - 1] = 543;
3802
3803   // work around unused variable warnings
3804   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3805           || dynamic_array[ni.number - 1] != 543);
3806
3807   ;
3808   return 0;
3809 }
3810 _ACEOF
3811 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3812 do
3813   CC="$ac_save_CC $ac_arg"
3814   rm -f conftest.$ac_objext
3815 if { (ac_try="$ac_compile"
3816 case "(($ac_try" in
3817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818   *) ac_try_echo=$ac_try;;
3819 esac
3820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3821 $as_echo "$ac_try_echo") >&5
3822   (eval "$ac_compile") 2>conftest.er1
3823   ac_status=$?
3824   grep -v '^ *+' conftest.er1 >conftest.err
3825   rm -f conftest.er1
3826   cat conftest.err >&5
3827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828   (exit $ac_status); } && {
3829          test -z "$ac_c_werror_flag" ||
3830          test ! -s conftest.err
3831        } && test -s conftest.$ac_objext; then
3832   ac_cv_prog_cc_c99=$ac_arg
3833 else
3834   $as_echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3836
3837
3838 fi
3839
3840 rm -f core conftest.err conftest.$ac_objext
3841   test "x$ac_cv_prog_cc_c99" != "xno" && break
3842 done
3843 rm -f conftest.$ac_ext
3844 CC=$ac_save_CC
3845
3846 fi
3847 # AC_CACHE_VAL
3848 case "x$ac_cv_prog_cc_c99" in
3849   x)
3850     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3851 $as_echo "none needed" >&6; } ;;
3852   xno)
3853     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3854 $as_echo "unsupported" >&6; } ;;
3855   *)
3856     CC="$CC $ac_cv_prog_cc_c99"
3857     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3858 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3859 esac
3860
3861
3862
3863 ac_ext=c
3864 ac_cpp='$CPP $CPPFLAGS'
3865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3869 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3870 # On Suns, sometimes $CPP names a directory.
3871 if test -n "$CPP" && test -d "$CPP"; then
3872   CPP=
3873 fi
3874 if test -z "$CPP"; then
3875   if test "${ac_cv_prog_CPP+set}" = set; then
3876   $as_echo_n "(cached) " >&6
3877 else
3878       # Double quotes because CPP needs to be expanded
3879     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3880     do
3881       ac_preproc_ok=false
3882 for ac_c_preproc_warn_flag in '' yes
3883 do
3884   # Use a header file that comes with gcc, so configuring glibc
3885   # with a fresh cross-compiler works.
3886   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3887   # <limits.h> exists even on freestanding compilers.
3888   # On the NeXT, cc -E runs the code through the compiler's parser,
3889   # not just through cpp. "Syntax error" is here to catch this case.
3890   cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h.  */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h.  */
3896 #ifdef __STDC__
3897 # include <limits.h>
3898 #else
3899 # include <assert.h>
3900 #endif
3901                      Syntax error
3902 _ACEOF
3903 if { (ac_try="$ac_cpp conftest.$ac_ext"
3904 case "(($ac_try" in
3905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906   *) ac_try_echo=$ac_try;;
3907 esac
3908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3909 $as_echo "$ac_try_echo") >&5
3910   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3911   ac_status=$?
3912   grep -v '^ *+' conftest.er1 >conftest.err
3913   rm -f conftest.er1
3914   cat conftest.err >&5
3915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916   (exit $ac_status); } >/dev/null && {
3917          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3918          test ! -s conftest.err
3919        }; then
3920   :
3921 else
3922   $as_echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3924
3925   # Broken: fails on valid input.
3926 continue
3927 fi
3928
3929 rm -f conftest.err conftest.$ac_ext
3930
3931   # OK, works on sane cases.  Now check whether nonexistent headers
3932   # can be detected and how.
3933   cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h.  */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h.  */
3939 #include <ac_nonexistent.h>
3940 _ACEOF
3941 if { (ac_try="$ac_cpp conftest.$ac_ext"
3942 case "(($ac_try" in
3943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944   *) ac_try_echo=$ac_try;;
3945 esac
3946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3947 $as_echo "$ac_try_echo") >&5
3948   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3949   ac_status=$?
3950   grep -v '^ *+' conftest.er1 >conftest.err
3951   rm -f conftest.er1
3952   cat conftest.err >&5
3953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954   (exit $ac_status); } >/dev/null && {
3955          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3956          test ! -s conftest.err
3957        }; then
3958   # Broken: success on invalid input.
3959 continue
3960 else
3961   $as_echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3963
3964   # Passes both tests.
3965 ac_preproc_ok=:
3966 break
3967 fi
3968
3969 rm -f conftest.err conftest.$ac_ext
3970
3971 done
3972 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3973 rm -f conftest.err conftest.$ac_ext
3974 if $ac_preproc_ok; then
3975   break
3976 fi
3977
3978     done
3979     ac_cv_prog_CPP=$CPP
3980
3981 fi
3982   CPP=$ac_cv_prog_CPP
3983 else
3984   ac_cv_prog_CPP=$CPP
3985 fi
3986 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3987 $as_echo "$CPP" >&6; }
3988 ac_preproc_ok=false
3989 for ac_c_preproc_warn_flag in '' yes
3990 do
3991   # Use a header file that comes with gcc, so configuring glibc
3992   # with a fresh cross-compiler works.
3993   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3994   # <limits.h> exists even on freestanding compilers.
3995   # On the NeXT, cc -E runs the code through the compiler's parser,
3996   # not just through cpp. "Syntax error" is here to catch this case.
3997   cat >conftest.$ac_ext <<_ACEOF
3998 /* confdefs.h.  */
3999 _ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h.  */
4003 #ifdef __STDC__
4004 # include <limits.h>
4005 #else
4006 # include <assert.h>
4007 #endif
4008                      Syntax error
4009 _ACEOF
4010 if { (ac_try="$ac_cpp conftest.$ac_ext"
4011 case "(($ac_try" in
4012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013   *) ac_try_echo=$ac_try;;
4014 esac
4015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4016 $as_echo "$ac_try_echo") >&5
4017   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4018   ac_status=$?
4019   grep -v '^ *+' conftest.er1 >conftest.err
4020   rm -f conftest.er1
4021   cat conftest.err >&5
4022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023   (exit $ac_status); } >/dev/null && {
4024          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4025          test ! -s conftest.err
4026        }; then
4027   :
4028 else
4029   $as_echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4031
4032   # Broken: fails on valid input.
4033 continue
4034 fi
4035
4036 rm -f conftest.err conftest.$ac_ext
4037
4038   # OK, works on sane cases.  Now check whether nonexistent headers
4039   # can be detected and how.
4040   cat >conftest.$ac_ext <<_ACEOF
4041 /* confdefs.h.  */
4042 _ACEOF
4043 cat confdefs.h >>conftest.$ac_ext
4044 cat >>conftest.$ac_ext <<_ACEOF
4045 /* end confdefs.h.  */
4046 #include <ac_nonexistent.h>
4047 _ACEOF
4048 if { (ac_try="$ac_cpp conftest.$ac_ext"
4049 case "(($ac_try" in
4050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051   *) ac_try_echo=$ac_try;;
4052 esac
4053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4054 $as_echo "$ac_try_echo") >&5
4055   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4056   ac_status=$?
4057   grep -v '^ *+' conftest.er1 >conftest.err
4058   rm -f conftest.er1
4059   cat conftest.err >&5
4060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061   (exit $ac_status); } >/dev/null && {
4062          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4063          test ! -s conftest.err
4064        }; then
4065   # Broken: success on invalid input.
4066 continue
4067 else
4068   $as_echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4070
4071   # Passes both tests.
4072 ac_preproc_ok=:
4073 break
4074 fi
4075
4076 rm -f conftest.err conftest.$ac_ext
4077
4078 done
4079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4080 rm -f conftest.err conftest.$ac_ext
4081 if $ac_preproc_ok; then
4082   :
4083 else
4084   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4086 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4087 See \`config.log' for more details." >&5
4088 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4089 See \`config.log' for more details." >&2;}
4090    { (exit 1); exit 1; }; }; }
4091 fi
4092
4093 ac_ext=c
4094 ac_cpp='$CPP $CPPFLAGS'
4095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4098
4099
4100
4101
4102 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4103 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4104 if test "${ac_cv_path_GREP+set}" = set; then
4105   $as_echo_n "(cached) " >&6
4106 else
4107   if test -z "$GREP"; then
4108   ac_path_GREP_found=false
4109   # Loop through the user's path and test for each of PROGNAME-LIST
4110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4112 do
4113   IFS=$as_save_IFS
4114   test -z "$as_dir" && as_dir=.
4115   for ac_prog in grep ggrep; do
4116     for ac_exec_ext in '' $ac_executable_extensions; do
4117       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4118       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4119 # Check for GNU ac_path_GREP and select it if it is found.
4120   # Check for GNU $ac_path_GREP
4121 case `"$ac_path_GREP" --version 2>&1` in
4122 *GNU*)
4123   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4124 *)
4125   ac_count=0
4126   $as_echo_n 0123456789 >"conftest.in"
4127   while :
4128   do
4129     cat "conftest.in" "conftest.in" >"conftest.tmp"
4130     mv "conftest.tmp" "conftest.in"
4131     cp "conftest.in" "conftest.nl"
4132     $as_echo 'GREP' >> "conftest.nl"
4133     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4134     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4135     ac_count=`expr $ac_count + 1`
4136     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4137       # Best one so far, save it but keep looking for a better one
4138       ac_cv_path_GREP="$ac_path_GREP"
4139       ac_path_GREP_max=$ac_count
4140     fi
4141     # 10*(2^10) chars as input seems more than enough
4142     test $ac_count -gt 10 && break
4143   done
4144   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4145 esac
4146
4147       $ac_path_GREP_found && break 3
4148     done
4149   done
4150 done
4151 IFS=$as_save_IFS
4152   if test -z "$ac_cv_path_GREP"; then
4153     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4154 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4155    { (exit 1); exit 1; }; }
4156   fi
4157 else
4158   ac_cv_path_GREP=$GREP
4159 fi
4160
4161 fi
4162 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4163 $as_echo "$ac_cv_path_GREP" >&6; }
4164  GREP="$ac_cv_path_GREP"
4165
4166
4167 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4168 $as_echo_n "checking for egrep... " >&6; }
4169 if test "${ac_cv_path_EGREP+set}" = set; then
4170   $as_echo_n "(cached) " >&6
4171 else
4172   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4173    then ac_cv_path_EGREP="$GREP -E"
4174    else
4175      if test -z "$EGREP"; then
4176   ac_path_EGREP_found=false
4177   # Loop through the user's path and test for each of PROGNAME-LIST
4178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4180 do
4181   IFS=$as_save_IFS
4182   test -z "$as_dir" && as_dir=.
4183   for ac_prog in egrep; do
4184     for ac_exec_ext in '' $ac_executable_extensions; do
4185       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4186       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4187 # Check for GNU ac_path_EGREP and select it if it is found.
4188   # Check for GNU $ac_path_EGREP
4189 case `"$ac_path_EGREP" --version 2>&1` in
4190 *GNU*)
4191   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4192 *)
4193   ac_count=0
4194   $as_echo_n 0123456789 >"conftest.in"
4195   while :
4196   do
4197     cat "conftest.in" "conftest.in" >"conftest.tmp"
4198     mv "conftest.tmp" "conftest.in"
4199     cp "conftest.in" "conftest.nl"
4200     $as_echo 'EGREP' >> "conftest.nl"
4201     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203     ac_count=`expr $ac_count + 1`
4204     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4205       # Best one so far, save it but keep looking for a better one
4206       ac_cv_path_EGREP="$ac_path_EGREP"
4207       ac_path_EGREP_max=$ac_count
4208     fi
4209     # 10*(2^10) chars as input seems more than enough
4210     test $ac_count -gt 10 && break
4211   done
4212   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4213 esac
4214
4215       $ac_path_EGREP_found && break 3
4216     done
4217   done
4218 done
4219 IFS=$as_save_IFS
4220   if test -z "$ac_cv_path_EGREP"; then
4221     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4222 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4223    { (exit 1); exit 1; }; }
4224   fi
4225 else
4226   ac_cv_path_EGREP=$EGREP
4227 fi
4228
4229    fi
4230 fi
4231 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4232 $as_echo "$ac_cv_path_EGREP" >&6; }
4233  EGREP="$ac_cv_path_EGREP"
4234
4235
4236 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4237 $as_echo_n "checking for ANSI C header files... " >&6; }
4238 if test "${ac_cv_header_stdc+set}" = set; then
4239   $as_echo_n "(cached) " >&6
4240 else
4241   cat >conftest.$ac_ext <<_ACEOF
4242 /* confdefs.h.  */
4243 _ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h.  */
4247 #include <stdlib.h>
4248 #include <stdarg.h>
4249 #include <string.h>
4250 #include <float.h>
4251
4252 int
4253 main ()
4254 {
4255
4256   ;
4257   return 0;
4258 }
4259 _ACEOF
4260 rm -f conftest.$ac_objext
4261 if { (ac_try="$ac_compile"
4262 case "(($ac_try" in
4263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264   *) ac_try_echo=$ac_try;;
4265 esac
4266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4267 $as_echo "$ac_try_echo") >&5
4268   (eval "$ac_compile") 2>conftest.er1
4269   ac_status=$?
4270   grep -v '^ *+' conftest.er1 >conftest.err
4271   rm -f conftest.er1
4272   cat conftest.err >&5
4273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274   (exit $ac_status); } && {
4275          test -z "$ac_c_werror_flag" ||
4276          test ! -s conftest.err
4277        } && test -s conftest.$ac_objext; then
4278   ac_cv_header_stdc=yes
4279 else
4280   $as_echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4282
4283         ac_cv_header_stdc=no
4284 fi
4285
4286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287
4288 if test $ac_cv_header_stdc = yes; then
4289   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4290   cat >conftest.$ac_ext <<_ACEOF
4291 /* confdefs.h.  */
4292 _ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h.  */
4296 #include <string.h>
4297
4298 _ACEOF
4299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4300   $EGREP "memchr" >/dev/null 2>&1; then
4301   :
4302 else
4303   ac_cv_header_stdc=no
4304 fi
4305 rm -f conftest*
4306
4307 fi
4308
4309 if test $ac_cv_header_stdc = yes; then
4310   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4311   cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h.  */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h.  */
4317 #include <stdlib.h>
4318
4319 _ACEOF
4320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321   $EGREP "free" >/dev/null 2>&1; then
4322   :
4323 else
4324   ac_cv_header_stdc=no
4325 fi
4326 rm -f conftest*
4327
4328 fi
4329
4330 if test $ac_cv_header_stdc = yes; then
4331   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4332   if test "$cross_compiling" = yes; then
4333   :
4334 else
4335   cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h.  */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h.  */
4341 #include <ctype.h>
4342 #include <stdlib.h>
4343 #if ((' ' & 0x0FF) == 0x020)
4344 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4345 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4346 #else
4347 # define ISLOWER(c) \
4348                    (('a' <= (c) && (c) <= 'i') \
4349                      || ('j' <= (c) && (c) <= 'r') \
4350                      || ('s' <= (c) && (c) <= 'z'))
4351 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4352 #endif
4353
4354 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4355 int
4356 main ()
4357 {
4358   int i;
4359   for (i = 0; i < 256; i++)
4360     if (XOR (islower (i), ISLOWER (i))
4361         || toupper (i) != TOUPPER (i))
4362       return 2;
4363   return 0;
4364 }
4365 _ACEOF
4366 rm -f conftest$ac_exeext
4367 if { (ac_try="$ac_link"
4368 case "(($ac_try" in
4369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370   *) ac_try_echo=$ac_try;;
4371 esac
4372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4373 $as_echo "$ac_try_echo") >&5
4374   (eval "$ac_link") 2>&5
4375   ac_status=$?
4376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4378   { (case "(($ac_try" in
4379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380   *) ac_try_echo=$ac_try;;
4381 esac
4382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4383 $as_echo "$ac_try_echo") >&5
4384   (eval "$ac_try") 2>&5
4385   ac_status=$?
4386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387   (exit $ac_status); }; }; then
4388   :
4389 else
4390   $as_echo "$as_me: program exited with status $ac_status" >&5
4391 $as_echo "$as_me: failed program was:" >&5
4392 sed 's/^/| /' conftest.$ac_ext >&5
4393
4394 ( exit $ac_status )
4395 ac_cv_header_stdc=no
4396 fi
4397 rm -rf conftest.dSYM
4398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4399 fi
4400
4401
4402 fi
4403 fi
4404 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4405 $as_echo "$ac_cv_header_stdc" >&6; }
4406 if test $ac_cv_header_stdc = yes; then
4407
4408 cat >>confdefs.h <<\_ACEOF
4409 #define STDC_HEADERS 1
4410 _ACEOF
4411
4412 fi
4413
4414 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4425                   inttypes.h stdint.h unistd.h
4426 do
4427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4428 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4429 $as_echo_n "checking for $ac_header... " >&6; }
4430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4431   $as_echo_n "(cached) " >&6
4432 else
4433   cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h.  */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h.  */
4439 $ac_includes_default
4440
4441 #include <$ac_header>
4442 _ACEOF
4443 rm -f conftest.$ac_objext
4444 if { (ac_try="$ac_compile"
4445 case "(($ac_try" in
4446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447   *) ac_try_echo=$ac_try;;
4448 esac
4449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4450 $as_echo "$ac_try_echo") >&5
4451   (eval "$ac_compile") 2>conftest.er1
4452   ac_status=$?
4453   grep -v '^ *+' conftest.er1 >conftest.err
4454   rm -f conftest.er1
4455   cat conftest.err >&5
4456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457   (exit $ac_status); } && {
4458          test -z "$ac_c_werror_flag" ||
4459          test ! -s conftest.err
4460        } && test -s conftest.$ac_objext; then
4461   eval "$as_ac_Header=yes"
4462 else
4463   $as_echo "$as_me: failed program was:" >&5
4464 sed 's/^/| /' conftest.$ac_ext >&5
4465
4466         eval "$as_ac_Header=no"
4467 fi
4468
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 fi
4471 ac_res=`eval 'as_val=${'$as_ac_Header'}
4472                  $as_echo "$as_val"'`
4473                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4474 $as_echo "$ac_res" >&6; }
4475 as_val=`eval 'as_val=${'$as_ac_Header'}
4476                  $as_echo "$as_val"'`
4477    if test "x$as_val" = x""yes; then
4478   cat >>confdefs.h <<_ACEOF
4479 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4480 _ACEOF
4481
4482 fi
4483
4484 done
4485
4486
4487
4488   if test "${ac_cv_header_minix_config_h+set}" = set; then
4489   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4490 $as_echo_n "checking for minix/config.h... " >&6; }
4491 if test "${ac_cv_header_minix_config_h+set}" = set; then
4492   $as_echo_n "(cached) " >&6
4493 fi
4494 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4495 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4496 else
4497   # Is the header compilable?
4498 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4499 $as_echo_n "checking minix/config.h usability... " >&6; }
4500 cat >conftest.$ac_ext <<_ACEOF
4501 /* confdefs.h.  */
4502 _ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h.  */
4506 $ac_includes_default
4507 #include <minix/config.h>
4508 _ACEOF
4509 rm -f conftest.$ac_objext
4510 if { (ac_try="$ac_compile"
4511 case "(($ac_try" in
4512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513   *) ac_try_echo=$ac_try;;
4514 esac
4515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4516 $as_echo "$ac_try_echo") >&5
4517   (eval "$ac_compile") 2>conftest.er1
4518   ac_status=$?
4519   grep -v '^ *+' conftest.er1 >conftest.err
4520   rm -f conftest.er1
4521   cat conftest.err >&5
4522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); } && {
4524          test -z "$ac_c_werror_flag" ||
4525          test ! -s conftest.err
4526        } && test -s conftest.$ac_objext; then
4527   ac_header_compiler=yes
4528 else
4529   $as_echo "$as_me: failed program was:" >&5
4530 sed 's/^/| /' conftest.$ac_ext >&5
4531
4532         ac_header_compiler=no
4533 fi
4534
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4537 $as_echo "$ac_header_compiler" >&6; }
4538
4539 # Is the header present?
4540 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4541 $as_echo_n "checking minix/config.h presence... " >&6; }
4542 cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h.  */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h.  */
4548 #include <minix/config.h>
4549 _ACEOF
4550 if { (ac_try="$ac_cpp conftest.$ac_ext"
4551 case "(($ac_try" in
4552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553   *) ac_try_echo=$ac_try;;
4554 esac
4555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4556 $as_echo "$ac_try_echo") >&5
4557   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4558   ac_status=$?
4559   grep -v '^ *+' conftest.er1 >conftest.err
4560   rm -f conftest.er1
4561   cat conftest.err >&5
4562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563   (exit $ac_status); } >/dev/null && {
4564          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4565          test ! -s conftest.err
4566        }; then
4567   ac_header_preproc=yes
4568 else
4569   $as_echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4571
4572   ac_header_preproc=no
4573 fi
4574
4575 rm -f conftest.err conftest.$ac_ext
4576 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4577 $as_echo "$ac_header_preproc" >&6; }
4578
4579 # So?  What about this header?
4580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4581   yes:no: )
4582     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4583 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4584     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4585 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4586     ac_header_preproc=yes
4587     ;;
4588   no:yes:* )
4589     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4590 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4591     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4592 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4593     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4594 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4595     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4596 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4597     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4598 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4599     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4600 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4601     ( cat <<\_ASBOX
4602 ## ----------------------------------------------- ##
4603 ## Report this to mznflapaf (at) 0pointer (dot) de ##
4604 ## ----------------------------------------------- ##
4605 _ASBOX
4606      ) | sed "s/^/$as_me: WARNING:     /" >&2
4607     ;;
4608 esac
4609 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4610 $as_echo_n "checking for minix/config.h... " >&6; }
4611 if test "${ac_cv_header_minix_config_h+set}" = set; then
4612   $as_echo_n "(cached) " >&6
4613 else
4614   ac_cv_header_minix_config_h=$ac_header_preproc
4615 fi
4616 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4617 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4618
4619 fi
4620 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4621   MINIX=yes
4622 else
4623   MINIX=
4624 fi
4625
4626
4627   if test "$MINIX" = yes; then
4628
4629 cat >>confdefs.h <<\_ACEOF
4630 #define _POSIX_SOURCE 1
4631 _ACEOF
4632
4633
4634 cat >>confdefs.h <<\_ACEOF
4635 #define _POSIX_1_SOURCE 2
4636 _ACEOF
4637
4638
4639 cat >>confdefs.h <<\_ACEOF
4640 #define _MINIX 1
4641 _ACEOF
4642
4643   fi
4644
4645
4646
4647   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4648 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4649 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4650   $as_echo_n "(cached) " >&6
4651 else
4652   cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h.  */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h.  */
4658
4659 #         define __EXTENSIONS__ 1
4660           $ac_includes_default
4661 int
4662 main ()
4663 {
4664
4665   ;
4666   return 0;
4667 }
4668 _ACEOF
4669 rm -f conftest.$ac_objext
4670 if { (ac_try="$ac_compile"
4671 case "(($ac_try" in
4672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673   *) ac_try_echo=$ac_try;;
4674 esac
4675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4676 $as_echo "$ac_try_echo") >&5
4677   (eval "$ac_compile") 2>conftest.er1
4678   ac_status=$?
4679   grep -v '^ *+' conftest.er1 >conftest.err
4680   rm -f conftest.er1
4681   cat conftest.err >&5
4682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683   (exit $ac_status); } && {
4684          test -z "$ac_c_werror_flag" ||
4685          test ! -s conftest.err
4686        } && test -s conftest.$ac_objext; then
4687   ac_cv_safe_to_define___extensions__=yes
4688 else
4689   $as_echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4691
4692         ac_cv_safe_to_define___extensions__=no
4693 fi
4694
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696 fi
4697 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4698 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4699   test $ac_cv_safe_to_define___extensions__ = yes &&
4700     cat >>confdefs.h <<\_ACEOF
4701 #define __EXTENSIONS__ 1
4702 _ACEOF
4703
4704   cat >>confdefs.h <<\_ACEOF
4705 #define _ALL_SOURCE 1
4706 _ACEOF
4707
4708   cat >>confdefs.h <<\_ACEOF
4709 #define _GNU_SOURCE 1
4710 _ACEOF
4711
4712   cat >>confdefs.h <<\_ACEOF
4713 #define _POSIX_PTHREAD_SEMANTICS 1
4714 _ACEOF
4715
4716   cat >>confdefs.h <<\_ACEOF
4717 #define _TANDEM_SOURCE 1
4718 _ACEOF
4719
4720
4721
4722 # Find a good install program.  We prefer a C program (faster),
4723 # so one script is as good as another.  But avoid the broken or
4724 # incompatible versions:
4725 # SysV /etc/install, /usr/sbin/install
4726 # SunOS /usr/etc/install
4727 # IRIX /sbin/install
4728 # AIX /bin/install
4729 # AmigaOS /C/install, which installs bootblocks on floppy discs
4730 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4731 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4732 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4733 # OS/2's system install, which has a completely different semantic
4734 # ./install, which can be erroneously created by make from ./install.sh.
4735 # Reject install programs that cannot install multiple files.
4736 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4737 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4738 if test -z "$INSTALL"; then
4739 if test "${ac_cv_path_install+set}" = set; then
4740   $as_echo_n "(cached) " >&6
4741 else
4742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4744 do
4745   IFS=$as_save_IFS
4746   test -z "$as_dir" && as_dir=.
4747   # Account for people who put trailing slashes in PATH elements.
4748 case $as_dir/ in
4749   ./ | .// | /cC/* | \
4750   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4751   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4752   /usr/ucb/* ) ;;
4753   *)
4754     # OSF1 and SCO ODT 3.0 have their own names for install.
4755     # Don't use installbsd from OSF since it installs stuff as root
4756     # by default.
4757     for ac_prog in ginstall scoinst install; do
4758       for ac_exec_ext in '' $ac_executable_extensions; do
4759         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4760           if test $ac_prog = install &&
4761             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4762             # AIX install.  It has an incompatible calling convention.
4763             :
4764           elif test $ac_prog = install &&
4765             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4766             # program-specific install script used by HP pwplus--don't use.
4767             :
4768           else
4769             rm -rf conftest.one conftest.two conftest.dir
4770             echo one > conftest.one
4771             echo two > conftest.two
4772             mkdir conftest.dir
4773             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4774               test -s conftest.one && test -s conftest.two &&
4775               test -s conftest.dir/conftest.one &&
4776               test -s conftest.dir/conftest.two
4777             then
4778               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4779               break 3
4780             fi
4781           fi
4782         fi
4783       done
4784     done
4785     ;;
4786 esac
4787
4788 done
4789 IFS=$as_save_IFS
4790
4791 rm -rf conftest.one conftest.two conftest.dir
4792
4793 fi
4794   if test "${ac_cv_path_install+set}" = set; then
4795     INSTALL=$ac_cv_path_install
4796   else
4797     # As a last resort, use the slow shell script.  Don't cache a
4798     # value for INSTALL within a source directory, because that will
4799     # break other packages using the cache if that directory is
4800     # removed, or if the value is a relative name.
4801     INSTALL=$ac_install_sh
4802   fi
4803 fi
4804 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4805 $as_echo "$INSTALL" >&6; }
4806
4807 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4808 # It thinks the first close brace ends the variable substitution.
4809 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4810
4811 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4812
4813 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4814
4815 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4816 $as_echo_n "checking whether ln -s works... " >&6; }
4817 LN_S=$as_ln_s
4818 if test "$LN_S" = "ln -s"; then
4819   { $as_echo "$as_me:$LINENO: result: yes" >&5
4820 $as_echo "yes" >&6; }
4821 else
4822   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4823 $as_echo "no, using $LN_S" >&6; }
4824 fi
4825
4826 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4827 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4828 set x ${MAKE-make}
4829 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4830 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4831   $as_echo_n "(cached) " >&6
4832 else
4833   cat >conftest.make <<\_ACEOF
4834 SHELL = /bin/sh
4835 all:
4836         @echo '@@@%%%=$(MAKE)=@@@%%%'
4837 _ACEOF
4838 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4839 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4840   *@@@%%%=?*=@@@%%%*)
4841     eval ac_cv_prog_make_${ac_make}_set=yes;;
4842   *)
4843     eval ac_cv_prog_make_${ac_make}_set=no;;
4844 esac
4845 rm -f conftest.make
4846 fi
4847 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4848   { $as_echo "$as_me:$LINENO: result: yes" >&5
4849 $as_echo "yes" >&6; }
4850   SET_MAKE=
4851 else
4852   { $as_echo "$as_me:$LINENO: result: no" >&5
4853 $as_echo "no" >&6; }
4854   SET_MAKE="MAKE=${MAKE-make}"
4855 fi
4856
4857 # Check whether --enable-shared was given.
4858 if test "${enable_shared+set}" = set; then
4859   enableval=$enable_shared; p=${PACKAGE-default}
4860     case $enableval in
4861     yes) enable_shared=yes ;;
4862     no) enable_shared=no ;;
4863     *)
4864       enable_shared=no
4865       # Look at the argument we got.  We use all the common list separators.
4866       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4867       for pkg in $enableval; do
4868         IFS="$lt_save_ifs"
4869         if test "X$pkg" = "X$p"; then
4870           enable_shared=yes
4871         fi
4872       done
4873       IFS="$lt_save_ifs"
4874       ;;
4875     esac
4876 else
4877   enable_shared=yes
4878 fi
4879
4880
4881 # Check whether --enable-static was given.
4882 if test "${enable_static+set}" = set; then
4883   enableval=$enable_static; p=${PACKAGE-default}
4884     case $enableval in
4885     yes) enable_static=yes ;;
4886     no) enable_static=no ;;
4887     *)
4888      enable_static=no
4889       # Look at the argument we got.  We use all the common list separators.
4890       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4891       for pkg in $enableval; do
4892         IFS="$lt_save_ifs"
4893         if test "X$pkg" = "X$p"; then
4894           enable_static=yes
4895         fi
4896       done
4897       IFS="$lt_save_ifs"
4898       ;;
4899     esac
4900 else
4901   enable_static=yes
4902 fi
4903
4904
4905 # Check whether --enable-fast-install was given.
4906 if test "${enable_fast_install+set}" = set; then
4907   enableval=$enable_fast_install; p=${PACKAGE-default}
4908     case $enableval in
4909     yes) enable_fast_install=yes ;;
4910     no) enable_fast_install=no ;;
4911     *)
4912       enable_fast_install=no
4913       # Look at the argument we got.  We use all the common list separators.
4914       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4915       for pkg in $enableval; do
4916         IFS="$lt_save_ifs"
4917         if test "X$pkg" = "X$p"; then
4918           enable_fast_install=yes
4919         fi
4920       done
4921       IFS="$lt_save_ifs"
4922       ;;
4923     esac
4924 else
4925   enable_fast_install=yes
4926 fi
4927
4928
4929 # Make sure we can run config.sub.
4930 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4931   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4932 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4933    { (exit 1); exit 1; }; }
4934
4935 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4936 $as_echo_n "checking build system type... " >&6; }
4937 if test "${ac_cv_build+set}" = set; then
4938   $as_echo_n "(cached) " >&6
4939 else
4940   ac_build_alias=$build_alias
4941 test "x$ac_build_alias" = x &&
4942   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4943 test "x$ac_build_alias" = x &&
4944   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4945 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4946    { (exit 1); exit 1; }; }
4947 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4948   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4949 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4950    { (exit 1); exit 1; }; }
4951
4952 fi
4953 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4954 $as_echo "$ac_cv_build" >&6; }
4955 case $ac_cv_build in
4956 *-*-*) ;;
4957 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4958 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4959    { (exit 1); exit 1; }; };;
4960 esac
4961 build=$ac_cv_build
4962 ac_save_IFS=$IFS; IFS='-'
4963 set x $ac_cv_build
4964 shift
4965 build_cpu=$1
4966 build_vendor=$2
4967 shift; shift
4968 # Remember, the first character of IFS is used to create $*,
4969 # except with old shells:
4970 build_os=$*
4971 IFS=$ac_save_IFS
4972 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4973
4974
4975 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4976 $as_echo_n "checking host system type... " >&6; }
4977 if test "${ac_cv_host+set}" = set; then
4978   $as_echo_n "(cached) " >&6
4979 else
4980   if test "x$host_alias" = x; then
4981   ac_cv_host=$ac_cv_build
4982 else
4983   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4984     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4985 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4986    { (exit 1); exit 1; }; }
4987 fi
4988
4989 fi
4990 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4991 $as_echo "$ac_cv_host" >&6; }
4992 case $ac_cv_host in
4993 *-*-*) ;;
4994 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4995 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4996    { (exit 1); exit 1; }; };;
4997 esac
4998 host=$ac_cv_host
4999 ac_save_IFS=$IFS; IFS='-'
5000 set x $ac_cv_host
5001 shift
5002 host_cpu=$1
5003 host_vendor=$2
5004 shift; shift
5005 # Remember, the first character of IFS is used to create $*,
5006 # except with old shells:
5007 host_os=$*
5008 IFS=$ac_save_IFS
5009 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5010
5011
5012 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5013 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5014 if test "${lt_cv_path_SED+set}" = set; then
5015   $as_echo_n "(cached) " >&6
5016 else
5017   # Loop through the user's path and test for sed and gsed.
5018 # Then use that list of sed's as ones to test for truncation.
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022   IFS=$as_save_IFS
5023   test -z "$as_dir" && as_dir=.
5024   for lt_ac_prog in sed gsed; do
5025     for ac_exec_ext in '' $ac_executable_extensions; do
5026       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5027         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5028       fi
5029     done
5030   done
5031 done
5032 IFS=$as_save_IFS
5033 lt_ac_max=0
5034 lt_ac_count=0
5035 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5036 # along with /bin/sed that truncates output.
5037 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5038   test ! -f $lt_ac_sed && continue
5039   cat /dev/null > conftest.in
5040   lt_ac_count=0
5041   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5042   # Check for GNU sed and select it if it is found.
5043   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5044     lt_cv_path_SED=$lt_ac_sed
5045     break
5046   fi
5047   while true; do
5048     cat conftest.in conftest.in >conftest.tmp
5049     mv conftest.tmp conftest.in
5050     cp conftest.in conftest.nl
5051     echo >>conftest.nl
5052     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5053     cmp -s conftest.out conftest.nl || break
5054     # 10000 chars as input seems more than enough
5055     test $lt_ac_count -gt 10 && break
5056     lt_ac_count=`expr $lt_ac_count + 1`
5057     if test $lt_ac_count -gt $lt_ac_max; then
5058       lt_ac_max=$lt_ac_count
5059       lt_cv_path_SED=$lt_ac_sed
5060     fi
5061   done
5062 done
5063
5064 fi
5065
5066 SED=$lt_cv_path_SED
5067
5068 { $as_echo "$as_me:$LINENO: result: $SED" >&5
5069 $as_echo "$SED" >&6; }
5070
5071
5072 # Check whether --with-gnu-ld was given.
5073 if test "${with_gnu_ld+set}" = set; then
5074   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5075 else
5076   with_gnu_ld=no
5077 fi
5078
5079 ac_prog=ld
5080 if test "$GCC" = yes; then
5081   # Check if gcc -print-prog-name=ld gives a path.
5082   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5083 $as_echo_n "checking for ld used by $CC... " >&6; }
5084   case $host in
5085   *-*-mingw*)
5086     # gcc leaves a trailing carriage return which upsets mingw
5087     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5088   *)
5089     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5090   esac
5091   case $ac_prog in
5092     # Accept absolute paths.
5093     [\\/]* | ?:[\\/]*)
5094       re_direlt='/[^/][^/]*/\.\./'
5095       # Canonicalize the pathname of ld
5096       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5097       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5098         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5099       done
5100       test -z "$LD" && LD="$ac_prog"
5101       ;;
5102   "")
5103     # If it fails, then pretend we aren't using GCC.
5104     ac_prog=ld
5105     ;;
5106   *)
5107     # If it is relative, then search for the first ld in PATH.
5108     with_gnu_ld=unknown
5109     ;;
5110   esac
5111 elif test "$with_gnu_ld" = yes; then
5112   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5113 $as_echo_n "checking for GNU ld... " >&6; }
5114 else
5115   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5116 $as_echo_n "checking for non-GNU ld... " >&6; }
5117 fi
5118 if test "${lt_cv_path_LD+set}" = set; then
5119   $as_echo_n "(cached) " >&6
5120 else
5121   if test -z "$LD"; then
5122   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5123   for ac_dir in $PATH; do
5124     IFS="$lt_save_ifs"
5125     test -z "$ac_dir" && ac_dir=.
5126     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5127       lt_cv_path_LD="$ac_dir/$ac_prog"
5128       # Check to see if the program is GNU ld.  I'd rather use --version,
5129       # but apparently some variants of GNU ld only accept -v.
5130       # Break only if it was the GNU/non-GNU ld that we prefer.
5131       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5132       *GNU* | *'with BFD'*)
5133         test "$with_gnu_ld" != no && break
5134         ;;
5135       *)
5136         test "$with_gnu_ld" != yes && break
5137         ;;
5138       esac
5139     fi
5140   done
5141   IFS="$lt_save_ifs"
5142 else
5143   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5144 fi
5145 fi
5146
5147 LD="$lt_cv_path_LD"
5148 if test -n "$LD"; then
5149   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5150 $as_echo "$LD" >&6; }
5151 else
5152   { $as_echo "$as_me:$LINENO: result: no" >&5
5153 $as_echo "no" >&6; }
5154 fi
5155 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5156 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5157    { (exit 1); exit 1; }; }
5158 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5159 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5160 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5161   $as_echo_n "(cached) " >&6
5162 else
5163   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5164 case `$LD -v 2>&1 </dev/null` in
5165 *GNU* | *'with BFD'*)
5166   lt_cv_prog_gnu_ld=yes
5167   ;;
5168 *)
5169   lt_cv_prog_gnu_ld=no
5170   ;;
5171 esac
5172 fi
5173 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5174 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5175 with_gnu_ld=$lt_cv_prog_gnu_ld
5176
5177
5178 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5179 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5180 if test "${lt_cv_ld_reload_flag+set}" = set; then
5181   $as_echo_n "(cached) " >&6
5182 else
5183   lt_cv_ld_reload_flag='-r'
5184 fi
5185 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5186 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5187 reload_flag=$lt_cv_ld_reload_flag
5188 case $reload_flag in
5189 "" | " "*) ;;
5190 *) reload_flag=" $reload_flag" ;;
5191 esac
5192 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5193 case $host_os in
5194   darwin*)
5195     if test "$GCC" = yes; then
5196       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5197     else
5198       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5199     fi
5200     ;;
5201 esac
5202
5203 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5204 $as_echo_n "checking for BSD-compatible nm... " >&6; }
5205 if test "${lt_cv_path_NM+set}" = set; then
5206   $as_echo_n "(cached) " >&6
5207 else
5208   if test -n "$NM"; then
5209   # Let the user override the test.
5210   lt_cv_path_NM="$NM"
5211 else
5212   lt_nm_to_check="${ac_tool_prefix}nm"
5213   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5214     lt_nm_to_check="$lt_nm_to_check nm"
5215   fi
5216   for lt_tmp_nm in $lt_nm_to_check; do
5217     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5218     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5219       IFS="$lt_save_ifs"
5220       test -z "$ac_dir" && ac_dir=.
5221       tmp_nm="$ac_dir/$lt_tmp_nm"
5222       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5223         # Check to see if the nm accepts a BSD-compat flag.
5224         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5225         #   nm: unknown option "B" ignored
5226         # Tru64's nm complains that /dev/null is an invalid object file
5227         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5228         */dev/null* | *'Invalid file or object type'*)
5229           lt_cv_path_NM="$tmp_nm -B"
5230           break
5231           ;;
5232         *)
5233           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5234           */dev/null*)
5235             lt_cv_path_NM="$tmp_nm -p"
5236             break
5237             ;;
5238           *)
5239             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5240             continue # so that we can try to find one that supports BSD flags
5241             ;;
5242           esac
5243           ;;
5244         esac
5245       fi
5246     done
5247     IFS="$lt_save_ifs"
5248   done
5249   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5250 fi
5251 fi
5252 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5253 $as_echo "$lt_cv_path_NM" >&6; }
5254 NM="$lt_cv_path_NM"
5255
5256 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5257 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5258 if test "${lt_cv_deplibs_check_method+set}" = set; then
5259   $as_echo_n "(cached) " >&6
5260 else
5261   lt_cv_file_magic_cmd='$MAGIC_CMD'
5262 lt_cv_file_magic_test_file=
5263 lt_cv_deplibs_check_method='unknown'
5264 # Need to set the preceding variable on all platforms that support
5265 # interlibrary dependencies.
5266 # 'none' -- dependencies not supported.
5267 # `unknown' -- same as none, but documents that we really don't know.
5268 # 'pass_all' -- all dependencies passed with no checks.
5269 # 'test_compile' -- check by making test program.
5270 # 'file_magic [[regex]]' -- check by looking for files in library path
5271 # which responds to the $file_magic_cmd with a given extended regex.
5272 # If you have `file' or equivalent on your system and you're not sure
5273 # whether `pass_all' will *always* work, you probably want this one.
5274
5275 case $host_os in
5276 aix[4-9]*)
5277   lt_cv_deplibs_check_method=pass_all
5278   ;;
5279
5280 beos*)
5281   lt_cv_deplibs_check_method=pass_all
5282   ;;
5283
5284 bsdi[45]*)
5285   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5286   lt_cv_file_magic_cmd='/usr/bin/file -L'
5287   lt_cv_file_magic_test_file=/shlib/libc.so
5288   ;;
5289
5290 cygwin*)
5291   # func_win32_libid is a shell function defined in ltmain.sh
5292   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5293   lt_cv_file_magic_cmd='func_win32_libid'
5294   ;;
5295
5296 mingw* | pw32*)
5297   # Base MSYS/MinGW do not provide the 'file' command needed by
5298   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5299   # unless we find 'file', for example because we are cross-compiling.
5300   if ( file / ) >/dev/null 2>&1; then
5301     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5302     lt_cv_file_magic_cmd='func_win32_libid'
5303   else
5304     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5305     lt_cv_file_magic_cmd='$OBJDUMP -f'
5306   fi
5307   ;;
5308
5309 darwin* | rhapsody*)
5310   lt_cv_deplibs_check_method=pass_all
5311   ;;
5312
5313 freebsd* | dragonfly*)
5314   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5315     case $host_cpu in
5316     i*86 )
5317       # Not sure whether the presence of OpenBSD here was a mistake.
5318       # Let's accept both of them until this is cleared up.
5319       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5320       lt_cv_file_magic_cmd=/usr/bin/file
5321       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5322       ;;
5323     esac
5324   else
5325     lt_cv_deplibs_check_method=pass_all
5326   fi
5327   ;;
5328
5329 gnu*)
5330   lt_cv_deplibs_check_method=pass_all
5331   ;;
5332
5333 hpux10.20* | hpux11*)
5334   lt_cv_file_magic_cmd=/usr/bin/file
5335   case $host_cpu in
5336   ia64*)
5337     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5338     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5339     ;;
5340   hppa*64*)
5341     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]'
5342     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5343     ;;
5344   *)
5345     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5346     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5347     ;;
5348   esac
5349   ;;
5350
5351 interix[3-9]*)
5352   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5353   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5354   ;;
5355
5356 irix5* | irix6* | nonstopux*)
5357   case $LD in
5358   *-32|*"-32 ") libmagic=32-bit;;
5359   *-n32|*"-n32 ") libmagic=N32;;
5360   *-64|*"-64 ") libmagic=64-bit;;
5361   *) libmagic=never-match;;
5362   esac
5363   lt_cv_deplibs_check_method=pass_all
5364   ;;
5365
5366 # This must be Linux ELF.
5367 linux* | k*bsd*-gnu)
5368   lt_cv_deplibs_check_method=pass_all
5369   ;;
5370
5371 netbsd*)
5372   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5373     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5374   else
5375     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5376   fi
5377   ;;
5378
5379 newos6*)
5380   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5381   lt_cv_file_magic_cmd=/usr/bin/file
5382   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5383   ;;
5384
5385 nto-qnx*)
5386   lt_cv_deplibs_check_method=unknown
5387   ;;
5388
5389 openbsd*)
5390   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5391     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5392   else
5393     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5394   fi
5395   ;;
5396
5397 osf3* | osf4* | osf5*)
5398   lt_cv_deplibs_check_method=pass_all
5399   ;;
5400
5401 rdos*)
5402   lt_cv_deplibs_check_method=pass_all
5403   ;;
5404
5405 solaris*)
5406   lt_cv_deplibs_check_method=pass_all
5407   ;;
5408
5409 sysv4 | sysv4.3*)
5410   case $host_vendor in
5411   motorola)
5412     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]'
5413     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5414     ;;
5415   ncr)
5416     lt_cv_deplibs_check_method=pass_all
5417     ;;
5418   sequent)
5419     lt_cv_file_magic_cmd='/bin/file'
5420     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5421     ;;
5422   sni)
5423     lt_cv_file_magic_cmd='/bin/file'
5424     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5425     lt_cv_file_magic_test_file=/lib/libc.so
5426     ;;
5427   siemens)
5428     lt_cv_deplibs_check_method=pass_all
5429     ;;
5430   pc)
5431     lt_cv_deplibs_check_method=pass_all
5432     ;;
5433   esac
5434   ;;
5435
5436 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5437   lt_cv_deplibs_check_method=pass_all
5438   ;;
5439 esac
5440
5441 fi
5442 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5443 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5444 file_magic_cmd=$lt_cv_file_magic_cmd
5445 deplibs_check_method=$lt_cv_deplibs_check_method
5446 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5447
5448
5449
5450
5451 # If no C compiler was specified, use CC.
5452 LTCC=${LTCC-"$CC"}
5453
5454 # If no C compiler flags were specified, use CFLAGS.
5455 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5456
5457 # Allow CC to be a program name with arguments.
5458 compiler=$CC
5459
5460 # Check whether --enable-libtool-lock was given.
5461 if test "${enable_libtool_lock+set}" = set; then
5462   enableval=$enable_libtool_lock;
5463 fi
5464
5465 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5466
5467 # Some flags need to be propagated to the compiler or linker for good
5468 # libtool support.
5469 case $host in
5470 ia64-*-hpux*)
5471   # Find out which ABI we are using.
5472   echo 'int i;' > conftest.$ac_ext
5473   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5474   (eval $ac_compile) 2>&5
5475   ac_status=$?
5476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477   (exit $ac_status); }; then
5478     case `/usr/bin/file conftest.$ac_objext` in
5479     *ELF-32*)
5480       HPUX_IA64_MODE="32"
5481       ;;
5482     *ELF-64*)
5483       HPUX_IA64_MODE="64"
5484       ;;
5485     esac
5486   fi
5487   rm -rf conftest*
5488   ;;
5489 *-*-irix6*)
5490   # Find out which ABI we are using.
5491   echo '#line 5491 "configure"' > conftest.$ac_ext
5492   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5493   (eval $ac_compile) 2>&5
5494   ac_status=$?
5495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496   (exit $ac_status); }; then
5497    if test "$lt_cv_prog_gnu_ld" = yes; then
5498     case `/usr/bin/file conftest.$ac_objext` in
5499     *32-bit*)
5500       LD="${LD-ld} -melf32bsmip"
5501       ;;
5502     *N32*)
5503       LD="${LD-ld} -melf32bmipn32"
5504       ;;
5505     *64-bit*)
5506       LD="${LD-ld} -melf64bmip"
5507       ;;
5508     esac
5509    else
5510     case `/usr/bin/file conftest.$ac_objext` in
5511     *32-bit*)
5512       LD="${LD-ld} -32"
5513       ;;
5514     *N32*)
5515       LD="${LD-ld} -n32"
5516       ;;
5517     *64-bit*)
5518       LD="${LD-ld} -64"
5519       ;;
5520     esac
5521    fi
5522   fi
5523   rm -rf conftest*
5524   ;;
5525
5526 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5527 s390*-*linux*|sparc*-*linux*)
5528   # Find out which ABI we are using.
5529   echo 'int i;' > conftest.$ac_ext
5530   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5531   (eval $ac_compile) 2>&5
5532   ac_status=$?
5533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); }; then
5535     case `/usr/bin/file conftest.o` in
5536     *32-bit*)
5537       case $host in
5538         x86_64-*kfreebsd*-gnu)
5539           LD="${LD-ld} -m elf_i386_fbsd"
5540           ;;
5541         x86_64-*linux*)
5542           LD="${LD-ld} -m elf_i386"
5543           ;;
5544         ppc64-*linux*|powerpc64-*linux*)
5545           LD="${LD-ld} -m elf32ppclinux"
5546           ;;
5547         s390x-*linux*)
5548           LD="${LD-ld} -m elf_s390"
5549           ;;
5550         sparc64-*linux*)
5551           LD="${LD-ld} -m elf32_sparc"
5552           ;;
5553       esac
5554       ;;
5555     *64-bit*)
5556       libsuff=64
5557       case $host in
5558         x86_64-*kfreebsd*-gnu)
5559           LD="${LD-ld} -m elf_x86_64_fbsd"
5560           ;;
5561         x86_64-*linux*)
5562           LD="${LD-ld} -m elf_x86_64"
5563           ;;
5564         ppc*-*linux*|powerpc*-*linux*)
5565           LD="${LD-ld} -m elf64ppc"
5566           ;;
5567         s390*-*linux*)
5568           LD="${LD-ld} -m elf64_s390"
5569           ;;
5570         sparc*-*linux*)
5571           LD="${LD-ld} -m elf64_sparc"
5572           ;;
5573       esac
5574       ;;
5575     esac
5576   fi
5577   rm -rf conftest*
5578   ;;
5579
5580 *-*-sco3.2v5*)
5581   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5582   SAVE_CFLAGS="$CFLAGS"
5583   CFLAGS="$CFLAGS -belf"
5584   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5585 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5586 if test "${lt_cv_cc_needs_belf+set}" = set; then
5587   $as_echo_n "(cached) " >&6
5588 else
5589   ac_ext=c
5590 ac_cpp='$CPP $CPPFLAGS'
5591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5594
5595      cat >conftest.$ac_ext <<_ACEOF
5596 /* confdefs.h.  */
5597 _ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h.  */
5601
5602 int
5603 main ()
5604 {
5605
5606   ;
5607   return 0;
5608 }
5609 _ACEOF
5610 rm -f conftest.$ac_objext conftest$ac_exeext
5611 if { (ac_try="$ac_link"
5612 case "(($ac_try" in
5613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5614   *) ac_try_echo=$ac_try;;
5615 esac
5616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5617 $as_echo "$ac_try_echo") >&5
5618   (eval "$ac_link") 2>conftest.er1
5619   ac_status=$?
5620   grep -v '^ *+' conftest.er1 >conftest.err
5621   rm -f conftest.er1
5622   cat conftest.err >&5
5623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624   (exit $ac_status); } && {
5625          test -z "$ac_c_werror_flag" ||
5626          test ! -s conftest.err
5627        } && test -s conftest$ac_exeext && {
5628          test "$cross_compiling" = yes ||
5629          $as_test_x conftest$ac_exeext
5630        }; then
5631   lt_cv_cc_needs_belf=yes
5632 else
5633   $as_echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5635
5636         lt_cv_cc_needs_belf=no
5637 fi
5638
5639 rm -rf conftest.dSYM
5640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5641       conftest$ac_exeext conftest.$ac_ext
5642      ac_ext=c
5643 ac_cpp='$CPP $CPPFLAGS'
5644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5647
5648 fi
5649 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5650 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5651   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5652     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5653     CFLAGS="$SAVE_CFLAGS"
5654   fi
5655   ;;
5656 sparc*-*solaris*)
5657   # Find out which ABI we are using.
5658   echo 'int i;' > conftest.$ac_ext
5659   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660   (eval $ac_compile) 2>&5
5661   ac_status=$?
5662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663   (exit $ac_status); }; then
5664     case `/usr/bin/file conftest.o` in
5665     *64-bit*)
5666       case $lt_cv_prog_gnu_ld in
5667       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5668       *)
5669         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5670           LD="${LD-ld} -64"
5671         fi
5672         ;;
5673       esac
5674       ;;
5675     esac
5676   fi
5677   rm -rf conftest*
5678   ;;
5679
5680
5681 esac
5682
5683 need_locks="$enable_libtool_lock"
5684
5685
5686
5687 for ac_header in dlfcn.h
5688 do
5689 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5691   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5692 $as_echo_n "checking for $ac_header... " >&6; }
5693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5694   $as_echo_n "(cached) " >&6
5695 fi
5696 ac_res=`eval 'as_val=${'$as_ac_Header'}
5697                  $as_echo "$as_val"'`
5698                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5699 $as_echo "$ac_res" >&6; }
5700 else
5701   # Is the header compilable?
5702 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5703 $as_echo_n "checking $ac_header usability... " >&6; }
5704 cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h.  */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h.  */
5710 $ac_includes_default
5711 #include <$ac_header>
5712 _ACEOF
5713 rm -f conftest.$ac_objext
5714 if { (ac_try="$ac_compile"
5715 case "(($ac_try" in
5716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717   *) ac_try_echo=$ac_try;;
5718 esac
5719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5720 $as_echo "$ac_try_echo") >&5
5721   (eval "$ac_compile") 2>conftest.er1
5722   ac_status=$?
5723   grep -v '^ *+' conftest.er1 >conftest.err
5724   rm -f conftest.er1
5725   cat conftest.err >&5
5726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727   (exit $ac_status); } && {
5728          test -z "$ac_c_werror_flag" ||
5729          test ! -s conftest.err
5730        } && test -s conftest.$ac_objext; then
5731   ac_header_compiler=yes
5732 else
5733   $as_echo "$as_me: failed program was:" >&5
5734 sed 's/^/| /' conftest.$ac_ext >&5
5735
5736         ac_header_compiler=no
5737 fi
5738
5739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5741 $as_echo "$ac_header_compiler" >&6; }
5742
5743 # Is the header present?
5744 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5745 $as_echo_n "checking $ac_header presence... " >&6; }
5746 cat >conftest.$ac_ext <<_ACEOF
5747 /* confdefs.h.  */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h.  */
5752 #include <$ac_header>
5753 _ACEOF
5754 if { (ac_try="$ac_cpp conftest.$ac_ext"
5755 case "(($ac_try" in
5756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757   *) ac_try_echo=$ac_try;;
5758 esac
5759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5760 $as_echo "$ac_try_echo") >&5
5761   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5762   ac_status=$?
5763   grep -v '^ *+' conftest.er1 >conftest.err
5764   rm -f conftest.er1
5765   cat conftest.err >&5
5766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767   (exit $ac_status); } >/dev/null && {
5768          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5769          test ! -s conftest.err
5770        }; then
5771   ac_header_preproc=yes
5772 else
5773   $as_echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5775
5776   ac_header_preproc=no
5777 fi
5778
5779 rm -f conftest.err conftest.$ac_ext
5780 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5781 $as_echo "$ac_header_preproc" >&6; }
5782
5783 # So?  What about this header?
5784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5785   yes:no: )
5786     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5787 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5788     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5789 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5790     ac_header_preproc=yes
5791     ;;
5792   no:yes:* )
5793     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5794 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5795     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5796 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5797     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5798 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5799     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5800 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5801     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5802 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5803     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5804 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5805     ( cat <<\_ASBOX
5806 ## ----------------------------------------------- ##
5807 ## Report this to mznflapaf (at) 0pointer (dot) de ##
5808 ## ----------------------------------------------- ##
5809 _ASBOX
5810      ) | sed "s/^/$as_me: WARNING:     /" >&2
5811     ;;
5812 esac
5813 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5814 $as_echo_n "checking for $ac_header... " >&6; }
5815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5816   $as_echo_n "(cached) " >&6
5817 else
5818   eval "$as_ac_Header=\$ac_header_preproc"
5819 fi
5820 ac_res=`eval 'as_val=${'$as_ac_Header'}
5821                  $as_echo "$as_val"'`
5822                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5823 $as_echo "$ac_res" >&6; }
5824
5825 fi
5826 as_val=`eval 'as_val=${'$as_ac_Header'}
5827                  $as_echo "$as_val"'`
5828    if test "x$as_val" = x""yes; then
5829   cat >>confdefs.h <<_ACEOF
5830 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5831 _ACEOF
5832
5833 fi
5834
5835 done
5836
5837 ac_ext=cpp
5838 ac_cpp='$CXXCPP $CPPFLAGS'
5839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5842 if test -z "$CXX"; then
5843   if test -n "$CCC"; then
5844     CXX=$CCC
5845   else
5846     if test -n "$ac_tool_prefix"; then
5847   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5848   do
5849     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5851 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if test "${ac_cv_prog_CXX+set}" = set; then
5854   $as_echo_n "(cached) " >&6
5855 else
5856   if test -n "$CXX"; then
5857   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862   IFS=$as_save_IFS
5863   test -z "$as_dir" && as_dir=.
5864   for ac_exec_ext in '' $ac_executable_extensions; do
5865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5867     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868     break 2
5869   fi
5870 done
5871 done
5872 IFS=$as_save_IFS
5873
5874 fi
5875 fi
5876 CXX=$ac_cv_prog_CXX
5877 if test -n "$CXX"; then
5878   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5879 $as_echo "$CXX" >&6; }
5880 else
5881   { $as_echo "$as_me:$LINENO: result: no" >&5
5882 $as_echo "no" >&6; }
5883 fi
5884
5885
5886     test -n "$CXX" && break
5887   done
5888 fi
5889 if test -z "$CXX"; then
5890   ac_ct_CXX=$CXX
5891   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5892 do
5893   # Extract the first word of "$ac_prog", so it can be a program name with args.
5894 set dummy $ac_prog; ac_word=$2
5895 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5898   $as_echo_n "(cached) " >&6
5899 else
5900   if test -n "$ac_ct_CXX"; then
5901   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5905 do
5906   IFS=$as_save_IFS
5907   test -z "$as_dir" && as_dir=.
5908   for ac_exec_ext in '' $ac_executable_extensions; do
5909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910     ac_cv_prog_ac_ct_CXX="$ac_prog"
5911     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5912     break 2
5913   fi
5914 done
5915 done
5916 IFS=$as_save_IFS
5917
5918 fi
5919 fi
5920 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5921 if test -n "$ac_ct_CXX"; then
5922   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5923 $as_echo "$ac_ct_CXX" >&6; }
5924 else
5925   { $as_echo "$as_me:$LINENO: result: no" >&5
5926 $as_echo "no" >&6; }
5927 fi
5928
5929
5930   test -n "$ac_ct_CXX" && break
5931 done
5932
5933   if test "x$ac_ct_CXX" = x; then
5934     CXX="g++"
5935   else
5936     case $cross_compiling:$ac_tool_warned in
5937 yes:)
5938 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5940 ac_tool_warned=yes ;;
5941 esac
5942     CXX=$ac_ct_CXX
5943   fi
5944 fi
5945
5946   fi
5947 fi
5948 # Provide some information about the compiler.
5949 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5950 set X $ac_compile
5951 ac_compiler=$2
5952 { (ac_try="$ac_compiler --version >&5"
5953 case "(($ac_try" in
5954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955   *) ac_try_echo=$ac_try;;
5956 esac
5957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5958 $as_echo "$ac_try_echo") >&5
5959   (eval "$ac_compiler --version >&5") 2>&5
5960   ac_status=$?
5961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962   (exit $ac_status); }
5963 { (ac_try="$ac_compiler -v >&5"
5964 case "(($ac_try" in
5965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966   *) ac_try_echo=$ac_try;;
5967 esac
5968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5969 $as_echo "$ac_try_echo") >&5
5970   (eval "$ac_compiler -v >&5") 2>&5
5971   ac_status=$?
5972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973   (exit $ac_status); }
5974 { (ac_try="$ac_compiler -V >&5"
5975 case "(($ac_try" in
5976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977   *) ac_try_echo=$ac_try;;
5978 esac
5979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5980 $as_echo "$ac_try_echo") >&5
5981   (eval "$ac_compiler -V >&5") 2>&5
5982   ac_status=$?
5983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984   (exit $ac_status); }
5985
5986 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5987 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5988 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5989   $as_echo_n "(cached) " >&6
5990 else
5991   cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h.  */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h.  */
5997
5998 int
5999 main ()
6000 {
6001 #ifndef __GNUC__
6002        choke me
6003 #endif
6004
6005   ;
6006   return 0;
6007 }
6008 _ACEOF
6009 rm -f conftest.$ac_objext
6010 if { (ac_try="$ac_compile"
6011 case "(($ac_try" in
6012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013   *) ac_try_echo=$ac_try;;
6014 esac
6015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6016 $as_echo "$ac_try_echo") >&5
6017   (eval "$ac_compile") 2>conftest.er1
6018   ac_status=$?
6019   grep -v '^ *+' conftest.er1 >conftest.err
6020   rm -f conftest.er1
6021   cat conftest.err >&5
6022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023   (exit $ac_status); } && {
6024          test -z "$ac_cxx_werror_flag" ||
6025          test ! -s conftest.err
6026        } && test -s conftest.$ac_objext; then
6027   ac_compiler_gnu=yes
6028 else
6029   $as_echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6031
6032         ac_compiler_gnu=no
6033 fi
6034
6035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6037
6038 fi
6039 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6040 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6041 if test $ac_compiler_gnu = yes; then
6042   GXX=yes
6043 else
6044   GXX=
6045 fi
6046 ac_test_CXXFLAGS=${CXXFLAGS+set}
6047 ac_save_CXXFLAGS=$CXXFLAGS
6048 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6049 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6050 if test "${ac_cv_prog_cxx_g+set}" = set; then
6051   $as_echo_n "(cached) " >&6
6052 else
6053   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6054    ac_cxx_werror_flag=yes
6055    ac_cv_prog_cxx_g=no
6056    CXXFLAGS="-g"
6057    cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h.  */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h.  */
6063
6064 int
6065 main ()
6066 {
6067
6068   ;
6069   return 0;
6070 }
6071 _ACEOF
6072 rm -f conftest.$ac_objext
6073 if { (ac_try="$ac_compile"
6074 case "(($ac_try" in
6075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6076   *) ac_try_echo=$ac_try;;
6077 esac
6078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6079 $as_echo "$ac_try_echo") >&5
6080   (eval "$ac_compile") 2>conftest.er1
6081   ac_status=$?
6082   grep -v '^ *+' conftest.er1 >conftest.err
6083   rm -f conftest.er1
6084   cat conftest.err >&5
6085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); } && {
6087          test -z "$ac_cxx_werror_flag" ||
6088          test ! -s conftest.err
6089        } && test -s conftest.$ac_objext; then
6090   ac_cv_prog_cxx_g=yes
6091 else
6092   $as_echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6094
6095         CXXFLAGS=""
6096       cat >conftest.$ac_ext <<_ACEOF
6097 /* confdefs.h.  */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h.  */
6102
6103 int
6104 main ()
6105 {
6106
6107   ;
6108   return 0;
6109 }
6110 _ACEOF
6111 rm -f conftest.$ac_objext
6112 if { (ac_try="$ac_compile"
6113 case "(($ac_try" in
6114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115   *) ac_try_echo=$ac_try;;
6116 esac
6117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6118 $as_echo "$ac_try_echo") >&5
6119   (eval "$ac_compile") 2>conftest.er1
6120   ac_status=$?
6121   grep -v '^ *+' conftest.er1 >conftest.err
6122   rm -f conftest.er1
6123   cat conftest.err >&5
6124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); } && {
6126          test -z "$ac_cxx_werror_flag" ||
6127          test ! -s conftest.err
6128        } && test -s conftest.$ac_objext; then
6129   :
6130 else
6131   $as_echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6133
6134         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6135          CXXFLAGS="-g"
6136          cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h.  */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h.  */
6142
6143 int
6144 main ()
6145 {
6146
6147   ;
6148   return 0;
6149 }
6150 _ACEOF
6151 rm -f conftest.$ac_objext
6152 if { (ac_try="$ac_compile"
6153 case "(($ac_try" in
6154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155   *) ac_try_echo=$ac_try;;
6156 esac
6157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6158 $as_echo "$ac_try_echo") >&5
6159   (eval "$ac_compile") 2>conftest.er1
6160   ac_status=$?
6161   grep -v '^ *+' conftest.er1 >conftest.err
6162   rm -f conftest.er1
6163   cat conftest.err >&5
6164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165   (exit $ac_status); } && {
6166          test -z "$ac_cxx_werror_flag" ||
6167          test ! -s conftest.err
6168        } && test -s conftest.$ac_objext; then
6169   ac_cv_prog_cxx_g=yes
6170 else
6171   $as_echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6173
6174
6175 fi
6176
6177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178 fi
6179
6180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6181 fi
6182
6183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6185 fi
6186 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6187 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6188 if test "$ac_test_CXXFLAGS" = set; then
6189   CXXFLAGS=$ac_save_CXXFLAGS
6190 elif test $ac_cv_prog_cxx_g = yes; then
6191   if test "$GXX" = yes; then
6192     CXXFLAGS="-g -O2"
6193   else
6194     CXXFLAGS="-g"
6195   fi
6196 else
6197   if test "$GXX" = yes; then
6198     CXXFLAGS="-O2"
6199   else
6200     CXXFLAGS=
6201   fi
6202 fi
6203 ac_ext=cpp
6204 ac_cpp='$CXXCPP $CPPFLAGS'
6205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6208
6209 depcc="$CXX"  am_compiler_list=
6210
6211 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6212 $as_echo_n "checking dependency style of $depcc... " >&6; }
6213 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6214   $as_echo_n "(cached) " >&6
6215 else
6216   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6217   # We make a subdir and do the tests there.  Otherwise we can end up
6218   # making bogus files that we don't know about and never remove.  For
6219   # instance it was reported that on HP-UX the gcc test will end up
6220   # making a dummy file named `D' -- because `-MD' means `put the output
6221   # in D'.
6222   mkdir conftest.dir
6223   # Copy depcomp to subdir because otherwise we won't find it if we're
6224   # using a relative directory.
6225   cp "$am_depcomp" conftest.dir
6226   cd conftest.dir
6227   # We will build objects and dependencies in a subdirectory because
6228   # it helps to detect inapplicable dependency modes.  For instance
6229   # both Tru64's cc and ICC support -MD to output dependencies as a
6230   # side effect of compilation, but ICC will put the dependencies in
6231   # the current directory while Tru64 will put them in the object
6232   # directory.
6233   mkdir sub
6234
6235   am_cv_CXX_dependencies_compiler_type=none
6236   if test "$am_compiler_list" = ""; then
6237      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6238   fi
6239   for depmode in $am_compiler_list; do
6240     # Setup a source with many dependencies, because some compilers
6241     # like to wrap large dependency lists on column 80 (with \), and
6242     # we should not choose a depcomp mode which is confused by this.
6243     #
6244     # We need to recreate these files for each test, as the compiler may
6245     # overwrite some of them when testing with obscure command lines.
6246     # This happens at least with the AIX C compiler.
6247     : > sub/conftest.c
6248     for i in 1 2 3 4 5 6; do
6249       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6250       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6251       # Solaris 8's {/usr,}/bin/sh.
6252       touch sub/conftst$i.h
6253     done
6254     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6255
6256     case $depmode in
6257     nosideeffect)
6258       # after this tag, mechanisms are not by side-effect, so they'll
6259       # only be used when explicitly requested
6260       if test "x$enable_dependency_tracking" = xyes; then
6261         continue
6262       else
6263         break
6264       fi
6265       ;;
6266     none) break ;;
6267     esac
6268     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6269     # mode.  It turns out that the SunPro C++ compiler does not properly
6270     # handle `-M -o', and we need to detect this.
6271     if depmode=$depmode \
6272        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6273        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6274        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6275          >/dev/null 2>conftest.err &&
6276        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6277        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6278        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6279        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6280       # icc doesn't choke on unknown options, it will just issue warnings
6281       # or remarks (even with -Werror).  So we grep stderr for any message
6282       # that says an option was ignored or not supported.
6283       # When given -MP, icc 7.0 and 7.1 complain thusly:
6284       #   icc: Command line warning: ignoring option '-M'; no argument required
6285       # The diagnosis changed in icc 8.0:
6286       #   icc: Command line remark: option '-MP' not supported
6287       if (grep 'ignoring option' conftest.err ||
6288           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6289         am_cv_CXX_dependencies_compiler_type=$depmode
6290         break
6291       fi
6292     fi
6293   done
6294
6295   cd ..
6296   rm -rf conftest.dir
6297 else
6298   am_cv_CXX_dependencies_compiler_type=none
6299 fi
6300
6301 fi
6302 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6303 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6304 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6305
6306  if
6307   test "x$enable_dependency_tracking" != xno \
6308   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6309   am__fastdepCXX_TRUE=
6310   am__fastdepCXX_FALSE='#'
6311 else
6312   am__fastdepCXX_TRUE='#'
6313   am__fastdepCXX_FALSE=
6314 fi
6315
6316
6317
6318
6319 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6320     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6321     (test "X$CXX" != "Xg++"))) ; then
6322   ac_ext=cpp
6323 ac_cpp='$CXXCPP $CPPFLAGS'
6324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6327 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6328 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6329 if test -z "$CXXCPP"; then
6330   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6331   $as_echo_n "(cached) " >&6
6332 else
6333       # Double quotes because CXXCPP needs to be expanded
6334     for CXXCPP in "$CXX -E" "/lib/cpp"
6335     do
6336       ac_preproc_ok=false
6337 for ac_cxx_preproc_warn_flag in '' yes
6338 do
6339   # Use a header file that comes with gcc, so configuring glibc
6340   # with a fresh cross-compiler works.
6341   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6342   # <limits.h> exists even on freestanding compilers.
6343   # On the NeXT, cc -E runs the code through the compiler's parser,
6344   # not just through cpp. "Syntax error" is here to catch this case.
6345   cat >conftest.$ac_ext <<_ACEOF
6346 /* confdefs.h.  */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h.  */
6351 #ifdef __STDC__
6352 # include <limits.h>
6353 #else
6354 # include <assert.h>
6355 #endif
6356                      Syntax error
6357 _ACEOF
6358 if { (ac_try="$ac_cpp conftest.$ac_ext"
6359 case "(($ac_try" in
6360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361   *) ac_try_echo=$ac_try;;
6362 esac
6363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6364 $as_echo "$ac_try_echo") >&5
6365   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6366   ac_status=$?
6367   grep -v '^ *+' conftest.er1 >conftest.err
6368   rm -f conftest.er1
6369   cat conftest.err >&5
6370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); } >/dev/null && {
6372          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6373          test ! -s conftest.err
6374        }; then
6375   :
6376 else
6377   $as_echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6379
6380   # Broken: fails on valid input.
6381 continue
6382 fi
6383
6384 rm -f conftest.err conftest.$ac_ext
6385
6386   # OK, works on sane cases.  Now check whether nonexistent headers
6387   # can be detected and how.
6388   cat >conftest.$ac_ext <<_ACEOF
6389 /* confdefs.h.  */
6390 _ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h.  */
6394 #include <ac_nonexistent.h>
6395 _ACEOF
6396 if { (ac_try="$ac_cpp conftest.$ac_ext"
6397 case "(($ac_try" in
6398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399   *) ac_try_echo=$ac_try;;
6400 esac
6401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6402 $as_echo "$ac_try_echo") >&5
6403   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6404   ac_status=$?
6405   grep -v '^ *+' conftest.er1 >conftest.err
6406   rm -f conftest.er1
6407   cat conftest.err >&5
6408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); } >/dev/null && {
6410          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6411          test ! -s conftest.err
6412        }; then
6413   # Broken: success on invalid input.
6414 continue
6415 else
6416   $as_echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6418
6419   # Passes both tests.
6420 ac_preproc_ok=:
6421 break
6422 fi
6423
6424 rm -f conftest.err conftest.$ac_ext
6425
6426 done
6427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6428 rm -f conftest.err conftest.$ac_ext
6429 if $ac_preproc_ok; then
6430   break
6431 fi
6432
6433     done
6434     ac_cv_prog_CXXCPP=$CXXCPP
6435
6436 fi
6437   CXXCPP=$ac_cv_prog_CXXCPP
6438 else
6439   ac_cv_prog_CXXCPP=$CXXCPP
6440 fi
6441 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6442 $as_echo "$CXXCPP" >&6; }
6443 ac_preproc_ok=false
6444 for ac_cxx_preproc_warn_flag in '' yes
6445 do
6446   # Use a header file that comes with gcc, so configuring glibc
6447   # with a fresh cross-compiler works.
6448   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6449   # <limits.h> exists even on freestanding compilers.
6450   # On the NeXT, cc -E runs the code through the compiler's parser,
6451   # not just through cpp. "Syntax error" is here to catch this case.
6452   cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h.  */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h.  */
6458 #ifdef __STDC__
6459 # include <limits.h>
6460 #else
6461 # include <assert.h>
6462 #endif
6463                      Syntax error
6464 _ACEOF
6465 if { (ac_try="$ac_cpp conftest.$ac_ext"
6466 case "(($ac_try" in
6467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468   *) ac_try_echo=$ac_try;;
6469 esac
6470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6471 $as_echo "$ac_try_echo") >&5
6472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6473   ac_status=$?
6474   grep -v '^ *+' conftest.er1 >conftest.err
6475   rm -f conftest.er1
6476   cat conftest.err >&5
6477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); } >/dev/null && {
6479          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6480          test ! -s conftest.err
6481        }; then
6482   :
6483 else
6484   $as_echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6486
6487   # Broken: fails on valid input.
6488 continue
6489 fi
6490
6491 rm -f conftest.err conftest.$ac_ext
6492
6493   # OK, works on sane cases.  Now check whether nonexistent headers
6494   # can be detected and how.
6495   cat >conftest.$ac_ext <<_ACEOF
6496 /* confdefs.h.  */
6497 _ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h.  */
6501 #include <ac_nonexistent.h>
6502 _ACEOF
6503 if { (ac_try="$ac_cpp conftest.$ac_ext"
6504 case "(($ac_try" in
6505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6506   *) ac_try_echo=$ac_try;;
6507 esac
6508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6509 $as_echo "$ac_try_echo") >&5
6510   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6511   ac_status=$?
6512   grep -v '^ *+' conftest.er1 >conftest.err
6513   rm -f conftest.er1
6514   cat conftest.err >&5
6515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); } >/dev/null && {
6517          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6518          test ! -s conftest.err
6519        }; then
6520   # Broken: success on invalid input.
6521 continue
6522 else
6523   $as_echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6525
6526   # Passes both tests.
6527 ac_preproc_ok=:
6528 break
6529 fi
6530
6531 rm -f conftest.err conftest.$ac_ext
6532
6533 done
6534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6535 rm -f conftest.err conftest.$ac_ext
6536 if $ac_preproc_ok; then
6537   :
6538 else
6539   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6541 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6542 See \`config.log' for more details." >&5
6543 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6544 See \`config.log' for more details." >&2;}
6545    { (exit 1); exit 1; }; }; }
6546 fi
6547
6548 ac_ext=cpp
6549 ac_cpp='$CXXCPP $CPPFLAGS'
6550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6553
6554 fi
6555
6556
6557 ac_ext=f
6558 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6559 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6560 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6561 if test -n "$ac_tool_prefix"; then
6562   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6563   do
6564     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if test "${ac_cv_prog_F77+set}" = set; then
6569   $as_echo_n "(cached) " >&6
6570 else
6571   if test -n "$F77"; then
6572   ac_cv_prog_F77="$F77" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577   IFS=$as_save_IFS
6578   test -z "$as_dir" && as_dir=.
6579   for ac_exec_ext in '' $ac_executable_extensions; do
6580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6582     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583     break 2
6584   fi
6585 done
6586 done
6587 IFS=$as_save_IFS
6588
6589 fi
6590 fi
6591 F77=$ac_cv_prog_F77
6592 if test -n "$F77"; then
6593   { $as_echo "$as_me:$LINENO: result: $F77" >&5
6594 $as_echo "$F77" >&6; }
6595 else
6596   { $as_echo "$as_me:$LINENO: result: no" >&5
6597 $as_echo "no" >&6; }
6598 fi
6599
6600
6601     test -n "$F77" && break
6602   done
6603 fi
6604 if test -z "$F77"; then
6605   ac_ct_F77=$F77
6606   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6607 do
6608   # Extract the first word of "$ac_prog", so it can be a program name with args.
6609 set dummy $ac_prog; ac_word=$2
6610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6613   $as_echo_n "(cached) " >&6
6614 else
6615   if test -n "$ac_ct_F77"; then
6616   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6617 else
6618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 for as_dir in $PATH
6620 do
6621   IFS=$as_save_IFS
6622   test -z "$as_dir" && as_dir=.
6623   for ac_exec_ext in '' $ac_executable_extensions; do
6624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6625     ac_cv_prog_ac_ct_F77="$ac_prog"
6626     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6627     break 2
6628   fi
6629 done
6630 done
6631 IFS=$as_save_IFS
6632
6633 fi
6634 fi
6635 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6636 if test -n "$ac_ct_F77"; then
6637   { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6638 $as_echo "$ac_ct_F77" >&6; }
6639 else
6640   { $as_echo "$as_me:$LINENO: result: no" >&5
6641 $as_echo "no" >&6; }
6642 fi
6643
6644
6645   test -n "$ac_ct_F77" && break
6646 done
6647
6648   if test "x$ac_ct_F77" = x; then
6649     F77=""
6650   else
6651     case $cross_compiling:$ac_tool_warned in
6652 yes:)
6653 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6655 ac_tool_warned=yes ;;
6656 esac
6657     F77=$ac_ct_F77
6658   fi
6659 fi
6660
6661
6662 # Provide some information about the compiler.
6663 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6664 set X $ac_compile
6665 ac_compiler=$2
6666 { (ac_try="$ac_compiler --version >&5"
6667 case "(($ac_try" in
6668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669   *) ac_try_echo=$ac_try;;
6670 esac
6671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6672 $as_echo "$ac_try_echo") >&5
6673   (eval "$ac_compiler --version >&5") 2>&5
6674   ac_status=$?
6675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676   (exit $ac_status); }
6677 { (ac_try="$ac_compiler -v >&5"
6678 case "(($ac_try" in
6679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680   *) ac_try_echo=$ac_try;;
6681 esac
6682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6683 $as_echo "$ac_try_echo") >&5
6684   (eval "$ac_compiler -v >&5") 2>&5
6685   ac_status=$?
6686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687   (exit $ac_status); }
6688 { (ac_try="$ac_compiler -V >&5"
6689 case "(($ac_try" in
6690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6691   *) ac_try_echo=$ac_try;;
6692 esac
6693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6694 $as_echo "$ac_try_echo") >&5
6695   (eval "$ac_compiler -V >&5") 2>&5
6696   ac_status=$?
6697   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698   (exit $ac_status); }
6699 rm -f a.out
6700
6701 # If we don't use `.F' as extension, the preprocessor is not run on the
6702 # input file.  (Note that this only needs to work for GNU compilers.)
6703 ac_save_ext=$ac_ext
6704 ac_ext=F
6705 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6706 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6707 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6708   $as_echo_n "(cached) " >&6
6709 else
6710   cat >conftest.$ac_ext <<_ACEOF
6711       program main
6712 #ifndef __GNUC__
6713        choke me
6714 #endif
6715
6716       end
6717 _ACEOF
6718 rm -f conftest.$ac_objext
6719 if { (ac_try="$ac_compile"
6720 case "(($ac_try" in
6721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6722   *) ac_try_echo=$ac_try;;
6723 esac
6724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6725 $as_echo "$ac_try_echo") >&5
6726   (eval "$ac_compile") 2>conftest.er1
6727   ac_status=$?
6728   grep -v '^ *+' conftest.er1 >conftest.err
6729   rm -f conftest.er1
6730   cat conftest.err >&5
6731   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); } && {
6733          test -z "$ac_f77_werror_flag" ||
6734          test ! -s conftest.err
6735        } && test -s conftest.$ac_objext; then
6736   ac_compiler_gnu=yes
6737 else
6738   $as_echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.$ac_ext >&5
6740
6741         ac_compiler_gnu=no
6742 fi
6743
6744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6745 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6746
6747 fi
6748 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6749 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6750 ac_ext=$ac_save_ext
6751 ac_test_FFLAGS=${FFLAGS+set}
6752 ac_save_FFLAGS=$FFLAGS
6753 FFLAGS=
6754 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6755 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6756 if test "${ac_cv_prog_f77_g+set}" = set; then
6757   $as_echo_n "(cached) " >&6
6758 else
6759   FFLAGS=-g
6760 cat >conftest.$ac_ext <<_ACEOF
6761       program main
6762
6763       end
6764 _ACEOF
6765 rm -f conftest.$ac_objext
6766 if { (ac_try="$ac_compile"
6767 case "(($ac_try" in
6768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769   *) ac_try_echo=$ac_try;;
6770 esac
6771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6772 $as_echo "$ac_try_echo") >&5
6773   (eval "$ac_compile") 2>conftest.er1
6774   ac_status=$?
6775   grep -v '^ *+' conftest.er1 >conftest.err
6776   rm -f conftest.er1
6777   cat conftest.err >&5
6778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779   (exit $ac_status); } && {
6780          test -z "$ac_f77_werror_flag" ||
6781          test ! -s conftest.err
6782        } && test -s conftest.$ac_objext; then
6783   ac_cv_prog_f77_g=yes
6784 else
6785   $as_echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6787
6788         ac_cv_prog_f77_g=no
6789 fi
6790
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6792
6793 fi
6794 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6795 $as_echo "$ac_cv_prog_f77_g" >&6; }
6796 if test "$ac_test_FFLAGS" = set; then
6797   FFLAGS=$ac_save_FFLAGS
6798 elif test $ac_cv_prog_f77_g = yes; then
6799   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6800     FFLAGS="-g -O2"
6801   else
6802     FFLAGS="-g"
6803   fi
6804 else
6805   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6806     FFLAGS="-O2"
6807   else
6808     FFLAGS=
6809   fi
6810 fi
6811
6812 if test $ac_compiler_gnu = yes; then
6813   G77=yes
6814 else
6815   G77=
6816 fi
6817 ac_ext=c
6818 ac_cpp='$CPP $CPPFLAGS'
6819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6822
6823
6824
6825 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6826 # find the maximum length of command line arguments
6827 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6828 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6829 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6830   $as_echo_n "(cached) " >&6
6831 else
6832     i=0
6833   teststring="ABCD"
6834
6835   case $build_os in
6836   msdosdjgpp*)
6837     # On DJGPP, this test can blow up pretty badly due to problems in libc
6838     # (any single argument exceeding 2000 bytes causes a buffer overrun
6839     # during glob expansion).  Even if it were fixed, the result of this
6840     # check would be larger than it should be.
6841     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6842     ;;
6843
6844   gnu*)
6845     # Under GNU Hurd, this test is not required because there is
6846     # no limit to the length of command line arguments.
6847     # Libtool will interpret -1 as no limit whatsoever
6848     lt_cv_sys_max_cmd_len=-1;
6849     ;;
6850
6851   cygwin* | mingw*)
6852     # On Win9x/ME, this test blows up -- it succeeds, but takes
6853     # about 5 minutes as the teststring grows exponentially.
6854     # Worse, since 9x/ME are not pre-emptively multitasking,
6855     # you end up with a "frozen" computer, even though with patience
6856     # the test eventually succeeds (with a max line length of 256k).
6857     # Instead, let's just punt: use the minimum linelength reported by
6858     # all of the supported platforms: 8192 (on NT/2K/XP).
6859     lt_cv_sys_max_cmd_len=8192;
6860     ;;
6861
6862   amigaos*)
6863     # On AmigaOS with pdksh, this test takes hours, literally.
6864     # So we just punt and use a minimum line length of 8192.
6865     lt_cv_sys_max_cmd_len=8192;
6866     ;;
6867
6868   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6869     # This has been around since 386BSD, at least.  Likely further.
6870     if test -x /sbin/sysctl; then
6871       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6872     elif test -x /usr/sbin/sysctl; then
6873       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6874     else
6875       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6876     fi
6877     # And add a safety zone
6878     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6879     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6880     ;;
6881
6882   interix*)
6883     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6884     lt_cv_sys_max_cmd_len=196608
6885     ;;
6886
6887   osf*)
6888     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6889     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6890     # nice to cause kernel panics so lets avoid the loop below.
6891     # First set a reasonable default.
6892     lt_cv_sys_max_cmd_len=16384
6893     #
6894     if test -x /sbin/sysconfig; then
6895       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6896         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6897       esac
6898     fi
6899     ;;
6900   sco3.2v5*)
6901     lt_cv_sys_max_cmd_len=102400
6902     ;;
6903   sysv5* | sco5v6* | sysv4.2uw2*)
6904     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6905     if test -n "$kargmax"; then
6906       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6907     else
6908       lt_cv_sys_max_cmd_len=32768
6909     fi
6910     ;;
6911   *)
6912     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6913     if test -n "$lt_cv_sys_max_cmd_len"; then
6914       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6915       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6916     else
6917       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6918       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6919                = "XX$teststring") >/dev/null 2>&1 &&
6920               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6921               lt_cv_sys_max_cmd_len=$new_result &&
6922               test $i != 17 # 1/2 MB should be enough
6923       do
6924         i=`expr $i + 1`
6925         teststring=$teststring$teststring
6926       done
6927       teststring=
6928       # Add a significant safety factor because C++ compilers can tack on massive
6929       # amounts of additional arguments before passing them to the linker.
6930       # It appears as though 1/2 is a usable value.
6931       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6932     fi
6933     ;;
6934   esac
6935
6936 fi
6937
6938 if test -n $lt_cv_sys_max_cmd_len ; then
6939   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6940 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6941 else
6942   { $as_echo "$as_me:$LINENO: result: none" >&5
6943 $as_echo "none" >&6; }
6944 fi
6945
6946
6947
6948
6949
6950 # Check for command to grab the raw symbol name followed by C symbol from nm.
6951 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6952 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6953 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6954   $as_echo_n "(cached) " >&6
6955 else
6956
6957 # These are sane defaults that work on at least a few old systems.
6958 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6959
6960 # Character class describing NM global symbol codes.
6961 symcode='[BCDEGRST]'
6962
6963 # Regexp to match symbols that can be accessed directly from C.
6964 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6965
6966 # Transform an extracted symbol line into a proper C declaration
6967 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6968
6969 # Transform an extracted symbol line into symbol name and symbol address
6970 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6971
6972 # Define system-specific variables.
6973 case $host_os in
6974 aix*)
6975   symcode='[BCDT]'
6976   ;;
6977 cygwin* | mingw* | pw32*)
6978   symcode='[ABCDGISTW]'
6979   ;;
6980 hpux*) # Its linker distinguishes data from code symbols
6981   if test "$host_cpu" = ia64; then
6982     symcode='[ABCDEGRST]'
6983   fi
6984   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6985   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6986   ;;
6987 linux* | k*bsd*-gnu)
6988   if test "$host_cpu" = ia64; then
6989     symcode='[ABCDGIRSTW]'
6990     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6991     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6992   fi
6993   ;;
6994 irix* | nonstopux*)
6995   symcode='[BCDEGRST]'
6996   ;;
6997 osf*)
6998   symcode='[BCDEGQRST]'
6999   ;;
7000 solaris*)
7001   symcode='[BDRT]'
7002   ;;
7003 sco3.2v5*)
7004   symcode='[DT]'
7005   ;;
7006 sysv4.2uw2*)
7007   symcode='[DT]'
7008   ;;
7009 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7010   symcode='[ABDT]'
7011   ;;
7012 sysv4)
7013   symcode='[DFNSTU]'
7014   ;;
7015 esac
7016
7017 # Handle CRLF in mingw tool chain
7018 opt_cr=
7019 case $build_os in
7020 mingw*)
7021   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7022   ;;
7023 esac
7024
7025 # If we're using GNU nm, then use its standard symbol codes.
7026 case `$NM -V 2>&1` in
7027 *GNU* | *'with BFD'*)
7028   symcode='[ABCDGIRSTW]' ;;
7029 esac
7030
7031 # Try without a prefix undercore, then with it.
7032 for ac_symprfx in "" "_"; do
7033
7034   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7035   symxfrm="\\1 $ac_symprfx\\2 \\2"
7036
7037   # Write the raw and C identifiers.
7038   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7039
7040   # Check to see that the pipe works correctly.
7041   pipe_works=no
7042
7043   rm -f conftest*
7044   cat > conftest.$ac_ext <<EOF
7045 #ifdef __cplusplus
7046 extern "C" {
7047 #endif
7048 char nm_test_var;
7049 void nm_test_func(){}
7050 #ifdef __cplusplus
7051 }
7052 #endif
7053 int main(){nm_test_var='a';nm_test_func();return(0);}
7054 EOF
7055
7056   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057   (eval $ac_compile) 2>&5
7058   ac_status=$?
7059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060   (exit $ac_status); }; then
7061     # Now try to grab the symbols.
7062     nlist=conftest.nm
7063     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7064   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7065   ac_status=$?
7066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067   (exit $ac_status); } && test -s "$nlist"; then
7068       # Try sorting and uniquifying the output.
7069       if sort "$nlist" | uniq > "$nlist"T; then
7070         mv -f "$nlist"T "$nlist"
7071       else
7072         rm -f "$nlist"T
7073       fi
7074
7075       # Make sure that we snagged all the symbols we need.
7076       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7077         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7078           cat <<EOF > conftest.$ac_ext
7079 #ifdef __cplusplus
7080 extern "C" {
7081 #endif
7082
7083 EOF
7084           # Now generate the symbol file.
7085           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7086
7087           cat <<EOF >> conftest.$ac_ext
7088 #if defined (__STDC__) && __STDC__
7089 # define lt_ptr_t void *
7090 #else
7091 # define lt_ptr_t char *
7092 # define const
7093 #endif
7094
7095 /* The mapping between symbol names and symbols. */
7096 const struct {
7097   const char *name;
7098   lt_ptr_t address;
7099 }
7100 lt_preloaded_symbols[] =
7101 {
7102 EOF
7103           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7104           cat <<\EOF >> conftest.$ac_ext
7105   {0, (lt_ptr_t) 0}
7106 };
7107
7108 #ifdef __cplusplus
7109 }
7110 #endif
7111 EOF
7112           # Now try linking the two files.
7113           mv conftest.$ac_objext conftstm.$ac_objext
7114           lt_save_LIBS="$LIBS"
7115           lt_save_CFLAGS="$CFLAGS"
7116           LIBS="conftstm.$ac_objext"
7117           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7118           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7119   (eval $ac_link) 2>&5
7120   ac_status=$?
7121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7123             pipe_works=yes
7124           fi
7125           LIBS="$lt_save_LIBS"
7126           CFLAGS="$lt_save_CFLAGS"
7127         else
7128           echo "cannot find nm_test_func in $nlist" >&5
7129         fi
7130       else
7131         echo "cannot find nm_test_var in $nlist" >&5
7132       fi
7133     else
7134       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7135     fi
7136   else
7137     echo "$progname: failed program was:" >&5
7138     cat conftest.$ac_ext >&5
7139   fi
7140   rm -rf conftest* conftst*
7141
7142   # Do not use the global_symbol_pipe unless it works.
7143   if test "$pipe_works" = yes; then
7144     break
7145   else
7146     lt_cv_sys_global_symbol_pipe=
7147   fi
7148 done
7149
7150 fi
7151
7152 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7153   lt_cv_sys_global_symbol_to_cdecl=
7154 fi
7155 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7156   { $as_echo "$as_me:$LINENO: result: failed" >&5
7157 $as_echo "failed" >&6; }
7158 else
7159   { $as_echo "$as_me:$LINENO: result: ok" >&5
7160 $as_echo "ok" >&6; }
7161 fi
7162
7163 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7164 $as_echo_n "checking for objdir... " >&6; }
7165 if test "${lt_cv_objdir+set}" = set; then
7166   $as_echo_n "(cached) " >&6
7167 else
7168   rm -f .libs 2>/dev/null
7169 mkdir .libs 2>/dev/null
7170 if test -d .libs; then
7171   lt_cv_objdir=.libs
7172 else
7173   # MS-DOS does not allow filenames that begin with a dot.
7174   lt_cv_objdir=_libs
7175 fi
7176 rmdir .libs 2>/dev/null
7177 fi
7178 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7179 $as_echo "$lt_cv_objdir" >&6; }
7180 objdir=$lt_cv_objdir
7181
7182
7183
7184
7185
7186 case $host_os in
7187 aix3*)
7188   # AIX sometimes has problems with the GCC collect2 program.  For some
7189   # reason, if we set the COLLECT_NAMES environment variable, the problems
7190   # vanish in a puff of smoke.
7191   if test "X${COLLECT_NAMES+set}" != Xset; then
7192     COLLECT_NAMES=
7193     export COLLECT_NAMES
7194   fi
7195   ;;
7196 esac
7197
7198 # Sed substitution that helps us do robust quoting.  It backslashifies
7199 # metacharacters that are still active within double-quoted strings.
7200 Xsed='sed -e 1s/^X//'
7201 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7202
7203 # Same as above, but do not quote variable references.
7204 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7205
7206 # Sed substitution to delay expansion of an escaped shell variable in a
7207 # double_quote_subst'ed string.
7208 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7209
7210 # Sed substitution to avoid accidental globbing in evaled expressions
7211 no_glob_subst='s/\*/\\\*/g'
7212
7213 # Constants:
7214 rm="rm -f"
7215
7216 # Global variables:
7217 default_ofile=libtool
7218 can_build_shared=yes
7219
7220 # All known linkers require a `.a' archive for static linking (except MSVC,
7221 # which needs '.lib').
7222 libext=a
7223 ltmain="$ac_aux_dir/ltmain.sh"
7224 ofile="$default_ofile"
7225 with_gnu_ld="$lt_cv_prog_gnu_ld"
7226
7227 if test -n "$ac_tool_prefix"; then
7228   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7229 set dummy ${ac_tool_prefix}ar; ac_word=$2
7230 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if test "${ac_cv_prog_AR+set}" = set; then
7233   $as_echo_n "(cached) " >&6
7234 else
7235   if test -n "$AR"; then
7236   ac_cv_prog_AR="$AR" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241   IFS=$as_save_IFS
7242   test -z "$as_dir" && as_dir=.
7243   for ac_exec_ext in '' $ac_executable_extensions; do
7244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245     ac_cv_prog_AR="${ac_tool_prefix}ar"
7246     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247     break 2
7248   fi
7249 done
7250 done
7251 IFS=$as_save_IFS
7252
7253 fi
7254 fi
7255 AR=$ac_cv_prog_AR
7256 if test -n "$AR"; then
7257   { $as_echo "$as_me:$LINENO: result: $AR" >&5
7258 $as_echo "$AR" >&6; }
7259 else
7260   { $as_echo "$as_me:$LINENO: result: no" >&5
7261 $as_echo "no" >&6; }
7262 fi
7263
7264
7265 fi
7266 if test -z "$ac_cv_prog_AR"; then
7267   ac_ct_AR=$AR
7268   # Extract the first word of "ar", so it can be a program name with args.
7269 set dummy ar; ac_word=$2
7270 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7273   $as_echo_n "(cached) " >&6
7274 else
7275   if test -n "$ac_ct_AR"; then
7276   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7277 else
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 for as_dir in $PATH
7280 do
7281   IFS=$as_save_IFS
7282   test -z "$as_dir" && as_dir=.
7283   for ac_exec_ext in '' $ac_executable_extensions; do
7284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7285     ac_cv_prog_ac_ct_AR="ar"
7286     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287     break 2
7288   fi
7289 done
7290 done
7291 IFS=$as_save_IFS
7292
7293 fi
7294 fi
7295 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7296 if test -n "$ac_ct_AR"; then
7297   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7298 $as_echo "$ac_ct_AR" >&6; }
7299 else
7300   { $as_echo "$as_me:$LINENO: result: no" >&5
7301 $as_echo "no" >&6; }
7302 fi
7303
7304   if test "x$ac_ct_AR" = x; then
7305     AR="false"
7306   else
7307     case $cross_compiling:$ac_tool_warned in
7308 yes:)
7309 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7311 ac_tool_warned=yes ;;
7312 esac
7313     AR=$ac_ct_AR
7314   fi
7315 else
7316   AR="$ac_cv_prog_AR"
7317 fi
7318
7319 if test -n "$ac_tool_prefix"; then
7320   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7321 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7323 $as_echo_n "checking for $ac_word... " >&6; }
7324 if test "${ac_cv_prog_RANLIB+set}" = set; then
7325   $as_echo_n "(cached) " >&6
7326 else
7327   if test -n "$RANLIB"; then
7328   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333   IFS=$as_save_IFS
7334   test -z "$as_dir" && as_dir=.
7335   for ac_exec_ext in '' $ac_executable_extensions; do
7336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7338     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339     break 2
7340   fi
7341 done
7342 done
7343 IFS=$as_save_IFS
7344
7345 fi
7346 fi
7347 RANLIB=$ac_cv_prog_RANLIB
7348 if test -n "$RANLIB"; then
7349   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7350 $as_echo "$RANLIB" >&6; }
7351 else
7352   { $as_echo "$as_me:$LINENO: result: no" >&5
7353 $as_echo "no" >&6; }
7354 fi
7355
7356
7357 fi
7358 if test -z "$ac_cv_prog_RANLIB"; then
7359   ac_ct_RANLIB=$RANLIB
7360   # Extract the first word of "ranlib", so it can be a program name with args.
7361 set dummy ranlib; ac_word=$2
7362 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7365   $as_echo_n "(cached) " >&6
7366 else
7367   if test -n "$ac_ct_RANLIB"; then
7368   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7369 else
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7372 do
7373   IFS=$as_save_IFS
7374   test -z "$as_dir" && as_dir=.
7375   for ac_exec_ext in '' $ac_executable_extensions; do
7376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377     ac_cv_prog_ac_ct_RANLIB="ranlib"
7378     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379     break 2
7380   fi
7381 done
7382 done
7383 IFS=$as_save_IFS
7384
7385 fi
7386 fi
7387 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7388 if test -n "$ac_ct_RANLIB"; then
7389   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7390 $as_echo "$ac_ct_RANLIB" >&6; }
7391 else
7392   { $as_echo "$as_me:$LINENO: result: no" >&5
7393 $as_echo "no" >&6; }
7394 fi
7395
7396   if test "x$ac_ct_RANLIB" = x; then
7397     RANLIB=":"
7398   else
7399     case $cross_compiling:$ac_tool_warned in
7400 yes:)
7401 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7403 ac_tool_warned=yes ;;
7404 esac
7405     RANLIB=$ac_ct_RANLIB
7406   fi
7407 else
7408   RANLIB="$ac_cv_prog_RANLIB"
7409 fi
7410
7411 if test -n "$ac_tool_prefix"; then
7412   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7413 set dummy ${ac_tool_prefix}strip; ac_word=$2
7414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 $as_echo_n "checking for $ac_word... " >&6; }
7416 if test "${ac_cv_prog_STRIP+set}" = set; then
7417   $as_echo_n "(cached) " >&6
7418 else
7419   if test -n "$STRIP"; then
7420   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7421 else
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425   IFS=$as_save_IFS
7426   test -z "$as_dir" && as_dir=.
7427   for ac_exec_ext in '' $ac_executable_extensions; do
7428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7430     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7431     break 2
7432   fi
7433 done
7434 done
7435 IFS=$as_save_IFS
7436
7437 fi
7438 fi
7439 STRIP=$ac_cv_prog_STRIP
7440 if test -n "$STRIP"; then
7441   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7442 $as_echo "$STRIP" >&6; }
7443 else
7444   { $as_echo "$as_me:$LINENO: result: no" >&5
7445 $as_echo "no" >&6; }
7446 fi
7447
7448
7449 fi
7450 if test -z "$ac_cv_prog_STRIP"; then
7451   ac_ct_STRIP=$STRIP
7452   # Extract the first word of "strip", so it can be a program name with args.
7453 set dummy strip; ac_word=$2
7454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 $as_echo_n "checking for $ac_word... " >&6; }
7456 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7457   $as_echo_n "(cached) " >&6
7458 else
7459   if test -n "$ac_ct_STRIP"; then
7460   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7461 else
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465   IFS=$as_save_IFS
7466   test -z "$as_dir" && as_dir=.
7467   for ac_exec_ext in '' $ac_executable_extensions; do
7468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469     ac_cv_prog_ac_ct_STRIP="strip"
7470     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471     break 2
7472   fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7476
7477 fi
7478 fi
7479 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7480 if test -n "$ac_ct_STRIP"; then
7481   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7482 $as_echo "$ac_ct_STRIP" >&6; }
7483 else
7484   { $as_echo "$as_me:$LINENO: result: no" >&5
7485 $as_echo "no" >&6; }
7486 fi
7487
7488   if test "x$ac_ct_STRIP" = x; then
7489     STRIP=":"
7490   else
7491     case $cross_compiling:$ac_tool_warned in
7492 yes:)
7493 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7495 ac_tool_warned=yes ;;
7496 esac
7497     STRIP=$ac_ct_STRIP
7498   fi
7499 else
7500   STRIP="$ac_cv_prog_STRIP"
7501 fi
7502
7503
7504 old_CC="$CC"
7505 old_CFLAGS="$CFLAGS"
7506
7507 # Set sane defaults for various variables
7508 test -z "$AR" && AR=ar
7509 test -z "$AR_FLAGS" && AR_FLAGS=cru
7510 test -z "$AS" && AS=as
7511 test -z "$CC" && CC=cc
7512 test -z "$LTCC" && LTCC=$CC
7513 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7514 test -z "$DLLTOOL" && DLLTOOL=dlltool
7515 test -z "$LD" && LD=ld
7516 test -z "$LN_S" && LN_S="ln -s"
7517 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7518 test -z "$NM" && NM=nm
7519 test -z "$SED" && SED=sed
7520 test -z "$OBJDUMP" && OBJDUMP=objdump
7521 test -z "$RANLIB" && RANLIB=:
7522 test -z "$STRIP" && STRIP=:
7523 test -z "$ac_objext" && ac_objext=o
7524
7525 # Determine commands to create old-style static archives.
7526 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7527 old_postinstall_cmds='chmod 644 $oldlib'
7528 old_postuninstall_cmds=
7529
7530 if test -n "$RANLIB"; then
7531   case $host_os in
7532   openbsd*)
7533     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7534     ;;
7535   *)
7536     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7537     ;;
7538   esac
7539   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7540 fi
7541
7542 for cc_temp in $compiler""; do
7543   case $cc_temp in
7544     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7545     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7546     \-*) ;;
7547     *) break;;
7548   esac
7549 done
7550 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7551
7552
7553 # Only perform the check for file, if the check method requires it
7554 case $deplibs_check_method in
7555 file_magic*)
7556   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7557     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7558 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7559 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7560   $as_echo_n "(cached) " >&6
7561 else
7562   case $MAGIC_CMD in
7563 [\\/*] |  ?:[\\/]*)
7564   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7565   ;;
7566 *)
7567   lt_save_MAGIC_CMD="$MAGIC_CMD"
7568   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7569   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7570   for ac_dir in $ac_dummy; do
7571     IFS="$lt_save_ifs"
7572     test -z "$ac_dir" && ac_dir=.
7573     if test -f $ac_dir/${ac_tool_prefix}file; then
7574       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7575       if test -n "$file_magic_test_file"; then
7576         case $deplibs_check_method in
7577         "file_magic "*)
7578           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7579           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7580           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7581             $EGREP "$file_magic_regex" > /dev/null; then
7582             :
7583           else
7584             cat <<EOF 1>&2
7585
7586 *** Warning: the command libtool uses to detect shared libraries,
7587 *** $file_magic_cmd, produces output that libtool cannot recognize.
7588 *** The result is that libtool may fail to recognize shared libraries
7589 *** as such.  This will affect the creation of libtool libraries that
7590 *** depend on shared libraries, but programs linked with such libtool
7591 *** libraries will work regardless of this problem.  Nevertheless, you
7592 *** may want to report the problem to your system manager and/or to
7593 *** bug-libtool@gnu.org
7594
7595 EOF
7596           fi ;;
7597         esac
7598       fi
7599       break
7600     fi
7601   done
7602   IFS="$lt_save_ifs"
7603   MAGIC_CMD="$lt_save_MAGIC_CMD"
7604   ;;
7605 esac
7606 fi
7607
7608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7609 if test -n "$MAGIC_CMD"; then
7610   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7611 $as_echo "$MAGIC_CMD" >&6; }
7612 else
7613   { $as_echo "$as_me:$LINENO: result: no" >&5
7614 $as_echo "no" >&6; }
7615 fi
7616
7617 if test -z "$lt_cv_path_MAGIC_CMD"; then
7618   if test -n "$ac_tool_prefix"; then
7619     { $as_echo "$as_me:$LINENO: checking for file" >&5
7620 $as_echo_n "checking for file... " >&6; }
7621 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7622   $as_echo_n "(cached) " >&6
7623 else
7624   case $MAGIC_CMD in
7625 [\\/*] |  ?:[\\/]*)
7626   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7627   ;;
7628 *)
7629   lt_save_MAGIC_CMD="$MAGIC_CMD"
7630   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7631   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7632   for ac_dir in $ac_dummy; do
7633     IFS="$lt_save_ifs"
7634     test -z "$ac_dir" && ac_dir=.
7635     if test -f $ac_dir/file; then
7636       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7637       if test -n "$file_magic_test_file"; then
7638         case $deplibs_check_method in
7639         "file_magic "*)
7640           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7641           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7642           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7643             $EGREP "$file_magic_regex" > /dev/null; then
7644             :
7645           else
7646             cat <<EOF 1>&2
7647
7648 *** Warning: the command libtool uses to detect shared libraries,
7649 *** $file_magic_cmd, produces output that libtool cannot recognize.
7650 *** The result is that libtool may fail to recognize shared libraries
7651 *** as such.  This will affect the creation of libtool libraries that
7652 *** depend on shared libraries, but programs linked with such libtool
7653 *** libraries will work regardless of this problem.  Nevertheless, you
7654 *** may want to report the problem to your system manager and/or to
7655 *** bug-libtool@gnu.org
7656
7657 EOF
7658           fi ;;
7659         esac
7660       fi
7661       break
7662     fi
7663   done
7664   IFS="$lt_save_ifs"
7665   MAGIC_CMD="$lt_save_MAGIC_CMD"
7666   ;;
7667 esac
7668 fi
7669
7670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7671 if test -n "$MAGIC_CMD"; then
7672   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7673 $as_echo "$MAGIC_CMD" >&6; }
7674 else
7675   { $as_echo "$as_me:$LINENO: result: no" >&5
7676 $as_echo "no" >&6; }
7677 fi
7678
7679   else
7680     MAGIC_CMD=:
7681   fi
7682 fi
7683
7684   fi
7685   ;;
7686 esac
7687
7688
7689   case $host_os in
7690     rhapsody* | darwin*)
7691     if test -n "$ac_tool_prefix"; then
7692   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7693 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7694 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7697   $as_echo_n "(cached) " >&6
7698 else
7699   if test -n "$DSYMUTIL"; then
7700   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7701 else
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705   IFS=$as_save_IFS
7706   test -z "$as_dir" && as_dir=.
7707   for ac_exec_ext in '' $ac_executable_extensions; do
7708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7709     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7710     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7711     break 2
7712   fi
7713 done
7714 done
7715 IFS=$as_save_IFS
7716
7717 fi
7718 fi
7719 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7720 if test -n "$DSYMUTIL"; then
7721   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7722 $as_echo "$DSYMUTIL" >&6; }
7723 else
7724   { $as_echo "$as_me:$LINENO: result: no" >&5
7725 $as_echo "no" >&6; }
7726 fi
7727
7728
7729 fi
7730 if test -z "$ac_cv_prog_DSYMUTIL"; then
7731   ac_ct_DSYMUTIL=$DSYMUTIL
7732   # Extract the first word of "dsymutil", so it can be a program name with args.
7733 set dummy dsymutil; ac_word=$2
7734 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7735 $as_echo_n "checking for $ac_word... " >&6; }
7736 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7737   $as_echo_n "(cached) " >&6
7738 else
7739   if test -n "$ac_ct_DSYMUTIL"; then
7740   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7741 else
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 for as_dir in $PATH
7744 do
7745   IFS=$as_save_IFS
7746   test -z "$as_dir" && as_dir=.
7747   for ac_exec_ext in '' $ac_executable_extensions; do
7748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7749     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7750     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7751     break 2
7752   fi
7753 done
7754 done
7755 IFS=$as_save_IFS
7756
7757 fi
7758 fi
7759 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7760 if test -n "$ac_ct_DSYMUTIL"; then
7761   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7762 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7763 else
7764   { $as_echo "$as_me:$LINENO: result: no" >&5
7765 $as_echo "no" >&6; }
7766 fi
7767
7768   if test "x$ac_ct_DSYMUTIL" = x; then
7769     DSYMUTIL=":"
7770   else
7771     case $cross_compiling:$ac_tool_warned in
7772 yes:)
7773 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7775 ac_tool_warned=yes ;;
7776 esac
7777     DSYMUTIL=$ac_ct_DSYMUTIL
7778   fi
7779 else
7780   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7781 fi
7782
7783     if test -n "$ac_tool_prefix"; then
7784   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7785 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7787 $as_echo_n "checking for $ac_word... " >&6; }
7788 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7789   $as_echo_n "(cached) " >&6
7790 else
7791   if test -n "$NMEDIT"; then
7792   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7793 else
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7795 for as_dir in $PATH
7796 do
7797   IFS=$as_save_IFS
7798   test -z "$as_dir" && as_dir=.
7799   for ac_exec_ext in '' $ac_executable_extensions; do
7800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7801     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7802     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803     break 2
7804   fi
7805 done
7806 done
7807 IFS=$as_save_IFS
7808
7809 fi
7810 fi
7811 NMEDIT=$ac_cv_prog_NMEDIT
7812 if test -n "$NMEDIT"; then
7813   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7814 $as_echo "$NMEDIT" >&6; }
7815 else
7816   { $as_echo "$as_me:$LINENO: result: no" >&5
7817 $as_echo "no" >&6; }
7818 fi
7819
7820
7821 fi
7822 if test -z "$ac_cv_prog_NMEDIT"; then
7823   ac_ct_NMEDIT=$NMEDIT
7824   # Extract the first word of "nmedit", so it can be a program name with args.
7825 set dummy nmedit; ac_word=$2
7826 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7827 $as_echo_n "checking for $ac_word... " >&6; }
7828 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7829   $as_echo_n "(cached) " >&6
7830 else
7831   if test -n "$ac_ct_NMEDIT"; then
7832   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7833 else
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835 for as_dir in $PATH
7836 do
7837   IFS=$as_save_IFS
7838   test -z "$as_dir" && as_dir=.
7839   for ac_exec_ext in '' $ac_executable_extensions; do
7840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7841     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7842     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7843     break 2
7844   fi
7845 done
7846 done
7847 IFS=$as_save_IFS
7848
7849 fi
7850 fi
7851 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7852 if test -n "$ac_ct_NMEDIT"; then
7853   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7854 $as_echo "$ac_ct_NMEDIT" >&6; }
7855 else
7856   { $as_echo "$as_me:$LINENO: result: no" >&5
7857 $as_echo "no" >&6; }
7858 fi
7859
7860   if test "x$ac_ct_NMEDIT" = x; then
7861     NMEDIT=":"
7862   else
7863     case $cross_compiling:$ac_tool_warned in
7864 yes:)
7865 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7867 ac_tool_warned=yes ;;
7868 esac
7869     NMEDIT=$ac_ct_NMEDIT
7870   fi
7871 else
7872   NMEDIT="$ac_cv_prog_NMEDIT"
7873 fi
7874
7875
7876     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7877 $as_echo_n "checking for -single_module linker flag... " >&6; }
7878 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7879   $as_echo_n "(cached) " >&6
7880 else
7881   lt_cv_apple_cc_single_mod=no
7882       if test -z "${LT_MULTI_MODULE}"; then
7883    # By default we will add the -single_module flag. You can override
7884    # by either setting the environment variable LT_MULTI_MODULE
7885    # non-empty at configure time, or by adding -multi_module to the
7886    # link flags.
7887    echo "int foo(void){return 1;}" > conftest.c
7888    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7889      -dynamiclib ${wl}-single_module conftest.c
7890    if test -f libconftest.dylib; then
7891      lt_cv_apple_cc_single_mod=yes
7892      rm -rf libconftest.dylib*
7893    fi
7894    rm conftest.c
7895       fi
7896 fi
7897 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7898 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7899     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7900 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7901 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7902   $as_echo_n "(cached) " >&6
7903 else
7904   lt_cv_ld_exported_symbols_list=no
7905       save_LDFLAGS=$LDFLAGS
7906       echo "_main" > conftest.sym
7907       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7908       cat >conftest.$ac_ext <<_ACEOF
7909 /* confdefs.h.  */
7910 _ACEOF
7911 cat confdefs.h >>conftest.$ac_ext
7912 cat >>conftest.$ac_ext <<_ACEOF
7913 /* end confdefs.h.  */
7914
7915 int
7916 main ()
7917 {
7918
7919   ;
7920   return 0;
7921 }
7922 _ACEOF
7923 rm -f conftest.$ac_objext conftest$ac_exeext
7924 if { (ac_try="$ac_link"
7925 case "(($ac_try" in
7926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927   *) ac_try_echo=$ac_try;;
7928 esac
7929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7930 $as_echo "$ac_try_echo") >&5
7931   (eval "$ac_link") 2>conftest.er1
7932   ac_status=$?
7933   grep -v '^ *+' conftest.er1 >conftest.err
7934   rm -f conftest.er1
7935   cat conftest.err >&5
7936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937   (exit $ac_status); } && {
7938          test -z "$ac_c_werror_flag" ||
7939          test ! -s conftest.err
7940        } && test -s conftest$ac_exeext && {
7941          test "$cross_compiling" = yes ||
7942          $as_test_x conftest$ac_exeext
7943        }; then
7944   lt_cv_ld_exported_symbols_list=yes
7945 else
7946   $as_echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7948
7949         lt_cv_ld_exported_symbols_list=no
7950 fi
7951
7952 rm -rf conftest.dSYM
7953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7954       conftest$ac_exeext conftest.$ac_ext
7955    LDFLAGS="$save_LDFLAGS"
7956
7957 fi
7958 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7959 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7960     case $host_os in
7961     rhapsody* | darwin1.[0123])
7962       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7963     darwin1.*)
7964      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7965     darwin*)
7966       # if running on 10.5 or later, the deployment target defaults
7967       # to the OS version, if on x86, and 10.4, the deployment
7968       # target defaults to 10.4. Don't you love it?
7969       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7970    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7971      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7972    10.[012]*)
7973      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7974    10.*)
7975      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7976       esac
7977     ;;
7978   esac
7979     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7980       _lt_dar_single_mod='$single_module'
7981     fi
7982     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7983       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7984     else
7985       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7986     fi
7987     if test "$DSYMUTIL" != ":"; then
7988       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7989     else
7990       _lt_dsymutil=
7991     fi
7992     ;;
7993   esac
7994
7995
7996 enable_dlopen=no
7997 enable_win32_dll=no
7998
7999 # Check whether --enable-libtool-lock was given.
8000 if test "${enable_libtool_lock+set}" = set; then
8001   enableval=$enable_libtool_lock;
8002 fi
8003
8004 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8005
8006
8007 # Check whether --with-pic was given.
8008 if test "${with_pic+set}" = set; then
8009   withval=$with_pic; pic_mode="$withval"
8010 else
8011   pic_mode=default
8012 fi
8013
8014 test -z "$pic_mode" && pic_mode=default
8015
8016 # Use C for the default configuration in the libtool script
8017 tagname=
8018 lt_save_CC="$CC"
8019 ac_ext=c
8020 ac_cpp='$CPP $CPPFLAGS'
8021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8024
8025
8026 # Source file extension for C test sources.
8027 ac_ext=c
8028
8029 # Object file extension for compiled C test sources.
8030 objext=o
8031 objext=$objext
8032
8033 # Code to be used in simple compile tests
8034 lt_simple_compile_test_code="int some_variable = 0;"
8035
8036 # Code to be used in simple link tests
8037 lt_simple_link_test_code='int main(){return(0);}'
8038
8039
8040 # If no C compiler was specified, use CC.
8041 LTCC=${LTCC-"$CC"}
8042
8043 # If no C compiler flags were specified, use CFLAGS.
8044 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8045
8046 # Allow CC to be a program name with arguments.
8047 compiler=$CC
8048
8049
8050 # save warnings/boilerplate of simple test code
8051 ac_outfile=conftest.$ac_objext
8052 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8053 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8054 _lt_compiler_boilerplate=`cat conftest.err`
8055 $rm conftest*
8056
8057 ac_outfile=conftest.$ac_objext
8058 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8059 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8060 _lt_linker_boilerplate=`cat conftest.err`
8061 $rm -r conftest*
8062
8063
8064
8065 lt_prog_compiler_no_builtin_flag=
8066
8067 if test "$GCC" = yes; then
8068   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8069
8070
8071 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8072 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8073 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8074   $as_echo_n "(cached) " >&6
8075 else
8076   lt_cv_prog_compiler_rtti_exceptions=no
8077   ac_outfile=conftest.$ac_objext
8078    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8079    lt_compiler_flag="-fno-rtti -fno-exceptions"
8080    # Insert the option either (1) after the last *FLAGS variable, or
8081    # (2) before a word containing "conftest.", or (3) at the end.
8082    # Note that $ac_compile itself does not contain backslashes and begins
8083    # with a dollar sign (not a hyphen), so the echo should work correctly.
8084    # The option is referenced via a variable to avoid confusing sed.
8085    lt_compile=`echo "$ac_compile" | $SED \
8086    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8087    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8088    -e 's:$: $lt_compiler_flag:'`
8089    (eval echo "\"\$as_me:8089: $lt_compile\"" >&5)
8090    (eval "$lt_compile" 2>conftest.err)
8091    ac_status=$?
8092    cat conftest.err >&5
8093    echo "$as_me:8093: \$? = $ac_status" >&5
8094    if (exit $ac_status) && test -s "$ac_outfile"; then
8095      # The compiler can only warn and ignore the option if not recognized
8096      # So say no if there are warnings other than the usual output.
8097      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8098      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8099      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8100        lt_cv_prog_compiler_rtti_exceptions=yes
8101      fi
8102    fi
8103    $rm conftest*
8104
8105 fi
8106 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8107 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8108
8109 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8110     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8111 else
8112     :
8113 fi
8114
8115 fi
8116
8117 lt_prog_compiler_wl=
8118 lt_prog_compiler_pic=
8119 lt_prog_compiler_static=
8120
8121 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8122 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8123
8124   if test "$GCC" = yes; then
8125     lt_prog_compiler_wl='-Wl,'
8126     lt_prog_compiler_static='-static'
8127
8128     case $host_os in
8129       aix*)
8130       # All AIX code is PIC.
8131       if test "$host_cpu" = ia64; then
8132         # AIX 5 now supports IA64 processor
8133         lt_prog_compiler_static='-Bstatic'
8134       fi
8135       ;;
8136
8137     amigaos*)
8138       # FIXME: we need at least 68020 code to build shared libraries, but
8139       # adding the `-m68020' flag to GCC prevents building anything better,
8140       # like `-m68040'.
8141       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8142       ;;
8143
8144     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8145       # PIC is the default for these OSes.
8146       ;;
8147
8148     mingw* | cygwin* | pw32* | os2*)
8149       # This hack is so that the source file can tell whether it is being
8150       # built for inclusion in a dll (and should export symbols for example).
8151       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8152       # (--disable-auto-import) libraries
8153       lt_prog_compiler_pic='-DDLL_EXPORT'
8154       ;;
8155
8156     darwin* | rhapsody*)
8157       # PIC is the default on this platform
8158       # Common symbols not allowed in MH_DYLIB files
8159       lt_prog_compiler_pic='-fno-common'
8160       ;;
8161
8162     interix[3-9]*)
8163       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8164       # Instead, we relocate shared libraries at runtime.
8165       ;;
8166
8167     msdosdjgpp*)
8168       # Just because we use GCC doesn't mean we suddenly get shared libraries
8169       # on systems that don't support them.
8170       lt_prog_compiler_can_build_shared=no
8171       enable_shared=no
8172       ;;
8173
8174     sysv4*MP*)
8175       if test -d /usr/nec; then
8176         lt_prog_compiler_pic=-Kconform_pic
8177       fi
8178       ;;
8179
8180     hpux*)
8181       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8182       # not for PA HP-UX.
8183       case $host_cpu in
8184       hppa*64*|ia64*)
8185         # +Z the default
8186         ;;
8187       *)
8188         lt_prog_compiler_pic='-fPIC'
8189         ;;
8190       esac
8191       ;;
8192
8193     *)
8194       lt_prog_compiler_pic='-fPIC'
8195       ;;
8196     esac
8197   else
8198     # PORTME Check for flag to pass linker flags through the system compiler.
8199     case $host_os in
8200     aix*)
8201       lt_prog_compiler_wl='-Wl,'
8202       if test "$host_cpu" = ia64; then
8203         # AIX 5 now supports IA64 processor
8204         lt_prog_compiler_static='-Bstatic'
8205       else
8206         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8207       fi
8208       ;;
8209       darwin*)
8210         # PIC is the default on this platform
8211         # Common symbols not allowed in MH_DYLIB files
8212        case $cc_basename in
8213          xlc*)
8214          lt_prog_compiler_pic='-qnocommon'
8215          lt_prog_compiler_wl='-Wl,'
8216          ;;
8217        esac
8218        ;;
8219
8220     mingw* | cygwin* | pw32* | os2*)
8221       # This hack is so that the source file can tell whether it is being
8222       # built for inclusion in a dll (and should export symbols for example).
8223       lt_prog_compiler_pic='-DDLL_EXPORT'
8224       ;;
8225
8226     hpux9* | hpux10* | hpux11*)
8227       lt_prog_compiler_wl='-Wl,'
8228       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8229       # not for PA HP-UX.
8230       case $host_cpu in
8231       hppa*64*|ia64*)
8232         # +Z the default
8233         ;;
8234       *)
8235         lt_prog_compiler_pic='+Z'
8236         ;;
8237       esac
8238       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8239       lt_prog_compiler_static='${wl}-a ${wl}archive'
8240       ;;
8241
8242     irix5* | irix6* | nonstopux*)
8243       lt_prog_compiler_wl='-Wl,'
8244       # PIC (with -KPIC) is the default.
8245       lt_prog_compiler_static='-non_shared'
8246       ;;
8247
8248     newsos6)
8249       lt_prog_compiler_pic='-KPIC'
8250       lt_prog_compiler_static='-Bstatic'
8251       ;;
8252
8253     linux* | k*bsd*-gnu)
8254       case $cc_basename in
8255       icc* | ecc*)
8256         lt_prog_compiler_wl='-Wl,'
8257         lt_prog_compiler_pic='-KPIC'
8258         lt_prog_compiler_static='-static'
8259         ;;
8260       pgcc* | pgf77* | pgf90* | pgf95*)
8261         # Portland Group compilers (*not* the Pentium gcc compiler,
8262         # which looks to be a dead project)
8263         lt_prog_compiler_wl='-Wl,'
8264         lt_prog_compiler_pic='-fpic'
8265         lt_prog_compiler_static='-Bstatic'
8266         ;;
8267       ccc*)
8268         lt_prog_compiler_wl='-Wl,'
8269         # All Alpha code is PIC.
8270         lt_prog_compiler_static='-non_shared'
8271         ;;
8272       *)
8273         case `$CC -V 2>&1 | sed 5q` in
8274         *Sun\ C*)
8275           # Sun C 5.9
8276           lt_prog_compiler_pic='-KPIC'
8277           lt_prog_compiler_static='-Bstatic'
8278           lt_prog_compiler_wl='-Wl,'
8279           ;;
8280         *Sun\ F*)
8281           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8282           lt_prog_compiler_pic='-KPIC'
8283           lt_prog_compiler_static='-Bstatic'
8284           lt_prog_compiler_wl=''
8285           ;;
8286         esac
8287         ;;
8288       esac
8289       ;;
8290
8291     osf3* | osf4* | osf5*)
8292       lt_prog_compiler_wl='-Wl,'
8293       # All OSF/1 code is PIC.
8294       lt_prog_compiler_static='-non_shared'
8295       ;;
8296
8297     rdos*)
8298       lt_prog_compiler_static='-non_shared'
8299       ;;
8300
8301     solaris*)
8302       lt_prog_compiler_pic='-KPIC'
8303       lt_prog_compiler_static='-Bstatic'
8304       case $cc_basename in
8305       f77* | f90* | f95*)
8306         lt_prog_compiler_wl='-Qoption ld ';;
8307       *)
8308         lt_prog_compiler_wl='-Wl,';;
8309       esac
8310       ;;
8311
8312     sunos4*)
8313       lt_prog_compiler_wl='-Qoption ld '
8314       lt_prog_compiler_pic='-PIC'
8315       lt_prog_compiler_static='-Bstatic'
8316       ;;
8317
8318     sysv4 | sysv4.2uw2* | sysv4.3*)
8319       lt_prog_compiler_wl='-Wl,'
8320       lt_prog_compiler_pic='-KPIC'
8321       lt_prog_compiler_static='-Bstatic'
8322       ;;
8323
8324     sysv4*MP*)
8325       if test -d /usr/nec ;then
8326         lt_prog_compiler_pic='-Kconform_pic'
8327         lt_prog_compiler_static='-Bstatic'
8328       fi
8329       ;;
8330
8331     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8332       lt_prog_compiler_wl='-Wl,'
8333       lt_prog_compiler_pic='-KPIC'
8334       lt_prog_compiler_static='-Bstatic'
8335       ;;
8336
8337     unicos*)
8338       lt_prog_compiler_wl='-Wl,'
8339       lt_prog_compiler_can_build_shared=no
8340       ;;
8341
8342     uts4*)
8343       lt_prog_compiler_pic='-pic'
8344       lt_prog_compiler_static='-Bstatic'
8345       ;;
8346
8347     *)
8348       lt_prog_compiler_can_build_shared=no
8349       ;;
8350     esac
8351   fi
8352
8353 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8354 $as_echo "$lt_prog_compiler_pic" >&6; }
8355
8356 #
8357 # Check to make sure the PIC flag actually works.
8358 #
8359 if test -n "$lt_prog_compiler_pic"; then
8360
8361 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8362 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8363 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8364   $as_echo_n "(cached) " >&6
8365 else
8366   lt_cv_prog_compiler_pic_works=no
8367   ac_outfile=conftest.$ac_objext
8368    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8369    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8370    # Insert the option either (1) after the last *FLAGS variable, or
8371    # (2) before a word containing "conftest.", or (3) at the end.
8372    # Note that $ac_compile itself does not contain backslashes and begins
8373    # with a dollar sign (not a hyphen), so the echo should work correctly.
8374    # The option is referenced via a variable to avoid confusing sed.
8375    lt_compile=`echo "$ac_compile" | $SED \
8376    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8377    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8378    -e 's:$: $lt_compiler_flag:'`
8379    (eval echo "\"\$as_me:8379: $lt_compile\"" >&5)
8380    (eval "$lt_compile" 2>conftest.err)
8381    ac_status=$?
8382    cat conftest.err >&5
8383    echo "$as_me:8383: \$? = $ac_status" >&5
8384    if (exit $ac_status) && test -s "$ac_outfile"; then
8385      # The compiler can only warn and ignore the option if not recognized
8386      # So say no if there are warnings other than the usual output.
8387      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8388      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8389      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8390        lt_cv_prog_compiler_pic_works=yes
8391      fi
8392    fi
8393    $rm conftest*
8394
8395 fi
8396 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8397 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8398
8399 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8400     case $lt_prog_compiler_pic in
8401      "" | " "*) ;;
8402      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8403      esac
8404 else
8405     lt_prog_compiler_pic=
8406      lt_prog_compiler_can_build_shared=no
8407 fi
8408
8409 fi
8410 case $host_os in
8411   # For platforms which do not support PIC, -DPIC is meaningless:
8412   *djgpp*)
8413     lt_prog_compiler_pic=
8414     ;;
8415   *)
8416     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8417     ;;
8418 esac
8419
8420 #
8421 # Check to make sure the static flag actually works.
8422 #
8423 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8424 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8425 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8426 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8427   $as_echo_n "(cached) " >&6
8428 else
8429   lt_cv_prog_compiler_static_works=no
8430    save_LDFLAGS="$LDFLAGS"
8431    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8432    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8433    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8434      # The linker can only warn and ignore the option if not recognized
8435      # So say no if there are warnings
8436      if test -s conftest.err; then
8437        # Append any errors to the config.log.
8438        cat conftest.err 1>&5
8439        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8440        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8441        if diff conftest.exp conftest.er2 >/dev/null; then
8442          lt_cv_prog_compiler_static_works=yes
8443        fi
8444      else
8445        lt_cv_prog_compiler_static_works=yes
8446      fi
8447    fi
8448    $rm -r conftest*
8449    LDFLAGS="$save_LDFLAGS"
8450
8451 fi
8452 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8453 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8454
8455 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8456     :
8457 else
8458     lt_prog_compiler_static=
8459 fi
8460
8461
8462 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8463 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8464 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8465   $as_echo_n "(cached) " >&6
8466 else
8467   lt_cv_prog_compiler_c_o=no
8468    $rm -r conftest 2>/dev/null
8469    mkdir conftest
8470    cd conftest
8471    mkdir out
8472    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8473
8474    lt_compiler_flag="-o out/conftest2.$ac_objext"
8475    # Insert the option either (1) after the last *FLAGS variable, or
8476    # (2) before a word containing "conftest.", or (3) at the end.
8477    # Note that $ac_compile itself does not contain backslashes and begins
8478    # with a dollar sign (not a hyphen), so the echo should work correctly.
8479    lt_compile=`echo "$ac_compile" | $SED \
8480    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8481    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8482    -e 's:$: $lt_compiler_flag:'`
8483    (eval echo "\"\$as_me:8483: $lt_compile\"" >&5)
8484    (eval "$lt_compile" 2>out/conftest.err)
8485    ac_status=$?
8486    cat out/conftest.err >&5
8487    echo "$as_me:8487: \$? = $ac_status" >&5
8488    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8489    then
8490      # The compiler can only warn and ignore the option if not recognized
8491      # So say no if there are warnings
8492      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8493      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8494      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8495        lt_cv_prog_compiler_c_o=yes
8496      fi
8497    fi
8498    chmod u+w . 2>&5
8499    $rm conftest*
8500    # SGI C++ compiler will create directory out/ii_files/ for
8501    # template instantiation
8502    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8503    $rm out/* && rmdir out
8504    cd ..
8505    rmdir conftest
8506    $rm conftest*
8507
8508 fi
8509 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8510 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8511
8512
8513 hard_links="nottested"
8514 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8515   # do not overwrite the value of need_locks provided by the user
8516   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8517 $as_echo_n "checking if we can lock with hard links... " >&6; }
8518   hard_links=yes
8519   $rm conftest*
8520   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8521   touch conftest.a
8522   ln conftest.a conftest.b 2>&5 || hard_links=no
8523   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8524   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8525 $as_echo "$hard_links" >&6; }
8526   if test "$hard_links" = no; then
8527     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8528 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8529     need_locks=warn
8530   fi
8531 else
8532   need_locks=no
8533 fi
8534
8535 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8536 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8537
8538   runpath_var=
8539   allow_undefined_flag=
8540   enable_shared_with_static_runtimes=no
8541   archive_cmds=
8542   archive_expsym_cmds=
8543   old_archive_From_new_cmds=
8544   old_archive_from_expsyms_cmds=
8545   export_dynamic_flag_spec=
8546   whole_archive_flag_spec=
8547   thread_safe_flag_spec=
8548   hardcode_libdir_flag_spec=
8549   hardcode_libdir_flag_spec_ld=
8550   hardcode_libdir_separator=
8551   hardcode_direct=no
8552   hardcode_minus_L=no
8553   hardcode_shlibpath_var=unsupported
8554   link_all_deplibs=unknown
8555   hardcode_automatic=no
8556   module_cmds=
8557   module_expsym_cmds=
8558   always_export_symbols=no
8559   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8560   # include_expsyms should be a list of space-separated symbols to be *always*
8561   # included in the symbol list
8562   include_expsyms=
8563   # exclude_expsyms can be an extended regexp of symbols to exclude
8564   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8565   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8566   # as well as any symbol that contains `d'.
8567   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8568   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8569   # platforms (ab)use it in PIC code, but their linkers get confused if
8570   # the symbol is explicitly referenced.  Since portable code cannot
8571   # rely on this symbol name, it's probably fine to never include it in
8572   # preloaded symbol tables.
8573   # Exclude shared library initialization/finalization symbols.
8574   extract_expsyms_cmds=
8575   # Just being paranoid about ensuring that cc_basename is set.
8576   for cc_temp in $compiler""; do
8577   case $cc_temp in
8578     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8579     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8580     \-*) ;;
8581     *) break;;
8582   esac
8583 done
8584 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8585
8586   case $host_os in
8587   cygwin* | mingw* | pw32*)
8588     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8589     # When not using gcc, we currently assume that we are using
8590     # Microsoft Visual C++.
8591     if test "$GCC" != yes; then
8592       with_gnu_ld=no
8593     fi
8594     ;;
8595   interix*)
8596     # we just hope/assume this is gcc and not c89 (= MSVC++)
8597     with_gnu_ld=yes
8598     ;;
8599   openbsd*)
8600     with_gnu_ld=no
8601     ;;
8602   esac
8603
8604   ld_shlibs=yes
8605   if test "$with_gnu_ld" = yes; then
8606     # If archive_cmds runs LD, not CC, wlarc should be empty
8607     wlarc='${wl}'
8608
8609     # Set some defaults for GNU ld with shared library support. These
8610     # are reset later if shared libraries are not supported. Putting them
8611     # here allows them to be overridden if necessary.
8612     runpath_var=LD_RUN_PATH
8613     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8614     export_dynamic_flag_spec='${wl}--export-dynamic'
8615     # ancient GNU ld didn't support --whole-archive et. al.
8616     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8617         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8618       else
8619         whole_archive_flag_spec=
8620     fi
8621     supports_anon_versioning=no
8622     case `$LD -v 2>/dev/null` in
8623       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8624       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8625       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8626       *\ 2.11.*) ;; # other 2.11 versions
8627       *) supports_anon_versioning=yes ;;
8628     esac
8629
8630     # See if GNU ld supports shared libraries.
8631     case $host_os in
8632     aix[3-9]*)
8633       # On AIX/PPC, the GNU linker is very broken
8634       if test "$host_cpu" != ia64; then
8635         ld_shlibs=no
8636         cat <<EOF 1>&2
8637
8638 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8639 *** to be unable to reliably create shared libraries on AIX.
8640 *** Therefore, libtool is disabling shared libraries support.  If you
8641 *** really care for shared libraries, you may want to modify your PATH
8642 *** so that a non-GNU linker is found, and then restart.
8643
8644 EOF
8645       fi
8646       ;;
8647
8648     amigaos*)
8649       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)'
8650       hardcode_libdir_flag_spec='-L$libdir'
8651       hardcode_minus_L=yes
8652
8653       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8654       # that the semantics of dynamic libraries on AmigaOS, at least up
8655       # to version 4, is to share data among multiple programs linked
8656       # with the same dynamic library.  Since this doesn't match the
8657       # behavior of shared libraries on other platforms, we can't use
8658       # them.
8659       ld_shlibs=no
8660       ;;
8661
8662     beos*)
8663       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8664         allow_undefined_flag=unsupported
8665         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8666         # support --undefined.  This deserves some investigation.  FIXME
8667         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8668       else
8669         ld_shlibs=no
8670       fi
8671       ;;
8672
8673     cygwin* | mingw* | pw32*)
8674       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8675       # as there is no search path for DLLs.
8676       hardcode_libdir_flag_spec='-L$libdir'
8677       allow_undefined_flag=unsupported
8678       always_export_symbols=no
8679       enable_shared_with_static_runtimes=yes
8680       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8681
8682       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8683         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8684         # If the export-symbols file already is a .def file (1st line
8685         # is EXPORTS), use it as is; otherwise, prepend...
8686         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8687           cp $export_symbols $output_objdir/$soname.def;
8688         else
8689           echo EXPORTS > $output_objdir/$soname.def;
8690           cat $export_symbols >> $output_objdir/$soname.def;
8691         fi~
8692         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8693       else
8694         ld_shlibs=no
8695       fi
8696       ;;
8697
8698     interix[3-9]*)
8699       hardcode_direct=no
8700       hardcode_shlibpath_var=no
8701       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8702       export_dynamic_flag_spec='${wl}-E'
8703       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8704       # Instead, shared libraries are loaded at an image base (0x10000000 by
8705       # default) and relocated if they conflict, which is a slow very memory
8706       # consuming and fragmenting process.  To avoid this, we pick a random,
8707       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8708       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8709       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8710       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'
8711       ;;
8712
8713     gnu* | linux* | k*bsd*-gnu)
8714       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8715         tmp_addflag=
8716         case $cc_basename,$host_cpu in
8717         pgcc*)                          # Portland Group C compiler
8718           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'
8719           tmp_addflag=' $pic_flag'
8720           ;;
8721         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8722           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'
8723           tmp_addflag=' $pic_flag -Mnomain' ;;
8724         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8725           tmp_addflag=' -i_dynamic' ;;
8726         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8727           tmp_addflag=' -i_dynamic -nofor_main' ;;
8728         ifc* | ifort*)                  # Intel Fortran compiler
8729           tmp_addflag=' -nofor_main' ;;
8730         esac
8731         case `$CC -V 2>&1 | sed 5q` in
8732         *Sun\ C*)                       # Sun C 5.9
8733           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'
8734           tmp_sharedflag='-G' ;;
8735         *Sun\ F*)                       # Sun Fortran 8.3
8736           tmp_sharedflag='-G' ;;
8737         *)
8738           tmp_sharedflag='-shared' ;;
8739         esac
8740         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741
8742         if test $supports_anon_versioning = yes; then
8743           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8744   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8745   $echo "local: *; };" >> $output_objdir/$libname.ver~
8746           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8747         fi
8748       else
8749         ld_shlibs=no
8750       fi
8751       ;;
8752
8753     netbsd*)
8754       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8755         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8756         wlarc=
8757       else
8758         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8759         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8760       fi
8761       ;;
8762
8763     solaris*)
8764       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8765         ld_shlibs=no
8766         cat <<EOF 1>&2
8767
8768 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8769 *** create shared libraries on Solaris systems.  Therefore, libtool
8770 *** is disabling shared libraries support.  We urge you to upgrade GNU
8771 *** binutils to release 2.9.1 or newer.  Another option is to modify
8772 *** your PATH or compiler configuration so that the native linker is
8773 *** used, and then restart.
8774
8775 EOF
8776       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8777         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8778         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8779       else
8780         ld_shlibs=no
8781       fi
8782       ;;
8783
8784     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8785       case `$LD -v 2>&1` in
8786         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8787         ld_shlibs=no
8788         cat <<_LT_EOF 1>&2
8789
8790 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8791 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8792 *** is disabling shared libraries support.  We urge you to upgrade GNU
8793 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8794 *** your PATH or compiler configuration so that the native linker is
8795 *** used, and then restart.
8796
8797 _LT_EOF
8798         ;;
8799         *)
8800           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8801             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8802             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8803             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8804           else
8805             ld_shlibs=no
8806           fi
8807         ;;
8808       esac
8809       ;;
8810
8811     sunos4*)
8812       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8813       wlarc=
8814       hardcode_direct=yes
8815       hardcode_shlibpath_var=no
8816       ;;
8817
8818     *)
8819       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8820         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8821         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8822       else
8823         ld_shlibs=no
8824       fi
8825       ;;
8826     esac
8827
8828     if test "$ld_shlibs" = no; then
8829       runpath_var=
8830       hardcode_libdir_flag_spec=
8831       export_dynamic_flag_spec=
8832       whole_archive_flag_spec=
8833     fi
8834   else
8835     # PORTME fill in a description of your system's linker (not GNU ld)
8836     case $host_os in
8837     aix3*)
8838       allow_undefined_flag=unsupported
8839       always_export_symbols=yes
8840       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'
8841       # Note: this linker hardcodes the directories in LIBPATH if there
8842       # are no directories specified by -L.
8843       hardcode_minus_L=yes
8844       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8845         # Neither direct hardcoding nor static linking is supported with a
8846         # broken collect2.
8847         hardcode_direct=unsupported
8848       fi
8849       ;;
8850
8851     aix[4-9]*)
8852       if test "$host_cpu" = ia64; then
8853         # On IA64, the linker does run time linking by default, so we don't
8854         # have to do anything special.
8855         aix_use_runtimelinking=no
8856         exp_sym_flag='-Bexport'
8857         no_entry_flag=""
8858       else
8859         # If we're using GNU nm, then we don't want the "-C" option.
8860         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8861         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8862           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'
8863         else
8864           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'
8865         fi
8866         aix_use_runtimelinking=no
8867
8868         # Test if we are trying to use run time linking or normal
8869         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8870         # need to do runtime linking.
8871         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8872           for ld_flag in $LDFLAGS; do
8873           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8874             aix_use_runtimelinking=yes
8875             break
8876           fi
8877           done
8878           ;;
8879         esac
8880
8881         exp_sym_flag='-bexport'
8882         no_entry_flag='-bnoentry'
8883       fi
8884
8885       # When large executables or shared objects are built, AIX ld can
8886       # have problems creating the table of contents.  If linking a library
8887       # or program results in "error TOC overflow" add -mminimal-toc to
8888       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8889       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8890
8891       archive_cmds=''
8892       hardcode_direct=yes
8893       hardcode_libdir_separator=':'
8894       link_all_deplibs=yes
8895
8896       if test "$GCC" = yes; then
8897         case $host_os in aix4.[012]|aix4.[012].*)
8898         # We only want to do this on AIX 4.2 and lower, the check
8899         # below for broken collect2 doesn't work under 4.3+
8900           collect2name=`${CC} -print-prog-name=collect2`
8901           if test -f "$collect2name" && \
8902            strings "$collect2name" | grep resolve_lib_name >/dev/null
8903           then
8904           # We have reworked collect2
8905           :
8906           else
8907           # We have old collect2
8908           hardcode_direct=unsupported
8909           # It fails to find uninstalled libraries when the uninstalled
8910           # path is not listed in the libpath.  Setting hardcode_minus_L
8911           # to unsupported forces relinking
8912           hardcode_minus_L=yes
8913           hardcode_libdir_flag_spec='-L$libdir'
8914           hardcode_libdir_separator=
8915           fi
8916           ;;
8917         esac
8918         shared_flag='-shared'
8919         if test "$aix_use_runtimelinking" = yes; then
8920           shared_flag="$shared_flag "'${wl}-G'
8921         fi
8922       else
8923         # not using gcc
8924         if test "$host_cpu" = ia64; then
8925         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8926         # chokes on -Wl,-G. The following line is correct:
8927           shared_flag='-G'
8928         else
8929           if test "$aix_use_runtimelinking" = yes; then
8930             shared_flag='${wl}-G'
8931           else
8932             shared_flag='${wl}-bM:SRE'
8933           fi
8934         fi
8935       fi
8936
8937       # It seems that -bexpall does not export symbols beginning with
8938       # underscore (_), so it is better to generate a list of symbols to export.
8939       always_export_symbols=yes
8940       if test "$aix_use_runtimelinking" = yes; then
8941         # Warning - without using the other runtime loading flags (-brtl),
8942         # -berok will link without error, but may produce a broken library.
8943         allow_undefined_flag='-berok'
8944        # Determine the default libpath from the value encoded in an empty executable.
8945        cat >conftest.$ac_ext <<_ACEOF
8946 /* confdefs.h.  */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h.  */
8951
8952 int
8953 main ()
8954 {
8955
8956   ;
8957   return 0;
8958 }
8959 _ACEOF
8960 rm -f conftest.$ac_objext conftest$ac_exeext
8961 if { (ac_try="$ac_link"
8962 case "(($ac_try" in
8963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964   *) ac_try_echo=$ac_try;;
8965 esac
8966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8967 $as_echo "$ac_try_echo") >&5
8968   (eval "$ac_link") 2>conftest.er1
8969   ac_status=$?
8970   grep -v '^ *+' conftest.er1 >conftest.err
8971   rm -f conftest.er1
8972   cat conftest.err >&5
8973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); } && {
8975          test -z "$ac_c_werror_flag" ||
8976          test ! -s conftest.err
8977        } && test -s conftest$ac_exeext && {
8978          test "$cross_compiling" = yes ||
8979          $as_test_x conftest$ac_exeext
8980        }; then
8981
8982 lt_aix_libpath_sed='
8983     /Import File Strings/,/^$/ {
8984         /^0/ {
8985             s/^0  *\(.*\)$/\1/
8986             p
8987         }
8988     }'
8989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8990 # Check for a 64-bit object if we didn't find anything.
8991 if test -z "$aix_libpath"; then
8992   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8993 fi
8994 else
8995   $as_echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8997
8998
8999 fi
9000
9001 rm -rf conftest.dSYM
9002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9003       conftest$ac_exeext conftest.$ac_ext
9004 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9005
9006        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9007         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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9008        else
9009         if test "$host_cpu" = ia64; then
9010           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9011           allow_undefined_flag="-z nodefs"
9012           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"
9013         else
9014          # Determine the default libpath from the value encoded in an empty executable.
9015          cat >conftest.$ac_ext <<_ACEOF
9016 /* confdefs.h.  */
9017 _ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h.  */
9021
9022 int
9023 main ()
9024 {
9025
9026   ;
9027   return 0;
9028 }
9029 _ACEOF
9030 rm -f conftest.$ac_objext conftest$ac_exeext
9031 if { (ac_try="$ac_link"
9032 case "(($ac_try" in
9033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034   *) ac_try_echo=$ac_try;;
9035 esac
9036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9037 $as_echo "$ac_try_echo") >&5
9038   (eval "$ac_link") 2>conftest.er1
9039   ac_status=$?
9040   grep -v '^ *+' conftest.er1 >conftest.err
9041   rm -f conftest.er1
9042   cat conftest.err >&5
9043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); } && {
9045          test -z "$ac_c_werror_flag" ||
9046          test ! -s conftest.err
9047        } && test -s conftest$ac_exeext && {
9048          test "$cross_compiling" = yes ||
9049          $as_test_x conftest$ac_exeext
9050        }; then
9051
9052 lt_aix_libpath_sed='
9053     /Import File Strings/,/^$/ {
9054         /^0/ {
9055             s/^0  *\(.*\)$/\1/
9056             p
9057         }
9058     }'
9059 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9060 # Check for a 64-bit object if we didn't find anything.
9061 if test -z "$aix_libpath"; then
9062   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9063 fi
9064 else
9065   $as_echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9067
9068
9069 fi
9070
9071 rm -rf conftest.dSYM
9072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9073       conftest$ac_exeext conftest.$ac_ext
9074 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9075
9076          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9077           # Warning - without using the other run time loading flags,
9078           # -berok will link without error, but may produce a broken library.
9079           no_undefined_flag=' ${wl}-bernotok'
9080           allow_undefined_flag=' ${wl}-berok'
9081           # Exported symbols can be pulled into shared objects from archives
9082           whole_archive_flag_spec='$convenience'
9083           archive_cmds_need_lc=yes
9084           # This is similar to how AIX traditionally builds its shared libraries.
9085           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'
9086         fi
9087       fi
9088       ;;
9089
9090     amigaos*)
9091       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)'
9092       hardcode_libdir_flag_spec='-L$libdir'
9093       hardcode_minus_L=yes
9094       # see comment about different semantics on the GNU ld section
9095       ld_shlibs=no
9096       ;;
9097
9098     bsdi[45]*)
9099       export_dynamic_flag_spec=-rdynamic
9100       ;;
9101
9102     cygwin* | mingw* | pw32*)
9103       # When not using gcc, we currently assume that we are using
9104       # Microsoft Visual C++.
9105       # hardcode_libdir_flag_spec is actually meaningless, as there is
9106       # no search path for DLLs.
9107       hardcode_libdir_flag_spec=' '
9108       allow_undefined_flag=unsupported
9109       # Tell ltmain to make .lib files, not .a files.
9110       libext=lib
9111       # Tell ltmain to make .dll files, not .so files.
9112       shrext_cmds=".dll"
9113       # FIXME: Setting linknames here is a bad hack.
9114       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9115       # The linker will automatically build a .lib file if we build a DLL.
9116       old_archive_From_new_cmds='true'
9117       # FIXME: Should let the user specify the lib program.
9118       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9119       fix_srcfile_path='`cygpath -w "$srcfile"`'
9120       enable_shared_with_static_runtimes=yes
9121       ;;
9122
9123     darwin* | rhapsody*)
9124       case $host_os in
9125         rhapsody* | darwin1.[012])
9126          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9127          ;;
9128        *) # Darwin 1.3 on
9129          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9130            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9131          else
9132            case ${MACOSX_DEPLOYMENT_TARGET} in
9133              10.[012])
9134                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9135                ;;
9136              10.*)
9137                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9138                ;;
9139            esac
9140          fi
9141          ;;
9142       esac
9143       archive_cmds_need_lc=no
9144       hardcode_direct=no
9145       hardcode_automatic=yes
9146       hardcode_shlibpath_var=unsupported
9147       whole_archive_flag_spec=''
9148       link_all_deplibs=yes
9149     if test "$GCC" = yes ; then
9150         output_verbose_link_cmd='echo'
9151         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9152         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9153         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}"
9154         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}"
9155     else
9156       case $cc_basename in
9157         xlc*)
9158          output_verbose_link_cmd='echo'
9159          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9160          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9161           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9162          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9163           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9164           ;;
9165        *)
9166          ld_shlibs=no
9167           ;;
9168       esac
9169     fi
9170       ;;
9171
9172     dgux*)
9173       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9174       hardcode_libdir_flag_spec='-L$libdir'
9175       hardcode_shlibpath_var=no
9176       ;;
9177
9178     freebsd1*)
9179       ld_shlibs=no
9180       ;;
9181
9182     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9183     # support.  Future versions do this automatically, but an explicit c++rt0.o
9184     # does not break anything, and helps significantly (at the cost of a little
9185     # extra space).
9186     freebsd2.2*)
9187       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9188       hardcode_libdir_flag_spec='-R$libdir'
9189       hardcode_direct=yes
9190       hardcode_shlibpath_var=no
9191       ;;
9192
9193     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9194     freebsd2*)
9195       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9196       hardcode_direct=yes
9197       hardcode_minus_L=yes
9198       hardcode_shlibpath_var=no
9199       ;;
9200
9201     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9202     freebsd* | dragonfly*)
9203       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9204       hardcode_libdir_flag_spec='-R$libdir'
9205       hardcode_direct=yes
9206       hardcode_shlibpath_var=no
9207       ;;
9208
9209     hpux9*)
9210       if test "$GCC" = yes; then
9211         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'
9212       else
9213         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'
9214       fi
9215       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9216       hardcode_libdir_separator=:
9217       hardcode_direct=yes
9218
9219       # hardcode_minus_L: Not really in the search PATH,
9220       # but as the default location of the library.
9221       hardcode_minus_L=yes
9222       export_dynamic_flag_spec='${wl}-E'
9223       ;;
9224
9225     hpux10*)
9226       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9227         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9228       else
9229         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9230       fi
9231       if test "$with_gnu_ld" = no; then
9232         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9233         hardcode_libdir_separator=:
9234
9235         hardcode_direct=yes
9236         export_dynamic_flag_spec='${wl}-E'
9237
9238         # hardcode_minus_L: Not really in the search PATH,
9239         # but as the default location of the library.
9240         hardcode_minus_L=yes
9241       fi
9242       ;;
9243
9244     hpux11*)
9245       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9246         case $host_cpu in
9247         hppa*64*)
9248           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9249           ;;
9250         ia64*)
9251           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9252           ;;
9253         *)
9254           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9255           ;;
9256         esac
9257       else
9258         case $host_cpu in
9259         hppa*64*)
9260           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9261           ;;
9262         ia64*)
9263           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9264           ;;
9265         *)
9266           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9267           ;;
9268         esac
9269       fi
9270       if test "$with_gnu_ld" = no; then
9271         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9272         hardcode_libdir_separator=:
9273
9274         case $host_cpu in
9275         hppa*64*|ia64*)
9276           hardcode_libdir_flag_spec_ld='+b $libdir'
9277           hardcode_direct=no
9278           hardcode_shlibpath_var=no
9279           ;;
9280         *)
9281           hardcode_direct=yes
9282           export_dynamic_flag_spec='${wl}-E'
9283
9284           # hardcode_minus_L: Not really in the search PATH,
9285           # but as the default location of the library.
9286           hardcode_minus_L=yes
9287           ;;
9288         esac
9289       fi
9290       ;;
9291
9292     irix5* | irix6* | nonstopux*)
9293       if test "$GCC" = yes; then
9294         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9295       else
9296         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9297         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9298       fi
9299       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9300       hardcode_libdir_separator=:
9301       link_all_deplibs=yes
9302       ;;
9303
9304     netbsd*)
9305       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9306         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9307       else
9308         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9309       fi
9310       hardcode_libdir_flag_spec='-R$libdir'
9311       hardcode_direct=yes
9312       hardcode_shlibpath_var=no
9313       ;;
9314
9315     newsos6)
9316       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9317       hardcode_direct=yes
9318       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9319       hardcode_libdir_separator=:
9320       hardcode_shlibpath_var=no
9321       ;;
9322
9323     openbsd*)
9324       if test -f /usr/libexec/ld.so; then
9325         hardcode_direct=yes
9326         hardcode_shlibpath_var=no
9327         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9328           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9329           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9330           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9331           export_dynamic_flag_spec='${wl}-E'
9332         else
9333           case $host_os in
9334            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9335              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9336              hardcode_libdir_flag_spec='-R$libdir'
9337              ;;
9338            *)
9339              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9340              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9341              ;;
9342           esac
9343         fi
9344       else
9345         ld_shlibs=no
9346       fi
9347       ;;
9348
9349     os2*)
9350       hardcode_libdir_flag_spec='-L$libdir'
9351       hardcode_minus_L=yes
9352       allow_undefined_flag=unsupported
9353       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'
9354       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9355       ;;
9356
9357     osf3*)
9358       if test "$GCC" = yes; then
9359         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9360         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9361       else
9362         allow_undefined_flag=' -expect_unresolved \*'
9363         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9364       fi
9365       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9366       hardcode_libdir_separator=:
9367       ;;
9368
9369     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9370       if test "$GCC" = yes; then
9371         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9372         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9373         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9374       else
9375         allow_undefined_flag=' -expect_unresolved \*'
9376         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9377         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9378         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9379
9380         # Both c and cxx compiler support -rpath directly
9381         hardcode_libdir_flag_spec='-rpath $libdir'
9382       fi
9383       hardcode_libdir_separator=:
9384       ;;
9385
9386     solaris*)
9387       no_undefined_flag=' -z text'
9388       if test "$GCC" = yes; then
9389         wlarc='${wl}'
9390         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9391         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9392           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9393       else
9394         wlarc=''
9395         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9397         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9398       fi
9399       hardcode_libdir_flag_spec='-R$libdir'
9400       hardcode_shlibpath_var=no
9401       case $host_os in
9402       solaris2.[0-5] | solaris2.[0-5].*) ;;
9403       *)
9404         # The compiler driver will combine and reorder linker options,
9405         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9406         # but is careful enough not to reorder.
9407         # Supported since Solaris 2.6 (maybe 2.5.1?)
9408         if test "$GCC" = yes; then
9409           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9410         else
9411           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9412         fi
9413         ;;
9414       esac
9415       link_all_deplibs=yes
9416       ;;
9417
9418     sunos4*)
9419       if test "x$host_vendor" = xsequent; then
9420         # Use $CC to link under sequent, because it throws in some extra .o
9421         # files that make .init and .fini sections work.
9422         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9423       else
9424         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9425       fi
9426       hardcode_libdir_flag_spec='-L$libdir'
9427       hardcode_direct=yes
9428       hardcode_minus_L=yes
9429       hardcode_shlibpath_var=no
9430       ;;
9431
9432     sysv4)
9433       case $host_vendor in
9434         sni)
9435           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9436           hardcode_direct=yes # is this really true???
9437         ;;
9438         siemens)
9439           ## LD is ld it makes a PLAMLIB
9440           ## CC just makes a GrossModule.
9441           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9442           reload_cmds='$CC -r -o $output$reload_objs'
9443           hardcode_direct=no
9444         ;;
9445         motorola)
9446           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9448         ;;
9449       esac
9450       runpath_var='LD_RUN_PATH'
9451       hardcode_shlibpath_var=no
9452       ;;
9453
9454     sysv4.3*)
9455       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9456       hardcode_shlibpath_var=no
9457       export_dynamic_flag_spec='-Bexport'
9458       ;;
9459
9460     sysv4*MP*)
9461       if test -d /usr/nec; then
9462         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9463         hardcode_shlibpath_var=no
9464         runpath_var=LD_RUN_PATH
9465         hardcode_runpath_var=yes
9466         ld_shlibs=yes
9467       fi
9468       ;;
9469
9470     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9471       no_undefined_flag='${wl}-z,text'
9472       archive_cmds_need_lc=no
9473       hardcode_shlibpath_var=no
9474       runpath_var='LD_RUN_PATH'
9475
9476       if test "$GCC" = yes; then
9477         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9478         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9479       else
9480         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9481         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9482       fi
9483       ;;
9484
9485     sysv5* | sco3.2v5* | sco5v6*)
9486       # Note: We can NOT use -z defs as we might desire, because we do not
9487       # link with -lc, and that would cause any symbols used from libc to
9488       # always be unresolved, which means just about no library would
9489       # ever link correctly.  If we're not using GNU ld we use -z text
9490       # though, which does catch some bad symbols but isn't as heavy-handed
9491       # as -z defs.
9492       no_undefined_flag='${wl}-z,text'
9493       allow_undefined_flag='${wl}-z,nodefs'
9494       archive_cmds_need_lc=no
9495       hardcode_shlibpath_var=no
9496       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9497       hardcode_libdir_separator=':'
9498       link_all_deplibs=yes
9499       export_dynamic_flag_spec='${wl}-Bexport'
9500       runpath_var='LD_RUN_PATH'
9501
9502       if test "$GCC" = yes; then
9503         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9504         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9505       else
9506         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9507         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9508       fi
9509       ;;
9510
9511     uts4*)
9512       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9513       hardcode_libdir_flag_spec='-L$libdir'
9514       hardcode_shlibpath_var=no
9515       ;;
9516
9517     *)
9518       ld_shlibs=no
9519       ;;
9520     esac
9521   fi
9522
9523 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9524 $as_echo "$ld_shlibs" >&6; }
9525 test "$ld_shlibs" = no && can_build_shared=no
9526
9527 #
9528 # Do we need to explicitly link libc?
9529 #
9530 case "x$archive_cmds_need_lc" in
9531 x|xyes)
9532   # Assume -lc should be added
9533   archive_cmds_need_lc=yes
9534
9535   if test "$enable_shared" = yes && test "$GCC" = yes; then
9536     case $archive_cmds in
9537     *'~'*)
9538       # FIXME: we may have to deal with multi-command sequences.
9539       ;;
9540     '$CC '*)
9541       # Test whether the compiler implicitly links with -lc since on some
9542       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9543       # to ld, don't add -lc before -lgcc.
9544       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9545 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9546       $rm conftest*
9547       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9548
9549       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9550   (eval $ac_compile) 2>&5
9551   ac_status=$?
9552   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); } 2>conftest.err; then
9554         soname=conftest
9555         lib=conftest
9556         libobjs=conftest.$ac_objext
9557         deplibs=
9558         wl=$lt_prog_compiler_wl
9559         pic_flag=$lt_prog_compiler_pic
9560         compiler_flags=-v
9561         linker_flags=-v
9562         verstring=
9563         output_objdir=.
9564         libname=conftest
9565         lt_save_allow_undefined_flag=$allow_undefined_flag
9566         allow_undefined_flag=
9567         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9568   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9569   ac_status=$?
9570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); }
9572         then
9573           archive_cmds_need_lc=no
9574         else
9575           archive_cmds_need_lc=yes
9576         fi
9577         allow_undefined_flag=$lt_save_allow_undefined_flag
9578       else
9579         cat conftest.err 1>&5
9580       fi
9581       $rm conftest*
9582       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9583 $as_echo "$archive_cmds_need_lc" >&6; }
9584       ;;
9585     esac
9586   fi
9587   ;;
9588 esac
9589
9590 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9591 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9592 library_names_spec=
9593 libname_spec='lib$name'
9594 soname_spec=
9595 shrext_cmds=".so"
9596 postinstall_cmds=
9597 postuninstall_cmds=
9598 finish_cmds=
9599 finish_eval=
9600 shlibpath_var=
9601 shlibpath_overrides_runpath=unknown
9602 version_type=none
9603 dynamic_linker="$host_os ld.so"
9604 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9605
9606 if test "$GCC" = yes; then
9607   case $host_os in
9608     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9609     *) lt_awk_arg="/^libraries:/" ;;
9610   esac
9611   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9612   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9613     # if the path contains ";" then we assume it to be the separator
9614     # otherwise default to the standard path separator (i.e. ":") - it is
9615     # assumed that no part of a normal pathname contains ";" but that should
9616     # okay in the real world where ";" in dirpaths is itself problematic.
9617     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9618   else
9619     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9620   fi
9621   # Ok, now we have the path, separated by spaces, we can step through it
9622   # and add multilib dir if necessary.
9623   lt_tmp_lt_search_path_spec=
9624   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9625   for lt_sys_path in $lt_search_path_spec; do
9626     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9627       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9628     else
9629       test -d "$lt_sys_path" && \
9630         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9631     fi
9632   done
9633   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9634 BEGIN {RS=" "; FS="/|\n";} {
9635   lt_foo="";
9636   lt_count=0;
9637   for (lt_i = NF; lt_i > 0; lt_i--) {
9638     if ($lt_i != "" && $lt_i != ".") {
9639       if ($lt_i == "..") {
9640         lt_count++;
9641       } else {
9642         if (lt_count == 0) {
9643           lt_foo="/" $lt_i lt_foo;
9644         } else {
9645           lt_count--;
9646         }
9647       }
9648     }
9649   }
9650   if (lt_foo != "") { lt_freq[lt_foo]++; }
9651   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9652 }'`
9653   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9654 else
9655   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9656 fi
9657 need_lib_prefix=unknown
9658 hardcode_into_libs=no
9659
9660 # when you set need_version to no, make sure it does not cause -set_version
9661 # flags to be left without arguments
9662 need_version=unknown
9663
9664 case $host_os in
9665 aix3*)
9666   version_type=linux
9667   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9668   shlibpath_var=LIBPATH
9669
9670   # AIX 3 has no versioning support, so we append a major version to the name.
9671   soname_spec='${libname}${release}${shared_ext}$major'
9672   ;;
9673
9674 aix[4-9]*)
9675   version_type=linux
9676   need_lib_prefix=no
9677   need_version=no
9678   hardcode_into_libs=yes
9679   if test "$host_cpu" = ia64; then
9680     # AIX 5 supports IA64
9681     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9682     shlibpath_var=LD_LIBRARY_PATH
9683   else
9684     # With GCC up to 2.95.x, collect2 would create an import file
9685     # for dependence libraries.  The import file would start with
9686     # the line `#! .'.  This would cause the generated library to
9687     # depend on `.', always an invalid library.  This was fixed in
9688     # development snapshots of GCC prior to 3.0.
9689     case $host_os in
9690       aix4 | aix4.[01] | aix4.[01].*)
9691       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9692            echo ' yes '
9693            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9694         :
9695       else
9696         can_build_shared=no
9697       fi
9698       ;;
9699     esac
9700     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9701     # soname into executable. Probably we can add versioning support to
9702     # collect2, so additional links can be useful in future.
9703     if test "$aix_use_runtimelinking" = yes; then
9704       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9705       # instead of lib<name>.a to let people know that these are not
9706       # typical AIX shared libraries.
9707       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708     else
9709       # We preserve .a as extension for shared libraries through AIX4.2
9710       # and later when we are not doing run time linking.
9711       library_names_spec='${libname}${release}.a $libname.a'
9712       soname_spec='${libname}${release}${shared_ext}$major'
9713     fi
9714     shlibpath_var=LIBPATH
9715   fi
9716   ;;
9717
9718 amigaos*)
9719   library_names_spec='$libname.ixlibrary $libname.a'
9720   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9721   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'
9722   ;;
9723
9724 beos*)
9725   library_names_spec='${libname}${shared_ext}'
9726   dynamic_linker="$host_os ld.so"
9727   shlibpath_var=LIBRARY_PATH
9728   ;;
9729
9730 bsdi[45]*)
9731   version_type=linux
9732   need_version=no
9733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9734   soname_spec='${libname}${release}${shared_ext}$major'
9735   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9736   shlibpath_var=LD_LIBRARY_PATH
9737   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9738   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9739   # the default ld.so.conf also contains /usr/contrib/lib and
9740   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9741   # libtool to hard-code these into programs
9742   ;;
9743
9744 cygwin* | mingw* | pw32*)
9745   version_type=windows
9746   shrext_cmds=".dll"
9747   need_version=no
9748   need_lib_prefix=no
9749
9750   case $GCC,$host_os in
9751   yes,cygwin* | yes,mingw* | yes,pw32*)
9752     library_names_spec='$libname.dll.a'
9753     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9754     postinstall_cmds='base_file=`basename \${file}`~
9755       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9756       dldir=$destdir/`dirname \$dlpath`~
9757       test -d \$dldir || mkdir -p \$dldir~
9758       $install_prog $dir/$dlname \$dldir/$dlname~
9759       chmod a+x \$dldir/$dlname'
9760     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9761       dlpath=$dir/\$dldll~
9762        $rm \$dlpath'
9763     shlibpath_overrides_runpath=yes
9764
9765     case $host_os in
9766     cygwin*)
9767       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9768       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9769       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9770       ;;
9771     mingw*)
9772       # MinGW DLLs use traditional 'lib' prefix
9773       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9774       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9775       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9776         # It is most probably a Windows format PATH printed by
9777         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9778         # path with ; separators, and with drive letters. We can handle the
9779         # drive letters (cygwin fileutils understands them), so leave them,
9780         # especially as we might pass files found there to a mingw objdump,
9781         # which wouldn't understand a cygwinified path. Ahh.
9782         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9783       else
9784         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9785       fi
9786       ;;
9787     pw32*)
9788       # pw32 DLLs use 'pw' prefix rather than 'lib'
9789       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9790       ;;
9791     esac
9792     ;;
9793
9794   *)
9795     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9796     ;;
9797   esac
9798   dynamic_linker='Win32 ld.exe'
9799   # FIXME: first we should search . and the directory the executable is in
9800   shlibpath_var=PATH
9801   ;;
9802
9803 darwin* | rhapsody*)
9804   dynamic_linker="$host_os dyld"
9805   version_type=darwin
9806   need_lib_prefix=no
9807   need_version=no
9808   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9809   soname_spec='${libname}${release}${major}$shared_ext'
9810   shlibpath_overrides_runpath=yes
9811   shlibpath_var=DYLD_LIBRARY_PATH
9812   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9813
9814   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9815   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9816   ;;
9817
9818 dgux*)
9819   version_type=linux
9820   need_lib_prefix=no
9821   need_version=no
9822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9823   soname_spec='${libname}${release}${shared_ext}$major'
9824   shlibpath_var=LD_LIBRARY_PATH
9825   ;;
9826
9827 freebsd1*)
9828   dynamic_linker=no
9829   ;;
9830
9831 freebsd* | dragonfly*)
9832   # DragonFly does not have aout.  When/if they implement a new
9833   # versioning mechanism, adjust this.
9834   if test -x /usr/bin/objformat; then
9835     objformat=`/usr/bin/objformat`
9836   else
9837     case $host_os in
9838     freebsd[123]*) objformat=aout ;;
9839     *) objformat=elf ;;
9840     esac
9841   fi
9842   version_type=freebsd-$objformat
9843   case $version_type in
9844     freebsd-elf*)
9845       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9846       need_version=no
9847       need_lib_prefix=no
9848       ;;
9849     freebsd-*)
9850       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9851       need_version=yes
9852       ;;
9853   esac
9854   shlibpath_var=LD_LIBRARY_PATH
9855   case $host_os in
9856   freebsd2*)
9857     shlibpath_overrides_runpath=yes
9858     ;;
9859   freebsd3.[01]* | freebsdelf3.[01]*)
9860     shlibpath_overrides_runpath=yes
9861     hardcode_into_libs=yes
9862     ;;
9863   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9864   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9865     shlibpath_overrides_runpath=no
9866     hardcode_into_libs=yes
9867     ;;
9868   *) # from 4.6 on, and DragonFly
9869     shlibpath_overrides_runpath=yes
9870     hardcode_into_libs=yes
9871     ;;
9872   esac
9873   ;;
9874
9875 gnu*)
9876   version_type=linux
9877   need_lib_prefix=no
9878   need_version=no
9879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9880   soname_spec='${libname}${release}${shared_ext}$major'
9881   shlibpath_var=LD_LIBRARY_PATH
9882   hardcode_into_libs=yes
9883   ;;
9884
9885 hpux9* | hpux10* | hpux11*)
9886   # Give a soname corresponding to the major version so that dld.sl refuses to
9887   # link against other versions.
9888   version_type=sunos
9889   need_lib_prefix=no
9890   need_version=no
9891   case $host_cpu in
9892   ia64*)
9893     shrext_cmds='.so'
9894     hardcode_into_libs=yes
9895     dynamic_linker="$host_os dld.so"
9896     shlibpath_var=LD_LIBRARY_PATH
9897     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9898     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899     soname_spec='${libname}${release}${shared_ext}$major'
9900     if test "X$HPUX_IA64_MODE" = X32; then
9901       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9902     else
9903       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9904     fi
9905     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9906     ;;
9907    hppa*64*)
9908      shrext_cmds='.sl'
9909      hardcode_into_libs=yes
9910      dynamic_linker="$host_os dld.sl"
9911      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9912      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9913      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9914      soname_spec='${libname}${release}${shared_ext}$major'
9915      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9916      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9917      ;;
9918    *)
9919     shrext_cmds='.sl'
9920     dynamic_linker="$host_os dld.sl"
9921     shlibpath_var=SHLIB_PATH
9922     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9923     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924     soname_spec='${libname}${release}${shared_ext}$major'
9925     ;;
9926   esac
9927   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9928   postinstall_cmds='chmod 555 $lib'
9929   ;;
9930
9931 interix[3-9]*)
9932   version_type=linux
9933   need_lib_prefix=no
9934   need_version=no
9935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9936   soname_spec='${libname}${release}${shared_ext}$major'
9937   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9938   shlibpath_var=LD_LIBRARY_PATH
9939   shlibpath_overrides_runpath=no
9940   hardcode_into_libs=yes
9941   ;;
9942
9943 irix5* | irix6* | nonstopux*)
9944   case $host_os in
9945     nonstopux*) version_type=nonstopux ;;
9946     *)
9947         if test "$lt_cv_prog_gnu_ld" = yes; then
9948                 version_type=linux
9949         else
9950                 version_type=irix
9951         fi ;;
9952   esac
9953   need_lib_prefix=no
9954   need_version=no
9955   soname_spec='${libname}${release}${shared_ext}$major'
9956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9957   case $host_os in
9958   irix5* | nonstopux*)
9959     libsuff= shlibsuff=
9960     ;;
9961   *)
9962     case $LD in # libtool.m4 will add one of these switches to LD
9963     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9964       libsuff= shlibsuff= libmagic=32-bit;;
9965     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9966       libsuff=32 shlibsuff=N32 libmagic=N32;;
9967     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9968       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9969     *) libsuff= shlibsuff= libmagic=never-match;;
9970     esac
9971     ;;
9972   esac
9973   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9974   shlibpath_overrides_runpath=no
9975   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9976   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9977   hardcode_into_libs=yes
9978   ;;
9979
9980 # No shared lib support for Linux oldld, aout, or coff.
9981 linux*oldld* | linux*aout* | linux*coff*)
9982   dynamic_linker=no
9983   ;;
9984
9985 # This must be Linux ELF.
9986 linux* | k*bsd*-gnu)
9987   version_type=linux
9988   need_lib_prefix=no
9989   need_version=no
9990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9991   soname_spec='${libname}${release}${shared_ext}$major'
9992   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9993   shlibpath_var=LD_LIBRARY_PATH
9994   shlibpath_overrides_runpath=no
9995   # This implies no fast_install, which is unacceptable.
9996   # Some rework will be needed to allow for fast_install
9997   # before this can be enabled.
9998   hardcode_into_libs=yes
9999   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10000   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10001
10002   # Append ld.so.conf contents to the search path
10003   if test -f /etc/ld.so.conf; then
10004     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' ' '`
10005     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10006   fi
10007
10008   # We used to test for /lib/ld.so.1 and disable shared libraries on
10009   # powerpc, because MkLinux only supported shared libraries with the
10010   # GNU dynamic linker.  Since this was broken with cross compilers,
10011   # most powerpc-linux boxes support dynamic linking these days and
10012   # people can always --disable-shared, the test was removed, and we
10013   # assume the GNU/Linux dynamic linker is in use.
10014   dynamic_linker='GNU/Linux ld.so'
10015   ;;
10016
10017 netbsd*)
10018   version_type=sunos
10019   need_lib_prefix=no
10020   need_version=no
10021   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10023     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10024     dynamic_linker='NetBSD (a.out) ld.so'
10025   else
10026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10027     soname_spec='${libname}${release}${shared_ext}$major'
10028     dynamic_linker='NetBSD ld.elf_so'
10029   fi
10030   shlibpath_var=LD_LIBRARY_PATH
10031   shlibpath_overrides_runpath=yes
10032   hardcode_into_libs=yes
10033   ;;
10034
10035 newsos6)
10036   version_type=linux
10037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10038   shlibpath_var=LD_LIBRARY_PATH
10039   shlibpath_overrides_runpath=yes
10040   ;;
10041
10042 nto-qnx*)
10043   version_type=linux
10044   need_lib_prefix=no
10045   need_version=no
10046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10047   soname_spec='${libname}${release}${shared_ext}$major'
10048   shlibpath_var=LD_LIBRARY_PATH
10049   shlibpath_overrides_runpath=yes
10050   ;;
10051
10052 openbsd*)
10053   version_type=sunos
10054   sys_lib_dlsearch_path_spec="/usr/lib"
10055   need_lib_prefix=no
10056   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10057   case $host_os in
10058     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10059     *)                         need_version=no  ;;
10060   esac
10061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10062   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10063   shlibpath_var=LD_LIBRARY_PATH
10064   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10065     case $host_os in
10066       openbsd2.[89] | openbsd2.[89].*)
10067         shlibpath_overrides_runpath=no
10068         ;;
10069       *)
10070         shlibpath_overrides_runpath=yes
10071         ;;
10072       esac
10073   else
10074     shlibpath_overrides_runpath=yes
10075   fi
10076   ;;
10077
10078 os2*)
10079   libname_spec='$name'
10080   shrext_cmds=".dll"
10081   need_lib_prefix=no
10082   library_names_spec='$libname${shared_ext} $libname.a'
10083   dynamic_linker='OS/2 ld.exe'
10084   shlibpath_var=LIBPATH
10085   ;;
10086
10087 osf3* | osf4* | osf5*)
10088   version_type=osf
10089   need_lib_prefix=no
10090   need_version=no
10091   soname_spec='${libname}${release}${shared_ext}$major'
10092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093   shlibpath_var=LD_LIBRARY_PATH
10094   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10095   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10096   ;;
10097
10098 rdos*)
10099   dynamic_linker=no
10100   ;;
10101
10102 solaris*)
10103   version_type=linux
10104   need_lib_prefix=no
10105   need_version=no
10106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10107   soname_spec='${libname}${release}${shared_ext}$major'
10108   shlibpath_var=LD_LIBRARY_PATH
10109   shlibpath_overrides_runpath=yes
10110   hardcode_into_libs=yes
10111   # ldd complains unless libraries are executable
10112   postinstall_cmds='chmod +x $lib'
10113   ;;
10114
10115 sunos4*)
10116   version_type=sunos
10117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10118   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10119   shlibpath_var=LD_LIBRARY_PATH
10120   shlibpath_overrides_runpath=yes
10121   if test "$with_gnu_ld" = yes; then
10122     need_lib_prefix=no
10123   fi
10124   need_version=yes
10125   ;;
10126
10127 sysv4 | sysv4.3*)
10128   version_type=linux
10129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130   soname_spec='${libname}${release}${shared_ext}$major'
10131   shlibpath_var=LD_LIBRARY_PATH
10132   case $host_vendor in
10133     sni)
10134       shlibpath_overrides_runpath=no
10135       need_lib_prefix=no
10136       export_dynamic_flag_spec='${wl}-Blargedynsym'
10137       runpath_var=LD_RUN_PATH
10138       ;;
10139     siemens)
10140       need_lib_prefix=no
10141       ;;
10142     motorola)
10143       need_lib_prefix=no
10144       need_version=no
10145       shlibpath_overrides_runpath=no
10146       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10147       ;;
10148   esac
10149   ;;
10150
10151 sysv4*MP*)
10152   if test -d /usr/nec ;then
10153     version_type=linux
10154     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10155     soname_spec='$libname${shared_ext}.$major'
10156     shlibpath_var=LD_LIBRARY_PATH
10157   fi
10158   ;;
10159
10160 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10161   version_type=freebsd-elf
10162   need_lib_prefix=no
10163   need_version=no
10164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10165   soname_spec='${libname}${release}${shared_ext}$major'
10166   shlibpath_var=LD_LIBRARY_PATH
10167   hardcode_into_libs=yes
10168   if test "$with_gnu_ld" = yes; then
10169     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10170     shlibpath_overrides_runpath=no
10171   else
10172     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10173     shlibpath_overrides_runpath=yes
10174     case $host_os in
10175       sco3.2v5*)
10176         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10177         ;;
10178     esac
10179   fi
10180   sys_lib_dlsearch_path_spec='/usr/lib'
10181   ;;
10182
10183 uts4*)
10184   version_type=linux
10185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186   soname_spec='${libname}${release}${shared_ext}$major'
10187   shlibpath_var=LD_LIBRARY_PATH
10188   ;;
10189
10190 *)
10191   dynamic_linker=no
10192   ;;
10193 esac
10194 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10195 $as_echo "$dynamic_linker" >&6; }
10196 test "$dynamic_linker" = no && can_build_shared=no
10197
10198 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10199   $as_echo_n "(cached) " >&6
10200 else
10201   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10202 fi
10203
10204 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10205 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10206   $as_echo_n "(cached) " >&6
10207 else
10208   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10209 fi
10210
10211 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10212
10213 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10214 if test "$GCC" = yes; then
10215   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10216 fi
10217
10218 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10219 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10220 hardcode_action=
10221 if test -n "$hardcode_libdir_flag_spec" || \
10222    test -n "$runpath_var" || \
10223    test "X$hardcode_automatic" = "Xyes" ; then
10224
10225   # We can hardcode non-existant directories.
10226   if test "$hardcode_direct" != no &&
10227      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10228      # have to relink, otherwise we might link with an installed library
10229      # when we should be linking with a yet-to-be-installed one
10230      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10231      test "$hardcode_minus_L" != no; then
10232     # Linking always hardcodes the temporary library directory.
10233     hardcode_action=relink
10234   else
10235     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10236     hardcode_action=immediate
10237   fi
10238 else
10239   # We cannot hardcode anything, or else we can only hardcode existing
10240   # directories.
10241   hardcode_action=unsupported
10242 fi
10243 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10244 $as_echo "$hardcode_action" >&6; }
10245
10246 if test "$hardcode_action" = relink; then
10247   # Fast installation is not supported
10248   enable_fast_install=no
10249 elif test "$shlibpath_overrides_runpath" = yes ||
10250      test "$enable_shared" = no; then
10251   # Fast installation is not necessary
10252   enable_fast_install=needless
10253 fi
10254
10255 striplib=
10256 old_striplib=
10257 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10258 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10259 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10260   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10261   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10262   { $as_echo "$as_me:$LINENO: result: yes" >&5
10263 $as_echo "yes" >&6; }
10264 else
10265 # FIXME - insert some real tests, host_os isn't really good enough
10266   case $host_os in
10267    darwin*)
10268        if test -n "$STRIP" ; then
10269          striplib="$STRIP -x"
10270          old_striplib="$STRIP -S"
10271          { $as_echo "$as_me:$LINENO: result: yes" >&5
10272 $as_echo "yes" >&6; }
10273        else
10274   { $as_echo "$as_me:$LINENO: result: no" >&5
10275 $as_echo "no" >&6; }
10276 fi
10277        ;;
10278    *)
10279   { $as_echo "$as_me:$LINENO: result: no" >&5
10280 $as_echo "no" >&6; }
10281     ;;
10282   esac
10283 fi
10284
10285 if test "x$enable_dlopen" != xyes; then
10286   enable_dlopen=unknown
10287   enable_dlopen_self=unknown
10288   enable_dlopen_self_static=unknown
10289 else
10290   lt_cv_dlopen=no
10291   lt_cv_dlopen_libs=
10292
10293   case $host_os in
10294   beos*)
10295     lt_cv_dlopen="load_add_on"
10296     lt_cv_dlopen_libs=
10297     lt_cv_dlopen_self=yes
10298     ;;
10299
10300   mingw* | pw32*)
10301     lt_cv_dlopen="LoadLibrary"
10302     lt_cv_dlopen_libs=
10303    ;;
10304
10305   cygwin*)
10306     lt_cv_dlopen="dlopen"
10307     lt_cv_dlopen_libs=
10308    ;;
10309
10310   darwin*)
10311   # if libdl is installed we need to link against it
10312     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10313 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10314 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10315   $as_echo_n "(cached) " >&6
10316 else
10317   ac_check_lib_save_LIBS=$LIBS
10318 LIBS="-ldl  $LIBS"
10319 cat >conftest.$ac_ext <<_ACEOF
10320 /* confdefs.h.  */
10321 _ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h.  */
10325
10326 /* Override any GCC internal prototype to avoid an error.
10327    Use char because int might match the return type of a GCC
10328    builtin and then its argument prototype would still apply.  */
10329 #ifdef __cplusplus
10330 extern "C"
10331 #endif
10332 char dlopen ();
10333 int
10334 main ()
10335 {
10336 return dlopen ();
10337   ;
10338   return 0;
10339 }
10340 _ACEOF
10341 rm -f conftest.$ac_objext conftest$ac_exeext
10342 if { (ac_try="$ac_link"
10343 case "(($ac_try" in
10344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345   *) ac_try_echo=$ac_try;;
10346 esac
10347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10348 $as_echo "$ac_try_echo") >&5
10349   (eval "$ac_link") 2>conftest.er1
10350   ac_status=$?
10351   grep -v '^ *+' conftest.er1 >conftest.err
10352   rm -f conftest.er1
10353   cat conftest.err >&5
10354   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355   (exit $ac_status); } && {
10356          test -z "$ac_c_werror_flag" ||
10357          test ! -s conftest.err
10358        } && test -s conftest$ac_exeext && {
10359          test "$cross_compiling" = yes ||
10360          $as_test_x conftest$ac_exeext
10361        }; then
10362   ac_cv_lib_dl_dlopen=yes
10363 else
10364   $as_echo "$as_me: failed program was:" >&5
10365 sed 's/^/| /' conftest.$ac_ext >&5
10366
10367         ac_cv_lib_dl_dlopen=no
10368 fi
10369
10370 rm -rf conftest.dSYM
10371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10372       conftest$ac_exeext conftest.$ac_ext
10373 LIBS=$ac_check_lib_save_LIBS
10374 fi
10375 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10376 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10377 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10378   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10379 else
10380
10381     lt_cv_dlopen="dyld"
10382     lt_cv_dlopen_libs=
10383     lt_cv_dlopen_self=yes
10384
10385 fi
10386
10387    ;;
10388
10389   *)
10390     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10391 $as_echo_n "checking for shl_load... " >&6; }
10392 if test "${ac_cv_func_shl_load+set}" = set; then
10393   $as_echo_n "(cached) " >&6
10394 else
10395   cat >conftest.$ac_ext <<_ACEOF
10396 /* confdefs.h.  */
10397 _ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h.  */
10401 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10403 #define shl_load innocuous_shl_load
10404
10405 /* System header to define __stub macros and hopefully few prototypes,
10406     which can conflict with char shl_load (); below.
10407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10408     <limits.h> exists even on freestanding compilers.  */
10409
10410 #ifdef __STDC__
10411 # include <limits.h>
10412 #else
10413 # include <assert.h>
10414 #endif
10415
10416 #undef shl_load
10417
10418 /* Override any GCC internal prototype to avoid an error.
10419    Use char because int might match the return type of a GCC
10420    builtin and then its argument prototype would still apply.  */
10421 #ifdef __cplusplus
10422 extern "C"
10423 #endif
10424 char shl_load ();
10425 /* The GNU C library defines this for functions which it implements
10426     to always fail with ENOSYS.  Some functions are actually named
10427     something starting with __ and the normal name is an alias.  */
10428 #if defined __stub_shl_load || defined __stub___shl_load
10429 choke me
10430 #endif
10431
10432 int
10433 main ()
10434 {
10435 return shl_load ();
10436   ;
10437   return 0;
10438 }
10439 _ACEOF
10440 rm -f conftest.$ac_objext conftest$ac_exeext
10441 if { (ac_try="$ac_link"
10442 case "(($ac_try" in
10443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444   *) ac_try_echo=$ac_try;;
10445 esac
10446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10447 $as_echo "$ac_try_echo") >&5
10448   (eval "$ac_link") 2>conftest.er1
10449   ac_status=$?
10450   grep -v '^ *+' conftest.er1 >conftest.err
10451   rm -f conftest.er1
10452   cat conftest.err >&5
10453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454   (exit $ac_status); } && {
10455          test -z "$ac_c_werror_flag" ||
10456          test ! -s conftest.err
10457        } && test -s conftest$ac_exeext && {
10458          test "$cross_compiling" = yes ||
10459          $as_test_x conftest$ac_exeext
10460        }; then
10461   ac_cv_func_shl_load=yes
10462 else
10463   $as_echo "$as_me: failed program was:" >&5
10464 sed 's/^/| /' conftest.$ac_ext >&5
10465
10466         ac_cv_func_shl_load=no
10467 fi
10468
10469 rm -rf conftest.dSYM
10470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10471       conftest$ac_exeext conftest.$ac_ext
10472 fi
10473 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10474 $as_echo "$ac_cv_func_shl_load" >&6; }
10475 if test "x$ac_cv_func_shl_load" = x""yes; then
10476   lt_cv_dlopen="shl_load"
10477 else
10478   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10479 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10480 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10481   $as_echo_n "(cached) " >&6
10482 else
10483   ac_check_lib_save_LIBS=$LIBS
10484 LIBS="-ldld  $LIBS"
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
10492 /* Override any GCC internal prototype to avoid an error.
10493    Use char because int might match the return type of a GCC
10494    builtin and then its argument prototype would still apply.  */
10495 #ifdef __cplusplus
10496 extern "C"
10497 #endif
10498 char shl_load ();
10499 int
10500 main ()
10501 {
10502 return shl_load ();
10503   ;
10504   return 0;
10505 }
10506 _ACEOF
10507 rm -f conftest.$ac_objext conftest$ac_exeext
10508 if { (ac_try="$ac_link"
10509 case "(($ac_try" in
10510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511   *) ac_try_echo=$ac_try;;
10512 esac
10513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10514 $as_echo "$ac_try_echo") >&5
10515   (eval "$ac_link") 2>conftest.er1
10516   ac_status=$?
10517   grep -v '^ *+' conftest.er1 >conftest.err
10518   rm -f conftest.er1
10519   cat conftest.err >&5
10520   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   (exit $ac_status); } && {
10522          test -z "$ac_c_werror_flag" ||
10523          test ! -s conftest.err
10524        } && test -s conftest$ac_exeext && {
10525          test "$cross_compiling" = yes ||
10526          $as_test_x conftest$ac_exeext
10527        }; then
10528   ac_cv_lib_dld_shl_load=yes
10529 else
10530   $as_echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10532
10533         ac_cv_lib_dld_shl_load=no
10534 fi
10535
10536 rm -rf conftest.dSYM
10537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10538       conftest$ac_exeext conftest.$ac_ext
10539 LIBS=$ac_check_lib_save_LIBS
10540 fi
10541 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10542 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10543 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10544   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10545 else
10546   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10547 $as_echo_n "checking for dlopen... " >&6; }
10548 if test "${ac_cv_func_dlopen+set}" = set; then
10549   $as_echo_n "(cached) " >&6
10550 else
10551   cat >conftest.$ac_ext <<_ACEOF
10552 /* confdefs.h.  */
10553 _ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h.  */
10557 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10559 #define dlopen innocuous_dlopen
10560
10561 /* System header to define __stub macros and hopefully few prototypes,
10562     which can conflict with char dlopen (); below.
10563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10564     <limits.h> exists even on freestanding compilers.  */
10565
10566 #ifdef __STDC__
10567 # include <limits.h>
10568 #else
10569 # include <assert.h>
10570 #endif
10571
10572 #undef dlopen
10573
10574 /* Override any GCC internal prototype to avoid an error.
10575    Use char because int might match the return type of a GCC
10576    builtin and then its argument prototype would still apply.  */
10577 #ifdef __cplusplus
10578 extern "C"
10579 #endif
10580 char dlopen ();
10581 /* The GNU C library defines this for functions which it implements
10582     to always fail with ENOSYS.  Some functions are actually named
10583     something starting with __ and the normal name is an alias.  */
10584 #if defined __stub_dlopen || defined __stub___dlopen
10585 choke me
10586 #endif
10587
10588 int
10589 main ()
10590 {
10591 return dlopen ();
10592   ;
10593   return 0;
10594 }
10595 _ACEOF
10596 rm -f conftest.$ac_objext conftest$ac_exeext
10597 if { (ac_try="$ac_link"
10598 case "(($ac_try" in
10599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600   *) ac_try_echo=$ac_try;;
10601 esac
10602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10603 $as_echo "$ac_try_echo") >&5
10604   (eval "$ac_link") 2>conftest.er1
10605   ac_status=$?
10606   grep -v '^ *+' conftest.er1 >conftest.err
10607   rm -f conftest.er1
10608   cat conftest.err >&5
10609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610   (exit $ac_status); } && {
10611          test -z "$ac_c_werror_flag" ||
10612          test ! -s conftest.err
10613        } && test -s conftest$ac_exeext && {
10614          test "$cross_compiling" = yes ||
10615          $as_test_x conftest$ac_exeext
10616        }; then
10617   ac_cv_func_dlopen=yes
10618 else
10619   $as_echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10621
10622         ac_cv_func_dlopen=no
10623 fi
10624
10625 rm -rf conftest.dSYM
10626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10627       conftest$ac_exeext conftest.$ac_ext
10628 fi
10629 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10630 $as_echo "$ac_cv_func_dlopen" >&6; }
10631 if test "x$ac_cv_func_dlopen" = x""yes; then
10632   lt_cv_dlopen="dlopen"
10633 else
10634   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10635 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10636 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10637   $as_echo_n "(cached) " >&6
10638 else
10639   ac_check_lib_save_LIBS=$LIBS
10640 LIBS="-ldl  $LIBS"
10641 cat >conftest.$ac_ext <<_ACEOF
10642 /* confdefs.h.  */
10643 _ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h.  */
10647
10648 /* Override any GCC internal prototype to avoid an error.
10649    Use char because int might match the return type of a GCC
10650    builtin and then its argument prototype would still apply.  */
10651 #ifdef __cplusplus
10652 extern "C"
10653 #endif
10654 char dlopen ();
10655 int
10656 main ()
10657 {
10658 return dlopen ();
10659   ;
10660   return 0;
10661 }
10662 _ACEOF
10663 rm -f conftest.$ac_objext conftest$ac_exeext
10664 if { (ac_try="$ac_link"
10665 case "(($ac_try" in
10666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667   *) ac_try_echo=$ac_try;;
10668 esac
10669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10670 $as_echo "$ac_try_echo") >&5
10671   (eval "$ac_link") 2>conftest.er1
10672   ac_status=$?
10673   grep -v '^ *+' conftest.er1 >conftest.err
10674   rm -f conftest.er1
10675   cat conftest.err >&5
10676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677   (exit $ac_status); } && {
10678          test -z "$ac_c_werror_flag" ||
10679          test ! -s conftest.err
10680        } && test -s conftest$ac_exeext && {
10681          test "$cross_compiling" = yes ||
10682          $as_test_x conftest$ac_exeext
10683        }; then
10684   ac_cv_lib_dl_dlopen=yes
10685 else
10686   $as_echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.$ac_ext >&5
10688
10689         ac_cv_lib_dl_dlopen=no
10690 fi
10691
10692 rm -rf conftest.dSYM
10693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10694       conftest$ac_exeext conftest.$ac_ext
10695 LIBS=$ac_check_lib_save_LIBS
10696 fi
10697 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10698 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10699 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10700   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10701 else
10702   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10703 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10704 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10705   $as_echo_n "(cached) " >&6
10706 else
10707   ac_check_lib_save_LIBS=$LIBS
10708 LIBS="-lsvld  $LIBS"
10709 cat >conftest.$ac_ext <<_ACEOF
10710 /* confdefs.h.  */
10711 _ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h.  */
10715
10716 /* Override any GCC internal prototype to avoid an error.
10717    Use char because int might match the return type of a GCC
10718    builtin and then its argument prototype would still apply.  */
10719 #ifdef __cplusplus
10720 extern "C"
10721 #endif
10722 char dlopen ();
10723 int
10724 main ()
10725 {
10726 return dlopen ();
10727   ;
10728   return 0;
10729 }
10730 _ACEOF
10731 rm -f conftest.$ac_objext conftest$ac_exeext
10732 if { (ac_try="$ac_link"
10733 case "(($ac_try" in
10734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735   *) ac_try_echo=$ac_try;;
10736 esac
10737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10738 $as_echo "$ac_try_echo") >&5
10739   (eval "$ac_link") 2>conftest.er1
10740   ac_status=$?
10741   grep -v '^ *+' conftest.er1 >conftest.err
10742   rm -f conftest.er1
10743   cat conftest.err >&5
10744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745   (exit $ac_status); } && {
10746          test -z "$ac_c_werror_flag" ||
10747          test ! -s conftest.err
10748        } && test -s conftest$ac_exeext && {
10749          test "$cross_compiling" = yes ||
10750          $as_test_x conftest$ac_exeext
10751        }; then
10752   ac_cv_lib_svld_dlopen=yes
10753 else
10754   $as_echo "$as_me: failed program was:" >&5
10755 sed 's/^/| /' conftest.$ac_ext >&5
10756
10757         ac_cv_lib_svld_dlopen=no
10758 fi
10759
10760 rm -rf conftest.dSYM
10761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10762       conftest$ac_exeext conftest.$ac_ext
10763 LIBS=$ac_check_lib_save_LIBS
10764 fi
10765 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10766 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10767 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10768   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10769 else
10770   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10771 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10772 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10773   $as_echo_n "(cached) " >&6
10774 else
10775   ac_check_lib_save_LIBS=$LIBS
10776 LIBS="-ldld  $LIBS"
10777 cat >conftest.$ac_ext <<_ACEOF
10778 /* confdefs.h.  */
10779 _ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h.  */
10783
10784 /* Override any GCC internal prototype to avoid an error.
10785    Use char because int might match the return type of a GCC
10786    builtin and then its argument prototype would still apply.  */
10787 #ifdef __cplusplus
10788 extern "C"
10789 #endif
10790 char dld_link ();
10791 int
10792 main ()
10793 {
10794 return dld_link ();
10795   ;
10796   return 0;
10797 }
10798 _ACEOF
10799 rm -f conftest.$ac_objext conftest$ac_exeext
10800 if { (ac_try="$ac_link"
10801 case "(($ac_try" in
10802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803   *) ac_try_echo=$ac_try;;
10804 esac
10805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10806 $as_echo "$ac_try_echo") >&5
10807   (eval "$ac_link") 2>conftest.er1
10808   ac_status=$?
10809   grep -v '^ *+' conftest.er1 >conftest.err
10810   rm -f conftest.er1
10811   cat conftest.err >&5
10812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813   (exit $ac_status); } && {
10814          test -z "$ac_c_werror_flag" ||
10815          test ! -s conftest.err
10816        } && test -s conftest$ac_exeext && {
10817          test "$cross_compiling" = yes ||
10818          $as_test_x conftest$ac_exeext
10819        }; then
10820   ac_cv_lib_dld_dld_link=yes
10821 else
10822   $as_echo "$as_me: failed program was:" >&5
10823 sed 's/^/| /' conftest.$ac_ext >&5
10824
10825         ac_cv_lib_dld_dld_link=no
10826 fi
10827
10828 rm -rf conftest.dSYM
10829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10830       conftest$ac_exeext conftest.$ac_ext
10831 LIBS=$ac_check_lib_save_LIBS
10832 fi
10833 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10834 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10835 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10836   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10837 fi
10838
10839
10840 fi
10841
10842
10843 fi
10844
10845
10846 fi
10847
10848
10849 fi
10850
10851
10852 fi
10853
10854     ;;
10855   esac
10856
10857   if test "x$lt_cv_dlopen" != xno; then
10858     enable_dlopen=yes
10859   else
10860     enable_dlopen=no
10861   fi
10862
10863   case $lt_cv_dlopen in
10864   dlopen)
10865     save_CPPFLAGS="$CPPFLAGS"
10866     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10867
10868     save_LDFLAGS="$LDFLAGS"
10869     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10870
10871     save_LIBS="$LIBS"
10872     LIBS="$lt_cv_dlopen_libs $LIBS"
10873
10874     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10875 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10876 if test "${lt_cv_dlopen_self+set}" = set; then
10877   $as_echo_n "(cached) " >&6
10878 else
10879           if test "$cross_compiling" = yes; then :
10880   lt_cv_dlopen_self=cross
10881 else
10882   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10883   lt_status=$lt_dlunknown
10884   cat > conftest.$ac_ext <<EOF
10885 #line 10885 "configure"
10886 #include "confdefs.h"
10887
10888 #if HAVE_DLFCN_H
10889 #include <dlfcn.h>
10890 #endif
10891
10892 #include <stdio.h>
10893
10894 #ifdef RTLD_GLOBAL
10895 #  define LT_DLGLOBAL           RTLD_GLOBAL
10896 #else
10897 #  ifdef DL_GLOBAL
10898 #    define LT_DLGLOBAL         DL_GLOBAL
10899 #  else
10900 #    define LT_DLGLOBAL         0
10901 #  endif
10902 #endif
10903
10904 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10905    find out it does not work in some platform. */
10906 #ifndef LT_DLLAZY_OR_NOW
10907 #  ifdef RTLD_LAZY
10908 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10909 #  else
10910 #    ifdef DL_LAZY
10911 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10912 #    else
10913 #      ifdef RTLD_NOW
10914 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10915 #      else
10916 #        ifdef DL_NOW
10917 #          define LT_DLLAZY_OR_NOW      DL_NOW
10918 #        else
10919 #          define LT_DLLAZY_OR_NOW      0
10920 #        endif
10921 #      endif
10922 #    endif
10923 #  endif
10924 #endif
10925
10926 #ifdef __cplusplus
10927 extern "C" void exit (int);
10928 #endif
10929
10930 void fnord() { int i=42;}
10931 int main ()
10932 {
10933   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10934   int status = $lt_dlunknown;
10935
10936   if (self)
10937     {
10938       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10939       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10940       /* dlclose (self); */
10941     }
10942   else
10943     puts (dlerror ());
10944
10945     exit (status);
10946 }
10947 EOF
10948   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10949   (eval $ac_link) 2>&5
10950   ac_status=$?
10951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10953     (./conftest; exit; ) >&5 2>/dev/null
10954     lt_status=$?
10955     case x$lt_status in
10956       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10957       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10958       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10959     esac
10960   else :
10961     # compilation failed
10962     lt_cv_dlopen_self=no
10963   fi
10964 fi
10965 rm -fr conftest*
10966
10967
10968 fi
10969 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10970 $as_echo "$lt_cv_dlopen_self" >&6; }
10971
10972     if test "x$lt_cv_dlopen_self" = xyes; then
10973       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10974       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10975 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10976 if test "${lt_cv_dlopen_self_static+set}" = set; then
10977   $as_echo_n "(cached) " >&6
10978 else
10979           if test "$cross_compiling" = yes; then :
10980   lt_cv_dlopen_self_static=cross
10981 else
10982   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10983   lt_status=$lt_dlunknown
10984   cat > conftest.$ac_ext <<EOF
10985 #line 10985 "configure"
10986 #include "confdefs.h"
10987
10988 #if HAVE_DLFCN_H
10989 #include <dlfcn.h>
10990 #endif
10991
10992 #include <stdio.h>
10993
10994 #ifdef RTLD_GLOBAL
10995 #  define LT_DLGLOBAL           RTLD_GLOBAL
10996 #else
10997 #  ifdef DL_GLOBAL
10998 #    define LT_DLGLOBAL         DL_GLOBAL
10999 #  else
11000 #    define LT_DLGLOBAL         0
11001 #  endif
11002 #endif
11003
11004 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11005    find out it does not work in some platform. */
11006 #ifndef LT_DLLAZY_OR_NOW
11007 #  ifdef RTLD_LAZY
11008 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11009 #  else
11010 #    ifdef DL_LAZY
11011 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11012 #    else
11013 #      ifdef RTLD_NOW
11014 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11015 #      else
11016 #        ifdef DL_NOW
11017 #          define LT_DLLAZY_OR_NOW      DL_NOW
11018 #        else
11019 #          define LT_DLLAZY_OR_NOW      0
11020 #        endif
11021 #      endif
11022 #    endif
11023 #  endif
11024 #endif
11025
11026 #ifdef __cplusplus
11027 extern "C" void exit (int);
11028 #endif
11029
11030 void fnord() { int i=42;}
11031 int main ()
11032 {
11033   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11034   int status = $lt_dlunknown;
11035
11036   if (self)
11037     {
11038       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11039       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11040       /* dlclose (self); */
11041     }
11042   else
11043     puts (dlerror ());
11044
11045     exit (status);
11046 }
11047 EOF
11048   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11049   (eval $ac_link) 2>&5
11050   ac_status=$?
11051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11053     (./conftest; exit; ) >&5 2>/dev/null
11054     lt_status=$?
11055     case x$lt_status in
11056       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11057       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11058       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11059     esac
11060   else :
11061     # compilation failed
11062     lt_cv_dlopen_self_static=no
11063   fi
11064 fi
11065 rm -fr conftest*
11066
11067
11068 fi
11069 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11070 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11071     fi
11072
11073     CPPFLAGS="$save_CPPFLAGS"
11074     LDFLAGS="$save_LDFLAGS"
11075     LIBS="$save_LIBS"
11076     ;;
11077   esac
11078
11079   case $lt_cv_dlopen_self in
11080   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11081   *) enable_dlopen_self=unknown ;;
11082   esac
11083
11084   case $lt_cv_dlopen_self_static in
11085   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11086   *) enable_dlopen_self_static=unknown ;;
11087   esac
11088 fi
11089
11090
11091 # Report which library types will actually be built
11092 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11093 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11094 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11095 $as_echo "$can_build_shared" >&6; }
11096
11097 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11098 $as_echo_n "checking whether to build shared libraries... " >&6; }
11099 test "$can_build_shared" = "no" && enable_shared=no
11100
11101 # On AIX, shared libraries and static libraries use the same namespace, and
11102 # are all built from PIC.
11103 case $host_os in
11104 aix3*)
11105   test "$enable_shared" = yes && enable_static=no
11106   if test -n "$RANLIB"; then
11107     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11108     postinstall_cmds='$RANLIB $lib'
11109   fi
11110   ;;
11111
11112 aix[4-9]*)
11113   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11114     test "$enable_shared" = yes && enable_static=no
11115   fi
11116     ;;
11117 esac
11118 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11119 $as_echo "$enable_shared" >&6; }
11120
11121 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11122 $as_echo_n "checking whether to build static libraries... " >&6; }
11123 # Make sure either enable_shared or enable_static is yes.
11124 test "$enable_shared" = yes || enable_static=yes
11125 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11126 $as_echo "$enable_static" >&6; }
11127
11128 # The else clause should only fire when bootstrapping the
11129 # libtool distribution, otherwise you forgot to ship ltmain.sh
11130 # with your package, and you will get complaints that there are
11131 # no rules to generate ltmain.sh.
11132 if test -f "$ltmain"; then
11133   # See if we are running on zsh, and set the options which allow our commands through
11134   # without removal of \ escapes.
11135   if test -n "${ZSH_VERSION+set}" ; then
11136     setopt NO_GLOB_SUBST
11137   fi
11138   # Now quote all the things that may contain metacharacters while being
11139   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11140   # variables and quote the copies for generation of the libtool script.
11141   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11142     SED SHELL STRIP \
11143     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11144     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11145     deplibs_check_method reload_flag reload_cmds need_locks \
11146     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11147     lt_cv_sys_global_symbol_to_c_name_address \
11148     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11149     old_postinstall_cmds old_postuninstall_cmds \
11150     compiler \
11151     CC \
11152     LD \
11153     lt_prog_compiler_wl \
11154     lt_prog_compiler_pic \
11155     lt_prog_compiler_static \
11156     lt_prog_compiler_no_builtin_flag \
11157     export_dynamic_flag_spec \
11158     thread_safe_flag_spec \
11159     whole_archive_flag_spec \
11160     enable_shared_with_static_runtimes \
11161     old_archive_cmds \
11162     old_archive_from_new_cmds \
11163     predep_objects \
11164     postdep_objects \
11165     predeps \
11166     postdeps \
11167     compiler_lib_search_path \
11168     compiler_lib_search_dirs \
11169     archive_cmds \
11170     archive_expsym_cmds \
11171     postinstall_cmds \
11172     postuninstall_cmds \
11173     old_archive_from_expsyms_cmds \
11174     allow_undefined_flag \
11175     no_undefined_flag \
11176     export_symbols_cmds \
11177     hardcode_libdir_flag_spec \
11178     hardcode_libdir_flag_spec_ld \
11179     hardcode_libdir_separator \
11180     hardcode_automatic \
11181     module_cmds \
11182     module_expsym_cmds \
11183     lt_cv_prog_compiler_c_o \
11184     fix_srcfile_path \
11185     exclude_expsyms \
11186     include_expsyms; do
11187
11188     case $var in
11189     old_archive_cmds | \
11190     old_archive_from_new_cmds | \
11191     archive_cmds | \
11192     archive_expsym_cmds | \
11193     module_cmds | \
11194     module_expsym_cmds | \
11195     old_archive_from_expsyms_cmds | \
11196     export_symbols_cmds | \
11197     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11198     postinstall_cmds | postuninstall_cmds | \
11199     old_postinstall_cmds | old_postuninstall_cmds | \
11200     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11201       # Double-quote double-evaled strings.
11202       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11203       ;;
11204     *)
11205       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11206       ;;
11207     esac
11208   done
11209
11210   case $lt_echo in
11211   *'\$0 --fallback-echo"')
11212     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11213     ;;
11214   esac
11215
11216 cfgfile="${ofile}T"
11217   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11218   $rm -f "$cfgfile"
11219   { $as_echo "$as_me:$LINENO: creating $ofile" >&5
11220 $as_echo "$as_me: creating $ofile" >&6;}
11221
11222   cat <<__EOF__ >> "$cfgfile"
11223 #! $SHELL
11224
11225 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11226 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11227 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11228 #
11229 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11230 # Free Software Foundation, Inc.
11231 #
11232 # This file is part of GNU Libtool:
11233 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11234 #
11235 # This program is free software; you can redistribute it and/or modify
11236 # it under the terms of the GNU General Public License as published by
11237 # the Free Software Foundation; either version 2 of the License, or
11238 # (at your option) any later version.
11239 #
11240 # This program is distributed in the hope that it will be useful, but
11241 # WITHOUT ANY WARRANTY; without even the implied warranty of
11242 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11243 # General Public License for more details.
11244 #
11245 # You should have received a copy of the GNU General Public License
11246 # along with this program; if not, write to the Free Software
11247 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11248 #
11249 # As a special exception to the GNU General Public License, if you
11250 # distribute this file as part of a program that contains a
11251 # configuration script generated by Autoconf, you may include it under
11252 # the same distribution terms that you use for the rest of that program.
11253
11254 # A sed program that does not truncate output.
11255 SED=$lt_SED
11256
11257 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11258 Xsed="$SED -e 1s/^X//"
11259
11260 # The HP-UX ksh and POSIX shell print the target directory to stdout
11261 # if CDPATH is set.
11262 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11263
11264 # The names of the tagged configurations supported by this script.
11265 available_tags=
11266
11267 # ### BEGIN LIBTOOL CONFIG
11268
11269 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11270
11271 # Shell to use when invoking shell scripts.
11272 SHELL=$lt_SHELL
11273
11274 # Whether or not to build shared libraries.
11275 build_libtool_libs=$enable_shared
11276
11277 # Whether or not to build static libraries.
11278 build_old_libs=$enable_static
11279
11280 # Whether or not to add -lc for building shared libraries.
11281 build_libtool_need_lc=$archive_cmds_need_lc
11282
11283 # Whether or not to disallow shared libs when runtime libs are static
11284 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11285
11286 # Whether or not to optimize for fast installation.
11287 fast_install=$enable_fast_install
11288
11289 # The host system.
11290 host_alias=$host_alias
11291 host=$host
11292 host_os=$host_os
11293
11294 # The build system.
11295 build_alias=$build_alias
11296 build=$build
11297 build_os=$build_os
11298
11299 # An echo program that does not interpret backslashes.
11300 echo=$lt_echo
11301
11302 # The archiver.
11303 AR=$lt_AR
11304 AR_FLAGS=$lt_AR_FLAGS
11305
11306 # A C compiler.
11307 LTCC=$lt_LTCC
11308
11309 # LTCC compiler flags.
11310 LTCFLAGS=$lt_LTCFLAGS
11311
11312 # A language-specific compiler.
11313 CC=$lt_compiler
11314
11315 # Is the compiler the GNU C compiler?
11316 with_gcc=$GCC
11317
11318 # An ERE matcher.
11319 EGREP=$lt_EGREP
11320
11321 # The linker used to build libraries.
11322 LD=$lt_LD
11323
11324 # Whether we need hard or soft links.
11325 LN_S=$lt_LN_S
11326
11327 # A BSD-compatible nm program.
11328 NM=$lt_NM
11329
11330 # A symbol stripping program
11331 STRIP=$lt_STRIP
11332
11333 # Used to examine libraries when file_magic_cmd begins "file"
11334 MAGIC_CMD=$MAGIC_CMD
11335
11336 # Used on cygwin: DLL creation program.
11337 DLLTOOL="$DLLTOOL"
11338
11339 # Used on cygwin: object dumper.
11340 OBJDUMP="$OBJDUMP"
11341
11342 # Used on cygwin: assembler.
11343 AS="$AS"
11344
11345 # The name of the directory that contains temporary libtool files.
11346 objdir=$objdir
11347
11348 # How to create reloadable object files.
11349 reload_flag=$lt_reload_flag
11350 reload_cmds=$lt_reload_cmds
11351
11352 # How to pass a linker flag through the compiler.
11353 wl=$lt_lt_prog_compiler_wl
11354
11355 # Object file suffix (normally "o").
11356 objext="$ac_objext"
11357
11358 # Old archive suffix (normally "a").
11359 libext="$libext"
11360
11361 # Shared library suffix (normally ".so").
11362 shrext_cmds='$shrext_cmds'
11363
11364 # Executable file suffix (normally "").
11365 exeext="$exeext"
11366
11367 # Additional compiler flags for building library objects.
11368 pic_flag=$lt_lt_prog_compiler_pic
11369 pic_mode=$pic_mode
11370
11371 # What is the maximum length of a command?
11372 max_cmd_len=$lt_cv_sys_max_cmd_len
11373
11374 # Does compiler simultaneously support -c and -o options?
11375 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11376
11377 # Must we lock files when doing compilation?
11378 need_locks=$lt_need_locks
11379
11380 # Do we need the lib prefix for modules?
11381 need_lib_prefix=$need_lib_prefix
11382
11383 # Do we need a version for libraries?
11384 need_version=$need_version
11385
11386 # Whether dlopen is supported.
11387 dlopen_support=$enable_dlopen
11388
11389 # Whether dlopen of programs is supported.
11390 dlopen_self=$enable_dlopen_self
11391
11392 # Whether dlopen of statically linked programs is supported.
11393 dlopen_self_static=$enable_dlopen_self_static
11394
11395 # Compiler flag to prevent dynamic linking.
11396 link_static_flag=$lt_lt_prog_compiler_static
11397
11398 # Compiler flag to turn off builtin functions.
11399 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11400
11401 # Compiler flag to allow reflexive dlopens.
11402 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11403
11404 # Compiler flag to generate shared objects directly from archives.
11405 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11406
11407 # Compiler flag to generate thread-safe objects.
11408 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11409
11410 # Library versioning type.
11411 version_type=$version_type
11412
11413 # Format of library name prefix.
11414 libname_spec=$lt_libname_spec
11415
11416 # List of archive names.  First name is the real one, the rest are links.
11417 # The last name is the one that the linker finds with -lNAME.
11418 library_names_spec=$lt_library_names_spec
11419
11420 # The coded name of the library, if different from the real name.
11421 soname_spec=$lt_soname_spec
11422
11423 # Commands used to build and install an old-style archive.
11424 RANLIB=$lt_RANLIB
11425 old_archive_cmds=$lt_old_archive_cmds
11426 old_postinstall_cmds=$lt_old_postinstall_cmds
11427 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11428
11429 # Create an old-style archive from a shared archive.
11430 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11431
11432 # Create a temporary old-style archive to link instead of a shared archive.
11433 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11434
11435 # Commands used to build and install a shared archive.
11436 archive_cmds=$lt_archive_cmds
11437 archive_expsym_cmds=$lt_archive_expsym_cmds
11438 postinstall_cmds=$lt_postinstall_cmds
11439 postuninstall_cmds=$lt_postuninstall_cmds
11440
11441 # Commands used to build a loadable module (assumed same as above if empty)
11442 module_cmds=$lt_module_cmds
11443 module_expsym_cmds=$lt_module_expsym_cmds
11444
11445 # Commands to strip libraries.
11446 old_striplib=$lt_old_striplib
11447 striplib=$lt_striplib
11448
11449 # Dependencies to place before the objects being linked to create a
11450 # shared library.
11451 predep_objects=$lt_predep_objects
11452
11453 # Dependencies to place after the objects being linked to create a
11454 # shared library.
11455 postdep_objects=$lt_postdep_objects
11456
11457 # Dependencies to place before the objects being linked to create a
11458 # shared library.
11459 predeps=$lt_predeps
11460
11461 # Dependencies to place after the objects being linked to create a
11462 # shared library.
11463 postdeps=$lt_postdeps
11464
11465 # The directories searched by this compiler when creating a shared
11466 # library
11467 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11468
11469 # The library search path used internally by the compiler when linking
11470 # a shared library.
11471 compiler_lib_search_path=$lt_compiler_lib_search_path
11472
11473 # Method to check whether dependent libraries are shared objects.
11474 deplibs_check_method=$lt_deplibs_check_method
11475
11476 # Command to use when deplibs_check_method == file_magic.
11477 file_magic_cmd=$lt_file_magic_cmd
11478
11479 # Flag that allows shared libraries with undefined symbols to be built.
11480 allow_undefined_flag=$lt_allow_undefined_flag
11481
11482 # Flag that forces no undefined symbols.
11483 no_undefined_flag=$lt_no_undefined_flag
11484
11485 # Commands used to finish a libtool library installation in a directory.
11486 finish_cmds=$lt_finish_cmds
11487
11488 # Same as above, but a single script fragment to be evaled but not shown.
11489 finish_eval=$lt_finish_eval
11490
11491 # Take the output of nm and produce a listing of raw symbols and C names.
11492 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11493
11494 # Transform the output of nm in a proper C declaration
11495 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11496
11497 # Transform the output of nm in a C name address pair
11498 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11499
11500 # This is the shared library runtime path variable.
11501 runpath_var=$runpath_var
11502
11503 # This is the shared library path variable.
11504 shlibpath_var=$shlibpath_var
11505
11506 # Is shlibpath searched before the hard-coded library search path?
11507 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11508
11509 # How to hardcode a shared library path into an executable.
11510 hardcode_action=$hardcode_action
11511
11512 # Whether we should hardcode library paths into libraries.
11513 hardcode_into_libs=$hardcode_into_libs
11514
11515 # Flag to hardcode \$libdir into a binary during linking.
11516 # This must work even if \$libdir does not exist.
11517 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11518
11519 # If ld is used when linking, flag to hardcode \$libdir into
11520 # a binary during linking. This must work even if \$libdir does
11521 # not exist.
11522 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11523
11524 # Whether we need a single -rpath flag with a separated argument.
11525 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11526
11527 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11528 # resulting binary.
11529 hardcode_direct=$hardcode_direct
11530
11531 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11532 # resulting binary.
11533 hardcode_minus_L=$hardcode_minus_L
11534
11535 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11536 # the resulting binary.
11537 hardcode_shlibpath_var=$hardcode_shlibpath_var
11538
11539 # Set to yes if building a shared library automatically hardcodes DIR into the library
11540 # and all subsequent libraries and executables linked against it.
11541 hardcode_automatic=$hardcode_automatic
11542
11543 # Variables whose values should be saved in libtool wrapper scripts and
11544 # restored at relink time.
11545 variables_saved_for_relink="$variables_saved_for_relink"
11546
11547 # Whether libtool must link a program against all its dependency libraries.
11548 link_all_deplibs=$link_all_deplibs
11549
11550 # Compile-time system search path for libraries
11551 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11552
11553 # Run-time system search path for libraries
11554 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11555
11556 # Fix the shell variable \$srcfile for the compiler.
11557 fix_srcfile_path=$lt_fix_srcfile_path
11558
11559 # Set to yes if exported symbols are required.
11560 always_export_symbols=$always_export_symbols
11561
11562 # The commands to list exported symbols.
11563 export_symbols_cmds=$lt_export_symbols_cmds
11564
11565 # The commands to extract the exported symbol list from a shared archive.
11566 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11567
11568 # Symbols that should not be listed in the preloaded symbols.
11569 exclude_expsyms=$lt_exclude_expsyms
11570
11571 # Symbols that must always be exported.
11572 include_expsyms=$lt_include_expsyms
11573
11574 # ### END LIBTOOL CONFIG
11575
11576 __EOF__
11577
11578
11579   case $host_os in
11580   aix3*)
11581     cat <<\EOF >> "$cfgfile"
11582
11583 # AIX sometimes has problems with the GCC collect2 program.  For some
11584 # reason, if we set the COLLECT_NAMES environment variable, the problems
11585 # vanish in a puff of smoke.
11586 if test "X${COLLECT_NAMES+set}" != Xset; then
11587   COLLECT_NAMES=
11588   export COLLECT_NAMES
11589 fi
11590 EOF
11591     ;;
11592   esac
11593
11594   # We use sed instead of cat because bash on DJGPP gets confused if
11595   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11596   # text mode, it properly converts lines to CR/LF.  This bash problem
11597   # is reportedly fixed, but why not run on old versions too?
11598   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11599
11600   mv -f "$cfgfile" "$ofile" || \
11601     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11602   chmod +x "$ofile"
11603
11604 else
11605   # If there is no Makefile yet, we rely on a make rule to execute
11606   # `config.status --recheck' to rerun these tests and create the
11607   # libtool script then.
11608   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11609   if test -f "$ltmain_in"; then
11610     test -f Makefile && make "$ltmain"
11611   fi
11612 fi
11613
11614
11615 ac_ext=c
11616 ac_cpp='$CPP $CPPFLAGS'
11617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11620
11621 CC="$lt_save_CC"
11622
11623
11624 # Check whether --with-tags was given.
11625 if test "${with_tags+set}" = set; then
11626   withval=$with_tags; tagnames="$withval"
11627 fi
11628
11629
11630 if test -f "$ltmain" && test -n "$tagnames"; then
11631   if test ! -f "${ofile}"; then
11632     { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11633 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11634   fi
11635
11636   if test -z "$LTCC"; then
11637     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11638     if test -z "$LTCC"; then
11639       { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11640 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11641     else
11642       { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11643 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11644     fi
11645   fi
11646   if test -z "$LTCFLAGS"; then
11647     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11648   fi
11649
11650   # Extract list of available tagged configurations in $ofile.
11651   # Note that this assumes the entire list is on one line.
11652   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11653
11654   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11655   for tagname in $tagnames; do
11656     IFS="$lt_save_ifs"
11657     # Check whether tagname contains only valid characters
11658     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11659     "") ;;
11660     *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11661 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11662    { (exit 1); exit 1; }; }
11663         ;;
11664     esac
11665
11666     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11667     then
11668       { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11669 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11670    { (exit 1); exit 1; }; }
11671     fi
11672
11673     # Update the list of available tags.
11674     if test -n "$tagname"; then
11675       echo appending configuration tag \"$tagname\" to $ofile
11676
11677       case $tagname in
11678       CXX)
11679         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11680             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11681             (test "X$CXX" != "Xg++"))) ; then
11682           ac_ext=cpp
11683 ac_cpp='$CXXCPP $CPPFLAGS'
11684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11687
11688
11689
11690
11691 archive_cmds_need_lc_CXX=no
11692 allow_undefined_flag_CXX=
11693 always_export_symbols_CXX=no
11694 archive_expsym_cmds_CXX=
11695 export_dynamic_flag_spec_CXX=
11696 hardcode_direct_CXX=no
11697 hardcode_libdir_flag_spec_CXX=
11698 hardcode_libdir_flag_spec_ld_CXX=
11699 hardcode_libdir_separator_CXX=
11700 hardcode_minus_L_CXX=no
11701 hardcode_shlibpath_var_CXX=unsupported
11702 hardcode_automatic_CXX=no
11703 module_cmds_CXX=
11704 module_expsym_cmds_CXX=
11705 link_all_deplibs_CXX=unknown
11706 old_archive_cmds_CXX=$old_archive_cmds
11707 no_undefined_flag_CXX=
11708 whole_archive_flag_spec_CXX=
11709 enable_shared_with_static_runtimes_CXX=no
11710
11711 # Dependencies to place before and after the object being linked:
11712 predep_objects_CXX=
11713 postdep_objects_CXX=
11714 predeps_CXX=
11715 postdeps_CXX=
11716 compiler_lib_search_path_CXX=
11717 compiler_lib_search_dirs_CXX=
11718
11719 # Source file extension for C++ test sources.
11720 ac_ext=cpp
11721
11722 # Object file extension for compiled C++ test sources.
11723 objext=o
11724 objext_CXX=$objext
11725
11726 # Code to be used in simple compile tests
11727 lt_simple_compile_test_code="int some_variable = 0;"
11728
11729 # Code to be used in simple link tests
11730 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11731
11732 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11733
11734 # If no C compiler was specified, use CC.
11735 LTCC=${LTCC-"$CC"}
11736
11737 # If no C compiler flags were specified, use CFLAGS.
11738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11739
11740 # Allow CC to be a program name with arguments.
11741 compiler=$CC
11742
11743
11744 # save warnings/boilerplate of simple test code
11745 ac_outfile=conftest.$ac_objext
11746 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11747 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11748 _lt_compiler_boilerplate=`cat conftest.err`
11749 $rm conftest*
11750
11751 ac_outfile=conftest.$ac_objext
11752 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11753 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11754 _lt_linker_boilerplate=`cat conftest.err`
11755 $rm -r conftest*
11756
11757
11758 # Allow CC to be a program name with arguments.
11759 lt_save_CC=$CC
11760 lt_save_LD=$LD
11761 lt_save_GCC=$GCC
11762 GCC=$GXX
11763 lt_save_with_gnu_ld=$with_gnu_ld
11764 lt_save_path_LD=$lt_cv_path_LD
11765 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11766   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11767 else
11768   $as_unset lt_cv_prog_gnu_ld
11769 fi
11770 if test -n "${lt_cv_path_LDCXX+set}"; then
11771   lt_cv_path_LD=$lt_cv_path_LDCXX
11772 else
11773   $as_unset lt_cv_path_LD
11774 fi
11775 test -z "${LDCXX+set}" || LD=$LDCXX
11776 CC=${CXX-"c++"}
11777 compiler=$CC
11778 compiler_CXX=$CC
11779 for cc_temp in $compiler""; do
11780   case $cc_temp in
11781     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11782     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11783     \-*) ;;
11784     *) break;;
11785   esac
11786 done
11787 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11788
11789
11790 # We don't want -fno-exception wen compiling C++ code, so set the
11791 # no_builtin_flag separately
11792 if test "$GXX" = yes; then
11793   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11794 else
11795   lt_prog_compiler_no_builtin_flag_CXX=
11796 fi
11797
11798 if test "$GXX" = yes; then
11799   # Set up default GNU C++ configuration
11800
11801
11802 # Check whether --with-gnu-ld was given.
11803 if test "${with_gnu_ld+set}" = set; then
11804   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11805 else
11806   with_gnu_ld=no
11807 fi
11808
11809 ac_prog=ld
11810 if test "$GCC" = yes; then
11811   # Check if gcc -print-prog-name=ld gives a path.
11812   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11813 $as_echo_n "checking for ld used by $CC... " >&6; }
11814   case $host in
11815   *-*-mingw*)
11816     # gcc leaves a trailing carriage return which upsets mingw
11817     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11818   *)
11819     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11820   esac
11821   case $ac_prog in
11822     # Accept absolute paths.
11823     [\\/]* | ?:[\\/]*)
11824       re_direlt='/[^/][^/]*/\.\./'
11825       # Canonicalize the pathname of ld
11826       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11827       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11828         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11829       done
11830       test -z "$LD" && LD="$ac_prog"
11831       ;;
11832   "")
11833     # If it fails, then pretend we aren't using GCC.
11834     ac_prog=ld
11835     ;;
11836   *)
11837     # If it is relative, then search for the first ld in PATH.
11838     with_gnu_ld=unknown
11839     ;;
11840   esac
11841 elif test "$with_gnu_ld" = yes; then
11842   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11843 $as_echo_n "checking for GNU ld... " >&6; }
11844 else
11845   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11846 $as_echo_n "checking for non-GNU ld... " >&6; }
11847 fi
11848 if test "${lt_cv_path_LD+set}" = set; then
11849   $as_echo_n "(cached) " >&6
11850 else
11851   if test -z "$LD"; then
11852   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11853   for ac_dir in $PATH; do
11854     IFS="$lt_save_ifs"
11855     test -z "$ac_dir" && ac_dir=.
11856     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11857       lt_cv_path_LD="$ac_dir/$ac_prog"
11858       # Check to see if the program is GNU ld.  I'd rather use --version,
11859       # but apparently some variants of GNU ld only accept -v.
11860       # Break only if it was the GNU/non-GNU ld that we prefer.
11861       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11862       *GNU* | *'with BFD'*)
11863         test "$with_gnu_ld" != no && break
11864         ;;
11865       *)
11866         test "$with_gnu_ld" != yes && break
11867         ;;
11868       esac
11869     fi
11870   done
11871   IFS="$lt_save_ifs"
11872 else
11873   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11874 fi
11875 fi
11876
11877 LD="$lt_cv_path_LD"
11878 if test -n "$LD"; then
11879   { $as_echo "$as_me:$LINENO: result: $LD" >&5
11880 $as_echo "$LD" >&6; }
11881 else
11882   { $as_echo "$as_me:$LINENO: result: no" >&5
11883 $as_echo "no" >&6; }
11884 fi
11885 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11886 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11887    { (exit 1); exit 1; }; }
11888 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11889 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11890 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11891   $as_echo_n "(cached) " >&6
11892 else
11893   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11894 case `$LD -v 2>&1 </dev/null` in
11895 *GNU* | *'with BFD'*)
11896   lt_cv_prog_gnu_ld=yes
11897   ;;
11898 *)
11899   lt_cv_prog_gnu_ld=no
11900   ;;
11901 esac
11902 fi
11903 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11904 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11905 with_gnu_ld=$lt_cv_prog_gnu_ld
11906
11907
11908
11909   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11910   # archiving commands below assume that GNU ld is being used.
11911   if test "$with_gnu_ld" = yes; then
11912     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11913     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11914
11915     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11916     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11917
11918     # If archive_cmds runs LD, not CC, wlarc should be empty
11919     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11920     #     investigate it a little bit more. (MM)
11921     wlarc='${wl}'
11922
11923     # ancient GNU ld didn't support --whole-archive et. al.
11924     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11925         grep 'no-whole-archive' > /dev/null; then
11926       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11927     else
11928       whole_archive_flag_spec_CXX=
11929     fi
11930   else
11931     with_gnu_ld=no
11932     wlarc=
11933
11934     # A generic and very simple default shared library creation
11935     # command for GNU C++ for the case where it uses the native
11936     # linker, instead of GNU ld.  If possible, this setting should
11937     # overridden to take advantage of the native linker features on
11938     # the platform it is being used on.
11939     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11940   fi
11941
11942   # Commands to make compiler produce verbose output that lists
11943   # what "hidden" libraries, object files and flags are used when
11944   # linking a shared library.
11945   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11946
11947 else
11948   GXX=no
11949   with_gnu_ld=no
11950   wlarc=
11951 fi
11952
11953 # PORTME: fill in a description of your system's C++ link characteristics
11954 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11955 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11956 ld_shlibs_CXX=yes
11957 case $host_os in
11958   aix3*)
11959     # FIXME: insert proper C++ library support
11960     ld_shlibs_CXX=no
11961     ;;
11962   aix[4-9]*)
11963     if test "$host_cpu" = ia64; then
11964       # On IA64, the linker does run time linking by default, so we don't
11965       # have to do anything special.
11966       aix_use_runtimelinking=no
11967       exp_sym_flag='-Bexport'
11968       no_entry_flag=""
11969     else
11970       aix_use_runtimelinking=no
11971
11972       # Test if we are trying to use run time linking or normal
11973       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11974       # need to do runtime linking.
11975       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11976         for ld_flag in $LDFLAGS; do
11977           case $ld_flag in
11978           *-brtl*)
11979             aix_use_runtimelinking=yes
11980             break
11981             ;;
11982           esac
11983         done
11984         ;;
11985       esac
11986
11987       exp_sym_flag='-bexport'
11988       no_entry_flag='-bnoentry'
11989     fi
11990
11991     # When large executables or shared objects are built, AIX ld can
11992     # have problems creating the table of contents.  If linking a library
11993     # or program results in "error TOC overflow" add -mminimal-toc to
11994     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11995     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11996
11997     archive_cmds_CXX=''
11998     hardcode_direct_CXX=yes
11999     hardcode_libdir_separator_CXX=':'
12000     link_all_deplibs_CXX=yes
12001
12002     if test "$GXX" = yes; then
12003       case $host_os in aix4.[012]|aix4.[012].*)
12004       # We only want to do this on AIX 4.2 and lower, the check
12005       # below for broken collect2 doesn't work under 4.3+
12006         collect2name=`${CC} -print-prog-name=collect2`
12007         if test -f "$collect2name" && \
12008            strings "$collect2name" | grep resolve_lib_name >/dev/null
12009         then
12010           # We have reworked collect2
12011           :
12012         else
12013           # We have old collect2
12014           hardcode_direct_CXX=unsupported
12015           # It fails to find uninstalled libraries when the uninstalled
12016           # path is not listed in the libpath.  Setting hardcode_minus_L
12017           # to unsupported forces relinking
12018           hardcode_minus_L_CXX=yes
12019           hardcode_libdir_flag_spec_CXX='-L$libdir'
12020           hardcode_libdir_separator_CXX=
12021         fi
12022         ;;
12023       esac
12024       shared_flag='-shared'
12025       if test "$aix_use_runtimelinking" = yes; then
12026         shared_flag="$shared_flag "'${wl}-G'
12027       fi
12028     else
12029       # not using gcc
12030       if test "$host_cpu" = ia64; then
12031         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12032         # chokes on -Wl,-G. The following line is correct:
12033         shared_flag='-G'
12034       else
12035         if test "$aix_use_runtimelinking" = yes; then
12036           shared_flag='${wl}-G'
12037         else
12038           shared_flag='${wl}-bM:SRE'
12039         fi
12040       fi
12041     fi
12042
12043     # It seems that -bexpall does not export symbols beginning with
12044     # underscore (_), so it is better to generate a list of symbols to export.
12045     always_export_symbols_CXX=yes
12046     if test "$aix_use_runtimelinking" = yes; then
12047       # Warning - without using the other runtime loading flags (-brtl),
12048       # -berok will link without error, but may produce a broken library.
12049       allow_undefined_flag_CXX='-berok'
12050       # Determine the default libpath from the value encoded in an empty executable.
12051       cat >conftest.$ac_ext <<_ACEOF
12052 /* confdefs.h.  */
12053 _ACEOF
12054 cat confdefs.h >>conftest.$ac_ext
12055 cat >>conftest.$ac_ext <<_ACEOF
12056 /* end confdefs.h.  */
12057
12058 int
12059 main ()
12060 {
12061
12062   ;
12063   return 0;
12064 }
12065 _ACEOF
12066 rm -f conftest.$ac_objext conftest$ac_exeext
12067 if { (ac_try="$ac_link"
12068 case "(($ac_try" in
12069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070   *) ac_try_echo=$ac_try;;
12071 esac
12072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12073 $as_echo "$ac_try_echo") >&5
12074   (eval "$ac_link") 2>conftest.er1
12075   ac_status=$?
12076   grep -v '^ *+' conftest.er1 >conftest.err
12077   rm -f conftest.er1
12078   cat conftest.err >&5
12079   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080   (exit $ac_status); } && {
12081          test -z "$ac_cxx_werror_flag" ||
12082          test ! -s conftest.err
12083        } && test -s conftest$ac_exeext && {
12084          test "$cross_compiling" = yes ||
12085          $as_test_x conftest$ac_exeext
12086        }; then
12087
12088 lt_aix_libpath_sed='
12089     /Import File Strings/,/^$/ {
12090         /^0/ {
12091             s/^0  *\(.*\)$/\1/
12092             p
12093         }
12094     }'
12095 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12096 # Check for a 64-bit object if we didn't find anything.
12097 if test -z "$aix_libpath"; then
12098   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12099 fi
12100 else
12101   $as_echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12103
12104
12105 fi
12106
12107 rm -rf conftest.dSYM
12108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12109       conftest$ac_exeext conftest.$ac_ext
12110 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12111
12112       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12113
12114       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12115      else
12116       if test "$host_cpu" = ia64; then
12117         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12118         allow_undefined_flag_CXX="-z nodefs"
12119         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12120       else
12121         # Determine the default libpath from the value encoded in an empty executable.
12122         cat >conftest.$ac_ext <<_ACEOF
12123 /* confdefs.h.  */
12124 _ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h.  */
12128
12129 int
12130 main ()
12131 {
12132
12133   ;
12134   return 0;
12135 }
12136 _ACEOF
12137 rm -f conftest.$ac_objext conftest$ac_exeext
12138 if { (ac_try="$ac_link"
12139 case "(($ac_try" in
12140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141   *) ac_try_echo=$ac_try;;
12142 esac
12143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12144 $as_echo "$ac_try_echo") >&5
12145   (eval "$ac_link") 2>conftest.er1
12146   ac_status=$?
12147   grep -v '^ *+' conftest.er1 >conftest.err
12148   rm -f conftest.er1
12149   cat conftest.err >&5
12150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151   (exit $ac_status); } && {
12152          test -z "$ac_cxx_werror_flag" ||
12153          test ! -s conftest.err
12154        } && test -s conftest$ac_exeext && {
12155          test "$cross_compiling" = yes ||
12156          $as_test_x conftest$ac_exeext
12157        }; then
12158
12159 lt_aix_libpath_sed='
12160     /Import File Strings/,/^$/ {
12161         /^0/ {
12162             s/^0  *\(.*\)$/\1/
12163             p
12164         }
12165     }'
12166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12167 # Check for a 64-bit object if we didn't find anything.
12168 if test -z "$aix_libpath"; then
12169   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12170 fi
12171 else
12172   $as_echo "$as_me: failed program was:" >&5
12173 sed 's/^/| /' conftest.$ac_ext >&5
12174
12175
12176 fi
12177
12178 rm -rf conftest.dSYM
12179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12180       conftest$ac_exeext conftest.$ac_ext
12181 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12182
12183         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12184         # Warning - without using the other run time loading flags,
12185         # -berok will link without error, but may produce a broken library.
12186         no_undefined_flag_CXX=' ${wl}-bernotok'
12187         allow_undefined_flag_CXX=' ${wl}-berok'
12188         # Exported symbols can be pulled into shared objects from archives
12189         whole_archive_flag_spec_CXX='$convenience'
12190         archive_cmds_need_lc_CXX=yes
12191         # This is similar to how AIX traditionally builds its shared libraries.
12192         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12193       fi
12194     fi
12195     ;;
12196
12197   beos*)
12198     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12199       allow_undefined_flag_CXX=unsupported
12200       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12201       # support --undefined.  This deserves some investigation.  FIXME
12202       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12203     else
12204       ld_shlibs_CXX=no
12205     fi
12206     ;;
12207
12208   chorus*)
12209     case $cc_basename in
12210       *)
12211         # FIXME: insert proper C++ library support
12212         ld_shlibs_CXX=no
12213         ;;
12214     esac
12215     ;;
12216
12217   cygwin* | mingw* | pw32*)
12218     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12219     # as there is no search path for DLLs.
12220     hardcode_libdir_flag_spec_CXX='-L$libdir'
12221     allow_undefined_flag_CXX=unsupported
12222     always_export_symbols_CXX=no
12223     enable_shared_with_static_runtimes_CXX=yes
12224
12225     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12226       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12227       # If the export-symbols file already is a .def file (1st line
12228       # is EXPORTS), use it as is; otherwise, prepend...
12229       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12230         cp $export_symbols $output_objdir/$soname.def;
12231       else
12232         echo EXPORTS > $output_objdir/$soname.def;
12233         cat $export_symbols >> $output_objdir/$soname.def;
12234       fi~
12235       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12236     else
12237       ld_shlibs_CXX=no
12238     fi
12239   ;;
12240       darwin* | rhapsody*)
12241       archive_cmds_need_lc_CXX=no
12242       hardcode_direct_CXX=no
12243       hardcode_automatic_CXX=yes
12244       hardcode_shlibpath_var_CXX=unsupported
12245       whole_archive_flag_spec_CXX=''
12246       link_all_deplibs_CXX=yes
12247       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12248       if test "$GXX" = yes ; then
12249       output_verbose_link_cmd='echo'
12250       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12251       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12252       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12253       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12254       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12255         archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12256         archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12257       fi
12258       else
12259       case $cc_basename in
12260         xlc*)
12261          output_verbose_link_cmd='echo'
12262           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12263           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12264           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12265           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12266           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12267           ;;
12268        *)
12269          ld_shlibs_CXX=no
12270           ;;
12271       esac
12272       fi
12273         ;;
12274
12275   dgux*)
12276     case $cc_basename in
12277       ec++*)
12278         # FIXME: insert proper C++ library support
12279         ld_shlibs_CXX=no
12280         ;;
12281       ghcx*)
12282         # Green Hills C++ Compiler
12283         # FIXME: insert proper C++ library support
12284         ld_shlibs_CXX=no
12285         ;;
12286       *)
12287         # FIXME: insert proper C++ library support
12288         ld_shlibs_CXX=no
12289         ;;
12290     esac
12291     ;;
12292   freebsd[12]*)
12293     # C++ shared libraries reported to be fairly broken before switch to ELF
12294     ld_shlibs_CXX=no
12295     ;;
12296   freebsd-elf*)
12297     archive_cmds_need_lc_CXX=no
12298     ;;
12299   freebsd* | dragonfly*)
12300     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12301     # conventions
12302     ld_shlibs_CXX=yes
12303     ;;
12304   gnu*)
12305     ;;
12306   hpux9*)
12307     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12308     hardcode_libdir_separator_CXX=:
12309     export_dynamic_flag_spec_CXX='${wl}-E'
12310     hardcode_direct_CXX=yes
12311     hardcode_minus_L_CXX=yes # Not in the search PATH,
12312                                 # but as the default
12313                                 # location of the library.
12314
12315     case $cc_basename in
12316     CC*)
12317       # FIXME: insert proper C++ library support
12318       ld_shlibs_CXX=no
12319       ;;
12320     aCC*)
12321       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12322       # Commands to make compiler produce verbose output that lists
12323       # what "hidden" libraries, object files and flags are used when
12324       # linking a shared library.
12325       #
12326       # There doesn't appear to be a way to prevent this compiler from
12327       # explicitly linking system object files so we need to strip them
12328       # from the output so that they don't get included in the library
12329       # dependencies.
12330       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12331       ;;
12332     *)
12333       if test "$GXX" = yes; then
12334         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12335       else
12336         # FIXME: insert proper C++ library support
12337         ld_shlibs_CXX=no
12338       fi
12339       ;;
12340     esac
12341     ;;
12342   hpux10*|hpux11*)
12343     if test $with_gnu_ld = no; then
12344       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12345       hardcode_libdir_separator_CXX=:
12346
12347       case $host_cpu in
12348       hppa*64*|ia64*) ;;
12349       *)
12350         export_dynamic_flag_spec_CXX='${wl}-E'
12351         ;;
12352       esac
12353     fi
12354     case $host_cpu in
12355     hppa*64*|ia64*)
12356       hardcode_direct_CXX=no
12357       hardcode_shlibpath_var_CXX=no
12358       ;;
12359     *)
12360       hardcode_direct_CXX=yes
12361       hardcode_minus_L_CXX=yes # Not in the search PATH,
12362                                               # but as the default
12363                                               # location of the library.
12364       ;;
12365     esac
12366
12367     case $cc_basename in
12368       CC*)
12369         # FIXME: insert proper C++ library support
12370         ld_shlibs_CXX=no
12371         ;;
12372       aCC*)
12373         case $host_cpu in
12374         hppa*64*)
12375           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12376           ;;
12377         ia64*)
12378           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12379           ;;
12380         *)
12381           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12382           ;;
12383         esac
12384         # Commands to make compiler produce verbose output that lists
12385         # what "hidden" libraries, object files and flags are used when
12386         # linking a shared library.
12387         #
12388         # There doesn't appear to be a way to prevent this compiler from
12389         # explicitly linking system object files so we need to strip them
12390         # from the output so that they don't get included in the library
12391         # dependencies.
12392         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12393         ;;
12394       *)
12395         if test "$GXX" = yes; then
12396           if test $with_gnu_ld = no; then
12397             case $host_cpu in
12398             hppa*64*)
12399               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12400               ;;
12401             ia64*)
12402               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12403               ;;
12404             *)
12405               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12406               ;;
12407             esac
12408           fi
12409         else
12410           # FIXME: insert proper C++ library support
12411           ld_shlibs_CXX=no
12412         fi
12413         ;;
12414     esac
12415     ;;
12416   interix[3-9]*)
12417     hardcode_direct_CXX=no
12418     hardcode_shlibpath_var_CXX=no
12419     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12420     export_dynamic_flag_spec_CXX='${wl}-E'
12421     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12422     # Instead, shared libraries are loaded at an image base (0x10000000 by
12423     # default) and relocated if they conflict, which is a slow very memory
12424     # consuming and fragmenting process.  To avoid this, we pick a random,
12425     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12426     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12427     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12428     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12429     ;;
12430   irix5* | irix6*)
12431     case $cc_basename in
12432       CC*)
12433         # SGI C++
12434         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12435
12436         # Archives containing C++ object files must be created using
12437         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12438         # necessary to make sure instantiated templates are included
12439         # in the archive.
12440         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12441         ;;
12442       *)
12443         if test "$GXX" = yes; then
12444           if test "$with_gnu_ld" = no; then
12445             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12446           else
12447             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12448           fi
12449         fi
12450         link_all_deplibs_CXX=yes
12451         ;;
12452     esac
12453     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12454     hardcode_libdir_separator_CXX=:
12455     ;;
12456   linux* | k*bsd*-gnu)
12457     case $cc_basename in
12458       KCC*)
12459         # Kuck and Associates, Inc. (KAI) C++ Compiler
12460
12461         # KCC will only create a shared library if the output file
12462         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12463         # to its proper name (with version) after linking.
12464         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12465         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12466         # Commands to make compiler produce verbose output that lists
12467         # what "hidden" libraries, object files and flags are used when
12468         # linking a shared library.
12469         #
12470         # There doesn't appear to be a way to prevent this compiler from
12471         # explicitly linking system object files so we need to strip them
12472         # from the output so that they don't get included in the library
12473         # dependencies.
12474         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12475
12476         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12477         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12478
12479         # Archives containing C++ object files must be created using
12480         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12481         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12482         ;;
12483       icpc*)
12484         # Intel C++
12485         with_gnu_ld=yes
12486         # version 8.0 and above of icpc choke on multiply defined symbols
12487         # if we add $predep_objects and $postdep_objects, however 7.1 and
12488         # earlier do not add the objects themselves.
12489         case `$CC -V 2>&1` in
12490         *"Version 7."*)
12491           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12492           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12493           ;;
12494         *)  # Version 8.0 or newer
12495           tmp_idyn=
12496           case $host_cpu in
12497             ia64*) tmp_idyn=' -i_dynamic';;
12498           esac
12499           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12500           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12501           ;;
12502         esac
12503         archive_cmds_need_lc_CXX=no
12504         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12505         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12506         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12507         ;;
12508       pgCC* | pgcpp*)
12509         # Portland Group C++ compiler
12510         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12511         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12512
12513         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12514         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12515         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12516         ;;
12517       cxx*)
12518         # Compaq C++
12519         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12520         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12521
12522         runpath_var=LD_RUN_PATH
12523         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12524         hardcode_libdir_separator_CXX=:
12525
12526         # Commands to make compiler produce verbose output that lists
12527         # what "hidden" libraries, object files and flags are used when
12528         # linking a shared library.
12529         #
12530         # There doesn't appear to be a way to prevent this compiler from
12531         # explicitly linking system object files so we need to strip them
12532         # from the output so that they don't get included in the library
12533         # dependencies.
12534         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12535         ;;
12536       *)
12537         case `$CC -V 2>&1 | sed 5q` in
12538         *Sun\ C*)
12539           # Sun C++ 5.9
12540           no_undefined_flag_CXX=' -zdefs'
12541           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12542           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12543           hardcode_libdir_flag_spec_CXX='-R$libdir'
12544           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12545
12546           # Not sure whether something based on
12547           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12548           # would be better.
12549           output_verbose_link_cmd='echo'
12550
12551           # Archives containing C++ object files must be created using
12552           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12553           # necessary to make sure instantiated templates are included
12554           # in the archive.
12555           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12556           ;;
12557         esac
12558         ;;
12559     esac
12560     ;;
12561   lynxos*)
12562     # FIXME: insert proper C++ library support
12563     ld_shlibs_CXX=no
12564     ;;
12565   m88k*)
12566     # FIXME: insert proper C++ library support
12567     ld_shlibs_CXX=no
12568     ;;
12569   mvs*)
12570     case $cc_basename in
12571       cxx*)
12572         # FIXME: insert proper C++ library support
12573         ld_shlibs_CXX=no
12574         ;;
12575       *)
12576         # FIXME: insert proper C++ library support
12577         ld_shlibs_CXX=no
12578         ;;
12579     esac
12580     ;;
12581   netbsd*)
12582     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12583       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12584       wlarc=
12585       hardcode_libdir_flag_spec_CXX='-R$libdir'
12586       hardcode_direct_CXX=yes
12587       hardcode_shlibpath_var_CXX=no
12588     fi
12589     # Workaround some broken pre-1.5 toolchains
12590     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12591     ;;
12592   openbsd2*)
12593     # C++ shared libraries are fairly broken
12594     ld_shlibs_CXX=no
12595     ;;
12596   openbsd*)
12597     if test -f /usr/libexec/ld.so; then
12598       hardcode_direct_CXX=yes
12599       hardcode_shlibpath_var_CXX=no
12600       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12601       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12602       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12603         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12604         export_dynamic_flag_spec_CXX='${wl}-E'
12605         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12606       fi
12607       output_verbose_link_cmd='echo'
12608     else
12609       ld_shlibs_CXX=no
12610     fi
12611     ;;
12612   osf3*)
12613     case $cc_basename in
12614       KCC*)
12615         # Kuck and Associates, Inc. (KAI) C++ Compiler
12616
12617         # KCC will only create a shared library if the output file
12618         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12619         # to its proper name (with version) after linking.
12620         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12621
12622         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12623         hardcode_libdir_separator_CXX=:
12624
12625         # Archives containing C++ object files must be created using
12626         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12627         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12628
12629         ;;
12630       RCC*)
12631         # Rational C++ 2.4.1
12632         # FIXME: insert proper C++ library support
12633         ld_shlibs_CXX=no
12634         ;;
12635       cxx*)
12636         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12637         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12638
12639         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12640         hardcode_libdir_separator_CXX=:
12641
12642         # Commands to make compiler produce verbose output that lists
12643         # what "hidden" libraries, object files and flags are used when
12644         # linking a shared library.
12645         #
12646         # There doesn't appear to be a way to prevent this compiler from
12647         # explicitly linking system object files so we need to strip them
12648         # from the output so that they don't get included in the library
12649         # dependencies.
12650         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12651         ;;
12652       *)
12653         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12654           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12655           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12656
12657           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12658           hardcode_libdir_separator_CXX=:
12659
12660           # Commands to make compiler produce verbose output that lists
12661           # what "hidden" libraries, object files and flags are used when
12662           # linking a shared library.
12663           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12664
12665         else
12666           # FIXME: insert proper C++ library support
12667           ld_shlibs_CXX=no
12668         fi
12669         ;;
12670     esac
12671     ;;
12672   osf4* | osf5*)
12673     case $cc_basename in
12674       KCC*)
12675         # Kuck and Associates, Inc. (KAI) C++ Compiler
12676
12677         # KCC will only create a shared library if the output file
12678         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12679         # to its proper name (with version) after linking.
12680         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12681
12682         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12683         hardcode_libdir_separator_CXX=:
12684
12685         # Archives containing C++ object files must be created using
12686         # the KAI C++ compiler.
12687         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12688         ;;
12689       RCC*)
12690         # Rational C++ 2.4.1
12691         # FIXME: insert proper C++ library support
12692         ld_shlibs_CXX=no
12693         ;;
12694       cxx*)
12695         allow_undefined_flag_CXX=' -expect_unresolved \*'
12696         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12697         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12698           echo "-hidden">> $lib.exp~
12699           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12700           $rm $lib.exp'
12701
12702         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12703         hardcode_libdir_separator_CXX=:
12704
12705         # Commands to make compiler produce verbose output that lists
12706         # what "hidden" libraries, object files and flags are used when
12707         # linking a shared library.
12708         #
12709         # There doesn't appear to be a way to prevent this compiler from
12710         # explicitly linking system object files so we need to strip them
12711         # from the output so that they don't get included in the library
12712         # dependencies.
12713         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12714         ;;
12715       *)
12716         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12717           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12718          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12719
12720           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12721           hardcode_libdir_separator_CXX=:
12722
12723           # Commands to make compiler produce verbose output that lists
12724           # what "hidden" libraries, object files and flags are used when
12725           # linking a shared library.
12726           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12727
12728         else
12729           # FIXME: insert proper C++ library support
12730           ld_shlibs_CXX=no
12731         fi
12732         ;;
12733     esac
12734     ;;
12735   psos*)
12736     # FIXME: insert proper C++ library support
12737     ld_shlibs_CXX=no
12738     ;;
12739   sunos4*)
12740     case $cc_basename in
12741       CC*)
12742         # Sun C++ 4.x
12743         # FIXME: insert proper C++ library support
12744         ld_shlibs_CXX=no
12745         ;;
12746       lcc*)
12747         # Lucid
12748         # FIXME: insert proper C++ library support
12749         ld_shlibs_CXX=no
12750         ;;
12751       *)
12752         # FIXME: insert proper C++ library support
12753         ld_shlibs_CXX=no
12754         ;;
12755     esac
12756     ;;
12757   solaris*)
12758     case $cc_basename in
12759       CC*)
12760         # Sun C++ 4.2, 5.x and Centerline C++
12761         archive_cmds_need_lc_CXX=yes
12762         no_undefined_flag_CXX=' -zdefs'
12763         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12764         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12765         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12766
12767         hardcode_libdir_flag_spec_CXX='-R$libdir'
12768         hardcode_shlibpath_var_CXX=no
12769         case $host_os in
12770           solaris2.[0-5] | solaris2.[0-5].*) ;;
12771           *)
12772             # The compiler driver will combine and reorder linker options,
12773             # but understands `-z linker_flag'.
12774             # Supported since Solaris 2.6 (maybe 2.5.1?)
12775             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12776             ;;
12777         esac
12778         link_all_deplibs_CXX=yes
12779
12780         output_verbose_link_cmd='echo'
12781
12782         # Archives containing C++ object files must be created using
12783         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12784         # necessary to make sure instantiated templates are included
12785         # in the archive.
12786         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12787         ;;
12788       gcx*)
12789         # Green Hills C++ Compiler
12790         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12791
12792         # The C++ compiler must be used to create the archive.
12793         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12794         ;;
12795       *)
12796         # GNU C++ compiler with Solaris linker
12797         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12798           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12799           if $CC --version | grep -v '^2\.7' > /dev/null; then
12800             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12801             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12802                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12803
12804             # Commands to make compiler produce verbose output that lists
12805             # what "hidden" libraries, object files and flags are used when
12806             # linking a shared library.
12807             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12808           else
12809             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12810             # platform.
12811             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12812             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12813                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12814
12815             # Commands to make compiler produce verbose output that lists
12816             # what "hidden" libraries, object files and flags are used when
12817             # linking a shared library.
12818             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12819           fi
12820
12821           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12822           case $host_os in
12823           solaris2.[0-5] | solaris2.[0-5].*) ;;
12824           *)
12825             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12826             ;;
12827           esac
12828         fi
12829         ;;
12830     esac
12831     ;;
12832   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12833     no_undefined_flag_CXX='${wl}-z,text'
12834     archive_cmds_need_lc_CXX=no
12835     hardcode_shlibpath_var_CXX=no
12836     runpath_var='LD_RUN_PATH'
12837
12838     case $cc_basename in
12839       CC*)
12840         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12841         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12842         ;;
12843       *)
12844         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12845         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12846         ;;
12847     esac
12848     ;;
12849   sysv5* | sco3.2v5* | sco5v6*)
12850     # Note: We can NOT use -z defs as we might desire, because we do not
12851     # link with -lc, and that would cause any symbols used from libc to
12852     # always be unresolved, which means just about no library would
12853     # ever link correctly.  If we're not using GNU ld we use -z text
12854     # though, which does catch some bad symbols but isn't as heavy-handed
12855     # as -z defs.
12856     # For security reasons, it is highly recommended that you always
12857     # use absolute paths for naming shared libraries, and exclude the
12858     # DT_RUNPATH tag from executables and libraries.  But doing so
12859     # requires that you compile everything twice, which is a pain.
12860     # So that behaviour is only enabled if SCOABSPATH is set to a
12861     # non-empty value in the environment.  Most likely only useful for
12862     # creating official distributions of packages.
12863     # This is a hack until libtool officially supports absolute path
12864     # names for shared libraries.
12865     no_undefined_flag_CXX='${wl}-z,text'
12866     allow_undefined_flag_CXX='${wl}-z,nodefs'
12867     archive_cmds_need_lc_CXX=no
12868     hardcode_shlibpath_var_CXX=no
12869     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12870     hardcode_libdir_separator_CXX=':'
12871     link_all_deplibs_CXX=yes
12872     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12873     runpath_var='LD_RUN_PATH'
12874
12875     case $cc_basename in
12876       CC*)
12877         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12878         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12879         ;;
12880       *)
12881         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12882         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12883         ;;
12884     esac
12885     ;;
12886   tandem*)
12887     case $cc_basename in
12888       NCC*)
12889         # NonStop-UX NCC 3.20
12890         # FIXME: insert proper C++ library support
12891         ld_shlibs_CXX=no
12892         ;;
12893       *)
12894         # FIXME: insert proper C++ library support
12895         ld_shlibs_CXX=no
12896         ;;
12897     esac
12898     ;;
12899   vxworks*)
12900     # FIXME: insert proper C++ library support
12901     ld_shlibs_CXX=no
12902     ;;
12903   *)
12904     # FIXME: insert proper C++ library support
12905     ld_shlibs_CXX=no
12906     ;;
12907 esac
12908 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12909 $as_echo "$ld_shlibs_CXX" >&6; }
12910 test "$ld_shlibs_CXX" = no && can_build_shared=no
12911
12912 GCC_CXX="$GXX"
12913 LD_CXX="$LD"
12914
12915 cat > conftest.$ac_ext <<EOF
12916 class Foo
12917 {
12918 public:
12919   Foo (void) { a = 0; }
12920 private:
12921   int a;
12922 };
12923 EOF
12924
12925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12926   (eval $ac_compile) 2>&5
12927   ac_status=$?
12928   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); }; then
12930   # Parse the compiler output and extract the necessary
12931   # objects, libraries and library flags.
12932
12933   # Sentinel used to keep track of whether or not we are before
12934   # the conftest object file.
12935   pre_test_object_deps_done=no
12936
12937   # The `*' in the case matches for architectures that use `case' in
12938   # $output_verbose_cmd can trigger glob expansion during the loop
12939   # eval without this substitution.
12940   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12941
12942   for p in `eval $output_verbose_link_cmd`; do
12943     case $p in
12944
12945     -L* | -R* | -l*)
12946        # Some compilers place space between "-{L,R}" and the path.
12947        # Remove the space.
12948        if test $p = "-L" \
12949           || test $p = "-R"; then
12950          prev=$p
12951          continue
12952        else
12953          prev=
12954        fi
12955
12956        if test "$pre_test_object_deps_done" = no; then
12957          case $p in
12958          -L* | -R*)
12959            # Internal compiler library paths should come after those
12960            # provided the user.  The postdeps already come after the
12961            # user supplied libs so there is no need to process them.
12962            if test -z "$compiler_lib_search_path_CXX"; then
12963              compiler_lib_search_path_CXX="${prev}${p}"
12964            else
12965              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12966            fi
12967            ;;
12968          # The "-l" case would never come before the object being
12969          # linked, so don't bother handling this case.
12970          esac
12971        else
12972          if test -z "$postdeps_CXX"; then
12973            postdeps_CXX="${prev}${p}"
12974          else
12975            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12976          fi
12977        fi
12978        ;;
12979
12980     *.$objext)
12981        # This assumes that the test object file only shows up
12982        # once in the compiler output.
12983        if test "$p" = "conftest.$objext"; then
12984          pre_test_object_deps_done=yes
12985          continue
12986        fi
12987
12988        if test "$pre_test_object_deps_done" = no; then
12989          if test -z "$predep_objects_CXX"; then
12990            predep_objects_CXX="$p"
12991          else
12992            predep_objects_CXX="$predep_objects_CXX $p"
12993          fi
12994        else
12995          if test -z "$postdep_objects_CXX"; then
12996            postdep_objects_CXX="$p"
12997          else
12998            postdep_objects_CXX="$postdep_objects_CXX $p"
12999          fi
13000        fi
13001        ;;
13002
13003     *) ;; # Ignore the rest.
13004
13005     esac
13006   done
13007
13008   # Clean up.
13009   rm -f a.out a.exe
13010 else
13011   echo "libtool.m4: error: problem compiling CXX test program"
13012 fi
13013
13014 $rm -f confest.$objext
13015
13016 compiler_lib_search_dirs_CXX=
13017 if test -n "$compiler_lib_search_path_CXX"; then
13018   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13019 fi
13020
13021 # PORTME: override above test on systems where it is broken
13022 case $host_os in
13023 interix[3-9]*)
13024   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13025   # hack all around it, let's just trust "g++" to DTRT.
13026   predep_objects_CXX=
13027   postdep_objects_CXX=
13028   postdeps_CXX=
13029   ;;
13030
13031 linux*)
13032   case `$CC -V 2>&1 | sed 5q` in
13033   *Sun\ C*)
13034     # Sun C++ 5.9
13035     #
13036     # The more standards-conforming stlport4 library is
13037     # incompatible with the Cstd library. Avoid specifying
13038     # it if it's in CXXFLAGS. Ignore libCrun as
13039     # -library=stlport4 depends on it.
13040     case " $CXX $CXXFLAGS " in
13041     *" -library=stlport4 "*)
13042       solaris_use_stlport4=yes
13043       ;;
13044     esac
13045     if test "$solaris_use_stlport4" != yes; then
13046       postdeps_CXX='-library=Cstd -library=Crun'
13047     fi
13048     ;;
13049   esac
13050   ;;
13051
13052 solaris*)
13053   case $cc_basename in
13054   CC*)
13055     # The more standards-conforming stlport4 library is
13056     # incompatible with the Cstd library. Avoid specifying
13057     # it if it's in CXXFLAGS. Ignore libCrun as
13058     # -library=stlport4 depends on it.
13059     case " $CXX $CXXFLAGS " in
13060     *" -library=stlport4 "*)
13061       solaris_use_stlport4=yes
13062       ;;
13063     esac
13064
13065     # Adding this requires a known-good setup of shared libraries for
13066     # Sun compiler versions before 5.6, else PIC objects from an old
13067     # archive will be linked into the output, leading to subtle bugs.
13068     if test "$solaris_use_stlport4" != yes; then
13069       postdeps_CXX='-library=Cstd -library=Crun'
13070     fi
13071     ;;
13072   esac
13073   ;;
13074 esac
13075
13076 case " $postdeps_CXX " in
13077 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13078 esac
13079
13080 lt_prog_compiler_wl_CXX=
13081 lt_prog_compiler_pic_CXX=
13082 lt_prog_compiler_static_CXX=
13083
13084 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13085 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13086
13087   # C++ specific cases for pic, static, wl, etc.
13088   if test "$GXX" = yes; then
13089     lt_prog_compiler_wl_CXX='-Wl,'
13090     lt_prog_compiler_static_CXX='-static'
13091
13092     case $host_os in
13093     aix*)
13094       # All AIX code is PIC.
13095       if test "$host_cpu" = ia64; then
13096         # AIX 5 now supports IA64 processor
13097         lt_prog_compiler_static_CXX='-Bstatic'
13098       fi
13099       ;;
13100     amigaos*)
13101       # FIXME: we need at least 68020 code to build shared libraries, but
13102       # adding the `-m68020' flag to GCC prevents building anything better,
13103       # like `-m68040'.
13104       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13105       ;;
13106     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13107       # PIC is the default for these OSes.
13108       ;;
13109     mingw* | cygwin* | os2* | pw32*)
13110       # This hack is so that the source file can tell whether it is being
13111       # built for inclusion in a dll (and should export symbols for example).
13112       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13113       # (--disable-auto-import) libraries
13114       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13115       ;;
13116     darwin* | rhapsody*)
13117       # PIC is the default on this platform
13118       # Common symbols not allowed in MH_DYLIB files
13119       lt_prog_compiler_pic_CXX='-fno-common'
13120       ;;
13121     *djgpp*)
13122       # DJGPP does not support shared libraries at all
13123       lt_prog_compiler_pic_CXX=
13124       ;;
13125     interix[3-9]*)
13126       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13127       # Instead, we relocate shared libraries at runtime.
13128       ;;
13129     sysv4*MP*)
13130       if test -d /usr/nec; then
13131         lt_prog_compiler_pic_CXX=-Kconform_pic
13132       fi
13133       ;;
13134     hpux*)
13135       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13136       # not for PA HP-UX.
13137       case $host_cpu in
13138       hppa*64*|ia64*)
13139         ;;
13140       *)
13141         lt_prog_compiler_pic_CXX='-fPIC'
13142         ;;
13143       esac
13144       ;;
13145     *)
13146       lt_prog_compiler_pic_CXX='-fPIC'
13147       ;;
13148     esac
13149   else
13150     case $host_os in
13151       aix[4-9]*)
13152         # All AIX code is PIC.
13153         if test "$host_cpu" = ia64; then
13154           # AIX 5 now supports IA64 processor
13155           lt_prog_compiler_static_CXX='-Bstatic'
13156         else
13157           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13158         fi
13159         ;;
13160       chorus*)
13161         case $cc_basename in
13162         cxch68*)
13163           # Green Hills C++ Compiler
13164           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13165           ;;
13166         esac
13167         ;;
13168        darwin*)
13169          # PIC is the default on this platform
13170          # Common symbols not allowed in MH_DYLIB files
13171          case $cc_basename in
13172            xlc*)
13173            lt_prog_compiler_pic_CXX='-qnocommon'
13174            lt_prog_compiler_wl_CXX='-Wl,'
13175            ;;
13176          esac
13177        ;;
13178       dgux*)
13179         case $cc_basename in
13180           ec++*)
13181             lt_prog_compiler_pic_CXX='-KPIC'
13182             ;;
13183           ghcx*)
13184             # Green Hills C++ Compiler
13185             lt_prog_compiler_pic_CXX='-pic'
13186             ;;
13187           *)
13188             ;;
13189         esac
13190         ;;
13191       freebsd* | dragonfly*)
13192         # FreeBSD uses GNU C++
13193         ;;
13194       hpux9* | hpux10* | hpux11*)
13195         case $cc_basename in
13196           CC*)
13197             lt_prog_compiler_wl_CXX='-Wl,'
13198             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13199             if test "$host_cpu" != ia64; then
13200               lt_prog_compiler_pic_CXX='+Z'
13201             fi
13202             ;;
13203           aCC*)
13204             lt_prog_compiler_wl_CXX='-Wl,'
13205             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13206             case $host_cpu in
13207             hppa*64*|ia64*)
13208               # +Z the default
13209               ;;
13210             *)
13211               lt_prog_compiler_pic_CXX='+Z'
13212               ;;
13213             esac
13214             ;;
13215           *)
13216             ;;
13217         esac
13218         ;;
13219       interix*)
13220         # This is c89, which is MS Visual C++ (no shared libs)
13221         # Anyone wants to do a port?
13222         ;;
13223       irix5* | irix6* | nonstopux*)
13224         case $cc_basename in
13225           CC*)
13226             lt_prog_compiler_wl_CXX='-Wl,'
13227             lt_prog_compiler_static_CXX='-non_shared'
13228             # CC pic flag -KPIC is the default.
13229             ;;
13230           *)
13231             ;;
13232         esac
13233         ;;
13234       linux* | k*bsd*-gnu)
13235         case $cc_basename in
13236           KCC*)
13237             # KAI C++ Compiler
13238             lt_prog_compiler_wl_CXX='--backend -Wl,'
13239             lt_prog_compiler_pic_CXX='-fPIC'
13240             ;;
13241           icpc* | ecpc*)
13242             # Intel C++
13243             lt_prog_compiler_wl_CXX='-Wl,'
13244             lt_prog_compiler_pic_CXX='-KPIC'
13245             lt_prog_compiler_static_CXX='-static'
13246             ;;
13247           pgCC* | pgcpp*)
13248             # Portland Group C++ compiler.
13249             lt_prog_compiler_wl_CXX='-Wl,'
13250             lt_prog_compiler_pic_CXX='-fpic'
13251             lt_prog_compiler_static_CXX='-Bstatic'
13252             ;;
13253           cxx*)
13254             # Compaq C++
13255             # Make sure the PIC flag is empty.  It appears that all Alpha
13256             # Linux and Compaq Tru64 Unix objects are PIC.
13257             lt_prog_compiler_pic_CXX=
13258             lt_prog_compiler_static_CXX='-non_shared'
13259             ;;
13260           *)
13261             case `$CC -V 2>&1 | sed 5q` in
13262             *Sun\ C*)
13263               # Sun C++ 5.9
13264               lt_prog_compiler_pic_CXX='-KPIC'
13265               lt_prog_compiler_static_CXX='-Bstatic'
13266               lt_prog_compiler_wl_CXX='-Qoption ld '
13267               ;;
13268             esac
13269             ;;
13270         esac
13271         ;;
13272       lynxos*)
13273         ;;
13274       m88k*)
13275         ;;
13276       mvs*)
13277         case $cc_basename in
13278           cxx*)
13279             lt_prog_compiler_pic_CXX='-W c,exportall'
13280             ;;
13281           *)
13282             ;;
13283         esac
13284         ;;
13285       netbsd*)
13286         ;;
13287       osf3* | osf4* | osf5*)
13288         case $cc_basename in
13289           KCC*)
13290             lt_prog_compiler_wl_CXX='--backend -Wl,'
13291             ;;
13292           RCC*)
13293             # Rational C++ 2.4.1
13294             lt_prog_compiler_pic_CXX='-pic'
13295             ;;
13296           cxx*)
13297             # Digital/Compaq C++
13298             lt_prog_compiler_wl_CXX='-Wl,'
13299             # Make sure the PIC flag is empty.  It appears that all Alpha
13300             # Linux and Compaq Tru64 Unix objects are PIC.
13301             lt_prog_compiler_pic_CXX=
13302             lt_prog_compiler_static_CXX='-non_shared'
13303             ;;
13304           *)
13305             ;;
13306         esac
13307         ;;
13308       psos*)
13309         ;;
13310       solaris*)
13311         case $cc_basename in
13312           CC*)
13313             # Sun C++ 4.2, 5.x and Centerline C++
13314             lt_prog_compiler_pic_CXX='-KPIC'
13315             lt_prog_compiler_static_CXX='-Bstatic'
13316             lt_prog_compiler_wl_CXX='-Qoption ld '
13317             ;;
13318           gcx*)
13319             # Green Hills C++ Compiler
13320             lt_prog_compiler_pic_CXX='-PIC'
13321             ;;
13322           *)
13323             ;;
13324         esac
13325         ;;
13326       sunos4*)
13327         case $cc_basename in
13328           CC*)
13329             # Sun C++ 4.x
13330             lt_prog_compiler_pic_CXX='-pic'
13331             lt_prog_compiler_static_CXX='-Bstatic'
13332             ;;
13333           lcc*)
13334             # Lucid
13335             lt_prog_compiler_pic_CXX='-pic'
13336             ;;
13337           *)
13338             ;;
13339         esac
13340         ;;
13341       tandem*)
13342         case $cc_basename in
13343           NCC*)
13344             # NonStop-UX NCC 3.20
13345             lt_prog_compiler_pic_CXX='-KPIC'
13346             ;;
13347           *)
13348             ;;
13349         esac
13350         ;;
13351       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13352         case $cc_basename in
13353           CC*)
13354             lt_prog_compiler_wl_CXX='-Wl,'
13355             lt_prog_compiler_pic_CXX='-KPIC'
13356             lt_prog_compiler_static_CXX='-Bstatic'
13357             ;;
13358         esac
13359         ;;
13360       vxworks*)
13361         ;;
13362       *)
13363         lt_prog_compiler_can_build_shared_CXX=no
13364         ;;
13365     esac
13366   fi
13367
13368 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13369 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13370
13371 #
13372 # Check to make sure the PIC flag actually works.
13373 #
13374 if test -n "$lt_prog_compiler_pic_CXX"; then
13375
13376 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13377 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13378 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13379   $as_echo_n "(cached) " >&6
13380 else
13381   lt_cv_prog_compiler_pic_works_CXX=no
13382   ac_outfile=conftest.$ac_objext
13383    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13384    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13385    # Insert the option either (1) after the last *FLAGS variable, or
13386    # (2) before a word containing "conftest.", or (3) at the end.
13387    # Note that $ac_compile itself does not contain backslashes and begins
13388    # with a dollar sign (not a hyphen), so the echo should work correctly.
13389    # The option is referenced via a variable to avoid confusing sed.
13390    lt_compile=`echo "$ac_compile" | $SED \
13391    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13392    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13393    -e 's:$: $lt_compiler_flag:'`
13394    (eval echo "\"\$as_me:13394: $lt_compile\"" >&5)
13395    (eval "$lt_compile" 2>conftest.err)
13396    ac_status=$?
13397    cat conftest.err >&5
13398    echo "$as_me:13398: \$? = $ac_status" >&5
13399    if (exit $ac_status) && test -s "$ac_outfile"; then
13400      # The compiler can only warn and ignore the option if not recognized
13401      # So say no if there are warnings other than the usual output.
13402      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13403      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13404      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13405        lt_cv_prog_compiler_pic_works_CXX=yes
13406      fi
13407    fi
13408    $rm conftest*
13409
13410 fi
13411 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13412 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13413
13414 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13415     case $lt_prog_compiler_pic_CXX in
13416      "" | " "*) ;;
13417      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13418      esac
13419 else
13420     lt_prog_compiler_pic_CXX=
13421      lt_prog_compiler_can_build_shared_CXX=no
13422 fi
13423
13424 fi
13425 case $host_os in
13426   # For platforms which do not support PIC, -DPIC is meaningless:
13427   *djgpp*)
13428     lt_prog_compiler_pic_CXX=
13429     ;;
13430   *)
13431     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13432     ;;
13433 esac
13434
13435 #
13436 # Check to make sure the static flag actually works.
13437 #
13438 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13439 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13440 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13441 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13442   $as_echo_n "(cached) " >&6
13443 else
13444   lt_cv_prog_compiler_static_works_CXX=no
13445    save_LDFLAGS="$LDFLAGS"
13446    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13447    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13448    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13449      # The linker can only warn and ignore the option if not recognized
13450      # So say no if there are warnings
13451      if test -s conftest.err; then
13452        # Append any errors to the config.log.
13453        cat conftest.err 1>&5
13454        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13455        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13456        if diff conftest.exp conftest.er2 >/dev/null; then
13457          lt_cv_prog_compiler_static_works_CXX=yes
13458        fi
13459      else
13460        lt_cv_prog_compiler_static_works_CXX=yes
13461      fi
13462    fi
13463    $rm -r conftest*
13464    LDFLAGS="$save_LDFLAGS"
13465
13466 fi
13467 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13468 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13469
13470 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13471     :
13472 else
13473     lt_prog_compiler_static_CXX=
13474 fi
13475
13476
13477 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13478 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13479 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13480   $as_echo_n "(cached) " >&6
13481 else
13482   lt_cv_prog_compiler_c_o_CXX=no
13483    $rm -r conftest 2>/dev/null
13484    mkdir conftest
13485    cd conftest
13486    mkdir out
13487    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13488
13489    lt_compiler_flag="-o out/conftest2.$ac_objext"
13490    # Insert the option either (1) after the last *FLAGS variable, or
13491    # (2) before a word containing "conftest.", or (3) at the end.
13492    # Note that $ac_compile itself does not contain backslashes and begins
13493    # with a dollar sign (not a hyphen), so the echo should work correctly.
13494    lt_compile=`echo "$ac_compile" | $SED \
13495    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13496    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13497    -e 's:$: $lt_compiler_flag:'`
13498    (eval echo "\"\$as_me:13498: $lt_compile\"" >&5)
13499    (eval "$lt_compile" 2>out/conftest.err)
13500    ac_status=$?
13501    cat out/conftest.err >&5
13502    echo "$as_me:13502: \$? = $ac_status" >&5
13503    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13504    then
13505      # The compiler can only warn and ignore the option if not recognized
13506      # So say no if there are warnings
13507      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13508      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13509      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13510        lt_cv_prog_compiler_c_o_CXX=yes
13511      fi
13512    fi
13513    chmod u+w . 2>&5
13514    $rm conftest*
13515    # SGI C++ compiler will create directory out/ii_files/ for
13516    # template instantiation
13517    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13518    $rm out/* && rmdir out
13519    cd ..
13520    rmdir conftest
13521    $rm conftest*
13522
13523 fi
13524 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13525 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13526
13527
13528 hard_links="nottested"
13529 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13530   # do not overwrite the value of need_locks provided by the user
13531   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13532 $as_echo_n "checking if we can lock with hard links... " >&6; }
13533   hard_links=yes
13534   $rm conftest*
13535   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13536   touch conftest.a
13537   ln conftest.a conftest.b 2>&5 || hard_links=no
13538   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13539   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13540 $as_echo "$hard_links" >&6; }
13541   if test "$hard_links" = no; then
13542     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13543 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13544     need_locks=warn
13545   fi
13546 else
13547   need_locks=no
13548 fi
13549
13550 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13551 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13552
13553   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13554   case $host_os in
13555   aix[4-9]*)
13556     # If we're using GNU nm, then we don't want the "-C" option.
13557     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13558     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13559       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13560     else
13561       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13562     fi
13563     ;;
13564   pw32*)
13565     export_symbols_cmds_CXX="$ltdll_cmds"
13566   ;;
13567   cygwin* | mingw*)
13568     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13569   ;;
13570   *)
13571     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13572   ;;
13573   esac
13574   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13575
13576 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13577 $as_echo "$ld_shlibs_CXX" >&6; }
13578 test "$ld_shlibs_CXX" = no && can_build_shared=no
13579
13580 #
13581 # Do we need to explicitly link libc?
13582 #
13583 case "x$archive_cmds_need_lc_CXX" in
13584 x|xyes)
13585   # Assume -lc should be added
13586   archive_cmds_need_lc_CXX=yes
13587
13588   if test "$enable_shared" = yes && test "$GCC" = yes; then
13589     case $archive_cmds_CXX in
13590     *'~'*)
13591       # FIXME: we may have to deal with multi-command sequences.
13592       ;;
13593     '$CC '*)
13594       # Test whether the compiler implicitly links with -lc since on some
13595       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13596       # to ld, don't add -lc before -lgcc.
13597       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13598 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13599       $rm conftest*
13600       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13601
13602       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13603   (eval $ac_compile) 2>&5
13604   ac_status=$?
13605   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606   (exit $ac_status); } 2>conftest.err; then
13607         soname=conftest
13608         lib=conftest
13609         libobjs=conftest.$ac_objext
13610         deplibs=
13611         wl=$lt_prog_compiler_wl_CXX
13612         pic_flag=$lt_prog_compiler_pic_CXX
13613         compiler_flags=-v
13614         linker_flags=-v
13615         verstring=
13616         output_objdir=.
13617         libname=conftest
13618         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13619         allow_undefined_flag_CXX=
13620         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13621   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13622   ac_status=$?
13623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); }
13625         then
13626           archive_cmds_need_lc_CXX=no
13627         else
13628           archive_cmds_need_lc_CXX=yes
13629         fi
13630         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13631       else
13632         cat conftest.err 1>&5
13633       fi
13634       $rm conftest*
13635       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13636 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13637       ;;
13638     esac
13639   fi
13640   ;;
13641 esac
13642
13643 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13644 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13645 library_names_spec=
13646 libname_spec='lib$name'
13647 soname_spec=
13648 shrext_cmds=".so"
13649 postinstall_cmds=
13650 postuninstall_cmds=
13651 finish_cmds=
13652 finish_eval=
13653 shlibpath_var=
13654 shlibpath_overrides_runpath=unknown
13655 version_type=none
13656 dynamic_linker="$host_os ld.so"
13657 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13658
13659 need_lib_prefix=unknown
13660 hardcode_into_libs=no
13661
13662 # when you set need_version to no, make sure it does not cause -set_version
13663 # flags to be left without arguments
13664 need_version=unknown
13665
13666 case $host_os in
13667 aix3*)
13668   version_type=linux
13669   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13670   shlibpath_var=LIBPATH
13671
13672   # AIX 3 has no versioning support, so we append a major version to the name.
13673   soname_spec='${libname}${release}${shared_ext}$major'
13674   ;;
13675
13676 aix[4-9]*)
13677   version_type=linux
13678   need_lib_prefix=no
13679   need_version=no
13680   hardcode_into_libs=yes
13681   if test "$host_cpu" = ia64; then
13682     # AIX 5 supports IA64
13683     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13684     shlibpath_var=LD_LIBRARY_PATH
13685   else
13686     # With GCC up to 2.95.x, collect2 would create an import file
13687     # for dependence libraries.  The import file would start with
13688     # the line `#! .'.  This would cause the generated library to
13689     # depend on `.', always an invalid library.  This was fixed in
13690     # development snapshots of GCC prior to 3.0.
13691     case $host_os in
13692       aix4 | aix4.[01] | aix4.[01].*)
13693       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13694            echo ' yes '
13695            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13696         :
13697       else
13698         can_build_shared=no
13699       fi
13700       ;;
13701     esac
13702     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13703     # soname into executable. Probably we can add versioning support to
13704     # collect2, so additional links can be useful in future.
13705     if test "$aix_use_runtimelinking" = yes; then
13706       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13707       # instead of lib<name>.a to let people know that these are not
13708       # typical AIX shared libraries.
13709       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13710     else
13711       # We preserve .a as extension for shared libraries through AIX4.2
13712       # and later when we are not doing run time linking.
13713       library_names_spec='${libname}${release}.a $libname.a'
13714       soname_spec='${libname}${release}${shared_ext}$major'
13715     fi
13716     shlibpath_var=LIBPATH
13717   fi
13718   ;;
13719
13720 amigaos*)
13721   library_names_spec='$libname.ixlibrary $libname.a'
13722   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13723   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'
13724   ;;
13725
13726 beos*)
13727   library_names_spec='${libname}${shared_ext}'
13728   dynamic_linker="$host_os ld.so"
13729   shlibpath_var=LIBRARY_PATH
13730   ;;
13731
13732 bsdi[45]*)
13733   version_type=linux
13734   need_version=no
13735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13736   soname_spec='${libname}${release}${shared_ext}$major'
13737   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13738   shlibpath_var=LD_LIBRARY_PATH
13739   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13740   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13741   # the default ld.so.conf also contains /usr/contrib/lib and
13742   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13743   # libtool to hard-code these into programs
13744   ;;
13745
13746 cygwin* | mingw* | pw32*)
13747   version_type=windows
13748   shrext_cmds=".dll"
13749   need_version=no
13750   need_lib_prefix=no
13751
13752   case $GCC,$host_os in
13753   yes,cygwin* | yes,mingw* | yes,pw32*)
13754     library_names_spec='$libname.dll.a'
13755     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13756     postinstall_cmds='base_file=`basename \${file}`~
13757       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13758       dldir=$destdir/`dirname \$dlpath`~
13759       test -d \$dldir || mkdir -p \$dldir~
13760       $install_prog $dir/$dlname \$dldir/$dlname~
13761       chmod a+x \$dldir/$dlname'
13762     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13763       dlpath=$dir/\$dldll~
13764        $rm \$dlpath'
13765     shlibpath_overrides_runpath=yes
13766
13767     case $host_os in
13768     cygwin*)
13769       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13770       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13771       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13772       ;;
13773     mingw*)
13774       # MinGW DLLs use traditional 'lib' prefix
13775       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13776       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13777       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13778         # It is most probably a Windows format PATH printed by
13779         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13780         # path with ; separators, and with drive letters. We can handle the
13781         # drive letters (cygwin fileutils understands them), so leave them,
13782         # especially as we might pass files found there to a mingw objdump,
13783         # which wouldn't understand a cygwinified path. Ahh.
13784         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13785       else
13786         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13787       fi
13788       ;;
13789     pw32*)
13790       # pw32 DLLs use 'pw' prefix rather than 'lib'
13791       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13792       ;;
13793     esac
13794     ;;
13795
13796   *)
13797     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13798     ;;
13799   esac
13800   dynamic_linker='Win32 ld.exe'
13801   # FIXME: first we should search . and the directory the executable is in
13802   shlibpath_var=PATH
13803   ;;
13804
13805 darwin* | rhapsody*)
13806   dynamic_linker="$host_os dyld"
13807   version_type=darwin
13808   need_lib_prefix=no
13809   need_version=no
13810   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13811   soname_spec='${libname}${release}${major}$shared_ext'
13812   shlibpath_overrides_runpath=yes
13813   shlibpath_var=DYLD_LIBRARY_PATH
13814   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13815
13816   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13817   ;;
13818
13819 dgux*)
13820   version_type=linux
13821   need_lib_prefix=no
13822   need_version=no
13823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13824   soname_spec='${libname}${release}${shared_ext}$major'
13825   shlibpath_var=LD_LIBRARY_PATH
13826   ;;
13827
13828 freebsd1*)
13829   dynamic_linker=no
13830   ;;
13831
13832 freebsd* | dragonfly*)
13833   # DragonFly does not have aout.  When/if they implement a new
13834   # versioning mechanism, adjust this.
13835   if test -x /usr/bin/objformat; then
13836     objformat=`/usr/bin/objformat`
13837   else
13838     case $host_os in
13839     freebsd[123]*) objformat=aout ;;
13840     *) objformat=elf ;;
13841     esac
13842   fi
13843   version_type=freebsd-$objformat
13844   case $version_type in
13845     freebsd-elf*)
13846       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13847       need_version=no
13848       need_lib_prefix=no
13849       ;;
13850     freebsd-*)
13851       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13852       need_version=yes
13853       ;;
13854   esac
13855   shlibpath_var=LD_LIBRARY_PATH
13856   case $host_os in
13857   freebsd2*)
13858     shlibpath_overrides_runpath=yes
13859     ;;
13860   freebsd3.[01]* | freebsdelf3.[01]*)
13861     shlibpath_overrides_runpath=yes
13862     hardcode_into_libs=yes
13863     ;;
13864   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13865   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13866     shlibpath_overrides_runpath=no
13867     hardcode_into_libs=yes
13868     ;;
13869   *) # from 4.6 on, and DragonFly
13870     shlibpath_overrides_runpath=yes
13871     hardcode_into_libs=yes
13872     ;;
13873   esac
13874   ;;
13875
13876 gnu*)
13877   version_type=linux
13878   need_lib_prefix=no
13879   need_version=no
13880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13881   soname_spec='${libname}${release}${shared_ext}$major'
13882   shlibpath_var=LD_LIBRARY_PATH
13883   hardcode_into_libs=yes
13884   ;;
13885
13886 hpux9* | hpux10* | hpux11*)
13887   # Give a soname corresponding to the major version so that dld.sl refuses to
13888   # link against other versions.
13889   version_type=sunos
13890   need_lib_prefix=no
13891   need_version=no
13892   case $host_cpu in
13893   ia64*)
13894     shrext_cmds='.so'
13895     hardcode_into_libs=yes
13896     dynamic_linker="$host_os dld.so"
13897     shlibpath_var=LD_LIBRARY_PATH
13898     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13899     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13900     soname_spec='${libname}${release}${shared_ext}$major'
13901     if test "X$HPUX_IA64_MODE" = X32; then
13902       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13903     else
13904       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13905     fi
13906     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13907     ;;
13908    hppa*64*)
13909      shrext_cmds='.sl'
13910      hardcode_into_libs=yes
13911      dynamic_linker="$host_os dld.sl"
13912      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13913      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13914      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13915      soname_spec='${libname}${release}${shared_ext}$major'
13916      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13917      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13918      ;;
13919    *)
13920     shrext_cmds='.sl'
13921     dynamic_linker="$host_os dld.sl"
13922     shlibpath_var=SHLIB_PATH
13923     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13924     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13925     soname_spec='${libname}${release}${shared_ext}$major'
13926     ;;
13927   esac
13928   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13929   postinstall_cmds='chmod 555 $lib'
13930   ;;
13931
13932 interix[3-9]*)
13933   version_type=linux
13934   need_lib_prefix=no
13935   need_version=no
13936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13937   soname_spec='${libname}${release}${shared_ext}$major'
13938   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13939   shlibpath_var=LD_LIBRARY_PATH
13940   shlibpath_overrides_runpath=no
13941   hardcode_into_libs=yes
13942   ;;
13943
13944 irix5* | irix6* | nonstopux*)
13945   case $host_os in
13946     nonstopux*) version_type=nonstopux ;;
13947     *)
13948         if test "$lt_cv_prog_gnu_ld" = yes; then
13949                 version_type=linux
13950         else
13951                 version_type=irix
13952         fi ;;
13953   esac
13954   need_lib_prefix=no
13955   need_version=no
13956   soname_spec='${libname}${release}${shared_ext}$major'
13957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13958   case $host_os in
13959   irix5* | nonstopux*)
13960     libsuff= shlibsuff=
13961     ;;
13962   *)
13963     case $LD in # libtool.m4 will add one of these switches to LD
13964     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13965       libsuff= shlibsuff= libmagic=32-bit;;
13966     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13967       libsuff=32 shlibsuff=N32 libmagic=N32;;
13968     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13969       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13970     *) libsuff= shlibsuff= libmagic=never-match;;
13971     esac
13972     ;;
13973   esac
13974   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13975   shlibpath_overrides_runpath=no
13976   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13977   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13978   hardcode_into_libs=yes
13979   ;;
13980
13981 # No shared lib support for Linux oldld, aout, or coff.
13982 linux*oldld* | linux*aout* | linux*coff*)
13983   dynamic_linker=no
13984   ;;
13985
13986 # This must be Linux ELF.
13987 linux* | k*bsd*-gnu)
13988   version_type=linux
13989   need_lib_prefix=no
13990   need_version=no
13991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13992   soname_spec='${libname}${release}${shared_ext}$major'
13993   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13994   shlibpath_var=LD_LIBRARY_PATH
13995   shlibpath_overrides_runpath=no
13996   # This implies no fast_install, which is unacceptable.
13997   # Some rework will be needed to allow for fast_install
13998   # before this can be enabled.
13999   hardcode_into_libs=yes
14000   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14001   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14002
14003   # Append ld.so.conf contents to the search path
14004   if test -f /etc/ld.so.conf; then
14005     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' ' '`
14006     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14007   fi
14008
14009   # We used to test for /lib/ld.so.1 and disable shared libraries on
14010   # powerpc, because MkLinux only supported shared libraries with the
14011   # GNU dynamic linker.  Since this was broken with cross compilers,
14012   # most powerpc-linux boxes support dynamic linking these days and
14013   # people can always --disable-shared, the test was removed, and we
14014   # assume the GNU/Linux dynamic linker is in use.
14015   dynamic_linker='GNU/Linux ld.so'
14016   ;;
14017
14018 netbsd*)
14019   version_type=sunos
14020   need_lib_prefix=no
14021   need_version=no
14022   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14023     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14024     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14025     dynamic_linker='NetBSD (a.out) ld.so'
14026   else
14027     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14028     soname_spec='${libname}${release}${shared_ext}$major'
14029     dynamic_linker='NetBSD ld.elf_so'
14030   fi
14031   shlibpath_var=LD_LIBRARY_PATH
14032   shlibpath_overrides_runpath=yes
14033   hardcode_into_libs=yes
14034   ;;
14035
14036 newsos6)
14037   version_type=linux
14038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14039   shlibpath_var=LD_LIBRARY_PATH
14040   shlibpath_overrides_runpath=yes
14041   ;;
14042
14043 nto-qnx*)
14044   version_type=linux
14045   need_lib_prefix=no
14046   need_version=no
14047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14048   soname_spec='${libname}${release}${shared_ext}$major'
14049   shlibpath_var=LD_LIBRARY_PATH
14050   shlibpath_overrides_runpath=yes
14051   ;;
14052
14053 openbsd*)
14054   version_type=sunos
14055   sys_lib_dlsearch_path_spec="/usr/lib"
14056   need_lib_prefix=no
14057   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14058   case $host_os in
14059     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14060     *)                         need_version=no  ;;
14061   esac
14062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14063   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14064   shlibpath_var=LD_LIBRARY_PATH
14065   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14066     case $host_os in
14067       openbsd2.[89] | openbsd2.[89].*)
14068         shlibpath_overrides_runpath=no
14069         ;;
14070       *)
14071         shlibpath_overrides_runpath=yes
14072         ;;
14073       esac
14074   else
14075     shlibpath_overrides_runpath=yes
14076   fi
14077   ;;
14078
14079 os2*)
14080   libname_spec='$name'
14081   shrext_cmds=".dll"
14082   need_lib_prefix=no
14083   library_names_spec='$libname${shared_ext} $libname.a'
14084   dynamic_linker='OS/2 ld.exe'
14085   shlibpath_var=LIBPATH
14086   ;;
14087
14088 osf3* | osf4* | osf5*)
14089   version_type=osf
14090   need_lib_prefix=no
14091   need_version=no
14092   soname_spec='${libname}${release}${shared_ext}$major'
14093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14094   shlibpath_var=LD_LIBRARY_PATH
14095   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14096   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14097   ;;
14098
14099 rdos*)
14100   dynamic_linker=no
14101   ;;
14102
14103 solaris*)
14104   version_type=linux
14105   need_lib_prefix=no
14106   need_version=no
14107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14108   soname_spec='${libname}${release}${shared_ext}$major'
14109   shlibpath_var=LD_LIBRARY_PATH
14110   shlibpath_overrides_runpath=yes
14111   hardcode_into_libs=yes
14112   # ldd complains unless libraries are executable
14113   postinstall_cmds='chmod +x $lib'
14114   ;;
14115
14116 sunos4*)
14117   version_type=sunos
14118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14119   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14120   shlibpath_var=LD_LIBRARY_PATH
14121   shlibpath_overrides_runpath=yes
14122   if test "$with_gnu_ld" = yes; then
14123     need_lib_prefix=no
14124   fi
14125   need_version=yes
14126   ;;
14127
14128 sysv4 | sysv4.3*)
14129   version_type=linux
14130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14131   soname_spec='${libname}${release}${shared_ext}$major'
14132   shlibpath_var=LD_LIBRARY_PATH
14133   case $host_vendor in
14134     sni)
14135       shlibpath_overrides_runpath=no
14136       need_lib_prefix=no
14137       export_dynamic_flag_spec='${wl}-Blargedynsym'
14138       runpath_var=LD_RUN_PATH
14139       ;;
14140     siemens)
14141       need_lib_prefix=no
14142       ;;
14143     motorola)
14144       need_lib_prefix=no
14145       need_version=no
14146       shlibpath_overrides_runpath=no
14147       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14148       ;;
14149   esac
14150   ;;
14151
14152 sysv4*MP*)
14153   if test -d /usr/nec ;then
14154     version_type=linux
14155     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14156     soname_spec='$libname${shared_ext}.$major'
14157     shlibpath_var=LD_LIBRARY_PATH
14158   fi
14159   ;;
14160
14161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14162   version_type=freebsd-elf
14163   need_lib_prefix=no
14164   need_version=no
14165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14166   soname_spec='${libname}${release}${shared_ext}$major'
14167   shlibpath_var=LD_LIBRARY_PATH
14168   hardcode_into_libs=yes
14169   if test "$with_gnu_ld" = yes; then
14170     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14171     shlibpath_overrides_runpath=no
14172   else
14173     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14174     shlibpath_overrides_runpath=yes
14175     case $host_os in
14176       sco3.2v5*)
14177         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14178         ;;
14179     esac
14180   fi
14181   sys_lib_dlsearch_path_spec='/usr/lib'
14182   ;;
14183
14184 uts4*)
14185   version_type=linux
14186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187   soname_spec='${libname}${release}${shared_ext}$major'
14188   shlibpath_var=LD_LIBRARY_PATH
14189   ;;
14190
14191 *)
14192   dynamic_linker=no
14193   ;;
14194 esac
14195 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14196 $as_echo "$dynamic_linker" >&6; }
14197 test "$dynamic_linker" = no && can_build_shared=no
14198
14199 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14200   $as_echo_n "(cached) " >&6
14201 else
14202   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
14203 fi
14204
14205 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14206 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14207   $as_echo_n "(cached) " >&6
14208 else
14209   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
14210 fi
14211
14212 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14213
14214 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14215 if test "$GCC" = yes; then
14216   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14217 fi
14218
14219 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14220 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14221 hardcode_action_CXX=
14222 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14223    test -n "$runpath_var_CXX" || \
14224    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14225
14226   # We can hardcode non-existant directories.
14227   if test "$hardcode_direct_CXX" != no &&
14228      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14229      # have to relink, otherwise we might link with an installed library
14230      # when we should be linking with a yet-to-be-installed one
14231      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14232      test "$hardcode_minus_L_CXX" != no; then
14233     # Linking always hardcodes the temporary library directory.
14234     hardcode_action_CXX=relink
14235   else
14236     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14237     hardcode_action_CXX=immediate
14238   fi
14239 else
14240   # We cannot hardcode anything, or else we can only hardcode existing
14241   # directories.
14242   hardcode_action_CXX=unsupported
14243 fi
14244 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14245 $as_echo "$hardcode_action_CXX" >&6; }
14246
14247 if test "$hardcode_action_CXX" = relink; then
14248   # Fast installation is not supported
14249   enable_fast_install=no
14250 elif test "$shlibpath_overrides_runpath" = yes ||
14251      test "$enable_shared" = no; then
14252   # Fast installation is not necessary
14253   enable_fast_install=needless
14254 fi
14255
14256
14257 # The else clause should only fire when bootstrapping the
14258 # libtool distribution, otherwise you forgot to ship ltmain.sh
14259 # with your package, and you will get complaints that there are
14260 # no rules to generate ltmain.sh.
14261 if test -f "$ltmain"; then
14262   # See if we are running on zsh, and set the options which allow our commands through
14263   # without removal of \ escapes.
14264   if test -n "${ZSH_VERSION+set}" ; then
14265     setopt NO_GLOB_SUBST
14266   fi
14267   # Now quote all the things that may contain metacharacters while being
14268   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14269   # variables and quote the copies for generation of the libtool script.
14270   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14271     SED SHELL STRIP \
14272     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14273     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14274     deplibs_check_method reload_flag reload_cmds need_locks \
14275     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14276     lt_cv_sys_global_symbol_to_c_name_address \
14277     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14278     old_postinstall_cmds old_postuninstall_cmds \
14279     compiler_CXX \
14280     CC_CXX \
14281     LD_CXX \
14282     lt_prog_compiler_wl_CXX \
14283     lt_prog_compiler_pic_CXX \
14284     lt_prog_compiler_static_CXX \
14285     lt_prog_compiler_no_builtin_flag_CXX \
14286     export_dynamic_flag_spec_CXX \
14287     thread_safe_flag_spec_CXX \
14288     whole_archive_flag_spec_CXX \
14289     enable_shared_with_static_runtimes_CXX \
14290     old_archive_cmds_CXX \
14291     old_archive_from_new_cmds_CXX \
14292     predep_objects_CXX \
14293     postdep_objects_CXX \
14294     predeps_CXX \
14295     postdeps_CXX \
14296     compiler_lib_search_path_CXX \
14297     compiler_lib_search_dirs_CXX \
14298     archive_cmds_CXX \
14299     archive_expsym_cmds_CXX \
14300     postinstall_cmds_CXX \
14301     postuninstall_cmds_CXX \
14302     old_archive_from_expsyms_cmds_CXX \
14303     allow_undefined_flag_CXX \
14304     no_undefined_flag_CXX \
14305     export_symbols_cmds_CXX \
14306     hardcode_libdir_flag_spec_CXX \
14307     hardcode_libdir_flag_spec_ld_CXX \
14308     hardcode_libdir_separator_CXX \
14309     hardcode_automatic_CXX \
14310     module_cmds_CXX \
14311     module_expsym_cmds_CXX \
14312     lt_cv_prog_compiler_c_o_CXX \
14313     fix_srcfile_path_CXX \
14314     exclude_expsyms_CXX \
14315     include_expsyms_CXX; do
14316
14317     case $var in
14318     old_archive_cmds_CXX | \
14319     old_archive_from_new_cmds_CXX | \
14320     archive_cmds_CXX | \
14321     archive_expsym_cmds_CXX | \
14322     module_cmds_CXX | \
14323     module_expsym_cmds_CXX | \
14324     old_archive_from_expsyms_cmds_CXX | \
14325     export_symbols_cmds_CXX | \
14326     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14327     postinstall_cmds | postuninstall_cmds | \
14328     old_postinstall_cmds | old_postuninstall_cmds | \
14329     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14330       # Double-quote double-evaled strings.
14331       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14332       ;;
14333     *)
14334       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14335       ;;
14336     esac
14337   done
14338
14339   case $lt_echo in
14340   *'\$0 --fallback-echo"')
14341     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14342     ;;
14343   esac
14344
14345 cfgfile="$ofile"
14346
14347   cat <<__EOF__ >> "$cfgfile"
14348 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14349
14350 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14351
14352 # Shell to use when invoking shell scripts.
14353 SHELL=$lt_SHELL
14354
14355 # Whether or not to build shared libraries.
14356 build_libtool_libs=$enable_shared
14357
14358 # Whether or not to build static libraries.
14359 build_old_libs=$enable_static
14360
14361 # Whether or not to add -lc for building shared libraries.
14362 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14363
14364 # Whether or not to disallow shared libs when runtime libs are static
14365 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14366
14367 # Whether or not to optimize for fast installation.
14368 fast_install=$enable_fast_install
14369
14370 # The host system.
14371 host_alias=$host_alias
14372 host=$host
14373 host_os=$host_os
14374
14375 # The build system.
14376 build_alias=$build_alias
14377 build=$build
14378 build_os=$build_os
14379
14380 # An echo program that does not interpret backslashes.
14381 echo=$lt_echo
14382
14383 # The archiver.
14384 AR=$lt_AR
14385 AR_FLAGS=$lt_AR_FLAGS
14386
14387 # A C compiler.
14388 LTCC=$lt_LTCC
14389
14390 # LTCC compiler flags.
14391 LTCFLAGS=$lt_LTCFLAGS
14392
14393 # A language-specific compiler.
14394 CC=$lt_compiler_CXX
14395
14396 # Is the compiler the GNU C compiler?
14397 with_gcc=$GCC_CXX
14398
14399 # An ERE matcher.
14400 EGREP=$lt_EGREP
14401
14402 # The linker used to build libraries.
14403 LD=$lt_LD_CXX
14404
14405 # Whether we need hard or soft links.
14406 LN_S=$lt_LN_S
14407
14408 # A BSD-compatible nm program.
14409 NM=$lt_NM
14410
14411 # A symbol stripping program
14412 STRIP=$lt_STRIP
14413
14414 # Used to examine libraries when file_magic_cmd begins "file"
14415 MAGIC_CMD=$MAGIC_CMD
14416
14417 # Used on cygwin: DLL creation program.
14418 DLLTOOL="$DLLTOOL"
14419
14420 # Used on cygwin: object dumper.
14421 OBJDUMP="$OBJDUMP"
14422
14423 # Used on cygwin: assembler.
14424 AS="$AS"
14425
14426 # The name of the directory that contains temporary libtool files.
14427 objdir=$objdir
14428
14429 # How to create reloadable object files.
14430 reload_flag=$lt_reload_flag
14431 reload_cmds=$lt_reload_cmds
14432
14433 # How to pass a linker flag through the compiler.
14434 wl=$lt_lt_prog_compiler_wl_CXX
14435
14436 # Object file suffix (normally "o").
14437 objext="$ac_objext"
14438
14439 # Old archive suffix (normally "a").
14440 libext="$libext"
14441
14442 # Shared library suffix (normally ".so").
14443 shrext_cmds='$shrext_cmds'
14444
14445 # Executable file suffix (normally "").
14446 exeext="$exeext"
14447
14448 # Additional compiler flags for building library objects.
14449 pic_flag=$lt_lt_prog_compiler_pic_CXX
14450 pic_mode=$pic_mode
14451
14452 # What is the maximum length of a command?
14453 max_cmd_len=$lt_cv_sys_max_cmd_len
14454
14455 # Does compiler simultaneously support -c and -o options?
14456 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14457
14458 # Must we lock files when doing compilation?
14459 need_locks=$lt_need_locks
14460
14461 # Do we need the lib prefix for modules?
14462 need_lib_prefix=$need_lib_prefix
14463
14464 # Do we need a version for libraries?
14465 need_version=$need_version
14466
14467 # Whether dlopen is supported.
14468 dlopen_support=$enable_dlopen
14469
14470 # Whether dlopen of programs is supported.
14471 dlopen_self=$enable_dlopen_self
14472
14473 # Whether dlopen of statically linked programs is supported.
14474 dlopen_self_static=$enable_dlopen_self_static
14475
14476 # Compiler flag to prevent dynamic linking.
14477 link_static_flag=$lt_lt_prog_compiler_static_CXX
14478
14479 # Compiler flag to turn off builtin functions.
14480 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14481
14482 # Compiler flag to allow reflexive dlopens.
14483 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14484
14485 # Compiler flag to generate shared objects directly from archives.
14486 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14487
14488 # Compiler flag to generate thread-safe objects.
14489 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14490
14491 # Library versioning type.
14492 version_type=$version_type
14493
14494 # Format of library name prefix.
14495 libname_spec=$lt_libname_spec
14496
14497 # List of archive names.  First name is the real one, the rest are links.
14498 # The last name is the one that the linker finds with -lNAME.
14499 library_names_spec=$lt_library_names_spec
14500
14501 # The coded name of the library, if different from the real name.
14502 soname_spec=$lt_soname_spec
14503
14504 # Commands used to build and install an old-style archive.
14505 RANLIB=$lt_RANLIB
14506 old_archive_cmds=$lt_old_archive_cmds_CXX
14507 old_postinstall_cmds=$lt_old_postinstall_cmds
14508 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14509
14510 # Create an old-style archive from a shared archive.
14511 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14512
14513 # Create a temporary old-style archive to link instead of a shared archive.
14514 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14515
14516 # Commands used to build and install a shared archive.
14517 archive_cmds=$lt_archive_cmds_CXX
14518 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14519 postinstall_cmds=$lt_postinstall_cmds
14520 postuninstall_cmds=$lt_postuninstall_cmds
14521
14522 # Commands used to build a loadable module (assumed same as above if empty)
14523 module_cmds=$lt_module_cmds_CXX
14524 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14525
14526 # Commands to strip libraries.
14527 old_striplib=$lt_old_striplib
14528 striplib=$lt_striplib
14529
14530 # Dependencies to place before the objects being linked to create a
14531 # shared library.
14532 predep_objects=$lt_predep_objects_CXX
14533
14534 # Dependencies to place after the objects being linked to create a
14535 # shared library.
14536 postdep_objects=$lt_postdep_objects_CXX
14537
14538 # Dependencies to place before the objects being linked to create a
14539 # shared library.
14540 predeps=$lt_predeps_CXX
14541
14542 # Dependencies to place after the objects being linked to create a
14543 # shared library.
14544 postdeps=$lt_postdeps_CXX
14545
14546 # The directories searched by this compiler when creating a shared
14547 # library
14548 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14549
14550 # The library search path used internally by the compiler when linking
14551 # a shared library.
14552 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14553
14554 # Method to check whether dependent libraries are shared objects.
14555 deplibs_check_method=$lt_deplibs_check_method
14556
14557 # Command to use when deplibs_check_method == file_magic.
14558 file_magic_cmd=$lt_file_magic_cmd
14559
14560 # Flag that allows shared libraries with undefined symbols to be built.
14561 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14562
14563 # Flag that forces no undefined symbols.
14564 no_undefined_flag=$lt_no_undefined_flag_CXX
14565
14566 # Commands used to finish a libtool library installation in a directory.
14567 finish_cmds=$lt_finish_cmds
14568
14569 # Same as above, but a single script fragment to be evaled but not shown.
14570 finish_eval=$lt_finish_eval
14571
14572 # Take the output of nm and produce a listing of raw symbols and C names.
14573 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14574
14575 # Transform the output of nm in a proper C declaration
14576 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14577
14578 # Transform the output of nm in a C name address pair
14579 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14580
14581 # This is the shared library runtime path variable.
14582 runpath_var=$runpath_var
14583
14584 # This is the shared library path variable.
14585 shlibpath_var=$shlibpath_var
14586
14587 # Is shlibpath searched before the hard-coded library search path?
14588 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14589
14590 # How to hardcode a shared library path into an executable.
14591 hardcode_action=$hardcode_action_CXX
14592
14593 # Whether we should hardcode library paths into libraries.
14594 hardcode_into_libs=$hardcode_into_libs
14595
14596 # Flag to hardcode \$libdir into a binary during linking.
14597 # This must work even if \$libdir does not exist.
14598 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14599
14600 # If ld is used when linking, flag to hardcode \$libdir into
14601 # a binary during linking. This must work even if \$libdir does
14602 # not exist.
14603 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14604
14605 # Whether we need a single -rpath flag with a separated argument.
14606 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14607
14608 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14609 # resulting binary.
14610 hardcode_direct=$hardcode_direct_CXX
14611
14612 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14613 # resulting binary.
14614 hardcode_minus_L=$hardcode_minus_L_CXX
14615
14616 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14617 # the resulting binary.
14618 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14619
14620 # Set to yes if building a shared library automatically hardcodes DIR into the library
14621 # and all subsequent libraries and executables linked against it.
14622 hardcode_automatic=$hardcode_automatic_CXX
14623
14624 # Variables whose values should be saved in libtool wrapper scripts and
14625 # restored at relink time.
14626 variables_saved_for_relink="$variables_saved_for_relink"
14627
14628 # Whether libtool must link a program against all its dependency libraries.
14629 link_all_deplibs=$link_all_deplibs_CXX
14630
14631 # Compile-time system search path for libraries
14632 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14633
14634 # Run-time system search path for libraries
14635 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14636
14637 # Fix the shell variable \$srcfile for the compiler.
14638 fix_srcfile_path=$lt_fix_srcfile_path
14639
14640 # Set to yes if exported symbols are required.
14641 always_export_symbols=$always_export_symbols_CXX
14642
14643 # The commands to list exported symbols.
14644 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14645
14646 # The commands to extract the exported symbol list from a shared archive.
14647 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14648
14649 # Symbols that should not be listed in the preloaded symbols.
14650 exclude_expsyms=$lt_exclude_expsyms_CXX
14651
14652 # Symbols that must always be exported.
14653 include_expsyms=$lt_include_expsyms_CXX
14654
14655 # ### END LIBTOOL TAG CONFIG: $tagname
14656
14657 __EOF__
14658
14659
14660 else
14661   # If there is no Makefile yet, we rely on a make rule to execute
14662   # `config.status --recheck' to rerun these tests and create the
14663   # libtool script then.
14664   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14665   if test -f "$ltmain_in"; then
14666     test -f Makefile && make "$ltmain"
14667   fi
14668 fi
14669
14670
14671 ac_ext=c
14672 ac_cpp='$CPP $CPPFLAGS'
14673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14676
14677 CC=$lt_save_CC
14678 LDCXX=$LD
14679 LD=$lt_save_LD
14680 GCC=$lt_save_GCC
14681 with_gnu_ldcxx=$with_gnu_ld
14682 with_gnu_ld=$lt_save_with_gnu_ld
14683 lt_cv_path_LDCXX=$lt_cv_path_LD
14684 lt_cv_path_LD=$lt_save_path_LD
14685 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14686 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14687
14688         else
14689           tagname=""
14690         fi
14691         ;;
14692
14693       F77)
14694         if test -n "$F77" && test "X$F77" != "Xno"; then
14695
14696 ac_ext=f
14697 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14698 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14699 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14700
14701
14702 archive_cmds_need_lc_F77=no
14703 allow_undefined_flag_F77=
14704 always_export_symbols_F77=no
14705 archive_expsym_cmds_F77=
14706 export_dynamic_flag_spec_F77=
14707 hardcode_direct_F77=no
14708 hardcode_libdir_flag_spec_F77=
14709 hardcode_libdir_flag_spec_ld_F77=
14710 hardcode_libdir_separator_F77=
14711 hardcode_minus_L_F77=no
14712 hardcode_automatic_F77=no
14713 module_cmds_F77=
14714 module_expsym_cmds_F77=
14715 link_all_deplibs_F77=unknown
14716 old_archive_cmds_F77=$old_archive_cmds
14717 no_undefined_flag_F77=
14718 whole_archive_flag_spec_F77=
14719 enable_shared_with_static_runtimes_F77=no
14720
14721 # Source file extension for f77 test sources.
14722 ac_ext=f
14723
14724 # Object file extension for compiled f77 test sources.
14725 objext=o
14726 objext_F77=$objext
14727
14728 # Code to be used in simple compile tests
14729 lt_simple_compile_test_code="\
14730       subroutine t
14731       return
14732       end
14733 "
14734
14735 # Code to be used in simple link tests
14736 lt_simple_link_test_code="\
14737       program t
14738       end
14739 "
14740
14741 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14742
14743 # If no C compiler was specified, use CC.
14744 LTCC=${LTCC-"$CC"}
14745
14746 # If no C compiler flags were specified, use CFLAGS.
14747 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14748
14749 # Allow CC to be a program name with arguments.
14750 compiler=$CC
14751
14752
14753 # save warnings/boilerplate of simple test code
14754 ac_outfile=conftest.$ac_objext
14755 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14756 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14757 _lt_compiler_boilerplate=`cat conftest.err`
14758 $rm conftest*
14759
14760 ac_outfile=conftest.$ac_objext
14761 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14762 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14763 _lt_linker_boilerplate=`cat conftest.err`
14764 $rm -r conftest*
14765
14766
14767 # Allow CC to be a program name with arguments.
14768 lt_save_CC="$CC"
14769 CC=${F77-"f77"}
14770 compiler=$CC
14771 compiler_F77=$CC
14772 for cc_temp in $compiler""; do
14773   case $cc_temp in
14774     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14775     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14776     \-*) ;;
14777     *) break;;
14778   esac
14779 done
14780 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14781
14782
14783 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14784 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14785 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14786 $as_echo "$can_build_shared" >&6; }
14787
14788 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14789 $as_echo_n "checking whether to build shared libraries... " >&6; }
14790 test "$can_build_shared" = "no" && enable_shared=no
14791
14792 # On AIX, shared libraries and static libraries use the same namespace, and
14793 # are all built from PIC.
14794 case $host_os in
14795 aix3*)
14796   test "$enable_shared" = yes && enable_static=no
14797   if test -n "$RANLIB"; then
14798     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14799     postinstall_cmds='$RANLIB $lib'
14800   fi
14801   ;;
14802 aix[4-9]*)
14803   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14804     test "$enable_shared" = yes && enable_static=no
14805   fi
14806   ;;
14807 esac
14808 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14809 $as_echo "$enable_shared" >&6; }
14810
14811 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14812 $as_echo_n "checking whether to build static libraries... " >&6; }
14813 # Make sure either enable_shared or enable_static is yes.
14814 test "$enable_shared" = yes || enable_static=yes
14815 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14816 $as_echo "$enable_static" >&6; }
14817
14818 GCC_F77="$G77"
14819 LD_F77="$LD"
14820
14821 lt_prog_compiler_wl_F77=
14822 lt_prog_compiler_pic_F77=
14823 lt_prog_compiler_static_F77=
14824
14825 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14826 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14827
14828   if test "$GCC" = yes; then
14829     lt_prog_compiler_wl_F77='-Wl,'
14830     lt_prog_compiler_static_F77='-static'
14831
14832     case $host_os in
14833       aix*)
14834       # All AIX code is PIC.
14835       if test "$host_cpu" = ia64; then
14836         # AIX 5 now supports IA64 processor
14837         lt_prog_compiler_static_F77='-Bstatic'
14838       fi
14839       ;;
14840
14841     amigaos*)
14842       # FIXME: we need at least 68020 code to build shared libraries, but
14843       # adding the `-m68020' flag to GCC prevents building anything better,
14844       # like `-m68040'.
14845       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14846       ;;
14847
14848     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14849       # PIC is the default for these OSes.
14850       ;;
14851
14852     mingw* | cygwin* | pw32* | os2*)
14853       # This hack is so that the source file can tell whether it is being
14854       # built for inclusion in a dll (and should export symbols for example).
14855       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14856       # (--disable-auto-import) libraries
14857       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14858       ;;
14859
14860     darwin* | rhapsody*)
14861       # PIC is the default on this platform
14862       # Common symbols not allowed in MH_DYLIB files
14863       lt_prog_compiler_pic_F77='-fno-common'
14864       ;;
14865
14866     interix[3-9]*)
14867       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14868       # Instead, we relocate shared libraries at runtime.
14869       ;;
14870
14871     msdosdjgpp*)
14872       # Just because we use GCC doesn't mean we suddenly get shared libraries
14873       # on systems that don't support them.
14874       lt_prog_compiler_can_build_shared_F77=no
14875       enable_shared=no
14876       ;;
14877
14878     sysv4*MP*)
14879       if test -d /usr/nec; then
14880         lt_prog_compiler_pic_F77=-Kconform_pic
14881       fi
14882       ;;
14883
14884     hpux*)
14885       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14886       # not for PA HP-UX.
14887       case $host_cpu in
14888       hppa*64*|ia64*)
14889         # +Z the default
14890         ;;
14891       *)
14892         lt_prog_compiler_pic_F77='-fPIC'
14893         ;;
14894       esac
14895       ;;
14896
14897     *)
14898       lt_prog_compiler_pic_F77='-fPIC'
14899       ;;
14900     esac
14901   else
14902     # PORTME Check for flag to pass linker flags through the system compiler.
14903     case $host_os in
14904     aix*)
14905       lt_prog_compiler_wl_F77='-Wl,'
14906       if test "$host_cpu" = ia64; then
14907         # AIX 5 now supports IA64 processor
14908         lt_prog_compiler_static_F77='-Bstatic'
14909       else
14910         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14911       fi
14912       ;;
14913       darwin*)
14914         # PIC is the default on this platform
14915         # Common symbols not allowed in MH_DYLIB files
14916        case $cc_basename in
14917          xlc*)
14918          lt_prog_compiler_pic_F77='-qnocommon'
14919          lt_prog_compiler_wl_F77='-Wl,'
14920          ;;
14921        esac
14922        ;;
14923
14924     mingw* | cygwin* | pw32* | os2*)
14925       # This hack is so that the source file can tell whether it is being
14926       # built for inclusion in a dll (and should export symbols for example).
14927       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14928       ;;
14929
14930     hpux9* | hpux10* | hpux11*)
14931       lt_prog_compiler_wl_F77='-Wl,'
14932       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14933       # not for PA HP-UX.
14934       case $host_cpu in
14935       hppa*64*|ia64*)
14936         # +Z the default
14937         ;;
14938       *)
14939         lt_prog_compiler_pic_F77='+Z'
14940         ;;
14941       esac
14942       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14943       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14944       ;;
14945
14946     irix5* | irix6* | nonstopux*)
14947       lt_prog_compiler_wl_F77='-Wl,'
14948       # PIC (with -KPIC) is the default.
14949       lt_prog_compiler_static_F77='-non_shared'
14950       ;;
14951
14952     newsos6)
14953       lt_prog_compiler_pic_F77='-KPIC'
14954       lt_prog_compiler_static_F77='-Bstatic'
14955       ;;
14956
14957     linux* | k*bsd*-gnu)
14958       case $cc_basename in
14959       icc* | ecc*)
14960         lt_prog_compiler_wl_F77='-Wl,'
14961         lt_prog_compiler_pic_F77='-KPIC'
14962         lt_prog_compiler_static_F77='-static'
14963         ;;
14964       pgcc* | pgf77* | pgf90* | pgf95*)
14965         # Portland Group compilers (*not* the Pentium gcc compiler,
14966         # which looks to be a dead project)
14967         lt_prog_compiler_wl_F77='-Wl,'
14968         lt_prog_compiler_pic_F77='-fpic'
14969         lt_prog_compiler_static_F77='-Bstatic'
14970         ;;
14971       ccc*)
14972         lt_prog_compiler_wl_F77='-Wl,'
14973         # All Alpha code is PIC.
14974         lt_prog_compiler_static_F77='-non_shared'
14975         ;;
14976       *)
14977         case `$CC -V 2>&1 | sed 5q` in
14978         *Sun\ C*)
14979           # Sun C 5.9
14980           lt_prog_compiler_pic_F77='-KPIC'
14981           lt_prog_compiler_static_F77='-Bstatic'
14982           lt_prog_compiler_wl_F77='-Wl,'
14983           ;;
14984         *Sun\ F*)
14985           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14986           lt_prog_compiler_pic_F77='-KPIC'
14987           lt_prog_compiler_static_F77='-Bstatic'
14988           lt_prog_compiler_wl_F77=''
14989           ;;
14990         esac
14991         ;;
14992       esac
14993       ;;
14994
14995     osf3* | osf4* | osf5*)
14996       lt_prog_compiler_wl_F77='-Wl,'
14997       # All OSF/1 code is PIC.
14998       lt_prog_compiler_static_F77='-non_shared'
14999       ;;
15000
15001     rdos*)
15002       lt_prog_compiler_static_F77='-non_shared'
15003       ;;
15004
15005     solaris*)
15006       lt_prog_compiler_pic_F77='-KPIC'
15007       lt_prog_compiler_static_F77='-Bstatic'
15008       case $cc_basename in
15009       f77* | f90* | f95*)
15010         lt_prog_compiler_wl_F77='-Qoption ld ';;
15011       *)
15012         lt_prog_compiler_wl_F77='-Wl,';;
15013       esac
15014       ;;
15015
15016     sunos4*)
15017       lt_prog_compiler_wl_F77='-Qoption ld '
15018       lt_prog_compiler_pic_F77='-PIC'
15019       lt_prog_compiler_static_F77='-Bstatic'
15020       ;;
15021
15022     sysv4 | sysv4.2uw2* | sysv4.3*)
15023       lt_prog_compiler_wl_F77='-Wl,'
15024       lt_prog_compiler_pic_F77='-KPIC'
15025       lt_prog_compiler_static_F77='-Bstatic'
15026       ;;
15027
15028     sysv4*MP*)
15029       if test -d /usr/nec ;then
15030         lt_prog_compiler_pic_F77='-Kconform_pic'
15031         lt_prog_compiler_static_F77='-Bstatic'
15032       fi
15033       ;;
15034
15035     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15036       lt_prog_compiler_wl_F77='-Wl,'
15037       lt_prog_compiler_pic_F77='-KPIC'
15038       lt_prog_compiler_static_F77='-Bstatic'
15039       ;;
15040
15041     unicos*)
15042       lt_prog_compiler_wl_F77='-Wl,'
15043       lt_prog_compiler_can_build_shared_F77=no
15044       ;;
15045
15046     uts4*)
15047       lt_prog_compiler_pic_F77='-pic'
15048       lt_prog_compiler_static_F77='-Bstatic'
15049       ;;
15050
15051     *)
15052       lt_prog_compiler_can_build_shared_F77=no
15053       ;;
15054     esac
15055   fi
15056
15057 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15058 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
15059
15060 #
15061 # Check to make sure the PIC flag actually works.
15062 #
15063 if test -n "$lt_prog_compiler_pic_F77"; then
15064
15065 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15066 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
15067 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
15068   $as_echo_n "(cached) " >&6
15069 else
15070   lt_cv_prog_compiler_pic_works_F77=no
15071   ac_outfile=conftest.$ac_objext
15072    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15073    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15074    # Insert the option either (1) after the last *FLAGS variable, or
15075    # (2) before a word containing "conftest.", or (3) at the end.
15076    # Note that $ac_compile itself does not contain backslashes and begins
15077    # with a dollar sign (not a hyphen), so the echo should work correctly.
15078    # The option is referenced via a variable to avoid confusing sed.
15079    lt_compile=`echo "$ac_compile" | $SED \
15080    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15081    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15082    -e 's:$: $lt_compiler_flag:'`
15083    (eval echo "\"\$as_me:15083: $lt_compile\"" >&5)
15084    (eval "$lt_compile" 2>conftest.err)
15085    ac_status=$?
15086    cat conftest.err >&5
15087    echo "$as_me:15087: \$? = $ac_status" >&5
15088    if (exit $ac_status) && test -s "$ac_outfile"; then
15089      # The compiler can only warn and ignore the option if not recognized
15090      # So say no if there are warnings other than the usual output.
15091      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15092      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15093      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15094        lt_cv_prog_compiler_pic_works_F77=yes
15095      fi
15096    fi
15097    $rm conftest*
15098
15099 fi
15100 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
15101 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
15102
15103 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
15104     case $lt_prog_compiler_pic_F77 in
15105      "" | " "*) ;;
15106      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15107      esac
15108 else
15109     lt_prog_compiler_pic_F77=
15110      lt_prog_compiler_can_build_shared_F77=no
15111 fi
15112
15113 fi
15114 case $host_os in
15115   # For platforms which do not support PIC, -DPIC is meaningless:
15116   *djgpp*)
15117     lt_prog_compiler_pic_F77=
15118     ;;
15119   *)
15120     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15121     ;;
15122 esac
15123
15124 #
15125 # Check to make sure the static flag actually works.
15126 #
15127 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15128 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15129 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15130 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
15131   $as_echo_n "(cached) " >&6
15132 else
15133   lt_cv_prog_compiler_static_works_F77=no
15134    save_LDFLAGS="$LDFLAGS"
15135    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15136    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15137    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15138      # The linker can only warn and ignore the option if not recognized
15139      # So say no if there are warnings
15140      if test -s conftest.err; then
15141        # Append any errors to the config.log.
15142        cat conftest.err 1>&5
15143        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15144        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15145        if diff conftest.exp conftest.er2 >/dev/null; then
15146          lt_cv_prog_compiler_static_works_F77=yes
15147        fi
15148      else
15149        lt_cv_prog_compiler_static_works_F77=yes
15150      fi
15151    fi
15152    $rm -r conftest*
15153    LDFLAGS="$save_LDFLAGS"
15154
15155 fi
15156 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
15157 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
15158
15159 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
15160     :
15161 else
15162     lt_prog_compiler_static_F77=
15163 fi
15164
15165
15166 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15167 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15168 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15169   $as_echo_n "(cached) " >&6
15170 else
15171   lt_cv_prog_compiler_c_o_F77=no
15172    $rm -r conftest 2>/dev/null
15173    mkdir conftest
15174    cd conftest
15175    mkdir out
15176    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15177
15178    lt_compiler_flag="-o out/conftest2.$ac_objext"
15179    # Insert the option either (1) after the last *FLAGS variable, or
15180    # (2) before a word containing "conftest.", or (3) at the end.
15181    # Note that $ac_compile itself does not contain backslashes and begins
15182    # with a dollar sign (not a hyphen), so the echo should work correctly.
15183    lt_compile=`echo "$ac_compile" | $SED \
15184    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15185    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15186    -e 's:$: $lt_compiler_flag:'`
15187    (eval echo "\"\$as_me:15187: $lt_compile\"" >&5)
15188    (eval "$lt_compile" 2>out/conftest.err)
15189    ac_status=$?
15190    cat out/conftest.err >&5
15191    echo "$as_me:15191: \$? = $ac_status" >&5
15192    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15193    then
15194      # The compiler can only warn and ignore the option if not recognized
15195      # So say no if there are warnings
15196      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15197      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15198      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15199        lt_cv_prog_compiler_c_o_F77=yes
15200      fi
15201    fi
15202    chmod u+w . 2>&5
15203    $rm conftest*
15204    # SGI C++ compiler will create directory out/ii_files/ for
15205    # template instantiation
15206    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15207    $rm out/* && rmdir out
15208    cd ..
15209    rmdir conftest
15210    $rm conftest*
15211
15212 fi
15213 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15214 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
15215
15216
15217 hard_links="nottested"
15218 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15219   # do not overwrite the value of need_locks provided by the user
15220   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15221 $as_echo_n "checking if we can lock with hard links... " >&6; }
15222   hard_links=yes
15223   $rm conftest*
15224   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15225   touch conftest.a
15226   ln conftest.a conftest.b 2>&5 || hard_links=no
15227   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15228   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15229 $as_echo "$hard_links" >&6; }
15230   if test "$hard_links" = no; then
15231     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15232 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15233     need_locks=warn
15234   fi
15235 else
15236   need_locks=no
15237 fi
15238
15239 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15240 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15241
15242   runpath_var=
15243   allow_undefined_flag_F77=
15244   enable_shared_with_static_runtimes_F77=no
15245   archive_cmds_F77=
15246   archive_expsym_cmds_F77=
15247   old_archive_From_new_cmds_F77=
15248   old_archive_from_expsyms_cmds_F77=
15249   export_dynamic_flag_spec_F77=
15250   whole_archive_flag_spec_F77=
15251   thread_safe_flag_spec_F77=
15252   hardcode_libdir_flag_spec_F77=
15253   hardcode_libdir_flag_spec_ld_F77=
15254   hardcode_libdir_separator_F77=
15255   hardcode_direct_F77=no
15256   hardcode_minus_L_F77=no
15257   hardcode_shlibpath_var_F77=unsupported
15258   link_all_deplibs_F77=unknown
15259   hardcode_automatic_F77=no
15260   module_cmds_F77=
15261   module_expsym_cmds_F77=
15262   always_export_symbols_F77=no
15263   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15264   # include_expsyms should be a list of space-separated symbols to be *always*
15265   # included in the symbol list
15266   include_expsyms_F77=
15267   # exclude_expsyms can be an extended regexp of symbols to exclude
15268   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15269   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15270   # as well as any symbol that contains `d'.
15271   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15272   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15273   # platforms (ab)use it in PIC code, but their linkers get confused if
15274   # the symbol is explicitly referenced.  Since portable code cannot
15275   # rely on this symbol name, it's probably fine to never include it in
15276   # preloaded symbol tables.
15277   # Exclude shared library initialization/finalization symbols.
15278   extract_expsyms_cmds=
15279   # Just being paranoid about ensuring that cc_basename is set.
15280   for cc_temp in $compiler""; do
15281   case $cc_temp in
15282     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15283     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15284     \-*) ;;
15285     *) break;;
15286   esac
15287 done
15288 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15289
15290   case $host_os in
15291   cygwin* | mingw* | pw32*)
15292     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15293     # When not using gcc, we currently assume that we are using
15294     # Microsoft Visual C++.
15295     if test "$GCC" != yes; then
15296       with_gnu_ld=no
15297     fi
15298     ;;
15299   interix*)
15300     # we just hope/assume this is gcc and not c89 (= MSVC++)
15301     with_gnu_ld=yes
15302     ;;
15303   openbsd*)
15304     with_gnu_ld=no
15305     ;;
15306   esac
15307
15308   ld_shlibs_F77=yes
15309   if test "$with_gnu_ld" = yes; then
15310     # If archive_cmds runs LD, not CC, wlarc should be empty
15311     wlarc='${wl}'
15312
15313     # Set some defaults for GNU ld with shared library support. These
15314     # are reset later if shared libraries are not supported. Putting them
15315     # here allows them to be overridden if necessary.
15316     runpath_var=LD_RUN_PATH
15317     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15318     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15319     # ancient GNU ld didn't support --whole-archive et. al.
15320     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15321         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15322       else
15323         whole_archive_flag_spec_F77=
15324     fi
15325     supports_anon_versioning=no
15326     case `$LD -v 2>/dev/null` in
15327       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15328       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15329       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15330       *\ 2.11.*) ;; # other 2.11 versions
15331       *) supports_anon_versioning=yes ;;
15332     esac
15333
15334     # See if GNU ld supports shared libraries.
15335     case $host_os in
15336     aix[3-9]*)
15337       # On AIX/PPC, the GNU linker is very broken
15338       if test "$host_cpu" != ia64; then
15339         ld_shlibs_F77=no
15340         cat <<EOF 1>&2
15341
15342 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15343 *** to be unable to reliably create shared libraries on AIX.
15344 *** Therefore, libtool is disabling shared libraries support.  If you
15345 *** really care for shared libraries, you may want to modify your PATH
15346 *** so that a non-GNU linker is found, and then restart.
15347
15348 EOF
15349       fi
15350       ;;
15351
15352     amigaos*)
15353       archive_cmds_F77='$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)'
15354       hardcode_libdir_flag_spec_F77='-L$libdir'
15355       hardcode_minus_L_F77=yes
15356
15357       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15358       # that the semantics of dynamic libraries on AmigaOS, at least up
15359       # to version 4, is to share data among multiple programs linked
15360       # with the same dynamic library.  Since this doesn't match the
15361       # behavior of shared libraries on other platforms, we can't use
15362       # them.
15363       ld_shlibs_F77=no
15364       ;;
15365
15366     beos*)
15367       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15368         allow_undefined_flag_F77=unsupported
15369         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15370         # support --undefined.  This deserves some investigation.  FIXME
15371         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15372       else
15373         ld_shlibs_F77=no
15374       fi
15375       ;;
15376
15377     cygwin* | mingw* | pw32*)
15378       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15379       # as there is no search path for DLLs.
15380       hardcode_libdir_flag_spec_F77='-L$libdir'
15381       allow_undefined_flag_F77=unsupported
15382       always_export_symbols_F77=no
15383       enable_shared_with_static_runtimes_F77=yes
15384       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15385
15386       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15387         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15388         # If the export-symbols file already is a .def file (1st line
15389         # is EXPORTS), use it as is; otherwise, prepend...
15390         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15391           cp $export_symbols $output_objdir/$soname.def;
15392         else
15393           echo EXPORTS > $output_objdir/$soname.def;
15394           cat $export_symbols >> $output_objdir/$soname.def;
15395         fi~
15396         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15397       else
15398         ld_shlibs_F77=no
15399       fi
15400       ;;
15401
15402     interix[3-9]*)
15403       hardcode_direct_F77=no
15404       hardcode_shlibpath_var_F77=no
15405       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15406       export_dynamic_flag_spec_F77='${wl}-E'
15407       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15408       # Instead, shared libraries are loaded at an image base (0x10000000 by
15409       # default) and relocated if they conflict, which is a slow very memory
15410       # consuming and fragmenting process.  To avoid this, we pick a random,
15411       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15412       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15413       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15414       archive_expsym_cmds_F77='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'
15415       ;;
15416
15417     gnu* | linux* | k*bsd*-gnu)
15418       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15419         tmp_addflag=
15420         case $cc_basename,$host_cpu in
15421         pgcc*)                          # Portland Group C compiler
15422           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15423           tmp_addflag=' $pic_flag'
15424           ;;
15425         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15426           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15427           tmp_addflag=' $pic_flag -Mnomain' ;;
15428         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15429           tmp_addflag=' -i_dynamic' ;;
15430         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15431           tmp_addflag=' -i_dynamic -nofor_main' ;;
15432         ifc* | ifort*)                  # Intel Fortran compiler
15433           tmp_addflag=' -nofor_main' ;;
15434         esac
15435         case `$CC -V 2>&1 | sed 5q` in
15436         *Sun\ C*)                       # Sun C 5.9
15437           whole_archive_flag_spec_F77='${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'
15438           tmp_sharedflag='-G' ;;
15439         *Sun\ F*)                       # Sun Fortran 8.3
15440           tmp_sharedflag='-G' ;;
15441         *)
15442           tmp_sharedflag='-shared' ;;
15443         esac
15444         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15445
15446         if test $supports_anon_versioning = yes; then
15447           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15448   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15449   $echo "local: *; };" >> $output_objdir/$libname.ver~
15450           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15451         fi
15452       else
15453         ld_shlibs_F77=no
15454       fi
15455       ;;
15456
15457     netbsd*)
15458       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15459         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15460         wlarc=
15461       else
15462         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15463         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15464       fi
15465       ;;
15466
15467     solaris*)
15468       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15469         ld_shlibs_F77=no
15470         cat <<EOF 1>&2
15471
15472 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15473 *** create shared libraries on Solaris systems.  Therefore, libtool
15474 *** is disabling shared libraries support.  We urge you to upgrade GNU
15475 *** binutils to release 2.9.1 or newer.  Another option is to modify
15476 *** your PATH or compiler configuration so that the native linker is
15477 *** used, and then restart.
15478
15479 EOF
15480       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15481         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15482         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15483       else
15484         ld_shlibs_F77=no
15485       fi
15486       ;;
15487
15488     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15489       case `$LD -v 2>&1` in
15490         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15491         ld_shlibs_F77=no
15492         cat <<_LT_EOF 1>&2
15493
15494 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15495 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15496 *** is disabling shared libraries support.  We urge you to upgrade GNU
15497 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15498 *** your PATH or compiler configuration so that the native linker is
15499 *** used, and then restart.
15500
15501 _LT_EOF
15502         ;;
15503         *)
15504           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15505             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15506             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15507             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15508           else
15509             ld_shlibs_F77=no
15510           fi
15511         ;;
15512       esac
15513       ;;
15514
15515     sunos4*)
15516       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15517       wlarc=
15518       hardcode_direct_F77=yes
15519       hardcode_shlibpath_var_F77=no
15520       ;;
15521
15522     *)
15523       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15524         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15525         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15526       else
15527         ld_shlibs_F77=no
15528       fi
15529       ;;
15530     esac
15531
15532     if test "$ld_shlibs_F77" = no; then
15533       runpath_var=
15534       hardcode_libdir_flag_spec_F77=
15535       export_dynamic_flag_spec_F77=
15536       whole_archive_flag_spec_F77=
15537     fi
15538   else
15539     # PORTME fill in a description of your system's linker (not GNU ld)
15540     case $host_os in
15541     aix3*)
15542       allow_undefined_flag_F77=unsupported
15543       always_export_symbols_F77=yes
15544       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15545       # Note: this linker hardcodes the directories in LIBPATH if there
15546       # are no directories specified by -L.
15547       hardcode_minus_L_F77=yes
15548       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15549         # Neither direct hardcoding nor static linking is supported with a
15550         # broken collect2.
15551         hardcode_direct_F77=unsupported
15552       fi
15553       ;;
15554
15555     aix[4-9]*)
15556       if test "$host_cpu" = ia64; then
15557         # On IA64, the linker does run time linking by default, so we don't
15558         # have to do anything special.
15559         aix_use_runtimelinking=no
15560         exp_sym_flag='-Bexport'
15561         no_entry_flag=""
15562       else
15563         # If we're using GNU nm, then we don't want the "-C" option.
15564         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15565         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15566           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15567         else
15568           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15569         fi
15570         aix_use_runtimelinking=no
15571
15572         # Test if we are trying to use run time linking or normal
15573         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15574         # need to do runtime linking.
15575         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15576           for ld_flag in $LDFLAGS; do
15577           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15578             aix_use_runtimelinking=yes
15579             break
15580           fi
15581           done
15582           ;;
15583         esac
15584
15585         exp_sym_flag='-bexport'
15586         no_entry_flag='-bnoentry'
15587       fi
15588
15589       # When large executables or shared objects are built, AIX ld can
15590       # have problems creating the table of contents.  If linking a library
15591       # or program results in "error TOC overflow" add -mminimal-toc to
15592       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15593       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15594
15595       archive_cmds_F77=''
15596       hardcode_direct_F77=yes
15597       hardcode_libdir_separator_F77=':'
15598       link_all_deplibs_F77=yes
15599
15600       if test "$GCC" = yes; then
15601         case $host_os in aix4.[012]|aix4.[012].*)
15602         # We only want to do this on AIX 4.2 and lower, the check
15603         # below for broken collect2 doesn't work under 4.3+
15604           collect2name=`${CC} -print-prog-name=collect2`
15605           if test -f "$collect2name" && \
15606            strings "$collect2name" | grep resolve_lib_name >/dev/null
15607           then
15608           # We have reworked collect2
15609           :
15610           else
15611           # We have old collect2
15612           hardcode_direct_F77=unsupported
15613           # It fails to find uninstalled libraries when the uninstalled
15614           # path is not listed in the libpath.  Setting hardcode_minus_L
15615           # to unsupported forces relinking
15616           hardcode_minus_L_F77=yes
15617           hardcode_libdir_flag_spec_F77='-L$libdir'
15618           hardcode_libdir_separator_F77=
15619           fi
15620           ;;
15621         esac
15622         shared_flag='-shared'
15623         if test "$aix_use_runtimelinking" = yes; then
15624           shared_flag="$shared_flag "'${wl}-G'
15625         fi
15626       else
15627         # not using gcc
15628         if test "$host_cpu" = ia64; then
15629         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15630         # chokes on -Wl,-G. The following line is correct:
15631           shared_flag='-G'
15632         else
15633           if test "$aix_use_runtimelinking" = yes; then
15634             shared_flag='${wl}-G'
15635           else
15636             shared_flag='${wl}-bM:SRE'
15637           fi
15638         fi
15639       fi
15640
15641       # It seems that -bexpall does not export symbols beginning with
15642       # underscore (_), so it is better to generate a list of symbols to export.
15643       always_export_symbols_F77=yes
15644       if test "$aix_use_runtimelinking" = yes; then
15645         # Warning - without using the other runtime loading flags (-brtl),
15646         # -berok will link without error, but may produce a broken library.
15647         allow_undefined_flag_F77='-berok'
15648        # Determine the default libpath from the value encoded in an empty executable.
15649        cat >conftest.$ac_ext <<_ACEOF
15650       program main
15651
15652       end
15653 _ACEOF
15654 rm -f conftest.$ac_objext conftest$ac_exeext
15655 if { (ac_try="$ac_link"
15656 case "(($ac_try" in
15657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658   *) ac_try_echo=$ac_try;;
15659 esac
15660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15661 $as_echo "$ac_try_echo") >&5
15662   (eval "$ac_link") 2>conftest.er1
15663   ac_status=$?
15664   grep -v '^ *+' conftest.er1 >conftest.err
15665   rm -f conftest.er1
15666   cat conftest.err >&5
15667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); } && {
15669          test -z "$ac_f77_werror_flag" ||
15670          test ! -s conftest.err
15671        } && test -s conftest$ac_exeext && {
15672          test "$cross_compiling" = yes ||
15673          $as_test_x conftest$ac_exeext
15674        }; then
15675
15676 lt_aix_libpath_sed='
15677     /Import File Strings/,/^$/ {
15678         /^0/ {
15679             s/^0  *\(.*\)$/\1/
15680             p
15681         }
15682     }'
15683 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15684 # Check for a 64-bit object if we didn't find anything.
15685 if test -z "$aix_libpath"; then
15686   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15687 fi
15688 else
15689   $as_echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15691
15692
15693 fi
15694
15695 rm -rf conftest.dSYM
15696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15697       conftest$ac_exeext conftest.$ac_ext
15698 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15699
15700        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15701         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15702        else
15703         if test "$host_cpu" = ia64; then
15704           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15705           allow_undefined_flag_F77="-z nodefs"
15706           archive_expsym_cmds_F77="\$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"
15707         else
15708          # Determine the default libpath from the value encoded in an empty executable.
15709          cat >conftest.$ac_ext <<_ACEOF
15710       program main
15711
15712       end
15713 _ACEOF
15714 rm -f conftest.$ac_objext conftest$ac_exeext
15715 if { (ac_try="$ac_link"
15716 case "(($ac_try" in
15717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718   *) ac_try_echo=$ac_try;;
15719 esac
15720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15721 $as_echo "$ac_try_echo") >&5
15722   (eval "$ac_link") 2>conftest.er1
15723   ac_status=$?
15724   grep -v '^ *+' conftest.er1 >conftest.err
15725   rm -f conftest.er1
15726   cat conftest.err >&5
15727   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728   (exit $ac_status); } && {
15729          test -z "$ac_f77_werror_flag" ||
15730          test ! -s conftest.err
15731        } && test -s conftest$ac_exeext && {
15732          test "$cross_compiling" = yes ||
15733          $as_test_x conftest$ac_exeext
15734        }; then
15735
15736 lt_aix_libpath_sed='
15737     /Import File Strings/,/^$/ {
15738         /^0/ {
15739             s/^0  *\(.*\)$/\1/
15740             p
15741         }
15742     }'
15743 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15744 # Check for a 64-bit object if we didn't find anything.
15745 if test -z "$aix_libpath"; then
15746   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15747 fi
15748 else
15749   $as_echo "$as_me: failed program was:" >&5
15750 sed 's/^/| /' conftest.$ac_ext >&5
15751
15752
15753 fi
15754
15755 rm -rf conftest.dSYM
15756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15757       conftest$ac_exeext conftest.$ac_ext
15758 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15759
15760          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15761           # Warning - without using the other run time loading flags,
15762           # -berok will link without error, but may produce a broken library.
15763           no_undefined_flag_F77=' ${wl}-bernotok'
15764           allow_undefined_flag_F77=' ${wl}-berok'
15765           # Exported symbols can be pulled into shared objects from archives
15766           whole_archive_flag_spec_F77='$convenience'
15767           archive_cmds_need_lc_F77=yes
15768           # This is similar to how AIX traditionally builds its shared libraries.
15769           archive_expsym_cmds_F77="\$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'
15770         fi
15771       fi
15772       ;;
15773
15774     amigaos*)
15775       archive_cmds_F77='$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)'
15776       hardcode_libdir_flag_spec_F77='-L$libdir'
15777       hardcode_minus_L_F77=yes
15778       # see comment about different semantics on the GNU ld section
15779       ld_shlibs_F77=no
15780       ;;
15781
15782     bsdi[45]*)
15783       export_dynamic_flag_spec_F77=-rdynamic
15784       ;;
15785
15786     cygwin* | mingw* | pw32*)
15787       # When not using gcc, we currently assume that we are using
15788       # Microsoft Visual C++.
15789       # hardcode_libdir_flag_spec is actually meaningless, as there is
15790       # no search path for DLLs.
15791       hardcode_libdir_flag_spec_F77=' '
15792       allow_undefined_flag_F77=unsupported
15793       # Tell ltmain to make .lib files, not .a files.
15794       libext=lib
15795       # Tell ltmain to make .dll files, not .so files.
15796       shrext_cmds=".dll"
15797       # FIXME: Setting linknames here is a bad hack.
15798       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15799       # The linker will automatically build a .lib file if we build a DLL.
15800       old_archive_From_new_cmds_F77='true'
15801       # FIXME: Should let the user specify the lib program.
15802       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15803       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15804       enable_shared_with_static_runtimes_F77=yes
15805       ;;
15806
15807     darwin* | rhapsody*)
15808       case $host_os in
15809         rhapsody* | darwin1.[012])
15810          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15811          ;;
15812        *) # Darwin 1.3 on
15813          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15814            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15815          else
15816            case ${MACOSX_DEPLOYMENT_TARGET} in
15817              10.[012])
15818                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15819                ;;
15820              10.*)
15821                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15822                ;;
15823            esac
15824          fi
15825          ;;
15826       esac
15827       archive_cmds_need_lc_F77=no
15828       hardcode_direct_F77=no
15829       hardcode_automatic_F77=yes
15830       hardcode_shlibpath_var_F77=unsupported
15831       whole_archive_flag_spec_F77=''
15832       link_all_deplibs_F77=yes
15833     if test "$GCC" = yes ; then
15834         output_verbose_link_cmd='echo'
15835         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15836         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15837         archive_expsym_cmds_F77="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}"
15838         module_expsym_cmds_F77="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}"
15839     else
15840       case $cc_basename in
15841         xlc*)
15842          output_verbose_link_cmd='echo'
15843          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15844          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15845           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15846          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15847           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15848           ;;
15849        *)
15850          ld_shlibs_F77=no
15851           ;;
15852       esac
15853     fi
15854       ;;
15855
15856     dgux*)
15857       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15858       hardcode_libdir_flag_spec_F77='-L$libdir'
15859       hardcode_shlibpath_var_F77=no
15860       ;;
15861
15862     freebsd1*)
15863       ld_shlibs_F77=no
15864       ;;
15865
15866     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15867     # support.  Future versions do this automatically, but an explicit c++rt0.o
15868     # does not break anything, and helps significantly (at the cost of a little
15869     # extra space).
15870     freebsd2.2*)
15871       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15872       hardcode_libdir_flag_spec_F77='-R$libdir'
15873       hardcode_direct_F77=yes
15874       hardcode_shlibpath_var_F77=no
15875       ;;
15876
15877     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15878     freebsd2*)
15879       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15880       hardcode_direct_F77=yes
15881       hardcode_minus_L_F77=yes
15882       hardcode_shlibpath_var_F77=no
15883       ;;
15884
15885     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15886     freebsd* | dragonfly*)
15887       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15888       hardcode_libdir_flag_spec_F77='-R$libdir'
15889       hardcode_direct_F77=yes
15890       hardcode_shlibpath_var_F77=no
15891       ;;
15892
15893     hpux9*)
15894       if test "$GCC" = yes; then
15895         archive_cmds_F77='$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'
15896       else
15897         archive_cmds_F77='$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'
15898       fi
15899       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15900       hardcode_libdir_separator_F77=:
15901       hardcode_direct_F77=yes
15902
15903       # hardcode_minus_L: Not really in the search PATH,
15904       # but as the default location of the library.
15905       hardcode_minus_L_F77=yes
15906       export_dynamic_flag_spec_F77='${wl}-E'
15907       ;;
15908
15909     hpux10*)
15910       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15911         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15912       else
15913         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15914       fi
15915       if test "$with_gnu_ld" = no; then
15916         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15917         hardcode_libdir_separator_F77=:
15918
15919         hardcode_direct_F77=yes
15920         export_dynamic_flag_spec_F77='${wl}-E'
15921
15922         # hardcode_minus_L: Not really in the search PATH,
15923         # but as the default location of the library.
15924         hardcode_minus_L_F77=yes
15925       fi
15926       ;;
15927
15928     hpux11*)
15929       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15930         case $host_cpu in
15931         hppa*64*)
15932           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15933           ;;
15934         ia64*)
15935           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15936           ;;
15937         *)
15938           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15939           ;;
15940         esac
15941       else
15942         case $host_cpu in
15943         hppa*64*)
15944           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15945           ;;
15946         ia64*)
15947           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15948           ;;
15949         *)
15950           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15951           ;;
15952         esac
15953       fi
15954       if test "$with_gnu_ld" = no; then
15955         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15956         hardcode_libdir_separator_F77=:
15957
15958         case $host_cpu in
15959         hppa*64*|ia64*)
15960           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15961           hardcode_direct_F77=no
15962           hardcode_shlibpath_var_F77=no
15963           ;;
15964         *)
15965           hardcode_direct_F77=yes
15966           export_dynamic_flag_spec_F77='${wl}-E'
15967
15968           # hardcode_minus_L: Not really in the search PATH,
15969           # but as the default location of the library.
15970           hardcode_minus_L_F77=yes
15971           ;;
15972         esac
15973       fi
15974       ;;
15975
15976     irix5* | irix6* | nonstopux*)
15977       if test "$GCC" = yes; then
15978         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15979       else
15980         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15981         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15982       fi
15983       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15984       hardcode_libdir_separator_F77=:
15985       link_all_deplibs_F77=yes
15986       ;;
15987
15988     netbsd*)
15989       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15990         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15991       else
15992         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15993       fi
15994       hardcode_libdir_flag_spec_F77='-R$libdir'
15995       hardcode_direct_F77=yes
15996       hardcode_shlibpath_var_F77=no
15997       ;;
15998
15999     newsos6)
16000       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16001       hardcode_direct_F77=yes
16002       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16003       hardcode_libdir_separator_F77=:
16004       hardcode_shlibpath_var_F77=no
16005       ;;
16006
16007     openbsd*)
16008       if test -f /usr/libexec/ld.so; then
16009         hardcode_direct_F77=yes
16010         hardcode_shlibpath_var_F77=no
16011         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16012           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16013           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16014           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16015           export_dynamic_flag_spec_F77='${wl}-E'
16016         else
16017           case $host_os in
16018            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16019              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16020              hardcode_libdir_flag_spec_F77='-R$libdir'
16021              ;;
16022            *)
16023              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16024              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16025              ;;
16026           esac
16027         fi
16028       else
16029         ld_shlibs_F77=no
16030       fi
16031       ;;
16032
16033     os2*)
16034       hardcode_libdir_flag_spec_F77='-L$libdir'
16035       hardcode_minus_L_F77=yes
16036       allow_undefined_flag_F77=unsupported
16037       archive_cmds_F77='$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'
16038       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16039       ;;
16040
16041     osf3*)
16042       if test "$GCC" = yes; then
16043         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16044         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16045       else
16046         allow_undefined_flag_F77=' -expect_unresolved \*'
16047         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16048       fi
16049       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16050       hardcode_libdir_separator_F77=:
16051       ;;
16052
16053     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16054       if test "$GCC" = yes; then
16055         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16056         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16057         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16058       else
16059         allow_undefined_flag_F77=' -expect_unresolved \*'
16060         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16061         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16062         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16063
16064         # Both c and cxx compiler support -rpath directly
16065         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16066       fi
16067       hardcode_libdir_separator_F77=:
16068       ;;
16069
16070     solaris*)
16071       no_undefined_flag_F77=' -z text'
16072       if test "$GCC" = yes; then
16073         wlarc='${wl}'
16074         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16075         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16076           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16077       else
16078         wlarc=''
16079         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16080         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16081         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16082       fi
16083       hardcode_libdir_flag_spec_F77='-R$libdir'
16084       hardcode_shlibpath_var_F77=no
16085       case $host_os in
16086       solaris2.[0-5] | solaris2.[0-5].*) ;;
16087       *)
16088         # The compiler driver will combine and reorder linker options,
16089         # but understands `-z linker_flag'.  GCC discards it without `$wl',
16090         # but is careful enough not to reorder.
16091         # Supported since Solaris 2.6 (maybe 2.5.1?)
16092         if test "$GCC" = yes; then
16093           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16094         else
16095           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
16096         fi
16097         ;;
16098       esac
16099       link_all_deplibs_F77=yes
16100       ;;
16101
16102     sunos4*)
16103       if test "x$host_vendor" = xsequent; then
16104         # Use $CC to link under sequent, because it throws in some extra .o
16105         # files that make .init and .fini sections work.
16106         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16107       else
16108         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16109       fi
16110       hardcode_libdir_flag_spec_F77='-L$libdir'
16111       hardcode_direct_F77=yes
16112       hardcode_minus_L_F77=yes
16113       hardcode_shlibpath_var_F77=no
16114       ;;
16115
16116     sysv4)
16117       case $host_vendor in
16118         sni)
16119           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16120           hardcode_direct_F77=yes # is this really true???
16121         ;;
16122         siemens)
16123           ## LD is ld it makes a PLAMLIB
16124           ## CC just makes a GrossModule.
16125           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16126           reload_cmds_F77='$CC -r -o $output$reload_objs'
16127           hardcode_direct_F77=no
16128         ;;
16129         motorola)
16130           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16131           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16132         ;;
16133       esac
16134       runpath_var='LD_RUN_PATH'
16135       hardcode_shlibpath_var_F77=no
16136       ;;
16137
16138     sysv4.3*)
16139       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16140       hardcode_shlibpath_var_F77=no
16141       export_dynamic_flag_spec_F77='-Bexport'
16142       ;;
16143
16144     sysv4*MP*)
16145       if test -d /usr/nec; then
16146         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16147         hardcode_shlibpath_var_F77=no
16148         runpath_var=LD_RUN_PATH
16149         hardcode_runpath_var=yes
16150         ld_shlibs_F77=yes
16151       fi
16152       ;;
16153
16154     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16155       no_undefined_flag_F77='${wl}-z,text'
16156       archive_cmds_need_lc_F77=no
16157       hardcode_shlibpath_var_F77=no
16158       runpath_var='LD_RUN_PATH'
16159
16160       if test "$GCC" = yes; then
16161         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16162         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16163       else
16164         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16165         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16166       fi
16167       ;;
16168
16169     sysv5* | sco3.2v5* | sco5v6*)
16170       # Note: We can NOT use -z defs as we might desire, because we do not
16171       # link with -lc, and that would cause any symbols used from libc to
16172       # always be unresolved, which means just about no library would
16173       # ever link correctly.  If we're not using GNU ld we use -z text
16174       # though, which does catch some bad symbols but isn't as heavy-handed
16175       # as -z defs.
16176       no_undefined_flag_F77='${wl}-z,text'
16177       allow_undefined_flag_F77='${wl}-z,nodefs'
16178       archive_cmds_need_lc_F77=no
16179       hardcode_shlibpath_var_F77=no
16180       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16181       hardcode_libdir_separator_F77=':'
16182       link_all_deplibs_F77=yes
16183       export_dynamic_flag_spec_F77='${wl}-Bexport'
16184       runpath_var='LD_RUN_PATH'
16185
16186       if test "$GCC" = yes; then
16187         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16188         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16189       else
16190         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16191         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16192       fi
16193       ;;
16194
16195     uts4*)
16196       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16197       hardcode_libdir_flag_spec_F77='-L$libdir'
16198       hardcode_shlibpath_var_F77=no
16199       ;;
16200
16201     *)
16202       ld_shlibs_F77=no
16203       ;;
16204     esac
16205   fi
16206
16207 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16208 $as_echo "$ld_shlibs_F77" >&6; }
16209 test "$ld_shlibs_F77" = no && can_build_shared=no
16210
16211 #
16212 # Do we need to explicitly link libc?
16213 #
16214 case "x$archive_cmds_need_lc_F77" in
16215 x|xyes)
16216   # Assume -lc should be added
16217   archive_cmds_need_lc_F77=yes
16218
16219   if test "$enable_shared" = yes && test "$GCC" = yes; then
16220     case $archive_cmds_F77 in
16221     *'~'*)
16222       # FIXME: we may have to deal with multi-command sequences.
16223       ;;
16224     '$CC '*)
16225       # Test whether the compiler implicitly links with -lc since on some
16226       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16227       # to ld, don't add -lc before -lgcc.
16228       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16229 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16230       $rm conftest*
16231       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16232
16233       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16234   (eval $ac_compile) 2>&5
16235   ac_status=$?
16236   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); } 2>conftest.err; then
16238         soname=conftest
16239         lib=conftest
16240         libobjs=conftest.$ac_objext
16241         deplibs=
16242         wl=$lt_prog_compiler_wl_F77
16243         pic_flag=$lt_prog_compiler_pic_F77
16244         compiler_flags=-v
16245         linker_flags=-v
16246         verstring=
16247         output_objdir=.
16248         libname=conftest
16249         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16250         allow_undefined_flag_F77=
16251         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16252   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16253   ac_status=$?
16254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255   (exit $ac_status); }
16256         then
16257           archive_cmds_need_lc_F77=no
16258         else
16259           archive_cmds_need_lc_F77=yes
16260         fi
16261         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16262       else
16263         cat conftest.err 1>&5
16264       fi
16265       $rm conftest*
16266       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16267 $as_echo "$archive_cmds_need_lc_F77" >&6; }
16268       ;;
16269     esac
16270   fi
16271   ;;
16272 esac
16273
16274 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16275 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16276 library_names_spec=
16277 libname_spec='lib$name'
16278 soname_spec=
16279 shrext_cmds=".so"
16280 postinstall_cmds=
16281 postuninstall_cmds=
16282 finish_cmds=
16283 finish_eval=
16284 shlibpath_var=
16285 shlibpath_overrides_runpath=unknown
16286 version_type=none
16287 dynamic_linker="$host_os ld.so"
16288 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16289
16290 need_lib_prefix=unknown
16291 hardcode_into_libs=no
16292
16293 # when you set need_version to no, make sure it does not cause -set_version
16294 # flags to be left without arguments
16295 need_version=unknown
16296
16297 case $host_os in
16298 aix3*)
16299   version_type=linux
16300   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16301   shlibpath_var=LIBPATH
16302
16303   # AIX 3 has no versioning support, so we append a major version to the name.
16304   soname_spec='${libname}${release}${shared_ext}$major'
16305   ;;
16306
16307 aix[4-9]*)
16308   version_type=linux
16309   need_lib_prefix=no
16310   need_version=no
16311   hardcode_into_libs=yes
16312   if test "$host_cpu" = ia64; then
16313     # AIX 5 supports IA64
16314     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16315     shlibpath_var=LD_LIBRARY_PATH
16316   else
16317     # With GCC up to 2.95.x, collect2 would create an import file
16318     # for dependence libraries.  The import file would start with
16319     # the line `#! .'.  This would cause the generated library to
16320     # depend on `.', always an invalid library.  This was fixed in
16321     # development snapshots of GCC prior to 3.0.
16322     case $host_os in
16323       aix4 | aix4.[01] | aix4.[01].*)
16324       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16325            echo ' yes '
16326            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16327         :
16328       else
16329         can_build_shared=no
16330       fi
16331       ;;
16332     esac
16333     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16334     # soname into executable. Probably we can add versioning support to
16335     # collect2, so additional links can be useful in future.
16336     if test "$aix_use_runtimelinking" = yes; then
16337       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16338       # instead of lib<name>.a to let people know that these are not
16339       # typical AIX shared libraries.
16340       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16341     else
16342       # We preserve .a as extension for shared libraries through AIX4.2
16343       # and later when we are not doing run time linking.
16344       library_names_spec='${libname}${release}.a $libname.a'
16345       soname_spec='${libname}${release}${shared_ext}$major'
16346     fi
16347     shlibpath_var=LIBPATH
16348   fi
16349   ;;
16350
16351 amigaos*)
16352   library_names_spec='$libname.ixlibrary $libname.a'
16353   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16354   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'
16355   ;;
16356
16357 beos*)
16358   library_names_spec='${libname}${shared_ext}'
16359   dynamic_linker="$host_os ld.so"
16360   shlibpath_var=LIBRARY_PATH
16361   ;;
16362
16363 bsdi[45]*)
16364   version_type=linux
16365   need_version=no
16366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16367   soname_spec='${libname}${release}${shared_ext}$major'
16368   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16369   shlibpath_var=LD_LIBRARY_PATH
16370   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16371   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16372   # the default ld.so.conf also contains /usr/contrib/lib and
16373   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16374   # libtool to hard-code these into programs
16375   ;;
16376
16377 cygwin* | mingw* | pw32*)
16378   version_type=windows
16379   shrext_cmds=".dll"
16380   need_version=no
16381   need_lib_prefix=no
16382
16383   case $GCC,$host_os in
16384   yes,cygwin* | yes,mingw* | yes,pw32*)
16385     library_names_spec='$libname.dll.a'
16386     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16387     postinstall_cmds='base_file=`basename \${file}`~
16388       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16389       dldir=$destdir/`dirname \$dlpath`~
16390       test -d \$dldir || mkdir -p \$dldir~
16391       $install_prog $dir/$dlname \$dldir/$dlname~
16392       chmod a+x \$dldir/$dlname'
16393     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16394       dlpath=$dir/\$dldll~
16395        $rm \$dlpath'
16396     shlibpath_overrides_runpath=yes
16397
16398     case $host_os in
16399     cygwin*)
16400       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16401       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16402       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16403       ;;
16404     mingw*)
16405       # MinGW DLLs use traditional 'lib' prefix
16406       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16407       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16408       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16409         # It is most probably a Windows format PATH printed by
16410         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16411         # path with ; separators, and with drive letters. We can handle the
16412         # drive letters (cygwin fileutils understands them), so leave them,
16413         # especially as we might pass files found there to a mingw objdump,
16414         # which wouldn't understand a cygwinified path. Ahh.
16415         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16416       else
16417         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16418       fi
16419       ;;
16420     pw32*)
16421       # pw32 DLLs use 'pw' prefix rather than 'lib'
16422       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16423       ;;
16424     esac
16425     ;;
16426
16427   *)
16428     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16429     ;;
16430   esac
16431   dynamic_linker='Win32 ld.exe'
16432   # FIXME: first we should search . and the directory the executable is in
16433   shlibpath_var=PATH
16434   ;;
16435
16436 darwin* | rhapsody*)
16437   dynamic_linker="$host_os dyld"
16438   version_type=darwin
16439   need_lib_prefix=no
16440   need_version=no
16441   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16442   soname_spec='${libname}${release}${major}$shared_ext'
16443   shlibpath_overrides_runpath=yes
16444   shlibpath_var=DYLD_LIBRARY_PATH
16445   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16446
16447   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16448   ;;
16449
16450 dgux*)
16451   version_type=linux
16452   need_lib_prefix=no
16453   need_version=no
16454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16455   soname_spec='${libname}${release}${shared_ext}$major'
16456   shlibpath_var=LD_LIBRARY_PATH
16457   ;;
16458
16459 freebsd1*)
16460   dynamic_linker=no
16461   ;;
16462
16463 freebsd* | dragonfly*)
16464   # DragonFly does not have aout.  When/if they implement a new
16465   # versioning mechanism, adjust this.
16466   if test -x /usr/bin/objformat; then
16467     objformat=`/usr/bin/objformat`
16468   else
16469     case $host_os in
16470     freebsd[123]*) objformat=aout ;;
16471     *) objformat=elf ;;
16472     esac
16473   fi
16474   version_type=freebsd-$objformat
16475   case $version_type in
16476     freebsd-elf*)
16477       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16478       need_version=no
16479       need_lib_prefix=no
16480       ;;
16481     freebsd-*)
16482       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16483       need_version=yes
16484       ;;
16485   esac
16486   shlibpath_var=LD_LIBRARY_PATH
16487   case $host_os in
16488   freebsd2*)
16489     shlibpath_overrides_runpath=yes
16490     ;;
16491   freebsd3.[01]* | freebsdelf3.[01]*)
16492     shlibpath_overrides_runpath=yes
16493     hardcode_into_libs=yes
16494     ;;
16495   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16496   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16497     shlibpath_overrides_runpath=no
16498     hardcode_into_libs=yes
16499     ;;
16500   *) # from 4.6 on, and DragonFly
16501     shlibpath_overrides_runpath=yes
16502     hardcode_into_libs=yes
16503     ;;
16504   esac
16505   ;;
16506
16507 gnu*)
16508   version_type=linux
16509   need_lib_prefix=no
16510   need_version=no
16511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16512   soname_spec='${libname}${release}${shared_ext}$major'
16513   shlibpath_var=LD_LIBRARY_PATH
16514   hardcode_into_libs=yes
16515   ;;
16516
16517 hpux9* | hpux10* | hpux11*)
16518   # Give a soname corresponding to the major version so that dld.sl refuses to
16519   # link against other versions.
16520   version_type=sunos
16521   need_lib_prefix=no
16522   need_version=no
16523   case $host_cpu in
16524   ia64*)
16525     shrext_cmds='.so'
16526     hardcode_into_libs=yes
16527     dynamic_linker="$host_os dld.so"
16528     shlibpath_var=LD_LIBRARY_PATH
16529     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16530     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16531     soname_spec='${libname}${release}${shared_ext}$major'
16532     if test "X$HPUX_IA64_MODE" = X32; then
16533       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16534     else
16535       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16536     fi
16537     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16538     ;;
16539    hppa*64*)
16540      shrext_cmds='.sl'
16541      hardcode_into_libs=yes
16542      dynamic_linker="$host_os dld.sl"
16543      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16544      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16545      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16546      soname_spec='${libname}${release}${shared_ext}$major'
16547      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16548      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16549      ;;
16550    *)
16551     shrext_cmds='.sl'
16552     dynamic_linker="$host_os dld.sl"
16553     shlibpath_var=SHLIB_PATH
16554     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556     soname_spec='${libname}${release}${shared_ext}$major'
16557     ;;
16558   esac
16559   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16560   postinstall_cmds='chmod 555 $lib'
16561   ;;
16562
16563 interix[3-9]*)
16564   version_type=linux
16565   need_lib_prefix=no
16566   need_version=no
16567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16568   soname_spec='${libname}${release}${shared_ext}$major'
16569   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16570   shlibpath_var=LD_LIBRARY_PATH
16571   shlibpath_overrides_runpath=no
16572   hardcode_into_libs=yes
16573   ;;
16574
16575 irix5* | irix6* | nonstopux*)
16576   case $host_os in
16577     nonstopux*) version_type=nonstopux ;;
16578     *)
16579         if test "$lt_cv_prog_gnu_ld" = yes; then
16580                 version_type=linux
16581         else
16582                 version_type=irix
16583         fi ;;
16584   esac
16585   need_lib_prefix=no
16586   need_version=no
16587   soname_spec='${libname}${release}${shared_ext}$major'
16588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16589   case $host_os in
16590   irix5* | nonstopux*)
16591     libsuff= shlibsuff=
16592     ;;
16593   *)
16594     case $LD in # libtool.m4 will add one of these switches to LD
16595     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16596       libsuff= shlibsuff= libmagic=32-bit;;
16597     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16598       libsuff=32 shlibsuff=N32 libmagic=N32;;
16599     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16600       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16601     *) libsuff= shlibsuff= libmagic=never-match;;
16602     esac
16603     ;;
16604   esac
16605   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16606   shlibpath_overrides_runpath=no
16607   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16608   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16609   hardcode_into_libs=yes
16610   ;;
16611
16612 # No shared lib support for Linux oldld, aout, or coff.
16613 linux*oldld* | linux*aout* | linux*coff*)
16614   dynamic_linker=no
16615   ;;
16616
16617 # This must be Linux ELF.
16618 linux* | k*bsd*-gnu)
16619   version_type=linux
16620   need_lib_prefix=no
16621   need_version=no
16622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623   soname_spec='${libname}${release}${shared_ext}$major'
16624   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16625   shlibpath_var=LD_LIBRARY_PATH
16626   shlibpath_overrides_runpath=no
16627   # This implies no fast_install, which is unacceptable.
16628   # Some rework will be needed to allow for fast_install
16629   # before this can be enabled.
16630   hardcode_into_libs=yes
16631   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16632   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16633
16634   # Append ld.so.conf contents to the search path
16635   if test -f /etc/ld.so.conf; then
16636     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' ' '`
16637     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16638   fi
16639
16640   # We used to test for /lib/ld.so.1 and disable shared libraries on
16641   # powerpc, because MkLinux only supported shared libraries with the
16642   # GNU dynamic linker.  Since this was broken with cross compilers,
16643   # most powerpc-linux boxes support dynamic linking these days and
16644   # people can always --disable-shared, the test was removed, and we
16645   # assume the GNU/Linux dynamic linker is in use.
16646   dynamic_linker='GNU/Linux ld.so'
16647   ;;
16648
16649 netbsd*)
16650   version_type=sunos
16651   need_lib_prefix=no
16652   need_version=no
16653   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16654     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16655     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16656     dynamic_linker='NetBSD (a.out) ld.so'
16657   else
16658     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16659     soname_spec='${libname}${release}${shared_ext}$major'
16660     dynamic_linker='NetBSD ld.elf_so'
16661   fi
16662   shlibpath_var=LD_LIBRARY_PATH
16663   shlibpath_overrides_runpath=yes
16664   hardcode_into_libs=yes
16665   ;;
16666
16667 newsos6)
16668   version_type=linux
16669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16670   shlibpath_var=LD_LIBRARY_PATH
16671   shlibpath_overrides_runpath=yes
16672   ;;
16673
16674 nto-qnx*)
16675   version_type=linux
16676   need_lib_prefix=no
16677   need_version=no
16678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16679   soname_spec='${libname}${release}${shared_ext}$major'
16680   shlibpath_var=LD_LIBRARY_PATH
16681   shlibpath_overrides_runpath=yes
16682   ;;
16683
16684 openbsd*)
16685   version_type=sunos
16686   sys_lib_dlsearch_path_spec="/usr/lib"
16687   need_lib_prefix=no
16688   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16689   case $host_os in
16690     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16691     *)                         need_version=no  ;;
16692   esac
16693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16694   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16695   shlibpath_var=LD_LIBRARY_PATH
16696   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16697     case $host_os in
16698       openbsd2.[89] | openbsd2.[89].*)
16699         shlibpath_overrides_runpath=no
16700         ;;
16701       *)
16702         shlibpath_overrides_runpath=yes
16703         ;;
16704       esac
16705   else
16706     shlibpath_overrides_runpath=yes
16707   fi
16708   ;;
16709
16710 os2*)
16711   libname_spec='$name'
16712   shrext_cmds=".dll"
16713   need_lib_prefix=no
16714   library_names_spec='$libname${shared_ext} $libname.a'
16715   dynamic_linker='OS/2 ld.exe'
16716   shlibpath_var=LIBPATH
16717   ;;
16718
16719 osf3* | osf4* | osf5*)
16720   version_type=osf
16721   need_lib_prefix=no
16722   need_version=no
16723   soname_spec='${libname}${release}${shared_ext}$major'
16724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16725   shlibpath_var=LD_LIBRARY_PATH
16726   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16727   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16728   ;;
16729
16730 rdos*)
16731   dynamic_linker=no
16732   ;;
16733
16734 solaris*)
16735   version_type=linux
16736   need_lib_prefix=no
16737   need_version=no
16738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16739   soname_spec='${libname}${release}${shared_ext}$major'
16740   shlibpath_var=LD_LIBRARY_PATH
16741   shlibpath_overrides_runpath=yes
16742   hardcode_into_libs=yes
16743   # ldd complains unless libraries are executable
16744   postinstall_cmds='chmod +x $lib'
16745   ;;
16746
16747 sunos4*)
16748   version_type=sunos
16749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16750   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16751   shlibpath_var=LD_LIBRARY_PATH
16752   shlibpath_overrides_runpath=yes
16753   if test "$with_gnu_ld" = yes; then
16754     need_lib_prefix=no
16755   fi
16756   need_version=yes
16757   ;;
16758
16759 sysv4 | sysv4.3*)
16760   version_type=linux
16761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16762   soname_spec='${libname}${release}${shared_ext}$major'
16763   shlibpath_var=LD_LIBRARY_PATH
16764   case $host_vendor in
16765     sni)
16766       shlibpath_overrides_runpath=no
16767       need_lib_prefix=no
16768       export_dynamic_flag_spec='${wl}-Blargedynsym'
16769       runpath_var=LD_RUN_PATH
16770       ;;
16771     siemens)
16772       need_lib_prefix=no
16773       ;;
16774     motorola)
16775       need_lib_prefix=no
16776       need_version=no
16777       shlibpath_overrides_runpath=no
16778       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16779       ;;
16780   esac
16781   ;;
16782
16783 sysv4*MP*)
16784   if test -d /usr/nec ;then
16785     version_type=linux
16786     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16787     soname_spec='$libname${shared_ext}.$major'
16788     shlibpath_var=LD_LIBRARY_PATH
16789   fi
16790   ;;
16791
16792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16793   version_type=freebsd-elf
16794   need_lib_prefix=no
16795   need_version=no
16796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16797   soname_spec='${libname}${release}${shared_ext}$major'
16798   shlibpath_var=LD_LIBRARY_PATH
16799   hardcode_into_libs=yes
16800   if test "$with_gnu_ld" = yes; then
16801     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16802     shlibpath_overrides_runpath=no
16803   else
16804     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16805     shlibpath_overrides_runpath=yes
16806     case $host_os in
16807       sco3.2v5*)
16808         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16809         ;;
16810     esac
16811   fi
16812   sys_lib_dlsearch_path_spec='/usr/lib'
16813   ;;
16814
16815 uts4*)
16816   version_type=linux
16817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16818   soname_spec='${libname}${release}${shared_ext}$major'
16819   shlibpath_var=LD_LIBRARY_PATH
16820   ;;
16821
16822 *)
16823   dynamic_linker=no
16824   ;;
16825 esac
16826 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16827 $as_echo "$dynamic_linker" >&6; }
16828 test "$dynamic_linker" = no && can_build_shared=no
16829
16830 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16831   $as_echo_n "(cached) " >&6
16832 else
16833   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16834 fi
16835
16836 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16837 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16838   $as_echo_n "(cached) " >&6
16839 else
16840   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16841 fi
16842
16843 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16844
16845 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16846 if test "$GCC" = yes; then
16847   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16848 fi
16849
16850 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16851 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16852 hardcode_action_F77=
16853 if test -n "$hardcode_libdir_flag_spec_F77" || \
16854    test -n "$runpath_var_F77" || \
16855    test "X$hardcode_automatic_F77" = "Xyes" ; then
16856
16857   # We can hardcode non-existant directories.
16858   if test "$hardcode_direct_F77" != no &&
16859      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16860      # have to relink, otherwise we might link with an installed library
16861      # when we should be linking with a yet-to-be-installed one
16862      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16863      test "$hardcode_minus_L_F77" != no; then
16864     # Linking always hardcodes the temporary library directory.
16865     hardcode_action_F77=relink
16866   else
16867     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16868     hardcode_action_F77=immediate
16869   fi
16870 else
16871   # We cannot hardcode anything, or else we can only hardcode existing
16872   # directories.
16873   hardcode_action_F77=unsupported
16874 fi
16875 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16876 $as_echo "$hardcode_action_F77" >&6; }
16877
16878 if test "$hardcode_action_F77" = relink; then
16879   # Fast installation is not supported
16880   enable_fast_install=no
16881 elif test "$shlibpath_overrides_runpath" = yes ||
16882      test "$enable_shared" = no; then
16883   # Fast installation is not necessary
16884   enable_fast_install=needless
16885 fi
16886
16887
16888 # The else clause should only fire when bootstrapping the
16889 # libtool distribution, otherwise you forgot to ship ltmain.sh
16890 # with your package, and you will get complaints that there are
16891 # no rules to generate ltmain.sh.
16892 if test -f "$ltmain"; then
16893   # See if we are running on zsh, and set the options which allow our commands through
16894   # without removal of \ escapes.
16895   if test -n "${ZSH_VERSION+set}" ; then
16896     setopt NO_GLOB_SUBST
16897   fi
16898   # Now quote all the things that may contain metacharacters while being
16899   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16900   # variables and quote the copies for generation of the libtool script.
16901   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16902     SED SHELL STRIP \
16903     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16904     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16905     deplibs_check_method reload_flag reload_cmds need_locks \
16906     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16907     lt_cv_sys_global_symbol_to_c_name_address \
16908     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16909     old_postinstall_cmds old_postuninstall_cmds \
16910     compiler_F77 \
16911     CC_F77 \
16912     LD_F77 \
16913     lt_prog_compiler_wl_F77 \
16914     lt_prog_compiler_pic_F77 \
16915     lt_prog_compiler_static_F77 \
16916     lt_prog_compiler_no_builtin_flag_F77 \
16917     export_dynamic_flag_spec_F77 \
16918     thread_safe_flag_spec_F77 \
16919     whole_archive_flag_spec_F77 \
16920     enable_shared_with_static_runtimes_F77 \
16921     old_archive_cmds_F77 \
16922     old_archive_from_new_cmds_F77 \
16923     predep_objects_F77 \
16924     postdep_objects_F77 \
16925     predeps_F77 \
16926     postdeps_F77 \
16927     compiler_lib_search_path_F77 \
16928     compiler_lib_search_dirs_F77 \
16929     archive_cmds_F77 \
16930     archive_expsym_cmds_F77 \
16931     postinstall_cmds_F77 \
16932     postuninstall_cmds_F77 \
16933     old_archive_from_expsyms_cmds_F77 \
16934     allow_undefined_flag_F77 \
16935     no_undefined_flag_F77 \
16936     export_symbols_cmds_F77 \
16937     hardcode_libdir_flag_spec_F77 \
16938     hardcode_libdir_flag_spec_ld_F77 \
16939     hardcode_libdir_separator_F77 \
16940     hardcode_automatic_F77 \
16941     module_cmds_F77 \
16942     module_expsym_cmds_F77 \
16943     lt_cv_prog_compiler_c_o_F77 \
16944     fix_srcfile_path_F77 \
16945     exclude_expsyms_F77 \
16946     include_expsyms_F77; do
16947
16948     case $var in
16949     old_archive_cmds_F77 | \
16950     old_archive_from_new_cmds_F77 | \
16951     archive_cmds_F77 | \
16952     archive_expsym_cmds_F77 | \
16953     module_cmds_F77 | \
16954     module_expsym_cmds_F77 | \
16955     old_archive_from_expsyms_cmds_F77 | \
16956     export_symbols_cmds_F77 | \
16957     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16958     postinstall_cmds | postuninstall_cmds | \
16959     old_postinstall_cmds | old_postuninstall_cmds | \
16960     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16961       # Double-quote double-evaled strings.
16962       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16963       ;;
16964     *)
16965       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16966       ;;
16967     esac
16968   done
16969
16970   case $lt_echo in
16971   *'\$0 --fallback-echo"')
16972     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16973     ;;
16974   esac
16975
16976 cfgfile="$ofile"
16977
16978   cat <<__EOF__ >> "$cfgfile"
16979 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16980
16981 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16982
16983 # Shell to use when invoking shell scripts.
16984 SHELL=$lt_SHELL
16985
16986 # Whether or not to build shared libraries.
16987 build_libtool_libs=$enable_shared
16988
16989 # Whether or not to build static libraries.
16990 build_old_libs=$enable_static
16991
16992 # Whether or not to add -lc for building shared libraries.
16993 build_libtool_need_lc=$archive_cmds_need_lc_F77
16994
16995 # Whether or not to disallow shared libs when runtime libs are static
16996 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16997
16998 # Whether or not to optimize for fast installation.
16999 fast_install=$enable_fast_install
17000
17001 # The host system.
17002 host_alias=$host_alias
17003 host=$host
17004 host_os=$host_os
17005
17006 # The build system.
17007 build_alias=$build_alias
17008 build=$build
17009 build_os=$build_os
17010
17011 # An echo program that does not interpret backslashes.
17012 echo=$lt_echo
17013
17014 # The archiver.
17015 AR=$lt_AR
17016 AR_FLAGS=$lt_AR_FLAGS
17017
17018 # A C compiler.
17019 LTCC=$lt_LTCC
17020
17021 # LTCC compiler flags.
17022 LTCFLAGS=$lt_LTCFLAGS
17023
17024 # A language-specific compiler.
17025 CC=$lt_compiler_F77
17026
17027 # Is the compiler the GNU C compiler?
17028 with_gcc=$GCC_F77
17029
17030 # An ERE matcher.
17031 EGREP=$lt_EGREP
17032
17033 # The linker used to build libraries.
17034 LD=$lt_LD_F77
17035
17036 # Whether we need hard or soft links.
17037 LN_S=$lt_LN_S
17038
17039 # A BSD-compatible nm program.
17040 NM=$lt_NM
17041
17042 # A symbol stripping program
17043 STRIP=$lt_STRIP
17044
17045 # Used to examine libraries when file_magic_cmd begins "file"
17046 MAGIC_CMD=$MAGIC_CMD
17047
17048 # Used on cygwin: DLL creation program.
17049 DLLTOOL="$DLLTOOL"
17050
17051 # Used on cygwin: object dumper.
17052 OBJDUMP="$OBJDUMP"
17053
17054 # Used on cygwin: assembler.
17055 AS="$AS"
17056
17057 # The name of the directory that contains temporary libtool files.
17058 objdir=$objdir
17059
17060 # How to create reloadable object files.
17061 reload_flag=$lt_reload_flag
17062 reload_cmds=$lt_reload_cmds
17063
17064 # How to pass a linker flag through the compiler.
17065 wl=$lt_lt_prog_compiler_wl_F77
17066
17067 # Object file suffix (normally "o").
17068 objext="$ac_objext"
17069
17070 # Old archive suffix (normally "a").
17071 libext="$libext"
17072
17073 # Shared library suffix (normally ".so").
17074 shrext_cmds='$shrext_cmds'
17075
17076 # Executable file suffix (normally "").
17077 exeext="$exeext"
17078
17079 # Additional compiler flags for building library objects.
17080 pic_flag=$lt_lt_prog_compiler_pic_F77
17081 pic_mode=$pic_mode
17082
17083 # What is the maximum length of a command?
17084 max_cmd_len=$lt_cv_sys_max_cmd_len
17085
17086 # Does compiler simultaneously support -c and -o options?
17087 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17088
17089 # Must we lock files when doing compilation?
17090 need_locks=$lt_need_locks
17091
17092 # Do we need the lib prefix for modules?
17093 need_lib_prefix=$need_lib_prefix
17094
17095 # Do we need a version for libraries?
17096 need_version=$need_version
17097
17098 # Whether dlopen is supported.
17099 dlopen_support=$enable_dlopen
17100
17101 # Whether dlopen of programs is supported.
17102 dlopen_self=$enable_dlopen_self
17103
17104 # Whether dlopen of statically linked programs is supported.
17105 dlopen_self_static=$enable_dlopen_self_static
17106
17107 # Compiler flag to prevent dynamic linking.
17108 link_static_flag=$lt_lt_prog_compiler_static_F77
17109
17110 # Compiler flag to turn off builtin functions.
17111 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17112
17113 # Compiler flag to allow reflexive dlopens.
17114 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17115
17116 # Compiler flag to generate shared objects directly from archives.
17117 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17118
17119 # Compiler flag to generate thread-safe objects.
17120 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17121
17122 # Library versioning type.
17123 version_type=$version_type
17124
17125 # Format of library name prefix.
17126 libname_spec=$lt_libname_spec
17127
17128 # List of archive names.  First name is the real one, the rest are links.
17129 # The last name is the one that the linker finds with -lNAME.
17130 library_names_spec=$lt_library_names_spec
17131
17132 # The coded name of the library, if different from the real name.
17133 soname_spec=$lt_soname_spec
17134
17135 # Commands used to build and install an old-style archive.
17136 RANLIB=$lt_RANLIB
17137 old_archive_cmds=$lt_old_archive_cmds_F77
17138 old_postinstall_cmds=$lt_old_postinstall_cmds
17139 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17140
17141 # Create an old-style archive from a shared archive.
17142 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17143
17144 # Create a temporary old-style archive to link instead of a shared archive.
17145 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17146
17147 # Commands used to build and install a shared archive.
17148 archive_cmds=$lt_archive_cmds_F77
17149 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17150 postinstall_cmds=$lt_postinstall_cmds
17151 postuninstall_cmds=$lt_postuninstall_cmds
17152
17153 # Commands used to build a loadable module (assumed same as above if empty)
17154 module_cmds=$lt_module_cmds_F77
17155 module_expsym_cmds=$lt_module_expsym_cmds_F77
17156
17157 # Commands to strip libraries.
17158 old_striplib=$lt_old_striplib
17159 striplib=$lt_striplib
17160
17161 # Dependencies to place before the objects being linked to create a
17162 # shared library.
17163 predep_objects=$lt_predep_objects_F77
17164
17165 # Dependencies to place after the objects being linked to create a
17166 # shared library.
17167 postdep_objects=$lt_postdep_objects_F77
17168
17169 # Dependencies to place before the objects being linked to create a
17170 # shared library.
17171 predeps=$lt_predeps_F77
17172
17173 # Dependencies to place after the objects being linked to create a
17174 # shared library.
17175 postdeps=$lt_postdeps_F77
17176
17177 # The directories searched by this compiler when creating a shared
17178 # library
17179 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
17180
17181 # The library search path used internally by the compiler when linking
17182 # a shared library.
17183 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17184
17185 # Method to check whether dependent libraries are shared objects.
17186 deplibs_check_method=$lt_deplibs_check_method
17187
17188 # Command to use when deplibs_check_method == file_magic.
17189 file_magic_cmd=$lt_file_magic_cmd
17190
17191 # Flag that allows shared libraries with undefined symbols to be built.
17192 allow_undefined_flag=$lt_allow_undefined_flag_F77
17193
17194 # Flag that forces no undefined symbols.
17195 no_undefined_flag=$lt_no_undefined_flag_F77
17196
17197 # Commands used to finish a libtool library installation in a directory.
17198 finish_cmds=$lt_finish_cmds
17199
17200 # Same as above, but a single script fragment to be evaled but not shown.
17201 finish_eval=$lt_finish_eval
17202
17203 # Take the output of nm and produce a listing of raw symbols and C names.
17204 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17205
17206 # Transform the output of nm in a proper C declaration
17207 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17208
17209 # Transform the output of nm in a C name address pair
17210 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17211
17212 # This is the shared library runtime path variable.
17213 runpath_var=$runpath_var
17214
17215 # This is the shared library path variable.
17216 shlibpath_var=$shlibpath_var
17217
17218 # Is shlibpath searched before the hard-coded library search path?
17219 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17220
17221 # How to hardcode a shared library path into an executable.
17222 hardcode_action=$hardcode_action_F77
17223
17224 # Whether we should hardcode library paths into libraries.
17225 hardcode_into_libs=$hardcode_into_libs
17226
17227 # Flag to hardcode \$libdir into a binary during linking.
17228 # This must work even if \$libdir does not exist.
17229 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17230
17231 # If ld is used when linking, flag to hardcode \$libdir into
17232 # a binary during linking. This must work even if \$libdir does
17233 # not exist.
17234 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17235
17236 # Whether we need a single -rpath flag with a separated argument.
17237 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17238
17239 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17240 # resulting binary.
17241 hardcode_direct=$hardcode_direct_F77
17242
17243 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17244 # resulting binary.
17245 hardcode_minus_L=$hardcode_minus_L_F77
17246
17247 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17248 # the resulting binary.
17249 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17250
17251 # Set to yes if building a shared library automatically hardcodes DIR into the library
17252 # and all subsequent libraries and executables linked against it.
17253 hardcode_automatic=$hardcode_automatic_F77
17254
17255 # Variables whose values should be saved in libtool wrapper scripts and
17256 # restored at relink time.
17257 variables_saved_for_relink="$variables_saved_for_relink"
17258
17259 # Whether libtool must link a program against all its dependency libraries.
17260 link_all_deplibs=$link_all_deplibs_F77
17261
17262 # Compile-time system search path for libraries
17263 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17264
17265 # Run-time system search path for libraries
17266 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17267
17268 # Fix the shell variable \$srcfile for the compiler.
17269 fix_srcfile_path=$lt_fix_srcfile_path
17270
17271 # Set to yes if exported symbols are required.
17272 always_export_symbols=$always_export_symbols_F77
17273
17274 # The commands to list exported symbols.
17275 export_symbols_cmds=$lt_export_symbols_cmds_F77
17276
17277 # The commands to extract the exported symbol list from a shared archive.
17278 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17279
17280 # Symbols that should not be listed in the preloaded symbols.
17281 exclude_expsyms=$lt_exclude_expsyms_F77
17282
17283 # Symbols that must always be exported.
17284 include_expsyms=$lt_include_expsyms_F77
17285
17286 # ### END LIBTOOL TAG CONFIG: $tagname
17287
17288 __EOF__
17289
17290
17291 else
17292   # If there is no Makefile yet, we rely on a make rule to execute
17293   # `config.status --recheck' to rerun these tests and create the
17294   # libtool script then.
17295   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17296   if test -f "$ltmain_in"; then
17297     test -f Makefile && make "$ltmain"
17298   fi
17299 fi
17300
17301
17302 ac_ext=c
17303 ac_cpp='$CPP $CPPFLAGS'
17304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17307
17308 CC="$lt_save_CC"
17309
17310         else
17311           tagname=""
17312         fi
17313         ;;
17314
17315       GCJ)
17316         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17317
17318
17319 # Source file extension for Java test sources.
17320 ac_ext=java
17321
17322 # Object file extension for compiled Java test sources.
17323 objext=o
17324 objext_GCJ=$objext
17325
17326 # Code to be used in simple compile tests
17327 lt_simple_compile_test_code="class foo {}"
17328
17329 # Code to be used in simple link tests
17330 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17331
17332 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17333
17334 # If no C compiler was specified, use CC.
17335 LTCC=${LTCC-"$CC"}
17336
17337 # If no C compiler flags were specified, use CFLAGS.
17338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17339
17340 # Allow CC to be a program name with arguments.
17341 compiler=$CC
17342
17343
17344 # save warnings/boilerplate of simple test code
17345 ac_outfile=conftest.$ac_objext
17346 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17347 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17348 _lt_compiler_boilerplate=`cat conftest.err`
17349 $rm conftest*
17350
17351 ac_outfile=conftest.$ac_objext
17352 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17353 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17354 _lt_linker_boilerplate=`cat conftest.err`
17355 $rm -r conftest*
17356
17357
17358 # Allow CC to be a program name with arguments.
17359 lt_save_CC="$CC"
17360 CC=${GCJ-"gcj"}
17361 compiler=$CC
17362 compiler_GCJ=$CC
17363 for cc_temp in $compiler""; do
17364   case $cc_temp in
17365     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17366     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17367     \-*) ;;
17368     *) break;;
17369   esac
17370 done
17371 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17372
17373
17374 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17375 archive_cmds_need_lc_GCJ=no
17376
17377 old_archive_cmds_GCJ=$old_archive_cmds
17378
17379
17380 lt_prog_compiler_no_builtin_flag_GCJ=
17381
17382 if test "$GCC" = yes; then
17383   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17384
17385
17386 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17387 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17388 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17389   $as_echo_n "(cached) " >&6
17390 else
17391   lt_cv_prog_compiler_rtti_exceptions=no
17392   ac_outfile=conftest.$ac_objext
17393    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17394    lt_compiler_flag="-fno-rtti -fno-exceptions"
17395    # Insert the option either (1) after the last *FLAGS variable, or
17396    # (2) before a word containing "conftest.", or (3) at the end.
17397    # Note that $ac_compile itself does not contain backslashes and begins
17398    # with a dollar sign (not a hyphen), so the echo should work correctly.
17399    # The option is referenced via a variable to avoid confusing sed.
17400    lt_compile=`echo "$ac_compile" | $SED \
17401    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17402    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17403    -e 's:$: $lt_compiler_flag:'`
17404    (eval echo "\"\$as_me:17404: $lt_compile\"" >&5)
17405    (eval "$lt_compile" 2>conftest.err)
17406    ac_status=$?
17407    cat conftest.err >&5
17408    echo "$as_me:17408: \$? = $ac_status" >&5
17409    if (exit $ac_status) && test -s "$ac_outfile"; then
17410      # The compiler can only warn and ignore the option if not recognized
17411      # So say no if there are warnings other than the usual output.
17412      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17413      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17414      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17415        lt_cv_prog_compiler_rtti_exceptions=yes
17416      fi
17417    fi
17418    $rm conftest*
17419
17420 fi
17421 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17422 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17423
17424 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17425     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17426 else
17427     :
17428 fi
17429
17430 fi
17431
17432 lt_prog_compiler_wl_GCJ=
17433 lt_prog_compiler_pic_GCJ=
17434 lt_prog_compiler_static_GCJ=
17435
17436 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17437 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17438
17439   if test "$GCC" = yes; then
17440     lt_prog_compiler_wl_GCJ='-Wl,'
17441     lt_prog_compiler_static_GCJ='-static'
17442
17443     case $host_os in
17444       aix*)
17445       # All AIX code is PIC.
17446       if test "$host_cpu" = ia64; then
17447         # AIX 5 now supports IA64 processor
17448         lt_prog_compiler_static_GCJ='-Bstatic'
17449       fi
17450       ;;
17451
17452     amigaos*)
17453       # FIXME: we need at least 68020 code to build shared libraries, but
17454       # adding the `-m68020' flag to GCC prevents building anything better,
17455       # like `-m68040'.
17456       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17457       ;;
17458
17459     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17460       # PIC is the default for these OSes.
17461       ;;
17462
17463     mingw* | cygwin* | pw32* | os2*)
17464       # This hack is so that the source file can tell whether it is being
17465       # built for inclusion in a dll (and should export symbols for example).
17466       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17467       # (--disable-auto-import) libraries
17468
17469       ;;
17470
17471     darwin* | rhapsody*)
17472       # PIC is the default on this platform
17473       # Common symbols not allowed in MH_DYLIB files
17474       lt_prog_compiler_pic_GCJ='-fno-common'
17475       ;;
17476
17477     interix[3-9]*)
17478       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17479       # Instead, we relocate shared libraries at runtime.
17480       ;;
17481
17482     msdosdjgpp*)
17483       # Just because we use GCC doesn't mean we suddenly get shared libraries
17484       # on systems that don't support them.
17485       lt_prog_compiler_can_build_shared_GCJ=no
17486       enable_shared=no
17487       ;;
17488
17489     sysv4*MP*)
17490       if test -d /usr/nec; then
17491         lt_prog_compiler_pic_GCJ=-Kconform_pic
17492       fi
17493       ;;
17494
17495     hpux*)
17496       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17497       # not for PA HP-UX.
17498       case $host_cpu in
17499       hppa*64*|ia64*)
17500         # +Z the default
17501         ;;
17502       *)
17503         lt_prog_compiler_pic_GCJ='-fPIC'
17504         ;;
17505       esac
17506       ;;
17507
17508     *)
17509       lt_prog_compiler_pic_GCJ='-fPIC'
17510       ;;
17511     esac
17512   else
17513     # PORTME Check for flag to pass linker flags through the system compiler.
17514     case $host_os in
17515     aix*)
17516       lt_prog_compiler_wl_GCJ='-Wl,'
17517       if test "$host_cpu" = ia64; then
17518         # AIX 5 now supports IA64 processor
17519         lt_prog_compiler_static_GCJ='-Bstatic'
17520       else
17521         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17522       fi
17523       ;;
17524       darwin*)
17525         # PIC is the default on this platform
17526         # Common symbols not allowed in MH_DYLIB files
17527        case $cc_basename in
17528          xlc*)
17529          lt_prog_compiler_pic_GCJ='-qnocommon'
17530          lt_prog_compiler_wl_GCJ='-Wl,'
17531          ;;
17532        esac
17533        ;;
17534
17535     mingw* | cygwin* | pw32* | os2*)
17536       # This hack is so that the source file can tell whether it is being
17537       # built for inclusion in a dll (and should export symbols for example).
17538
17539       ;;
17540
17541     hpux9* | hpux10* | hpux11*)
17542       lt_prog_compiler_wl_GCJ='-Wl,'
17543       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17544       # not for PA HP-UX.
17545       case $host_cpu in
17546       hppa*64*|ia64*)
17547         # +Z the default
17548         ;;
17549       *)
17550         lt_prog_compiler_pic_GCJ='+Z'
17551         ;;
17552       esac
17553       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17554       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17555       ;;
17556
17557     irix5* | irix6* | nonstopux*)
17558       lt_prog_compiler_wl_GCJ='-Wl,'
17559       # PIC (with -KPIC) is the default.
17560       lt_prog_compiler_static_GCJ='-non_shared'
17561       ;;
17562
17563     newsos6)
17564       lt_prog_compiler_pic_GCJ='-KPIC'
17565       lt_prog_compiler_static_GCJ='-Bstatic'
17566       ;;
17567
17568     linux* | k*bsd*-gnu)
17569       case $cc_basename in
17570       icc* | ecc*)
17571         lt_prog_compiler_wl_GCJ='-Wl,'
17572         lt_prog_compiler_pic_GCJ='-KPIC'
17573         lt_prog_compiler_static_GCJ='-static'
17574         ;;
17575       pgcc* | pgf77* | pgf90* | pgf95*)
17576         # Portland Group compilers (*not* the Pentium gcc compiler,
17577         # which looks to be a dead project)
17578         lt_prog_compiler_wl_GCJ='-Wl,'
17579         lt_prog_compiler_pic_GCJ='-fpic'
17580         lt_prog_compiler_static_GCJ='-Bstatic'
17581         ;;
17582       ccc*)
17583         lt_prog_compiler_wl_GCJ='-Wl,'
17584         # All Alpha code is PIC.
17585         lt_prog_compiler_static_GCJ='-non_shared'
17586         ;;
17587       *)
17588         case `$CC -V 2>&1 | sed 5q` in
17589         *Sun\ C*)
17590           # Sun C 5.9
17591           lt_prog_compiler_pic_GCJ='-KPIC'
17592           lt_prog_compiler_static_GCJ='-Bstatic'
17593           lt_prog_compiler_wl_GCJ='-Wl,'
17594           ;;
17595         *Sun\ F*)
17596           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17597           lt_prog_compiler_pic_GCJ='-KPIC'
17598           lt_prog_compiler_static_GCJ='-Bstatic'
17599           lt_prog_compiler_wl_GCJ=''
17600           ;;
17601         esac
17602         ;;
17603       esac
17604       ;;
17605
17606     osf3* | osf4* | osf5*)
17607       lt_prog_compiler_wl_GCJ='-Wl,'
17608       # All OSF/1 code is PIC.
17609       lt_prog_compiler_static_GCJ='-non_shared'
17610       ;;
17611
17612     rdos*)
17613       lt_prog_compiler_static_GCJ='-non_shared'
17614       ;;
17615
17616     solaris*)
17617       lt_prog_compiler_pic_GCJ='-KPIC'
17618       lt_prog_compiler_static_GCJ='-Bstatic'
17619       case $cc_basename in
17620       f77* | f90* | f95*)
17621         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17622       *)
17623         lt_prog_compiler_wl_GCJ='-Wl,';;
17624       esac
17625       ;;
17626
17627     sunos4*)
17628       lt_prog_compiler_wl_GCJ='-Qoption ld '
17629       lt_prog_compiler_pic_GCJ='-PIC'
17630       lt_prog_compiler_static_GCJ='-Bstatic'
17631       ;;
17632
17633     sysv4 | sysv4.2uw2* | sysv4.3*)
17634       lt_prog_compiler_wl_GCJ='-Wl,'
17635       lt_prog_compiler_pic_GCJ='-KPIC'
17636       lt_prog_compiler_static_GCJ='-Bstatic'
17637       ;;
17638
17639     sysv4*MP*)
17640       if test -d /usr/nec ;then
17641         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17642         lt_prog_compiler_static_GCJ='-Bstatic'
17643       fi
17644       ;;
17645
17646     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17647       lt_prog_compiler_wl_GCJ='-Wl,'
17648       lt_prog_compiler_pic_GCJ='-KPIC'
17649       lt_prog_compiler_static_GCJ='-Bstatic'
17650       ;;
17651
17652     unicos*)
17653       lt_prog_compiler_wl_GCJ='-Wl,'
17654       lt_prog_compiler_can_build_shared_GCJ=no
17655       ;;
17656
17657     uts4*)
17658       lt_prog_compiler_pic_GCJ='-pic'
17659       lt_prog_compiler_static_GCJ='-Bstatic'
17660       ;;
17661
17662     *)
17663       lt_prog_compiler_can_build_shared_GCJ=no
17664       ;;
17665     esac
17666   fi
17667
17668 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17669 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17670
17671 #
17672 # Check to make sure the PIC flag actually works.
17673 #
17674 if test -n "$lt_prog_compiler_pic_GCJ"; then
17675
17676 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17677 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17678 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17679   $as_echo_n "(cached) " >&6
17680 else
17681   lt_cv_prog_compiler_pic_works_GCJ=no
17682   ac_outfile=conftest.$ac_objext
17683    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17684    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17685    # Insert the option either (1) after the last *FLAGS variable, or
17686    # (2) before a word containing "conftest.", or (3) at the end.
17687    # Note that $ac_compile itself does not contain backslashes and begins
17688    # with a dollar sign (not a hyphen), so the echo should work correctly.
17689    # The option is referenced via a variable to avoid confusing sed.
17690    lt_compile=`echo "$ac_compile" | $SED \
17691    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17692    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17693    -e 's:$: $lt_compiler_flag:'`
17694    (eval echo "\"\$as_me:17694: $lt_compile\"" >&5)
17695    (eval "$lt_compile" 2>conftest.err)
17696    ac_status=$?
17697    cat conftest.err >&5
17698    echo "$as_me:17698: \$? = $ac_status" >&5
17699    if (exit $ac_status) && test -s "$ac_outfile"; then
17700      # The compiler can only warn and ignore the option if not recognized
17701      # So say no if there are warnings other than the usual output.
17702      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17703      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17704      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17705        lt_cv_prog_compiler_pic_works_GCJ=yes
17706      fi
17707    fi
17708    $rm conftest*
17709
17710 fi
17711 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17712 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17713
17714 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17715     case $lt_prog_compiler_pic_GCJ in
17716      "" | " "*) ;;
17717      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17718      esac
17719 else
17720     lt_prog_compiler_pic_GCJ=
17721      lt_prog_compiler_can_build_shared_GCJ=no
17722 fi
17723
17724 fi
17725 case $host_os in
17726   # For platforms which do not support PIC, -DPIC is meaningless:
17727   *djgpp*)
17728     lt_prog_compiler_pic_GCJ=
17729     ;;
17730   *)
17731     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17732     ;;
17733 esac
17734
17735 #
17736 # Check to make sure the static flag actually works.
17737 #
17738 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17739 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17740 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17741 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17742   $as_echo_n "(cached) " >&6
17743 else
17744   lt_cv_prog_compiler_static_works_GCJ=no
17745    save_LDFLAGS="$LDFLAGS"
17746    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17747    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17748    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17749      # The linker can only warn and ignore the option if not recognized
17750      # So say no if there are warnings
17751      if test -s conftest.err; then
17752        # Append any errors to the config.log.
17753        cat conftest.err 1>&5
17754        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17755        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17756        if diff conftest.exp conftest.er2 >/dev/null; then
17757          lt_cv_prog_compiler_static_works_GCJ=yes
17758        fi
17759      else
17760        lt_cv_prog_compiler_static_works_GCJ=yes
17761      fi
17762    fi
17763    $rm -r conftest*
17764    LDFLAGS="$save_LDFLAGS"
17765
17766 fi
17767 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17768 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17769
17770 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17771     :
17772 else
17773     lt_prog_compiler_static_GCJ=
17774 fi
17775
17776
17777 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17778 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17779 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17780   $as_echo_n "(cached) " >&6
17781 else
17782   lt_cv_prog_compiler_c_o_GCJ=no
17783    $rm -r conftest 2>/dev/null
17784    mkdir conftest
17785    cd conftest
17786    mkdir out
17787    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17788
17789    lt_compiler_flag="-o out/conftest2.$ac_objext"
17790    # Insert the option either (1) after the last *FLAGS variable, or
17791    # (2) before a word containing "conftest.", or (3) at the end.
17792    # Note that $ac_compile itself does not contain backslashes and begins
17793    # with a dollar sign (not a hyphen), so the echo should work correctly.
17794    lt_compile=`echo "$ac_compile" | $SED \
17795    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17797    -e 's:$: $lt_compiler_flag:'`
17798    (eval echo "\"\$as_me:17798: $lt_compile\"" >&5)
17799    (eval "$lt_compile" 2>out/conftest.err)
17800    ac_status=$?
17801    cat out/conftest.err >&5
17802    echo "$as_me:17802: \$? = $ac_status" >&5
17803    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17804    then
17805      # The compiler can only warn and ignore the option if not recognized
17806      # So say no if there are warnings
17807      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17808      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17809      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17810        lt_cv_prog_compiler_c_o_GCJ=yes
17811      fi
17812    fi
17813    chmod u+w . 2>&5
17814    $rm conftest*
17815    # SGI C++ compiler will create directory out/ii_files/ for
17816    # template instantiation
17817    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17818    $rm out/* && rmdir out
17819    cd ..
17820    rmdir conftest
17821    $rm conftest*
17822
17823 fi
17824 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17825 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17826
17827
17828 hard_links="nottested"
17829 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17830   # do not overwrite the value of need_locks provided by the user
17831   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17832 $as_echo_n "checking if we can lock with hard links... " >&6; }
17833   hard_links=yes
17834   $rm conftest*
17835   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17836   touch conftest.a
17837   ln conftest.a conftest.b 2>&5 || hard_links=no
17838   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17839   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17840 $as_echo "$hard_links" >&6; }
17841   if test "$hard_links" = no; then
17842     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17843 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17844     need_locks=warn
17845   fi
17846 else
17847   need_locks=no
17848 fi
17849
17850 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17851 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17852
17853   runpath_var=
17854   allow_undefined_flag_GCJ=
17855   enable_shared_with_static_runtimes_GCJ=no
17856   archive_cmds_GCJ=
17857   archive_expsym_cmds_GCJ=
17858   old_archive_From_new_cmds_GCJ=
17859   old_archive_from_expsyms_cmds_GCJ=
17860   export_dynamic_flag_spec_GCJ=
17861   whole_archive_flag_spec_GCJ=
17862   thread_safe_flag_spec_GCJ=
17863   hardcode_libdir_flag_spec_GCJ=
17864   hardcode_libdir_flag_spec_ld_GCJ=
17865   hardcode_libdir_separator_GCJ=
17866   hardcode_direct_GCJ=no
17867   hardcode_minus_L_GCJ=no
17868   hardcode_shlibpath_var_GCJ=unsupported
17869   link_all_deplibs_GCJ=unknown
17870   hardcode_automatic_GCJ=no
17871   module_cmds_GCJ=
17872   module_expsym_cmds_GCJ=
17873   always_export_symbols_GCJ=no
17874   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17875   # include_expsyms should be a list of space-separated symbols to be *always*
17876   # included in the symbol list
17877   include_expsyms_GCJ=
17878   # exclude_expsyms can be an extended regexp of symbols to exclude
17879   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17880   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17881   # as well as any symbol that contains `d'.
17882   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17883   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17884   # platforms (ab)use it in PIC code, but their linkers get confused if
17885   # the symbol is explicitly referenced.  Since portable code cannot
17886   # rely on this symbol name, it's probably fine to never include it in
17887   # preloaded symbol tables.
17888   # Exclude shared library initialization/finalization symbols.
17889   extract_expsyms_cmds=
17890   # Just being paranoid about ensuring that cc_basename is set.
17891   for cc_temp in $compiler""; do
17892   case $cc_temp in
17893     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17894     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17895     \-*) ;;
17896     *) break;;
17897   esac
17898 done
17899 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17900
17901   case $host_os in
17902   cygwin* | mingw* | pw32*)
17903     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17904     # When not using gcc, we currently assume that we are using
17905     # Microsoft Visual C++.
17906     if test "$GCC" != yes; then
17907       with_gnu_ld=no
17908     fi
17909     ;;
17910   interix*)
17911     # we just hope/assume this is gcc and not c89 (= MSVC++)
17912     with_gnu_ld=yes
17913     ;;
17914   openbsd*)
17915     with_gnu_ld=no
17916     ;;
17917   esac
17918
17919   ld_shlibs_GCJ=yes
17920   if test "$with_gnu_ld" = yes; then
17921     # If archive_cmds runs LD, not CC, wlarc should be empty
17922     wlarc='${wl}'
17923
17924     # Set some defaults for GNU ld with shared library support. These
17925     # are reset later if shared libraries are not supported. Putting them
17926     # here allows them to be overridden if necessary.
17927     runpath_var=LD_RUN_PATH
17928     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17929     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17930     # ancient GNU ld didn't support --whole-archive et. al.
17931     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17932         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17933       else
17934         whole_archive_flag_spec_GCJ=
17935     fi
17936     supports_anon_versioning=no
17937     case `$LD -v 2>/dev/null` in
17938       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17939       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17940       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17941       *\ 2.11.*) ;; # other 2.11 versions
17942       *) supports_anon_versioning=yes ;;
17943     esac
17944
17945     # See if GNU ld supports shared libraries.
17946     case $host_os in
17947     aix[3-9]*)
17948       # On AIX/PPC, the GNU linker is very broken
17949       if test "$host_cpu" != ia64; then
17950         ld_shlibs_GCJ=no
17951         cat <<EOF 1>&2
17952
17953 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17954 *** to be unable to reliably create shared libraries on AIX.
17955 *** Therefore, libtool is disabling shared libraries support.  If you
17956 *** really care for shared libraries, you may want to modify your PATH
17957 *** so that a non-GNU linker is found, and then restart.
17958
17959 EOF
17960       fi
17961       ;;
17962
17963     amigaos*)
17964       archive_cmds_GCJ='$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)'
17965       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17966       hardcode_minus_L_GCJ=yes
17967
17968       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17969       # that the semantics of dynamic libraries on AmigaOS, at least up
17970       # to version 4, is to share data among multiple programs linked
17971       # with the same dynamic library.  Since this doesn't match the
17972       # behavior of shared libraries on other platforms, we can't use
17973       # them.
17974       ld_shlibs_GCJ=no
17975       ;;
17976
17977     beos*)
17978       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17979         allow_undefined_flag_GCJ=unsupported
17980         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17981         # support --undefined.  This deserves some investigation.  FIXME
17982         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17983       else
17984         ld_shlibs_GCJ=no
17985       fi
17986       ;;
17987
17988     cygwin* | mingw* | pw32*)
17989       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17990       # as there is no search path for DLLs.
17991       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17992       allow_undefined_flag_GCJ=unsupported
17993       always_export_symbols_GCJ=no
17994       enable_shared_with_static_runtimes_GCJ=yes
17995       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17996
17997       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17998         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17999         # If the export-symbols file already is a .def file (1st line
18000         # is EXPORTS), use it as is; otherwise, prepend...
18001         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18002           cp $export_symbols $output_objdir/$soname.def;
18003         else
18004           echo EXPORTS > $output_objdir/$soname.def;
18005           cat $export_symbols >> $output_objdir/$soname.def;
18006         fi~
18007         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18008       else
18009         ld_shlibs_GCJ=no
18010       fi
18011       ;;
18012
18013     interix[3-9]*)
18014       hardcode_direct_GCJ=no
18015       hardcode_shlibpath_var_GCJ=no
18016       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18017       export_dynamic_flag_spec_GCJ='${wl}-E'
18018       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18019       # Instead, shared libraries are loaded at an image base (0x10000000 by
18020       # default) and relocated if they conflict, which is a slow very memory
18021       # consuming and fragmenting process.  To avoid this, we pick a random,
18022       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18023       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18024       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18025       archive_expsym_cmds_GCJ='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'
18026       ;;
18027
18028     gnu* | linux* | k*bsd*-gnu)
18029       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18030         tmp_addflag=
18031         case $cc_basename,$host_cpu in
18032         pgcc*)                          # Portland Group C compiler
18033           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18034           tmp_addflag=' $pic_flag'
18035           ;;
18036         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18037           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18038           tmp_addflag=' $pic_flag -Mnomain' ;;
18039         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18040           tmp_addflag=' -i_dynamic' ;;
18041         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18042           tmp_addflag=' -i_dynamic -nofor_main' ;;
18043         ifc* | ifort*)                  # Intel Fortran compiler
18044           tmp_addflag=' -nofor_main' ;;
18045         esac
18046         case `$CC -V 2>&1 | sed 5q` in
18047         *Sun\ C*)                       # Sun C 5.9
18048           whole_archive_flag_spec_GCJ='${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'
18049           tmp_sharedflag='-G' ;;
18050         *Sun\ F*)                       # Sun Fortran 8.3
18051           tmp_sharedflag='-G' ;;
18052         *)
18053           tmp_sharedflag='-shared' ;;
18054         esac
18055         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18056
18057         if test $supports_anon_versioning = yes; then
18058           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18059   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18060   $echo "local: *; };" >> $output_objdir/$libname.ver~
18061           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18062         fi
18063       else
18064         ld_shlibs_GCJ=no
18065       fi
18066       ;;
18067
18068     netbsd*)
18069       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18070         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18071         wlarc=
18072       else
18073         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18074         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18075       fi
18076       ;;
18077
18078     solaris*)
18079       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18080         ld_shlibs_GCJ=no
18081         cat <<EOF 1>&2
18082
18083 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18084 *** create shared libraries on Solaris systems.  Therefore, libtool
18085 *** is disabling shared libraries support.  We urge you to upgrade GNU
18086 *** binutils to release 2.9.1 or newer.  Another option is to modify
18087 *** your PATH or compiler configuration so that the native linker is
18088 *** used, and then restart.
18089
18090 EOF
18091       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18092         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18093         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18094       else
18095         ld_shlibs_GCJ=no
18096       fi
18097       ;;
18098
18099     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18100       case `$LD -v 2>&1` in
18101         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18102         ld_shlibs_GCJ=no
18103         cat <<_LT_EOF 1>&2
18104
18105 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18106 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18107 *** is disabling shared libraries support.  We urge you to upgrade GNU
18108 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18109 *** your PATH or compiler configuration so that the native linker is
18110 *** used, and then restart.
18111
18112 _LT_EOF
18113         ;;
18114         *)
18115           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18116             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18117             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18118             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18119           else
18120             ld_shlibs_GCJ=no
18121           fi
18122         ;;
18123       esac
18124       ;;
18125
18126     sunos4*)
18127       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18128       wlarc=
18129       hardcode_direct_GCJ=yes
18130       hardcode_shlibpath_var_GCJ=no
18131       ;;
18132
18133     *)
18134       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18135         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18136         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18137       else
18138         ld_shlibs_GCJ=no
18139       fi
18140       ;;
18141     esac
18142
18143     if test "$ld_shlibs_GCJ" = no; then
18144       runpath_var=
18145       hardcode_libdir_flag_spec_GCJ=
18146       export_dynamic_flag_spec_GCJ=
18147       whole_archive_flag_spec_GCJ=
18148     fi
18149   else
18150     # PORTME fill in a description of your system's linker (not GNU ld)
18151     case $host_os in
18152     aix3*)
18153       allow_undefined_flag_GCJ=unsupported
18154       always_export_symbols_GCJ=yes
18155       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18156       # Note: this linker hardcodes the directories in LIBPATH if there
18157       # are no directories specified by -L.
18158       hardcode_minus_L_GCJ=yes
18159       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18160         # Neither direct hardcoding nor static linking is supported with a
18161         # broken collect2.
18162         hardcode_direct_GCJ=unsupported
18163       fi
18164       ;;
18165
18166     aix[4-9]*)
18167       if test "$host_cpu" = ia64; then
18168         # On IA64, the linker does run time linking by default, so we don't
18169         # have to do anything special.
18170         aix_use_runtimelinking=no
18171         exp_sym_flag='-Bexport'
18172         no_entry_flag=""
18173       else
18174         # If we're using GNU nm, then we don't want the "-C" option.
18175         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18176         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18177           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18178         else
18179           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18180         fi
18181         aix_use_runtimelinking=no
18182
18183         # Test if we are trying to use run time linking or normal
18184         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18185         # need to do runtime linking.
18186         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18187           for ld_flag in $LDFLAGS; do
18188           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18189             aix_use_runtimelinking=yes
18190             break
18191           fi
18192           done
18193           ;;
18194         esac
18195
18196         exp_sym_flag='-bexport'
18197         no_entry_flag='-bnoentry'
18198       fi
18199
18200       # When large executables or shared objects are built, AIX ld can
18201       # have problems creating the table of contents.  If linking a library
18202       # or program results in "error TOC overflow" add -mminimal-toc to
18203       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18204       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18205
18206       archive_cmds_GCJ=''
18207       hardcode_direct_GCJ=yes
18208       hardcode_libdir_separator_GCJ=':'
18209       link_all_deplibs_GCJ=yes
18210
18211       if test "$GCC" = yes; then
18212         case $host_os in aix4.[012]|aix4.[012].*)
18213         # We only want to do this on AIX 4.2 and lower, the check
18214         # below for broken collect2 doesn't work under 4.3+
18215           collect2name=`${CC} -print-prog-name=collect2`
18216           if test -f "$collect2name" && \
18217            strings "$collect2name" | grep resolve_lib_name >/dev/null
18218           then
18219           # We have reworked collect2
18220           :
18221           else
18222           # We have old collect2
18223           hardcode_direct_GCJ=unsupported
18224           # It fails to find uninstalled libraries when the uninstalled
18225           # path is not listed in the libpath.  Setting hardcode_minus_L
18226           # to unsupported forces relinking
18227           hardcode_minus_L_GCJ=yes
18228           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18229           hardcode_libdir_separator_GCJ=
18230           fi
18231           ;;
18232         esac
18233         shared_flag='-shared'
18234         if test "$aix_use_runtimelinking" = yes; then
18235           shared_flag="$shared_flag "'${wl}-G'
18236         fi
18237       else
18238         # not using gcc
18239         if test "$host_cpu" = ia64; then
18240         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18241         # chokes on -Wl,-G. The following line is correct:
18242           shared_flag='-G'
18243         else
18244           if test "$aix_use_runtimelinking" = yes; then
18245             shared_flag='${wl}-G'
18246           else
18247             shared_flag='${wl}-bM:SRE'
18248           fi
18249         fi
18250       fi
18251
18252       # It seems that -bexpall does not export symbols beginning with
18253       # underscore (_), so it is better to generate a list of symbols to export.
18254       always_export_symbols_GCJ=yes
18255       if test "$aix_use_runtimelinking" = yes; then
18256         # Warning - without using the other runtime loading flags (-brtl),
18257         # -berok will link without error, but may produce a broken library.
18258         allow_undefined_flag_GCJ='-berok'
18259        # Determine the default libpath from the value encoded in an empty executable.
18260        cat >conftest.$ac_ext <<_ACEOF
18261 /* confdefs.h.  */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h.  */
18266
18267 int
18268 main ()
18269 {
18270
18271   ;
18272   return 0;
18273 }
18274 _ACEOF
18275 rm -f conftest.$ac_objext conftest$ac_exeext
18276 if { (ac_try="$ac_link"
18277 case "(($ac_try" in
18278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279   *) ac_try_echo=$ac_try;;
18280 esac
18281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18282 $as_echo "$ac_try_echo") >&5
18283   (eval "$ac_link") 2>conftest.er1
18284   ac_status=$?
18285   grep -v '^ *+' conftest.er1 >conftest.err
18286   rm -f conftest.er1
18287   cat conftest.err >&5
18288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289   (exit $ac_status); } && {
18290          test -z "$ac_c_werror_flag" ||
18291          test ! -s conftest.err
18292        } && test -s conftest$ac_exeext && {
18293          test "$cross_compiling" = yes ||
18294          $as_test_x conftest$ac_exeext
18295        }; then
18296
18297 lt_aix_libpath_sed='
18298     /Import File Strings/,/^$/ {
18299         /^0/ {
18300             s/^0  *\(.*\)$/\1/
18301             p
18302         }
18303     }'
18304 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18305 # Check for a 64-bit object if we didn't find anything.
18306 if test -z "$aix_libpath"; then
18307   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18308 fi
18309 else
18310   $as_echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.$ac_ext >&5
18312
18313
18314 fi
18315
18316 rm -rf conftest.dSYM
18317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18318       conftest$ac_exeext conftest.$ac_ext
18319 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18320
18321        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18322         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18323        else
18324         if test "$host_cpu" = ia64; then
18325           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18326           allow_undefined_flag_GCJ="-z nodefs"
18327           archive_expsym_cmds_GCJ="\$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"
18328         else
18329          # Determine the default libpath from the value encoded in an empty executable.
18330          cat >conftest.$ac_ext <<_ACEOF
18331 /* confdefs.h.  */
18332 _ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h.  */
18336
18337 int
18338 main ()
18339 {
18340
18341   ;
18342   return 0;
18343 }
18344 _ACEOF
18345 rm -f conftest.$ac_objext conftest$ac_exeext
18346 if { (ac_try="$ac_link"
18347 case "(($ac_try" in
18348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18349   *) ac_try_echo=$ac_try;;
18350 esac
18351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18352 $as_echo "$ac_try_echo") >&5
18353   (eval "$ac_link") 2>conftest.er1
18354   ac_status=$?
18355   grep -v '^ *+' conftest.er1 >conftest.err
18356   rm -f conftest.er1
18357   cat conftest.err >&5
18358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359   (exit $ac_status); } && {
18360          test -z "$ac_c_werror_flag" ||
18361          test ! -s conftest.err
18362        } && test -s conftest$ac_exeext && {
18363          test "$cross_compiling" = yes ||
18364          $as_test_x conftest$ac_exeext
18365        }; then
18366
18367 lt_aix_libpath_sed='
18368     /Import File Strings/,/^$/ {
18369         /^0/ {
18370             s/^0  *\(.*\)$/\1/
18371             p
18372         }
18373     }'
18374 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18375 # Check for a 64-bit object if we didn't find anything.
18376 if test -z "$aix_libpath"; then
18377   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18378 fi
18379 else
18380   $as_echo "$as_me: failed program was:" >&5
18381 sed 's/^/| /' conftest.$ac_ext >&5
18382
18383
18384 fi
18385
18386 rm -rf conftest.dSYM
18387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18388       conftest$ac_exeext conftest.$ac_ext
18389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18390
18391          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18392           # Warning - without using the other run time loading flags,
18393           # -berok will link without error, but may produce a broken library.
18394           no_undefined_flag_GCJ=' ${wl}-bernotok'
18395           allow_undefined_flag_GCJ=' ${wl}-berok'
18396           # Exported symbols can be pulled into shared objects from archives
18397           whole_archive_flag_spec_GCJ='$convenience'
18398           archive_cmds_need_lc_GCJ=yes
18399           # This is similar to how AIX traditionally builds its shared libraries.
18400           archive_expsym_cmds_GCJ="\$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'
18401         fi
18402       fi
18403       ;;
18404
18405     amigaos*)
18406       archive_cmds_GCJ='$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)'
18407       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18408       hardcode_minus_L_GCJ=yes
18409       # see comment about different semantics on the GNU ld section
18410       ld_shlibs_GCJ=no
18411       ;;
18412
18413     bsdi[45]*)
18414       export_dynamic_flag_spec_GCJ=-rdynamic
18415       ;;
18416
18417     cygwin* | mingw* | pw32*)
18418       # When not using gcc, we currently assume that we are using
18419       # Microsoft Visual C++.
18420       # hardcode_libdir_flag_spec is actually meaningless, as there is
18421       # no search path for DLLs.
18422       hardcode_libdir_flag_spec_GCJ=' '
18423       allow_undefined_flag_GCJ=unsupported
18424       # Tell ltmain to make .lib files, not .a files.
18425       libext=lib
18426       # Tell ltmain to make .dll files, not .so files.
18427       shrext_cmds=".dll"
18428       # FIXME: Setting linknames here is a bad hack.
18429       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18430       # The linker will automatically build a .lib file if we build a DLL.
18431       old_archive_From_new_cmds_GCJ='true'
18432       # FIXME: Should let the user specify the lib program.
18433       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18434       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18435       enable_shared_with_static_runtimes_GCJ=yes
18436       ;;
18437
18438     darwin* | rhapsody*)
18439       case $host_os in
18440         rhapsody* | darwin1.[012])
18441          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18442          ;;
18443        *) # Darwin 1.3 on
18444          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18445            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18446          else
18447            case ${MACOSX_DEPLOYMENT_TARGET} in
18448              10.[012])
18449                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18450                ;;
18451              10.*)
18452                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18453                ;;
18454            esac
18455          fi
18456          ;;
18457       esac
18458       archive_cmds_need_lc_GCJ=no
18459       hardcode_direct_GCJ=no
18460       hardcode_automatic_GCJ=yes
18461       hardcode_shlibpath_var_GCJ=unsupported
18462       whole_archive_flag_spec_GCJ=''
18463       link_all_deplibs_GCJ=yes
18464     if test "$GCC" = yes ; then
18465         output_verbose_link_cmd='echo'
18466         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18467         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18468         archive_expsym_cmds_GCJ="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}"
18469         module_expsym_cmds_GCJ="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}"
18470     else
18471       case $cc_basename in
18472         xlc*)
18473          output_verbose_link_cmd='echo'
18474          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18475          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18476           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18477          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18478           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18479           ;;
18480        *)
18481          ld_shlibs_GCJ=no
18482           ;;
18483       esac
18484     fi
18485       ;;
18486
18487     dgux*)
18488       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18489       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18490       hardcode_shlibpath_var_GCJ=no
18491       ;;
18492
18493     freebsd1*)
18494       ld_shlibs_GCJ=no
18495       ;;
18496
18497     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18498     # support.  Future versions do this automatically, but an explicit c++rt0.o
18499     # does not break anything, and helps significantly (at the cost of a little
18500     # extra space).
18501     freebsd2.2*)
18502       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18503       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18504       hardcode_direct_GCJ=yes
18505       hardcode_shlibpath_var_GCJ=no
18506       ;;
18507
18508     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18509     freebsd2*)
18510       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18511       hardcode_direct_GCJ=yes
18512       hardcode_minus_L_GCJ=yes
18513       hardcode_shlibpath_var_GCJ=no
18514       ;;
18515
18516     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18517     freebsd* | dragonfly*)
18518       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18519       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18520       hardcode_direct_GCJ=yes
18521       hardcode_shlibpath_var_GCJ=no
18522       ;;
18523
18524     hpux9*)
18525       if test "$GCC" = yes; then
18526         archive_cmds_GCJ='$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'
18527       else
18528         archive_cmds_GCJ='$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'
18529       fi
18530       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18531       hardcode_libdir_separator_GCJ=:
18532       hardcode_direct_GCJ=yes
18533
18534       # hardcode_minus_L: Not really in the search PATH,
18535       # but as the default location of the library.
18536       hardcode_minus_L_GCJ=yes
18537       export_dynamic_flag_spec_GCJ='${wl}-E'
18538       ;;
18539
18540     hpux10*)
18541       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18542         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18543       else
18544         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18545       fi
18546       if test "$with_gnu_ld" = no; then
18547         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18548         hardcode_libdir_separator_GCJ=:
18549
18550         hardcode_direct_GCJ=yes
18551         export_dynamic_flag_spec_GCJ='${wl}-E'
18552
18553         # hardcode_minus_L: Not really in the search PATH,
18554         # but as the default location of the library.
18555         hardcode_minus_L_GCJ=yes
18556       fi
18557       ;;
18558
18559     hpux11*)
18560       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18561         case $host_cpu in
18562         hppa*64*)
18563           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18564           ;;
18565         ia64*)
18566           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18567           ;;
18568         *)
18569           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18570           ;;
18571         esac
18572       else
18573         case $host_cpu in
18574         hppa*64*)
18575           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18576           ;;
18577         ia64*)
18578           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18579           ;;
18580         *)
18581           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18582           ;;
18583         esac
18584       fi
18585       if test "$with_gnu_ld" = no; then
18586         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18587         hardcode_libdir_separator_GCJ=:
18588
18589         case $host_cpu in
18590         hppa*64*|ia64*)
18591           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18592           hardcode_direct_GCJ=no
18593           hardcode_shlibpath_var_GCJ=no
18594           ;;
18595         *)
18596           hardcode_direct_GCJ=yes
18597           export_dynamic_flag_spec_GCJ='${wl}-E'
18598
18599           # hardcode_minus_L: Not really in the search PATH,
18600           # but as the default location of the library.
18601           hardcode_minus_L_GCJ=yes
18602           ;;
18603         esac
18604       fi
18605       ;;
18606
18607     irix5* | irix6* | nonstopux*)
18608       if test "$GCC" = yes; then
18609         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18610       else
18611         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18612         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18613       fi
18614       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18615       hardcode_libdir_separator_GCJ=:
18616       link_all_deplibs_GCJ=yes
18617       ;;
18618
18619     netbsd*)
18620       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18621         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18622       else
18623         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18624       fi
18625       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18626       hardcode_direct_GCJ=yes
18627       hardcode_shlibpath_var_GCJ=no
18628       ;;
18629
18630     newsos6)
18631       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18632       hardcode_direct_GCJ=yes
18633       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18634       hardcode_libdir_separator_GCJ=:
18635       hardcode_shlibpath_var_GCJ=no
18636       ;;
18637
18638     openbsd*)
18639       if test -f /usr/libexec/ld.so; then
18640         hardcode_direct_GCJ=yes
18641         hardcode_shlibpath_var_GCJ=no
18642         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18643           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18644           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18645           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18646           export_dynamic_flag_spec_GCJ='${wl}-E'
18647         else
18648           case $host_os in
18649            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18650              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18651              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18652              ;;
18653            *)
18654              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18655              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18656              ;;
18657           esac
18658         fi
18659       else
18660         ld_shlibs_GCJ=no
18661       fi
18662       ;;
18663
18664     os2*)
18665       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18666       hardcode_minus_L_GCJ=yes
18667       allow_undefined_flag_GCJ=unsupported
18668       archive_cmds_GCJ='$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'
18669       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18670       ;;
18671
18672     osf3*)
18673       if test "$GCC" = yes; then
18674         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18675         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18676       else
18677         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18678         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18679       fi
18680       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18681       hardcode_libdir_separator_GCJ=:
18682       ;;
18683
18684     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18685       if test "$GCC" = yes; then
18686         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18687         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18688         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18689       else
18690         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18691         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18692         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18693         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18694
18695         # Both c and cxx compiler support -rpath directly
18696         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18697       fi
18698       hardcode_libdir_separator_GCJ=:
18699       ;;
18700
18701     solaris*)
18702       no_undefined_flag_GCJ=' -z text'
18703       if test "$GCC" = yes; then
18704         wlarc='${wl}'
18705         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18706         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18707           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18708       else
18709         wlarc=''
18710         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18711         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18712         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18713       fi
18714       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18715       hardcode_shlibpath_var_GCJ=no
18716       case $host_os in
18717       solaris2.[0-5] | solaris2.[0-5].*) ;;
18718       *)
18719         # The compiler driver will combine and reorder linker options,
18720         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18721         # but is careful enough not to reorder.
18722         # Supported since Solaris 2.6 (maybe 2.5.1?)
18723         if test "$GCC" = yes; then
18724           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18725         else
18726           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18727         fi
18728         ;;
18729       esac
18730       link_all_deplibs_GCJ=yes
18731       ;;
18732
18733     sunos4*)
18734       if test "x$host_vendor" = xsequent; then
18735         # Use $CC to link under sequent, because it throws in some extra .o
18736         # files that make .init and .fini sections work.
18737         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18738       else
18739         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18740       fi
18741       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18742       hardcode_direct_GCJ=yes
18743       hardcode_minus_L_GCJ=yes
18744       hardcode_shlibpath_var_GCJ=no
18745       ;;
18746
18747     sysv4)
18748       case $host_vendor in
18749         sni)
18750           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18751           hardcode_direct_GCJ=yes # is this really true???
18752         ;;
18753         siemens)
18754           ## LD is ld it makes a PLAMLIB
18755           ## CC just makes a GrossModule.
18756           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18757           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18758           hardcode_direct_GCJ=no
18759         ;;
18760         motorola)
18761           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18762           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18763         ;;
18764       esac
18765       runpath_var='LD_RUN_PATH'
18766       hardcode_shlibpath_var_GCJ=no
18767       ;;
18768
18769     sysv4.3*)
18770       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18771       hardcode_shlibpath_var_GCJ=no
18772       export_dynamic_flag_spec_GCJ='-Bexport'
18773       ;;
18774
18775     sysv4*MP*)
18776       if test -d /usr/nec; then
18777         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18778         hardcode_shlibpath_var_GCJ=no
18779         runpath_var=LD_RUN_PATH
18780         hardcode_runpath_var=yes
18781         ld_shlibs_GCJ=yes
18782       fi
18783       ;;
18784
18785     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18786       no_undefined_flag_GCJ='${wl}-z,text'
18787       archive_cmds_need_lc_GCJ=no
18788       hardcode_shlibpath_var_GCJ=no
18789       runpath_var='LD_RUN_PATH'
18790
18791       if test "$GCC" = yes; then
18792         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18793         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18794       else
18795         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18796         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18797       fi
18798       ;;
18799
18800     sysv5* | sco3.2v5* | sco5v6*)
18801       # Note: We can NOT use -z defs as we might desire, because we do not
18802       # link with -lc, and that would cause any symbols used from libc to
18803       # always be unresolved, which means just about no library would
18804       # ever link correctly.  If we're not using GNU ld we use -z text
18805       # though, which does catch some bad symbols but isn't as heavy-handed
18806       # as -z defs.
18807       no_undefined_flag_GCJ='${wl}-z,text'
18808       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18809       archive_cmds_need_lc_GCJ=no
18810       hardcode_shlibpath_var_GCJ=no
18811       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18812       hardcode_libdir_separator_GCJ=':'
18813       link_all_deplibs_GCJ=yes
18814       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18815       runpath_var='LD_RUN_PATH'
18816
18817       if test "$GCC" = yes; then
18818         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18819         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18820       else
18821         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18822         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18823       fi
18824       ;;
18825
18826     uts4*)
18827       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18828       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18829       hardcode_shlibpath_var_GCJ=no
18830       ;;
18831
18832     *)
18833       ld_shlibs_GCJ=no
18834       ;;
18835     esac
18836   fi
18837
18838 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18839 $as_echo "$ld_shlibs_GCJ" >&6; }
18840 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18841
18842 #
18843 # Do we need to explicitly link libc?
18844 #
18845 case "x$archive_cmds_need_lc_GCJ" in
18846 x|xyes)
18847   # Assume -lc should be added
18848   archive_cmds_need_lc_GCJ=yes
18849
18850   if test "$enable_shared" = yes && test "$GCC" = yes; then
18851     case $archive_cmds_GCJ in
18852     *'~'*)
18853       # FIXME: we may have to deal with multi-command sequences.
18854       ;;
18855     '$CC '*)
18856       # Test whether the compiler implicitly links with -lc since on some
18857       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18858       # to ld, don't add -lc before -lgcc.
18859       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18860 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18861       $rm conftest*
18862       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18863
18864       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18865   (eval $ac_compile) 2>&5
18866   ac_status=$?
18867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868   (exit $ac_status); } 2>conftest.err; then
18869         soname=conftest
18870         lib=conftest
18871         libobjs=conftest.$ac_objext
18872         deplibs=
18873         wl=$lt_prog_compiler_wl_GCJ
18874         pic_flag=$lt_prog_compiler_pic_GCJ
18875         compiler_flags=-v
18876         linker_flags=-v
18877         verstring=
18878         output_objdir=.
18879         libname=conftest
18880         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18881         allow_undefined_flag_GCJ=
18882         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18883   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18884   ac_status=$?
18885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886   (exit $ac_status); }
18887         then
18888           archive_cmds_need_lc_GCJ=no
18889         else
18890           archive_cmds_need_lc_GCJ=yes
18891         fi
18892         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18893       else
18894         cat conftest.err 1>&5
18895       fi
18896       $rm conftest*
18897       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18898 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18899       ;;
18900     esac
18901   fi
18902   ;;
18903 esac
18904
18905 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18906 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18907 library_names_spec=
18908 libname_spec='lib$name'
18909 soname_spec=
18910 shrext_cmds=".so"
18911 postinstall_cmds=
18912 postuninstall_cmds=
18913 finish_cmds=
18914 finish_eval=
18915 shlibpath_var=
18916 shlibpath_overrides_runpath=unknown
18917 version_type=none
18918 dynamic_linker="$host_os ld.so"
18919 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18920
18921 need_lib_prefix=unknown
18922 hardcode_into_libs=no
18923
18924 # when you set need_version to no, make sure it does not cause -set_version
18925 # flags to be left without arguments
18926 need_version=unknown
18927
18928 case $host_os in
18929 aix3*)
18930   version_type=linux
18931   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18932   shlibpath_var=LIBPATH
18933
18934   # AIX 3 has no versioning support, so we append a major version to the name.
18935   soname_spec='${libname}${release}${shared_ext}$major'
18936   ;;
18937
18938 aix[4-9]*)
18939   version_type=linux
18940   need_lib_prefix=no
18941   need_version=no
18942   hardcode_into_libs=yes
18943   if test "$host_cpu" = ia64; then
18944     # AIX 5 supports IA64
18945     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18946     shlibpath_var=LD_LIBRARY_PATH
18947   else
18948     # With GCC up to 2.95.x, collect2 would create an import file
18949     # for dependence libraries.  The import file would start with
18950     # the line `#! .'.  This would cause the generated library to
18951     # depend on `.', always an invalid library.  This was fixed in
18952     # development snapshots of GCC prior to 3.0.
18953     case $host_os in
18954       aix4 | aix4.[01] | aix4.[01].*)
18955       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18956            echo ' yes '
18957            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18958         :
18959       else
18960         can_build_shared=no
18961       fi
18962       ;;
18963     esac
18964     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18965     # soname into executable. Probably we can add versioning support to
18966     # collect2, so additional links can be useful in future.
18967     if test "$aix_use_runtimelinking" = yes; then
18968       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18969       # instead of lib<name>.a to let people know that these are not
18970       # typical AIX shared libraries.
18971       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18972     else
18973       # We preserve .a as extension for shared libraries through AIX4.2
18974       # and later when we are not doing run time linking.
18975       library_names_spec='${libname}${release}.a $libname.a'
18976       soname_spec='${libname}${release}${shared_ext}$major'
18977     fi
18978     shlibpath_var=LIBPATH
18979   fi
18980   ;;
18981
18982 amigaos*)
18983   library_names_spec='$libname.ixlibrary $libname.a'
18984   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18985   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'
18986   ;;
18987
18988 beos*)
18989   library_names_spec='${libname}${shared_ext}'
18990   dynamic_linker="$host_os ld.so"
18991   shlibpath_var=LIBRARY_PATH
18992   ;;
18993
18994 bsdi[45]*)
18995   version_type=linux
18996   need_version=no
18997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18998   soname_spec='${libname}${release}${shared_ext}$major'
18999   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19000   shlibpath_var=LD_LIBRARY_PATH
19001   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19002   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19003   # the default ld.so.conf also contains /usr/contrib/lib and
19004   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19005   # libtool to hard-code these into programs
19006   ;;
19007
19008 cygwin* | mingw* | pw32*)
19009   version_type=windows
19010   shrext_cmds=".dll"
19011   need_version=no
19012   need_lib_prefix=no
19013
19014   case $GCC,$host_os in
19015   yes,cygwin* | yes,mingw* | yes,pw32*)
19016     library_names_spec='$libname.dll.a'
19017     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19018     postinstall_cmds='base_file=`basename \${file}`~
19019       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19020       dldir=$destdir/`dirname \$dlpath`~
19021       test -d \$dldir || mkdir -p \$dldir~
19022       $install_prog $dir/$dlname \$dldir/$dlname~
19023       chmod a+x \$dldir/$dlname'
19024     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19025       dlpath=$dir/\$dldll~
19026        $rm \$dlpath'
19027     shlibpath_overrides_runpath=yes
19028
19029     case $host_os in
19030     cygwin*)
19031       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19032       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19033       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19034       ;;
19035     mingw*)
19036       # MinGW DLLs use traditional 'lib' prefix
19037       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19038       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19039       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19040         # It is most probably a Windows format PATH printed by
19041         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19042         # path with ; separators, and with drive letters. We can handle the
19043         # drive letters (cygwin fileutils understands them), so leave them,
19044         # especially as we might pass files found there to a mingw objdump,
19045         # which wouldn't understand a cygwinified path. Ahh.
19046         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19047       else
19048         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19049       fi
19050       ;;
19051     pw32*)
19052       # pw32 DLLs use 'pw' prefix rather than 'lib'
19053       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19054       ;;
19055     esac
19056     ;;
19057
19058   *)
19059     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19060     ;;
19061   esac
19062   dynamic_linker='Win32 ld.exe'
19063   # FIXME: first we should search . and the directory the executable is in
19064   shlibpath_var=PATH
19065   ;;
19066
19067 darwin* | rhapsody*)
19068   dynamic_linker="$host_os dyld"
19069   version_type=darwin
19070   need_lib_prefix=no
19071   need_version=no
19072   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19073   soname_spec='${libname}${release}${major}$shared_ext'
19074   shlibpath_overrides_runpath=yes
19075   shlibpath_var=DYLD_LIBRARY_PATH
19076   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19077
19078   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19079   ;;
19080
19081 dgux*)
19082   version_type=linux
19083   need_lib_prefix=no
19084   need_version=no
19085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19086   soname_spec='${libname}${release}${shared_ext}$major'
19087   shlibpath_var=LD_LIBRARY_PATH
19088   ;;
19089
19090 freebsd1*)
19091   dynamic_linker=no
19092   ;;
19093
19094 freebsd* | dragonfly*)
19095   # DragonFly does not have aout.  When/if they implement a new
19096   # versioning mechanism, adjust this.
19097   if test -x /usr/bin/objformat; then
19098     objformat=`/usr/bin/objformat`
19099   else
19100     case $host_os in
19101     freebsd[123]*) objformat=aout ;;
19102     *) objformat=elf ;;
19103     esac
19104   fi
19105   version_type=freebsd-$objformat
19106   case $version_type in
19107     freebsd-elf*)
19108       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19109       need_version=no
19110       need_lib_prefix=no
19111       ;;
19112     freebsd-*)
19113       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19114       need_version=yes
19115       ;;
19116   esac
19117   shlibpath_var=LD_LIBRARY_PATH
19118   case $host_os in
19119   freebsd2*)
19120     shlibpath_overrides_runpath=yes
19121     ;;
19122   freebsd3.[01]* | freebsdelf3.[01]*)
19123     shlibpath_overrides_runpath=yes
19124     hardcode_into_libs=yes
19125     ;;
19126   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19127   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19128     shlibpath_overrides_runpath=no
19129     hardcode_into_libs=yes
19130     ;;
19131   *) # from 4.6 on, and DragonFly
19132     shlibpath_overrides_runpath=yes
19133     hardcode_into_libs=yes
19134     ;;
19135   esac
19136   ;;
19137
19138 gnu*)
19139   version_type=linux
19140   need_lib_prefix=no
19141   need_version=no
19142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19143   soname_spec='${libname}${release}${shared_ext}$major'
19144   shlibpath_var=LD_LIBRARY_PATH
19145   hardcode_into_libs=yes
19146   ;;
19147
19148 hpux9* | hpux10* | hpux11*)
19149   # Give a soname corresponding to the major version so that dld.sl refuses to
19150   # link against other versions.
19151   version_type=sunos
19152   need_lib_prefix=no
19153   need_version=no
19154   case $host_cpu in
19155   ia64*)
19156     shrext_cmds='.so'
19157     hardcode_into_libs=yes
19158     dynamic_linker="$host_os dld.so"
19159     shlibpath_var=LD_LIBRARY_PATH
19160     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19161     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19162     soname_spec='${libname}${release}${shared_ext}$major'
19163     if test "X$HPUX_IA64_MODE" = X32; then
19164       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19165     else
19166       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19167     fi
19168     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19169     ;;
19170    hppa*64*)
19171      shrext_cmds='.sl'
19172      hardcode_into_libs=yes
19173      dynamic_linker="$host_os dld.sl"
19174      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19175      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19176      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19177      soname_spec='${libname}${release}${shared_ext}$major'
19178      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19179      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19180      ;;
19181    *)
19182     shrext_cmds='.sl'
19183     dynamic_linker="$host_os dld.sl"
19184     shlibpath_var=SHLIB_PATH
19185     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19186     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19187     soname_spec='${libname}${release}${shared_ext}$major'
19188     ;;
19189   esac
19190   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19191   postinstall_cmds='chmod 555 $lib'
19192   ;;
19193
19194 interix[3-9]*)
19195   version_type=linux
19196   need_lib_prefix=no
19197   need_version=no
19198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19199   soname_spec='${libname}${release}${shared_ext}$major'
19200   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19201   shlibpath_var=LD_LIBRARY_PATH
19202   shlibpath_overrides_runpath=no
19203   hardcode_into_libs=yes
19204   ;;
19205
19206 irix5* | irix6* | nonstopux*)
19207   case $host_os in
19208     nonstopux*) version_type=nonstopux ;;
19209     *)
19210         if test "$lt_cv_prog_gnu_ld" = yes; then
19211                 version_type=linux
19212         else
19213                 version_type=irix
19214         fi ;;
19215   esac
19216   need_lib_prefix=no
19217   need_version=no
19218   soname_spec='${libname}${release}${shared_ext}$major'
19219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19220   case $host_os in
19221   irix5* | nonstopux*)
19222     libsuff= shlibsuff=
19223     ;;
19224   *)
19225     case $LD in # libtool.m4 will add one of these switches to LD
19226     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19227       libsuff= shlibsuff= libmagic=32-bit;;
19228     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19229       libsuff=32 shlibsuff=N32 libmagic=N32;;
19230     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19231       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19232     *) libsuff= shlibsuff= libmagic=never-match;;
19233     esac
19234     ;;
19235   esac
19236   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19237   shlibpath_overrides_runpath=no
19238   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19239   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19240   hardcode_into_libs=yes
19241   ;;
19242
19243 # No shared lib support for Linux oldld, aout, or coff.
19244 linux*oldld* | linux*aout* | linux*coff*)
19245   dynamic_linker=no
19246   ;;
19247
19248 # This must be Linux ELF.
19249 linux* | k*bsd*-gnu)
19250   version_type=linux
19251   need_lib_prefix=no
19252   need_version=no
19253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19254   soname_spec='${libname}${release}${shared_ext}$major'
19255   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19256   shlibpath_var=LD_LIBRARY_PATH
19257   shlibpath_overrides_runpath=no
19258   # This implies no fast_install, which is unacceptable.
19259   # Some rework will be needed to allow for fast_install
19260   # before this can be enabled.
19261   hardcode_into_libs=yes
19262   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19263   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19264
19265   # Append ld.so.conf contents to the search path
19266   if test -f /etc/ld.so.conf; then
19267     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' ' '`
19268     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19269   fi
19270
19271   # We used to test for /lib/ld.so.1 and disable shared libraries on
19272   # powerpc, because MkLinux only supported shared libraries with the
19273   # GNU dynamic linker.  Since this was broken with cross compilers,
19274   # most powerpc-linux boxes support dynamic linking these days and
19275   # people can always --disable-shared, the test was removed, and we
19276   # assume the GNU/Linux dynamic linker is in use.
19277   dynamic_linker='GNU/Linux ld.so'
19278   ;;
19279
19280 netbsd*)
19281   version_type=sunos
19282   need_lib_prefix=no
19283   need_version=no
19284   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19286     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19287     dynamic_linker='NetBSD (a.out) ld.so'
19288   else
19289     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19290     soname_spec='${libname}${release}${shared_ext}$major'
19291     dynamic_linker='NetBSD ld.elf_so'
19292   fi
19293   shlibpath_var=LD_LIBRARY_PATH
19294   shlibpath_overrides_runpath=yes
19295   hardcode_into_libs=yes
19296   ;;
19297
19298 newsos6)
19299   version_type=linux
19300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19301   shlibpath_var=LD_LIBRARY_PATH
19302   shlibpath_overrides_runpath=yes
19303   ;;
19304
19305 nto-qnx*)
19306   version_type=linux
19307   need_lib_prefix=no
19308   need_version=no
19309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19310   soname_spec='${libname}${release}${shared_ext}$major'
19311   shlibpath_var=LD_LIBRARY_PATH
19312   shlibpath_overrides_runpath=yes
19313   ;;
19314
19315 openbsd*)
19316   version_type=sunos
19317   sys_lib_dlsearch_path_spec="/usr/lib"
19318   need_lib_prefix=no
19319   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19320   case $host_os in
19321     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19322     *)                         need_version=no  ;;
19323   esac
19324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19325   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19326   shlibpath_var=LD_LIBRARY_PATH
19327   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19328     case $host_os in
19329       openbsd2.[89] | openbsd2.[89].*)
19330         shlibpath_overrides_runpath=no
19331         ;;
19332       *)
19333         shlibpath_overrides_runpath=yes
19334         ;;
19335       esac
19336   else
19337     shlibpath_overrides_runpath=yes
19338   fi
19339   ;;
19340
19341 os2*)
19342   libname_spec='$name'
19343   shrext_cmds=".dll"
19344   need_lib_prefix=no
19345   library_names_spec='$libname${shared_ext} $libname.a'
19346   dynamic_linker='OS/2 ld.exe'
19347   shlibpath_var=LIBPATH
19348   ;;
19349
19350 osf3* | osf4* | osf5*)
19351   version_type=osf
19352   need_lib_prefix=no
19353   need_version=no
19354   soname_spec='${libname}${release}${shared_ext}$major'
19355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19356   shlibpath_var=LD_LIBRARY_PATH
19357   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19358   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19359   ;;
19360
19361 rdos*)
19362   dynamic_linker=no
19363   ;;
19364
19365 solaris*)
19366   version_type=linux
19367   need_lib_prefix=no
19368   need_version=no
19369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19370   soname_spec='${libname}${release}${shared_ext}$major'
19371   shlibpath_var=LD_LIBRARY_PATH
19372   shlibpath_overrides_runpath=yes
19373   hardcode_into_libs=yes
19374   # ldd complains unless libraries are executable
19375   postinstall_cmds='chmod +x $lib'
19376   ;;
19377
19378 sunos4*)
19379   version_type=sunos
19380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19381   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19382   shlibpath_var=LD_LIBRARY_PATH
19383   shlibpath_overrides_runpath=yes
19384   if test "$with_gnu_ld" = yes; then
19385     need_lib_prefix=no
19386   fi
19387   need_version=yes
19388   ;;
19389
19390 sysv4 | sysv4.3*)
19391   version_type=linux
19392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19393   soname_spec='${libname}${release}${shared_ext}$major'
19394   shlibpath_var=LD_LIBRARY_PATH
19395   case $host_vendor in
19396     sni)
19397       shlibpath_overrides_runpath=no
19398       need_lib_prefix=no
19399       export_dynamic_flag_spec='${wl}-Blargedynsym'
19400       runpath_var=LD_RUN_PATH
19401       ;;
19402     siemens)
19403       need_lib_prefix=no
19404       ;;
19405     motorola)
19406       need_lib_prefix=no
19407       need_version=no
19408       shlibpath_overrides_runpath=no
19409       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19410       ;;
19411   esac
19412   ;;
19413
19414 sysv4*MP*)
19415   if test -d /usr/nec ;then
19416     version_type=linux
19417     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19418     soname_spec='$libname${shared_ext}.$major'
19419     shlibpath_var=LD_LIBRARY_PATH
19420   fi
19421   ;;
19422
19423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19424   version_type=freebsd-elf
19425   need_lib_prefix=no
19426   need_version=no
19427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19428   soname_spec='${libname}${release}${shared_ext}$major'
19429   shlibpath_var=LD_LIBRARY_PATH
19430   hardcode_into_libs=yes
19431   if test "$with_gnu_ld" = yes; then
19432     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19433     shlibpath_overrides_runpath=no
19434   else
19435     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19436     shlibpath_overrides_runpath=yes
19437     case $host_os in
19438       sco3.2v5*)
19439         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19440         ;;
19441     esac
19442   fi
19443   sys_lib_dlsearch_path_spec='/usr/lib'
19444   ;;
19445
19446 uts4*)
19447   version_type=linux
19448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19449   soname_spec='${libname}${release}${shared_ext}$major'
19450   shlibpath_var=LD_LIBRARY_PATH
19451   ;;
19452
19453 *)
19454   dynamic_linker=no
19455   ;;
19456 esac
19457 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19458 $as_echo "$dynamic_linker" >&6; }
19459 test "$dynamic_linker" = no && can_build_shared=no
19460
19461 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19462   $as_echo_n "(cached) " >&6
19463 else
19464   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19465 fi
19466
19467 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19468 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19469   $as_echo_n "(cached) " >&6
19470 else
19471   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19472 fi
19473
19474 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19475
19476 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19477 if test "$GCC" = yes; then
19478   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19479 fi
19480
19481 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19482 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19483 hardcode_action_GCJ=
19484 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19485    test -n "$runpath_var_GCJ" || \
19486    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19487
19488   # We can hardcode non-existant directories.
19489   if test "$hardcode_direct_GCJ" != no &&
19490      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19491      # have to relink, otherwise we might link with an installed library
19492      # when we should be linking with a yet-to-be-installed one
19493      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19494      test "$hardcode_minus_L_GCJ" != no; then
19495     # Linking always hardcodes the temporary library directory.
19496     hardcode_action_GCJ=relink
19497   else
19498     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19499     hardcode_action_GCJ=immediate
19500   fi
19501 else
19502   # We cannot hardcode anything, or else we can only hardcode existing
19503   # directories.
19504   hardcode_action_GCJ=unsupported
19505 fi
19506 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19507 $as_echo "$hardcode_action_GCJ" >&6; }
19508
19509 if test "$hardcode_action_GCJ" = relink; then
19510   # Fast installation is not supported
19511   enable_fast_install=no
19512 elif test "$shlibpath_overrides_runpath" = yes ||
19513      test "$enable_shared" = no; then
19514   # Fast installation is not necessary
19515   enable_fast_install=needless
19516 fi
19517
19518
19519 # The else clause should only fire when bootstrapping the
19520 # libtool distribution, otherwise you forgot to ship ltmain.sh
19521 # with your package, and you will get complaints that there are
19522 # no rules to generate ltmain.sh.
19523 if test -f "$ltmain"; then
19524   # See if we are running on zsh, and set the options which allow our commands through
19525   # without removal of \ escapes.
19526   if test -n "${ZSH_VERSION+set}" ; then
19527     setopt NO_GLOB_SUBST
19528   fi
19529   # Now quote all the things that may contain metacharacters while being
19530   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19531   # variables and quote the copies for generation of the libtool script.
19532   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19533     SED SHELL STRIP \
19534     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19535     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19536     deplibs_check_method reload_flag reload_cmds need_locks \
19537     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19538     lt_cv_sys_global_symbol_to_c_name_address \
19539     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19540     old_postinstall_cmds old_postuninstall_cmds \
19541     compiler_GCJ \
19542     CC_GCJ \
19543     LD_GCJ \
19544     lt_prog_compiler_wl_GCJ \
19545     lt_prog_compiler_pic_GCJ \
19546     lt_prog_compiler_static_GCJ \
19547     lt_prog_compiler_no_builtin_flag_GCJ \
19548     export_dynamic_flag_spec_GCJ \
19549     thread_safe_flag_spec_GCJ \
19550     whole_archive_flag_spec_GCJ \
19551     enable_shared_with_static_runtimes_GCJ \
19552     old_archive_cmds_GCJ \
19553     old_archive_from_new_cmds_GCJ \
19554     predep_objects_GCJ \
19555     postdep_objects_GCJ \
19556     predeps_GCJ \
19557     postdeps_GCJ \
19558     compiler_lib_search_path_GCJ \
19559     compiler_lib_search_dirs_GCJ \
19560     archive_cmds_GCJ \
19561     archive_expsym_cmds_GCJ \
19562     postinstall_cmds_GCJ \
19563     postuninstall_cmds_GCJ \
19564     old_archive_from_expsyms_cmds_GCJ \
19565     allow_undefined_flag_GCJ \
19566     no_undefined_flag_GCJ \
19567     export_symbols_cmds_GCJ \
19568     hardcode_libdir_flag_spec_GCJ \
19569     hardcode_libdir_flag_spec_ld_GCJ \
19570     hardcode_libdir_separator_GCJ \
19571     hardcode_automatic_GCJ \
19572     module_cmds_GCJ \
19573     module_expsym_cmds_GCJ \
19574     lt_cv_prog_compiler_c_o_GCJ \
19575     fix_srcfile_path_GCJ \
19576     exclude_expsyms_GCJ \
19577     include_expsyms_GCJ; do
19578
19579     case $var in
19580     old_archive_cmds_GCJ | \
19581     old_archive_from_new_cmds_GCJ | \
19582     archive_cmds_GCJ | \
19583     archive_expsym_cmds_GCJ | \
19584     module_cmds_GCJ | \
19585     module_expsym_cmds_GCJ | \
19586     old_archive_from_expsyms_cmds_GCJ | \
19587     export_symbols_cmds_GCJ | \
19588     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19589     postinstall_cmds | postuninstall_cmds | \
19590     old_postinstall_cmds | old_postuninstall_cmds | \
19591     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19592       # Double-quote double-evaled strings.
19593       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19594       ;;
19595     *)
19596       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19597       ;;
19598     esac
19599   done
19600
19601   case $lt_echo in
19602   *'\$0 --fallback-echo"')
19603     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19604     ;;
19605   esac
19606
19607 cfgfile="$ofile"
19608
19609   cat <<__EOF__ >> "$cfgfile"
19610 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19611
19612 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19613
19614 # Shell to use when invoking shell scripts.
19615 SHELL=$lt_SHELL
19616
19617 # Whether or not to build shared libraries.
19618 build_libtool_libs=$enable_shared
19619
19620 # Whether or not to build static libraries.
19621 build_old_libs=$enable_static
19622
19623 # Whether or not to add -lc for building shared libraries.
19624 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19625
19626 # Whether or not to disallow shared libs when runtime libs are static
19627 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19628
19629 # Whether or not to optimize for fast installation.
19630 fast_install=$enable_fast_install
19631
19632 # The host system.
19633 host_alias=$host_alias
19634 host=$host
19635 host_os=$host_os
19636
19637 # The build system.
19638 build_alias=$build_alias
19639 build=$build
19640 build_os=$build_os
19641
19642 # An echo program that does not interpret backslashes.
19643 echo=$lt_echo
19644
19645 # The archiver.
19646 AR=$lt_AR
19647 AR_FLAGS=$lt_AR_FLAGS
19648
19649 # A C compiler.
19650 LTCC=$lt_LTCC
19651
19652 # LTCC compiler flags.
19653 LTCFLAGS=$lt_LTCFLAGS
19654
19655 # A language-specific compiler.
19656 CC=$lt_compiler_GCJ
19657
19658 # Is the compiler the GNU C compiler?
19659 with_gcc=$GCC_GCJ
19660
19661 # An ERE matcher.
19662 EGREP=$lt_EGREP
19663
19664 # The linker used to build libraries.
19665 LD=$lt_LD_GCJ
19666
19667 # Whether we need hard or soft links.
19668 LN_S=$lt_LN_S
19669
19670 # A BSD-compatible nm program.
19671 NM=$lt_NM
19672
19673 # A symbol stripping program
19674 STRIP=$lt_STRIP
19675
19676 # Used to examine libraries when file_magic_cmd begins "file"
19677 MAGIC_CMD=$MAGIC_CMD
19678
19679 # Used on cygwin: DLL creation program.
19680 DLLTOOL="$DLLTOOL"
19681
19682 # Used on cygwin: object dumper.
19683 OBJDUMP="$OBJDUMP"
19684
19685 # Used on cygwin: assembler.
19686 AS="$AS"
19687
19688 # The name of the directory that contains temporary libtool files.
19689 objdir=$objdir
19690
19691 # How to create reloadable object files.
19692 reload_flag=$lt_reload_flag
19693 reload_cmds=$lt_reload_cmds
19694
19695 # How to pass a linker flag through the compiler.
19696 wl=$lt_lt_prog_compiler_wl_GCJ
19697
19698 # Object file suffix (normally "o").
19699 objext="$ac_objext"
19700
19701 # Old archive suffix (normally "a").
19702 libext="$libext"
19703
19704 # Shared library suffix (normally ".so").
19705 shrext_cmds='$shrext_cmds'
19706
19707 # Executable file suffix (normally "").
19708 exeext="$exeext"
19709
19710 # Additional compiler flags for building library objects.
19711 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19712 pic_mode=$pic_mode
19713
19714 # What is the maximum length of a command?
19715 max_cmd_len=$lt_cv_sys_max_cmd_len
19716
19717 # Does compiler simultaneously support -c and -o options?
19718 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19719
19720 # Must we lock files when doing compilation?
19721 need_locks=$lt_need_locks
19722
19723 # Do we need the lib prefix for modules?
19724 need_lib_prefix=$need_lib_prefix
19725
19726 # Do we need a version for libraries?
19727 need_version=$need_version
19728
19729 # Whether dlopen is supported.
19730 dlopen_support=$enable_dlopen
19731
19732 # Whether dlopen of programs is supported.
19733 dlopen_self=$enable_dlopen_self
19734
19735 # Whether dlopen of statically linked programs is supported.
19736 dlopen_self_static=$enable_dlopen_self_static
19737
19738 # Compiler flag to prevent dynamic linking.
19739 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19740
19741 # Compiler flag to turn off builtin functions.
19742 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19743
19744 # Compiler flag to allow reflexive dlopens.
19745 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19746
19747 # Compiler flag to generate shared objects directly from archives.
19748 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19749
19750 # Compiler flag to generate thread-safe objects.
19751 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19752
19753 # Library versioning type.
19754 version_type=$version_type
19755
19756 # Format of library name prefix.
19757 libname_spec=$lt_libname_spec
19758
19759 # List of archive names.  First name is the real one, the rest are links.
19760 # The last name is the one that the linker finds with -lNAME.
19761 library_names_spec=$lt_library_names_spec
19762
19763 # The coded name of the library, if different from the real name.
19764 soname_spec=$lt_soname_spec
19765
19766 # Commands used to build and install an old-style archive.
19767 RANLIB=$lt_RANLIB
19768 old_archive_cmds=$lt_old_archive_cmds_GCJ
19769 old_postinstall_cmds=$lt_old_postinstall_cmds
19770 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19771
19772 # Create an old-style archive from a shared archive.
19773 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19774
19775 # Create a temporary old-style archive to link instead of a shared archive.
19776 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19777
19778 # Commands used to build and install a shared archive.
19779 archive_cmds=$lt_archive_cmds_GCJ
19780 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19781 postinstall_cmds=$lt_postinstall_cmds
19782 postuninstall_cmds=$lt_postuninstall_cmds
19783
19784 # Commands used to build a loadable module (assumed same as above if empty)
19785 module_cmds=$lt_module_cmds_GCJ
19786 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19787
19788 # Commands to strip libraries.
19789 old_striplib=$lt_old_striplib
19790 striplib=$lt_striplib
19791
19792 # Dependencies to place before the objects being linked to create a
19793 # shared library.
19794 predep_objects=$lt_predep_objects_GCJ
19795
19796 # Dependencies to place after the objects being linked to create a
19797 # shared library.
19798 postdep_objects=$lt_postdep_objects_GCJ
19799
19800 # Dependencies to place before the objects being linked to create a
19801 # shared library.
19802 predeps=$lt_predeps_GCJ
19803
19804 # Dependencies to place after the objects being linked to create a
19805 # shared library.
19806 postdeps=$lt_postdeps_GCJ
19807
19808 # The directories searched by this compiler when creating a shared
19809 # library
19810 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19811
19812 # The library search path used internally by the compiler when linking
19813 # a shared library.
19814 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19815
19816 # Method to check whether dependent libraries are shared objects.
19817 deplibs_check_method=$lt_deplibs_check_method
19818
19819 # Command to use when deplibs_check_method == file_magic.
19820 file_magic_cmd=$lt_file_magic_cmd
19821
19822 # Flag that allows shared libraries with undefined symbols to be built.
19823 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19824
19825 # Flag that forces no undefined symbols.
19826 no_undefined_flag=$lt_no_undefined_flag_GCJ
19827
19828 # Commands used to finish a libtool library installation in a directory.
19829 finish_cmds=$lt_finish_cmds
19830
19831 # Same as above, but a single script fragment to be evaled but not shown.
19832 finish_eval=$lt_finish_eval
19833
19834 # Take the output of nm and produce a listing of raw symbols and C names.
19835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19836
19837 # Transform the output of nm in a proper C declaration
19838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19839
19840 # Transform the output of nm in a C name address pair
19841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19842
19843 # This is the shared library runtime path variable.
19844 runpath_var=$runpath_var
19845
19846 # This is the shared library path variable.
19847 shlibpath_var=$shlibpath_var
19848
19849 # Is shlibpath searched before the hard-coded library search path?
19850 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19851
19852 # How to hardcode a shared library path into an executable.
19853 hardcode_action=$hardcode_action_GCJ
19854
19855 # Whether we should hardcode library paths into libraries.
19856 hardcode_into_libs=$hardcode_into_libs
19857
19858 # Flag to hardcode \$libdir into a binary during linking.
19859 # This must work even if \$libdir does not exist.
19860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19861
19862 # If ld is used when linking, flag to hardcode \$libdir into
19863 # a binary during linking. This must work even if \$libdir does
19864 # not exist.
19865 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19866
19867 # Whether we need a single -rpath flag with a separated argument.
19868 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19869
19870 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19871 # resulting binary.
19872 hardcode_direct=$hardcode_direct_GCJ
19873
19874 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19875 # resulting binary.
19876 hardcode_minus_L=$hardcode_minus_L_GCJ
19877
19878 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19879 # the resulting binary.
19880 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19881
19882 # Set to yes if building a shared library automatically hardcodes DIR into the library
19883 # and all subsequent libraries and executables linked against it.
19884 hardcode_automatic=$hardcode_automatic_GCJ
19885
19886 # Variables whose values should be saved in libtool wrapper scripts and
19887 # restored at relink time.
19888 variables_saved_for_relink="$variables_saved_for_relink"
19889
19890 # Whether libtool must link a program against all its dependency libraries.
19891 link_all_deplibs=$link_all_deplibs_GCJ
19892
19893 # Compile-time system search path for libraries
19894 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19895
19896 # Run-time system search path for libraries
19897 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19898
19899 # Fix the shell variable \$srcfile for the compiler.
19900 fix_srcfile_path=$lt_fix_srcfile_path
19901
19902 # Set to yes if exported symbols are required.
19903 always_export_symbols=$always_export_symbols_GCJ
19904
19905 # The commands to list exported symbols.
19906 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19907
19908 # The commands to extract the exported symbol list from a shared archive.
19909 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19910
19911 # Symbols that should not be listed in the preloaded symbols.
19912 exclude_expsyms=$lt_exclude_expsyms_GCJ
19913
19914 # Symbols that must always be exported.
19915 include_expsyms=$lt_include_expsyms_GCJ
19916
19917 # ### END LIBTOOL TAG CONFIG: $tagname
19918
19919 __EOF__
19920
19921
19922 else
19923   # If there is no Makefile yet, we rely on a make rule to execute
19924   # `config.status --recheck' to rerun these tests and create the
19925   # libtool script then.
19926   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19927   if test -f "$ltmain_in"; then
19928     test -f Makefile && make "$ltmain"
19929   fi
19930 fi
19931
19932
19933 ac_ext=c
19934 ac_cpp='$CPP $CPPFLAGS'
19935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19938
19939 CC="$lt_save_CC"
19940
19941         else
19942           tagname=""
19943         fi
19944         ;;
19945
19946       RC)
19947
19948
19949 # Source file extension for RC test sources.
19950 ac_ext=rc
19951
19952 # Object file extension for compiled RC test sources.
19953 objext=o
19954 objext_RC=$objext
19955
19956 # Code to be used in simple compile tests
19957 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19958
19959 # Code to be used in simple link tests
19960 lt_simple_link_test_code="$lt_simple_compile_test_code"
19961
19962 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19963
19964 # If no C compiler was specified, use CC.
19965 LTCC=${LTCC-"$CC"}
19966
19967 # If no C compiler flags were specified, use CFLAGS.
19968 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19969
19970 # Allow CC to be a program name with arguments.
19971 compiler=$CC
19972
19973
19974 # save warnings/boilerplate of simple test code
19975 ac_outfile=conftest.$ac_objext
19976 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19977 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19978 _lt_compiler_boilerplate=`cat conftest.err`
19979 $rm conftest*
19980
19981 ac_outfile=conftest.$ac_objext
19982 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19983 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19984 _lt_linker_boilerplate=`cat conftest.err`
19985 $rm -r conftest*
19986
19987
19988 # Allow CC to be a program name with arguments.
19989 lt_save_CC="$CC"
19990 CC=${RC-"windres"}
19991 compiler=$CC
19992 compiler_RC=$CC
19993 for cc_temp in $compiler""; do
19994   case $cc_temp in
19995     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19996     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19997     \-*) ;;
19998     *) break;;
19999   esac
20000 done
20001 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20002
20003 lt_cv_prog_compiler_c_o_RC=yes
20004
20005 # The else clause should only fire when bootstrapping the
20006 # libtool distribution, otherwise you forgot to ship ltmain.sh
20007 # with your package, and you will get complaints that there are
20008 # no rules to generate ltmain.sh.
20009 if test -f "$ltmain"; then
20010   # See if we are running on zsh, and set the options which allow our commands through
20011   # without removal of \ escapes.
20012   if test -n "${ZSH_VERSION+set}" ; then
20013     setopt NO_GLOB_SUBST
20014   fi
20015   # Now quote all the things that may contain metacharacters while being
20016   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20017   # variables and quote the copies for generation of the libtool script.
20018   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20019     SED SHELL STRIP \
20020     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20021     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20022     deplibs_check_method reload_flag reload_cmds need_locks \
20023     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20024     lt_cv_sys_global_symbol_to_c_name_address \
20025     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20026     old_postinstall_cmds old_postuninstall_cmds \
20027     compiler_RC \
20028     CC_RC \
20029     LD_RC \
20030     lt_prog_compiler_wl_RC \
20031     lt_prog_compiler_pic_RC \
20032     lt_prog_compiler_static_RC \
20033     lt_prog_compiler_no_builtin_flag_RC \
20034     export_dynamic_flag_spec_RC \
20035     thread_safe_flag_spec_RC \
20036     whole_archive_flag_spec_RC \
20037     enable_shared_with_static_runtimes_RC \
20038     old_archive_cmds_RC \
20039     old_archive_from_new_cmds_RC \
20040     predep_objects_RC \
20041     postdep_objects_RC \
20042     predeps_RC \
20043     postdeps_RC \
20044     compiler_lib_search_path_RC \
20045     compiler_lib_search_dirs_RC \
20046     archive_cmds_RC \
20047     archive_expsym_cmds_RC \
20048     postinstall_cmds_RC \
20049     postuninstall_cmds_RC \
20050     old_archive_from_expsyms_cmds_RC \
20051     allow_undefined_flag_RC \
20052     no_undefined_flag_RC \
20053     export_symbols_cmds_RC \
20054     hardcode_libdir_flag_spec_RC \
20055     hardcode_libdir_flag_spec_ld_RC \
20056     hardcode_libdir_separator_RC \
20057     hardcode_automatic_RC \
20058     module_cmds_RC \
20059     module_expsym_cmds_RC \
20060     lt_cv_prog_compiler_c_o_RC \
20061     fix_srcfile_path_RC \
20062     exclude_expsyms_RC \
20063     include_expsyms_RC; do
20064
20065     case $var in
20066     old_archive_cmds_RC | \
20067     old_archive_from_new_cmds_RC | \
20068     archive_cmds_RC | \
20069     archive_expsym_cmds_RC | \
20070     module_cmds_RC | \
20071     module_expsym_cmds_RC | \
20072     old_archive_from_expsyms_cmds_RC | \
20073     export_symbols_cmds_RC | \
20074     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20075     postinstall_cmds | postuninstall_cmds | \
20076     old_postinstall_cmds | old_postuninstall_cmds | \
20077     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20078       # Double-quote double-evaled strings.
20079       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20080       ;;
20081     *)
20082       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20083       ;;
20084     esac
20085   done
20086
20087   case $lt_echo in
20088   *'\$0 --fallback-echo"')
20089     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20090     ;;
20091   esac
20092
20093 cfgfile="$ofile"
20094
20095   cat <<__EOF__ >> "$cfgfile"
20096 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20097
20098 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20099
20100 # Shell to use when invoking shell scripts.
20101 SHELL=$lt_SHELL
20102
20103 # Whether or not to build shared libraries.
20104 build_libtool_libs=$enable_shared
20105
20106 # Whether or not to build static libraries.
20107 build_old_libs=$enable_static
20108
20109 # Whether or not to add -lc for building shared libraries.
20110 build_libtool_need_lc=$archive_cmds_need_lc_RC
20111
20112 # Whether or not to disallow shared libs when runtime libs are static
20113 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20114
20115 # Whether or not to optimize for fast installation.
20116 fast_install=$enable_fast_install
20117
20118 # The host system.
20119 host_alias=$host_alias
20120 host=$host
20121 host_os=$host_os
20122
20123 # The build system.
20124 build_alias=$build_alias
20125 build=$build
20126 build_os=$build_os
20127
20128 # An echo program that does not interpret backslashes.
20129 echo=$lt_echo
20130
20131 # The archiver.
20132 AR=$lt_AR
20133 AR_FLAGS=$lt_AR_FLAGS
20134
20135 # A C compiler.
20136 LTCC=$lt_LTCC
20137
20138 # LTCC compiler flags.
20139 LTCFLAGS=$lt_LTCFLAGS
20140
20141 # A language-specific compiler.
20142 CC=$lt_compiler_RC
20143
20144 # Is the compiler the GNU C compiler?
20145 with_gcc=$GCC_RC
20146
20147 # An ERE matcher.
20148 EGREP=$lt_EGREP
20149
20150 # The linker used to build libraries.
20151 LD=$lt_LD_RC
20152
20153 # Whether we need hard or soft links.
20154 LN_S=$lt_LN_S
20155
20156 # A BSD-compatible nm program.
20157 NM=$lt_NM
20158
20159 # A symbol stripping program
20160 STRIP=$lt_STRIP
20161
20162 # Used to examine libraries when file_magic_cmd begins "file"
20163 MAGIC_CMD=$MAGIC_CMD
20164
20165 # Used on cygwin: DLL creation program.
20166 DLLTOOL="$DLLTOOL"
20167
20168 # Used on cygwin: object dumper.
20169 OBJDUMP="$OBJDUMP"
20170
20171 # Used on cygwin: assembler.
20172 AS="$AS"
20173
20174 # The name of the directory that contains temporary libtool files.
20175 objdir=$objdir
20176
20177 # How to create reloadable object files.
20178 reload_flag=$lt_reload_flag
20179 reload_cmds=$lt_reload_cmds
20180
20181 # How to pass a linker flag through the compiler.
20182 wl=$lt_lt_prog_compiler_wl_RC
20183
20184 # Object file suffix (normally "o").
20185 objext="$ac_objext"
20186
20187 # Old archive suffix (normally "a").
20188 libext="$libext"
20189
20190 # Shared library suffix (normally ".so").
20191 shrext_cmds='$shrext_cmds'
20192
20193 # Executable file suffix (normally "").
20194 exeext="$exeext"
20195
20196 # Additional compiler flags for building library objects.
20197 pic_flag=$lt_lt_prog_compiler_pic_RC
20198 pic_mode=$pic_mode
20199
20200 # What is the maximum length of a command?
20201 max_cmd_len=$lt_cv_sys_max_cmd_len
20202
20203 # Does compiler simultaneously support -c and -o options?
20204 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20205
20206 # Must we lock files when doing compilation?
20207 need_locks=$lt_need_locks
20208
20209 # Do we need the lib prefix for modules?
20210 need_lib_prefix=$need_lib_prefix
20211
20212 # Do we need a version for libraries?
20213 need_version=$need_version
20214
20215 # Whether dlopen is supported.
20216 dlopen_support=$enable_dlopen
20217
20218 # Whether dlopen of programs is supported.
20219 dlopen_self=$enable_dlopen_self
20220
20221 # Whether dlopen of statically linked programs is supported.
20222 dlopen_self_static=$enable_dlopen_self_static
20223
20224 # Compiler flag to prevent dynamic linking.
20225 link_static_flag=$lt_lt_prog_compiler_static_RC
20226
20227 # Compiler flag to turn off builtin functions.
20228 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20229
20230 # Compiler flag to allow reflexive dlopens.
20231 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20232
20233 # Compiler flag to generate shared objects directly from archives.
20234 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20235
20236 # Compiler flag to generate thread-safe objects.
20237 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20238
20239 # Library versioning type.
20240 version_type=$version_type
20241
20242 # Format of library name prefix.
20243 libname_spec=$lt_libname_spec
20244
20245 # List of archive names.  First name is the real one, the rest are links.
20246 # The last name is the one that the linker finds with -lNAME.
20247 library_names_spec=$lt_library_names_spec
20248
20249 # The coded name of the library, if different from the real name.
20250 soname_spec=$lt_soname_spec
20251
20252 # Commands used to build and install an old-style archive.
20253 RANLIB=$lt_RANLIB
20254 old_archive_cmds=$lt_old_archive_cmds_RC
20255 old_postinstall_cmds=$lt_old_postinstall_cmds
20256 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20257
20258 # Create an old-style archive from a shared archive.
20259 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20260
20261 # Create a temporary old-style archive to link instead of a shared archive.
20262 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20263
20264 # Commands used to build and install a shared archive.
20265 archive_cmds=$lt_archive_cmds_RC
20266 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20267 postinstall_cmds=$lt_postinstall_cmds
20268 postuninstall_cmds=$lt_postuninstall_cmds
20269
20270 # Commands used to build a loadable module (assumed same as above if empty)
20271 module_cmds=$lt_module_cmds_RC
20272 module_expsym_cmds=$lt_module_expsym_cmds_RC
20273
20274 # Commands to strip libraries.
20275 old_striplib=$lt_old_striplib
20276 striplib=$lt_striplib
20277
20278 # Dependencies to place before the objects being linked to create a
20279 # shared library.
20280 predep_objects=$lt_predep_objects_RC
20281
20282 # Dependencies to place after the objects being linked to create a
20283 # shared library.
20284 postdep_objects=$lt_postdep_objects_RC
20285
20286 # Dependencies to place before the objects being linked to create a
20287 # shared library.
20288 predeps=$lt_predeps_RC
20289
20290 # Dependencies to place after the objects being linked to create a
20291 # shared library.
20292 postdeps=$lt_postdeps_RC
20293
20294 # The directories searched by this compiler when creating a shared
20295 # library
20296 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20297
20298 # The library search path used internally by the compiler when linking
20299 # a shared library.
20300 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20301
20302 # Method to check whether dependent libraries are shared objects.
20303 deplibs_check_method=$lt_deplibs_check_method
20304
20305 # Command to use when deplibs_check_method == file_magic.
20306 file_magic_cmd=$lt_file_magic_cmd
20307
20308 # Flag that allows shared libraries with undefined symbols to be built.
20309 allow_undefined_flag=$lt_allow_undefined_flag_RC
20310
20311 # Flag that forces no undefined symbols.
20312 no_undefined_flag=$lt_no_undefined_flag_RC
20313
20314 # Commands used to finish a libtool library installation in a directory.
20315 finish_cmds=$lt_finish_cmds
20316
20317 # Same as above, but a single script fragment to be evaled but not shown.
20318 finish_eval=$lt_finish_eval
20319
20320 # Take the output of nm and produce a listing of raw symbols and C names.
20321 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20322
20323 # Transform the output of nm in a proper C declaration
20324 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20325
20326 # Transform the output of nm in a C name address pair
20327 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20328
20329 # This is the shared library runtime path variable.
20330 runpath_var=$runpath_var
20331
20332 # This is the shared library path variable.
20333 shlibpath_var=$shlibpath_var
20334
20335 # Is shlibpath searched before the hard-coded library search path?
20336 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20337
20338 # How to hardcode a shared library path into an executable.
20339 hardcode_action=$hardcode_action_RC
20340
20341 # Whether we should hardcode library paths into libraries.
20342 hardcode_into_libs=$hardcode_into_libs
20343
20344 # Flag to hardcode \$libdir into a binary during linking.
20345 # This must work even if \$libdir does not exist.
20346 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20347
20348 # If ld is used when linking, flag to hardcode \$libdir into
20349 # a binary during linking. This must work even if \$libdir does
20350 # not exist.
20351 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20352
20353 # Whether we need a single -rpath flag with a separated argument.
20354 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20355
20356 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20357 # resulting binary.
20358 hardcode_direct=$hardcode_direct_RC
20359
20360 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20361 # resulting binary.
20362 hardcode_minus_L=$hardcode_minus_L_RC
20363
20364 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20365 # the resulting binary.
20366 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20367
20368 # Set to yes if building a shared library automatically hardcodes DIR into the library
20369 # and all subsequent libraries and executables linked against it.
20370 hardcode_automatic=$hardcode_automatic_RC
20371
20372 # Variables whose values should be saved in libtool wrapper scripts and
20373 # restored at relink time.
20374 variables_saved_for_relink="$variables_saved_for_relink"
20375
20376 # Whether libtool must link a program against all its dependency libraries.
20377 link_all_deplibs=$link_all_deplibs_RC
20378
20379 # Compile-time system search path for libraries
20380 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20381
20382 # Run-time system search path for libraries
20383 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20384
20385 # Fix the shell variable \$srcfile for the compiler.
20386 fix_srcfile_path=$lt_fix_srcfile_path
20387
20388 # Set to yes if exported symbols are required.
20389 always_export_symbols=$always_export_symbols_RC
20390
20391 # The commands to list exported symbols.
20392 export_symbols_cmds=$lt_export_symbols_cmds_RC
20393
20394 # The commands to extract the exported symbol list from a shared archive.
20395 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20396
20397 # Symbols that should not be listed in the preloaded symbols.
20398 exclude_expsyms=$lt_exclude_expsyms_RC
20399
20400 # Symbols that must always be exported.
20401 include_expsyms=$lt_include_expsyms_RC
20402
20403 # ### END LIBTOOL TAG CONFIG: $tagname
20404
20405 __EOF__
20406
20407
20408 else
20409   # If there is no Makefile yet, we rely on a make rule to execute
20410   # `config.status --recheck' to rerun these tests and create the
20411   # libtool script then.
20412   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20413   if test -f "$ltmain_in"; then
20414     test -f Makefile && make "$ltmain"
20415   fi
20416 fi
20417
20418
20419 ac_ext=c
20420 ac_cpp='$CPP $CPPFLAGS'
20421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20424
20425 CC="$lt_save_CC"
20426
20427         ;;
20428
20429       *)
20430         { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20431 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20432    { (exit 1); exit 1; }; }
20433         ;;
20434       esac
20435
20436       # Append the new tag name to the list of available tags.
20437       if test -n "$tagname" ; then
20438       available_tags="$available_tags $tagname"
20439     fi
20440     fi
20441   done
20442   IFS="$lt_save_ifs"
20443
20444   # Now substitute the updated list of available tags.
20445   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20446     mv "${ofile}T" "$ofile"
20447     chmod +x "$ofile"
20448   else
20449     rm -f "${ofile}T"
20450     { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20451 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20452    { (exit 1); exit 1; }; }
20453   fi
20454 fi
20455
20456
20457
20458 # This can be used to rebuild libtool when needed
20459 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20460
20461 # Always use our own libtool.
20462 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20463
20464 # Prevent multiple expansion
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486 DESIRED_FLAGS="-Wall -W -Wextra -pedantic -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter"
20487
20488 for flag in $DESIRED_FLAGS ; do
20489
20490   { $as_echo "$as_me:$LINENO: checking if $CC supports $flag flag" >&5
20491 $as_echo_n "checking if $CC supports $flag flag... " >&6; }
20492 if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then
20493   $as_echo_n "(cached) " >&6
20494 else
20495
20496   if { as_var=`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`; eval "test \"\${$as_var+set}\" = set"; }; then
20497   $as_echo_n "(cached) " >&6
20498 else
20499   ac_save_CFLAGS="$CFLAGS"
20500      CFLAGS="$CFLAGS $flag"
20501      cat >conftest.$ac_ext <<_ACEOF
20502 int a;
20503 _ACEOF
20504 rm -f conftest.$ac_objext
20505 if { (ac_try="$ac_compile"
20506 case "(($ac_try" in
20507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20508   *) ac_try_echo=$ac_try;;
20509 esac
20510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20511 $as_echo "$ac_try_echo") >&5
20512   (eval "$ac_compile") 2>conftest.er1
20513   ac_status=$?
20514   grep -v '^ *+' conftest.er1 >conftest.err
20515   rm -f conftest.er1
20516   cat conftest.err >&5
20517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); } && {
20519          test -z "$ac_c_werror_flag" ||
20520          test ! -s conftest.err
20521        } && test -s conftest.$ac_objext; then
20522   eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='yes'"
20523 else
20524   $as_echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20526
20527         eval "`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh`='no'"
20528 fi
20529
20530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20531      CFLAGS="$ac_save_CFLAGS"
20532
20533 fi
20534
20535
20536
20537
20538 fi
20539 ac_res=`eval 'as_val=${'\`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh\`'}
20540                  $as_echo "$as_val"'`
20541                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20542 $as_echo "$ac_res" >&6; }
20543
20544   if eval test x$`$as_echo "cc_cv_cflags_$flag" | $as_tr_sh` = xyes; then
20545   CFLAGS="$CFLAGS $flag"
20546 fi
20547
20548
20549 done
20550
20551 # Checks for header files.
20552
20553   { $as_echo "$as_me:$LINENO: checking whether to enable assertions" >&5
20554 $as_echo_n "checking whether to enable assertions... " >&6; }
20555   # Check whether --enable-assert was given.
20556 if test "${enable_assert+set}" = set; then
20557   enableval=$enable_assert; { $as_echo "$as_me:$LINENO: result: no" >&5
20558 $as_echo "no" >&6; }
20559
20560 cat >>confdefs.h <<\_ACEOF
20561 #define NDEBUG 1
20562 _ACEOF
20563
20564 else
20565   { $as_echo "$as_me:$LINENO: result: yes" >&5
20566 $as_echo "yes" >&6; }
20567 fi
20568
20569
20570 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20571 $as_echo_n "checking for ANSI C header files... " >&6; }
20572 if test "${ac_cv_header_stdc+set}" = set; then
20573   $as_echo_n "(cached) " >&6
20574 else
20575   cat >conftest.$ac_ext <<_ACEOF
20576 /* confdefs.h.  */
20577 _ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h.  */
20581 #include <stdlib.h>
20582 #include <stdarg.h>
20583 #include <string.h>
20584 #include <float.h>
20585
20586 int
20587 main ()
20588 {
20589
20590   ;
20591   return 0;
20592 }
20593 _ACEOF
20594 rm -f conftest.$ac_objext
20595 if { (ac_try="$ac_compile"
20596 case "(($ac_try" in
20597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598   *) ac_try_echo=$ac_try;;
20599 esac
20600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20601 $as_echo "$ac_try_echo") >&5
20602   (eval "$ac_compile") 2>conftest.er1
20603   ac_status=$?
20604   grep -v '^ *+' conftest.er1 >conftest.err
20605   rm -f conftest.er1
20606   cat conftest.err >&5
20607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608   (exit $ac_status); } && {
20609          test -z "$ac_c_werror_flag" ||
20610          test ! -s conftest.err
20611        } && test -s conftest.$ac_objext; then
20612   ac_cv_header_stdc=yes
20613 else
20614   $as_echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20616
20617         ac_cv_header_stdc=no
20618 fi
20619
20620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20621
20622 if test $ac_cv_header_stdc = yes; then
20623   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20624   cat >conftest.$ac_ext <<_ACEOF
20625 /* confdefs.h.  */
20626 _ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h.  */
20630 #include <string.h>
20631
20632 _ACEOF
20633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20634   $EGREP "memchr" >/dev/null 2>&1; then
20635   :
20636 else
20637   ac_cv_header_stdc=no
20638 fi
20639 rm -f conftest*
20640
20641 fi
20642
20643 if test $ac_cv_header_stdc = yes; then
20644   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20645   cat >conftest.$ac_ext <<_ACEOF
20646 /* confdefs.h.  */
20647 _ACEOF
20648 cat confdefs.h >>conftest.$ac_ext
20649 cat >>conftest.$ac_ext <<_ACEOF
20650 /* end confdefs.h.  */
20651 #include <stdlib.h>
20652
20653 _ACEOF
20654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20655   $EGREP "free" >/dev/null 2>&1; then
20656   :
20657 else
20658   ac_cv_header_stdc=no
20659 fi
20660 rm -f conftest*
20661
20662 fi
20663
20664 if test $ac_cv_header_stdc = yes; then
20665   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20666   if test "$cross_compiling" = yes; then
20667   :
20668 else
20669   cat >conftest.$ac_ext <<_ACEOF
20670 /* confdefs.h.  */
20671 _ACEOF
20672 cat confdefs.h >>conftest.$ac_ext
20673 cat >>conftest.$ac_ext <<_ACEOF
20674 /* end confdefs.h.  */
20675 #include <ctype.h>
20676 #include <stdlib.h>
20677 #if ((' ' & 0x0FF) == 0x020)
20678 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20679 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20680 #else
20681 # define ISLOWER(c) \
20682                    (('a' <= (c) && (c) <= 'i') \
20683                      || ('j' <= (c) && (c) <= 'r') \
20684                      || ('s' <= (c) && (c) <= 'z'))
20685 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20686 #endif
20687
20688 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20689 int
20690 main ()
20691 {
20692   int i;
20693   for (i = 0; i < 256; i++)
20694     if (XOR (islower (i), ISLOWER (i))
20695         || toupper (i) != TOUPPER (i))
20696       return 2;
20697   return 0;
20698 }
20699 _ACEOF
20700 rm -f conftest$ac_exeext
20701 if { (ac_try="$ac_link"
20702 case "(($ac_try" in
20703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20704   *) ac_try_echo=$ac_try;;
20705 esac
20706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20707 $as_echo "$ac_try_echo") >&5
20708   (eval "$ac_link") 2>&5
20709   ac_status=$?
20710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20712   { (case "(($ac_try" in
20713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20714   *) ac_try_echo=$ac_try;;
20715 esac
20716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20717 $as_echo "$ac_try_echo") >&5
20718   (eval "$ac_try") 2>&5
20719   ac_status=$?
20720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721   (exit $ac_status); }; }; then
20722   :
20723 else
20724   $as_echo "$as_me: program exited with status $ac_status" >&5
20725 $as_echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20727
20728 ( exit $ac_status )
20729 ac_cv_header_stdc=no
20730 fi
20731 rm -rf conftest.dSYM
20732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20733 fi
20734
20735
20736 fi
20737 fi
20738 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20739 $as_echo "$ac_cv_header_stdc" >&6; }
20740 if test $ac_cv_header_stdc = yes; then
20741
20742 cat >>confdefs.h <<\_ACEOF
20743 #define STDC_HEADERS 1
20744 _ACEOF
20745
20746 fi
20747
20748 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20749 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
20750 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20751   $as_echo_n "(cached) " >&6
20752 else
20753   cat >conftest.$ac_ext <<_ACEOF
20754 /* confdefs.h.  */
20755 _ACEOF
20756 cat confdefs.h >>conftest.$ac_ext
20757 cat >>conftest.$ac_ext <<_ACEOF
20758 /* end confdefs.h.  */
20759 #include <sys/types.h>
20760 #include <sys/wait.h>
20761 #ifndef WEXITSTATUS
20762 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20763 #endif
20764 #ifndef WIFEXITED
20765 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20766 #endif
20767
20768 int
20769 main ()
20770 {
20771   int s;
20772   wait (&s);
20773   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20774   ;
20775   return 0;
20776 }
20777 _ACEOF
20778 rm -f conftest.$ac_objext
20779 if { (ac_try="$ac_compile"
20780 case "(($ac_try" in
20781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782   *) ac_try_echo=$ac_try;;
20783 esac
20784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20785 $as_echo "$ac_try_echo") >&5
20786   (eval "$ac_compile") 2>conftest.er1
20787   ac_status=$?
20788   grep -v '^ *+' conftest.er1 >conftest.err
20789   rm -f conftest.er1
20790   cat conftest.err >&5
20791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792   (exit $ac_status); } && {
20793          test -z "$ac_c_werror_flag" ||
20794          test ! -s conftest.err
20795        } && test -s conftest.$ac_objext; then
20796   ac_cv_header_sys_wait_h=yes
20797 else
20798   $as_echo "$as_me: failed program was:" >&5
20799 sed 's/^/| /' conftest.$ac_ext >&5
20800
20801         ac_cv_header_sys_wait_h=no
20802 fi
20803
20804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20805 fi
20806 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20807 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
20808 if test $ac_cv_header_sys_wait_h = yes; then
20809
20810 cat >>confdefs.h <<\_ACEOF
20811 #define HAVE_SYS_WAIT_H 1
20812 _ACEOF
20813
20814 fi
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826 for ac_header in arpa/inet.h fcntl.h netdb.h stdlib.h string.h sys/socket.h unistd.h sys/prctl.h netinet/in.h arpa/nameser_compat.h
20827 do
20828 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20830   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20831 $as_echo_n "checking for $ac_header... " >&6; }
20832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20833   $as_echo_n "(cached) " >&6
20834 fi
20835 ac_res=`eval 'as_val=${'$as_ac_Header'}
20836                  $as_echo "$as_val"'`
20837                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20838 $as_echo "$ac_res" >&6; }
20839 else
20840   # Is the header compilable?
20841 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20842 $as_echo_n "checking $ac_header usability... " >&6; }
20843 cat >conftest.$ac_ext <<_ACEOF
20844 /* confdefs.h.  */
20845 _ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h.  */
20849 $ac_includes_default
20850 #include <$ac_header>
20851 _ACEOF
20852 rm -f conftest.$ac_objext
20853 if { (ac_try="$ac_compile"
20854 case "(($ac_try" in
20855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20856   *) ac_try_echo=$ac_try;;
20857 esac
20858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20859 $as_echo "$ac_try_echo") >&5
20860   (eval "$ac_compile") 2>conftest.er1
20861   ac_status=$?
20862   grep -v '^ *+' conftest.er1 >conftest.err
20863   rm -f conftest.er1
20864   cat conftest.err >&5
20865   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866   (exit $ac_status); } && {
20867          test -z "$ac_c_werror_flag" ||
20868          test ! -s conftest.err
20869        } && test -s conftest.$ac_objext; then
20870   ac_header_compiler=yes
20871 else
20872   $as_echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20874
20875         ac_header_compiler=no
20876 fi
20877
20878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20879 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20880 $as_echo "$ac_header_compiler" >&6; }
20881
20882 # Is the header present?
20883 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20884 $as_echo_n "checking $ac_header presence... " >&6; }
20885 cat >conftest.$ac_ext <<_ACEOF
20886 /* confdefs.h.  */
20887 _ACEOF
20888 cat confdefs.h >>conftest.$ac_ext
20889 cat >>conftest.$ac_ext <<_ACEOF
20890 /* end confdefs.h.  */
20891 #include <$ac_header>
20892 _ACEOF
20893 if { (ac_try="$ac_cpp conftest.$ac_ext"
20894 case "(($ac_try" in
20895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896   *) ac_try_echo=$ac_try;;
20897 esac
20898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20899 $as_echo "$ac_try_echo") >&5
20900   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20901   ac_status=$?
20902   grep -v '^ *+' conftest.er1 >conftest.err
20903   rm -f conftest.er1
20904   cat conftest.err >&5
20905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906   (exit $ac_status); } >/dev/null && {
20907          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20908          test ! -s conftest.err
20909        }; then
20910   ac_header_preproc=yes
20911 else
20912   $as_echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20914
20915   ac_header_preproc=no
20916 fi
20917
20918 rm -f conftest.err conftest.$ac_ext
20919 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20920 $as_echo "$ac_header_preproc" >&6; }
20921
20922 # So?  What about this header?
20923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20924   yes:no: )
20925     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20926 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20927     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20928 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20929     ac_header_preproc=yes
20930     ;;
20931   no:yes:* )
20932     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20933 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20934     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20935 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20936     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20937 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20938     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20939 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20940     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20941 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20942     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20943 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20944     ( cat <<\_ASBOX
20945 ## ----------------------------------------------- ##
20946 ## Report this to mznflapaf (at) 0pointer (dot) de ##
20947 ## ----------------------------------------------- ##
20948 _ASBOX
20949      ) | sed "s/^/$as_me: WARNING:     /" >&2
20950     ;;
20951 esac
20952 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20953 $as_echo_n "checking for $ac_header... " >&6; }
20954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20955   $as_echo_n "(cached) " >&6
20956 else
20957   eval "$as_ac_Header=\$ac_header_preproc"
20958 fi
20959 ac_res=`eval 'as_val=${'$as_ac_Header'}
20960                  $as_echo "$as_val"'`
20961                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20962 $as_echo "$ac_res" >&6; }
20963
20964 fi
20965 as_val=`eval 'as_val=${'$as_ac_Header'}
20966                  $as_echo "$as_val"'`
20967    if test "x$as_val" = x""yes; then
20968   cat >>confdefs.h <<_ACEOF
20969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20970 _ACEOF
20971
20972 fi
20973
20974 done
20975
20976
20977 # Checks for typedefs, structures, and compiler characteristics.
20978 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20979 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20980 if test "${ac_cv_c_const+set}" = set; then
20981   $as_echo_n "(cached) " >&6
20982 else
20983   cat >conftest.$ac_ext <<_ACEOF
20984 /* confdefs.h.  */
20985 _ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h.  */
20989
20990 int
20991 main ()
20992 {
20993 /* FIXME: Include the comments suggested by Paul. */
20994 #ifndef __cplusplus
20995   /* Ultrix mips cc rejects this.  */
20996   typedef int charset[2];
20997   const charset cs;
20998   /* SunOS 4.1.1 cc rejects this.  */
20999   char const *const *pcpcc;
21000   char **ppc;
21001   /* NEC SVR4.0.2 mips cc rejects this.  */
21002   struct point {int x, y;};
21003   static struct point const zero = {0,0};
21004   /* AIX XL C 1.02.0.0 rejects this.
21005      It does not let you subtract one const X* pointer from another in
21006      an arm of an if-expression whose if-part is not a constant
21007      expression */
21008   const char *g = "string";
21009   pcpcc = &g + (g ? g-g : 0);
21010   /* HPUX 7.0 cc rejects these. */
21011   ++pcpcc;
21012   ppc = (char**) pcpcc;
21013   pcpcc = (char const *const *) ppc;
21014   { /* SCO 3.2v4 cc rejects this.  */
21015     char *t;
21016     char const *s = 0 ? (char *) 0 : (char const *) 0;
21017
21018     *t++ = 0;
21019     if (s) return 0;
21020   }
21021   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21022     int x[] = {25, 17};
21023     const int *foo = &x[0];
21024     ++foo;
21025   }
21026   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21027     typedef const int *iptr;
21028     iptr p = 0;
21029     ++p;
21030   }
21031   { /* AIX XL C 1.02.0.0 rejects this saying
21032        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21033     struct s { int j; const int *ap[3]; };
21034     struct s *b; b->j = 5;
21035   }
21036   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21037     const int foo = 10;
21038     if (!foo) return 0;
21039   }
21040   return !cs[0] && !zero.x;
21041 #endif
21042
21043   ;
21044   return 0;
21045 }
21046 _ACEOF
21047 rm -f conftest.$ac_objext
21048 if { (ac_try="$ac_compile"
21049 case "(($ac_try" in
21050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051   *) ac_try_echo=$ac_try;;
21052 esac
21053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21054 $as_echo "$ac_try_echo") >&5
21055   (eval "$ac_compile") 2>conftest.er1
21056   ac_status=$?
21057   grep -v '^ *+' conftest.er1 >conftest.err
21058   rm -f conftest.er1
21059   cat conftest.err >&5
21060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061   (exit $ac_status); } && {
21062          test -z "$ac_c_werror_flag" ||
21063          test ! -s conftest.err
21064        } && test -s conftest.$ac_objext; then
21065   ac_cv_c_const=yes
21066 else
21067   $as_echo "$as_me: failed program was:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21069
21070         ac_cv_c_const=no
21071 fi
21072
21073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21074 fi
21075 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21076 $as_echo "$ac_cv_c_const" >&6; }
21077 if test $ac_cv_c_const = no; then
21078
21079 cat >>confdefs.h <<\_ACEOF
21080 #define const /**/
21081 _ACEOF
21082
21083 fi
21084
21085 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
21086 $as_echo_n "checking for pid_t... " >&6; }
21087 if test "${ac_cv_type_pid_t+set}" = set; then
21088   $as_echo_n "(cached) " >&6
21089 else
21090   ac_cv_type_pid_t=no
21091 cat >conftest.$ac_ext <<_ACEOF
21092 /* confdefs.h.  */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h.  */
21097 $ac_includes_default
21098 int
21099 main ()
21100 {
21101 if (sizeof (pid_t))
21102        return 0;
21103   ;
21104   return 0;
21105 }
21106 _ACEOF
21107 rm -f conftest.$ac_objext
21108 if { (ac_try="$ac_compile"
21109 case "(($ac_try" in
21110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111   *) ac_try_echo=$ac_try;;
21112 esac
21113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21114 $as_echo "$ac_try_echo") >&5
21115   (eval "$ac_compile") 2>conftest.er1
21116   ac_status=$?
21117   grep -v '^ *+' conftest.er1 >conftest.err
21118   rm -f conftest.er1
21119   cat conftest.err >&5
21120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121   (exit $ac_status); } && {
21122          test -z "$ac_c_werror_flag" ||
21123          test ! -s conftest.err
21124        } && test -s conftest.$ac_objext; then
21125   cat >conftest.$ac_ext <<_ACEOF
21126 /* confdefs.h.  */
21127 _ACEOF
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h.  */
21131 $ac_includes_default
21132 int
21133 main ()
21134 {
21135 if (sizeof ((pid_t)))
21136           return 0;
21137   ;
21138   return 0;
21139 }
21140 _ACEOF
21141 rm -f conftest.$ac_objext
21142 if { (ac_try="$ac_compile"
21143 case "(($ac_try" in
21144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21145   *) ac_try_echo=$ac_try;;
21146 esac
21147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21148 $as_echo "$ac_try_echo") >&5
21149   (eval "$ac_compile") 2>conftest.er1
21150   ac_status=$?
21151   grep -v '^ *+' conftest.er1 >conftest.err
21152   rm -f conftest.er1
21153   cat conftest.err >&5
21154   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155   (exit $ac_status); } && {
21156          test -z "$ac_c_werror_flag" ||
21157          test ! -s conftest.err
21158        } && test -s conftest.$ac_objext; then
21159   :
21160 else
21161   $as_echo "$as_me: failed program was:" >&5
21162 sed 's/^/| /' conftest.$ac_ext >&5
21163
21164         ac_cv_type_pid_t=yes
21165 fi
21166
21167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21168 else
21169   $as_echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21171
21172
21173 fi
21174
21175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21176 fi
21177 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21178 $as_echo "$ac_cv_type_pid_t" >&6; }
21179 if test "x$ac_cv_type_pid_t" = x""yes; then
21180   :
21181 else
21182
21183 cat >>confdefs.h <<_ACEOF
21184 #define pid_t int
21185 _ACEOF
21186
21187 fi
21188
21189 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
21190 $as_echo_n "checking for size_t... " >&6; }
21191 if test "${ac_cv_type_size_t+set}" = set; then
21192   $as_echo_n "(cached) " >&6
21193 else
21194   ac_cv_type_size_t=no
21195 cat >conftest.$ac_ext <<_ACEOF
21196 /* confdefs.h.  */
21197 _ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h.  */
21201 $ac_includes_default
21202 int
21203 main ()
21204 {
21205 if (sizeof (size_t))
21206        return 0;
21207   ;
21208   return 0;
21209 }
21210 _ACEOF
21211 rm -f conftest.$ac_objext
21212 if { (ac_try="$ac_compile"
21213 case "(($ac_try" in
21214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21215   *) ac_try_echo=$ac_try;;
21216 esac
21217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21218 $as_echo "$ac_try_echo") >&5
21219   (eval "$ac_compile") 2>conftest.er1
21220   ac_status=$?
21221   grep -v '^ *+' conftest.er1 >conftest.err
21222   rm -f conftest.er1
21223   cat conftest.err >&5
21224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225   (exit $ac_status); } && {
21226          test -z "$ac_c_werror_flag" ||
21227          test ! -s conftest.err
21228        } && test -s conftest.$ac_objext; then
21229   cat >conftest.$ac_ext <<_ACEOF
21230 /* confdefs.h.  */
21231 _ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h.  */
21235 $ac_includes_default
21236 int
21237 main ()
21238 {
21239 if (sizeof ((size_t)))
21240           return 0;
21241   ;
21242   return 0;
21243 }
21244 _ACEOF
21245 rm -f conftest.$ac_objext
21246 if { (ac_try="$ac_compile"
21247 case "(($ac_try" in
21248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21249   *) ac_try_echo=$ac_try;;
21250 esac
21251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21252 $as_echo "$ac_try_echo") >&5
21253   (eval "$ac_compile") 2>conftest.er1
21254   ac_status=$?
21255   grep -v '^ *+' conftest.er1 >conftest.err
21256   rm -f conftest.er1
21257   cat conftest.err >&5
21258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259   (exit $ac_status); } && {
21260          test -z "$ac_c_werror_flag" ||
21261          test ! -s conftest.err
21262        } && test -s conftest.$ac_objext; then
21263   :
21264 else
21265   $as_echo "$as_me: failed program was:" >&5
21266 sed 's/^/| /' conftest.$ac_ext >&5
21267
21268         ac_cv_type_size_t=yes
21269 fi
21270
21271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21272 else
21273   $as_echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21275
21276
21277 fi
21278
21279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21280 fi
21281 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21282 $as_echo "$ac_cv_type_size_t" >&6; }
21283 if test "x$ac_cv_type_size_t" = x""yes; then
21284   :
21285 else
21286
21287 cat >>confdefs.h <<_ACEOF
21288 #define size_t unsigned int
21289 _ACEOF
21290
21291 fi
21292
21293 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
21294 $as_echo_n "checking for ssize_t... " >&6; }
21295 if test "${ac_cv_type_ssize_t+set}" = set; then
21296   $as_echo_n "(cached) " >&6
21297 else
21298   ac_cv_type_ssize_t=no
21299 cat >conftest.$ac_ext <<_ACEOF
21300 /* confdefs.h.  */
21301 _ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h.  */
21305 $ac_includes_default
21306 int
21307 main ()
21308 {
21309 if (sizeof (ssize_t))
21310        return 0;
21311   ;
21312   return 0;
21313 }
21314 _ACEOF
21315 rm -f conftest.$ac_objext
21316 if { (ac_try="$ac_compile"
21317 case "(($ac_try" in
21318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21319   *) ac_try_echo=$ac_try;;
21320 esac
21321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21322 $as_echo "$ac_try_echo") >&5
21323   (eval "$ac_compile") 2>conftest.er1
21324   ac_status=$?
21325   grep -v '^ *+' conftest.er1 >conftest.err
21326   rm -f conftest.er1
21327   cat conftest.err >&5
21328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329   (exit $ac_status); } && {
21330          test -z "$ac_c_werror_flag" ||
21331          test ! -s conftest.err
21332        } && test -s conftest.$ac_objext; then
21333   cat >conftest.$ac_ext <<_ACEOF
21334 /* confdefs.h.  */
21335 _ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h.  */
21339 $ac_includes_default
21340 int
21341 main ()
21342 {
21343 if (sizeof ((ssize_t)))
21344           return 0;
21345   ;
21346   return 0;
21347 }
21348 _ACEOF
21349 rm -f conftest.$ac_objext
21350 if { (ac_try="$ac_compile"
21351 case "(($ac_try" in
21352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353   *) ac_try_echo=$ac_try;;
21354 esac
21355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21356 $as_echo "$ac_try_echo") >&5
21357   (eval "$ac_compile") 2>conftest.er1
21358   ac_status=$?
21359   grep -v '^ *+' conftest.er1 >conftest.err
21360   rm -f conftest.er1
21361   cat conftest.err >&5
21362   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363   (exit $ac_status); } && {
21364          test -z "$ac_c_werror_flag" ||
21365          test ! -s conftest.err
21366        } && test -s conftest.$ac_objext; then
21367   :
21368 else
21369   $as_echo "$as_me: failed program was:" >&5
21370 sed 's/^/| /' conftest.$ac_ext >&5
21371
21372         ac_cv_type_ssize_t=yes
21373 fi
21374
21375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21376 else
21377   $as_echo "$as_me: failed program was:" >&5
21378 sed 's/^/| /' conftest.$ac_ext >&5
21379
21380
21381 fi
21382
21383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21384 fi
21385 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
21386 $as_echo "$ac_cv_type_ssize_t" >&6; }
21387 if test "x$ac_cv_type_ssize_t" = x""yes; then
21388   :
21389 else
21390
21391 cat >>confdefs.h <<_ACEOF
21392 #define ssize_t int
21393 _ACEOF
21394
21395 fi
21396
21397
21398   { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
21399 $as_echo_n "checking for uint16_t... " >&6; }
21400 if test "${ac_cv_c_uint16_t+set}" = set; then
21401   $as_echo_n "(cached) " >&6
21402 else
21403   ac_cv_c_uint16_t=no
21404      for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
21405          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21406        cat >conftest.$ac_ext <<_ACEOF
21407 /* confdefs.h.  */
21408 _ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h.  */
21412 $ac_includes_default
21413 int
21414 main ()
21415 {
21416 static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
21417 test_array [0] = 0
21418
21419   ;
21420   return 0;
21421 }
21422 _ACEOF
21423 rm -f conftest.$ac_objext
21424 if { (ac_try="$ac_compile"
21425 case "(($ac_try" in
21426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21427   *) ac_try_echo=$ac_try;;
21428 esac
21429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21430 $as_echo "$ac_try_echo") >&5
21431   (eval "$ac_compile") 2>conftest.er1
21432   ac_status=$?
21433   grep -v '^ *+' conftest.er1 >conftest.err
21434   rm -f conftest.er1
21435   cat conftest.err >&5
21436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437   (exit $ac_status); } && {
21438          test -z "$ac_c_werror_flag" ||
21439          test ! -s conftest.err
21440        } && test -s conftest.$ac_objext; then
21441   case $ac_type in
21442   uint16_t) ac_cv_c_uint16_t=yes ;;
21443   *) ac_cv_c_uint16_t=$ac_type ;;
21444 esac
21445
21446 else
21447   $as_echo "$as_me: failed program was:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21449
21450
21451 fi
21452
21453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21454        test "$ac_cv_c_uint16_t" != no && break
21455      done
21456 fi
21457 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
21458 $as_echo "$ac_cv_c_uint16_t" >&6; }
21459   case $ac_cv_c_uint16_t in #(
21460   no|yes) ;; #(
21461   *)
21462
21463
21464 cat >>confdefs.h <<_ACEOF
21465 #define uint16_t $ac_cv_c_uint16_t
21466 _ACEOF
21467 ;;
21468   esac
21469
21470
21471   { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
21472 $as_echo_n "checking for uint8_t... " >&6; }
21473 if test "${ac_cv_c_uint8_t+set}" = set; then
21474   $as_echo_n "(cached) " >&6
21475 else
21476   ac_cv_c_uint8_t=no
21477      for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
21478          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21479        cat >conftest.$ac_ext <<_ACEOF
21480 /* confdefs.h.  */
21481 _ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h.  */
21485 $ac_includes_default
21486 int
21487 main ()
21488 {
21489 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
21490 test_array [0] = 0
21491
21492   ;
21493   return 0;
21494 }
21495 _ACEOF
21496 rm -f conftest.$ac_objext
21497 if { (ac_try="$ac_compile"
21498 case "(($ac_try" in
21499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21500   *) ac_try_echo=$ac_try;;
21501 esac
21502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21503 $as_echo "$ac_try_echo") >&5
21504   (eval "$ac_compile") 2>conftest.er1
21505   ac_status=$?
21506   grep -v '^ *+' conftest.er1 >conftest.err
21507   rm -f conftest.er1
21508   cat conftest.err >&5
21509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510   (exit $ac_status); } && {
21511          test -z "$ac_c_werror_flag" ||
21512          test ! -s conftest.err
21513        } && test -s conftest.$ac_objext; then
21514   case $ac_type in
21515   uint8_t) ac_cv_c_uint8_t=yes ;;
21516   *) ac_cv_c_uint8_t=$ac_type ;;
21517 esac
21518
21519 else
21520   $as_echo "$as_me: failed program was:" >&5
21521 sed 's/^/| /' conftest.$ac_ext >&5
21522
21523
21524 fi
21525
21526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21527        test "$ac_cv_c_uint8_t" != no && break
21528      done
21529 fi
21530 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
21531 $as_echo "$ac_cv_c_uint8_t" >&6; }
21532   case $ac_cv_c_uint8_t in #(
21533   no|yes) ;; #(
21534   *)
21535
21536 cat >>confdefs.h <<\_ACEOF
21537 #define _UINT8_T 1
21538 _ACEOF
21539
21540
21541 cat >>confdefs.h <<_ACEOF
21542 #define uint8_t $ac_cv_c_uint8_t
21543 _ACEOF
21544 ;;
21545   esac
21546
21547 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21548 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21549 if test "${ac_cv_header_time+set}" = set; then
21550   $as_echo_n "(cached) " >&6
21551 else
21552   cat >conftest.$ac_ext <<_ACEOF
21553 /* confdefs.h.  */
21554 _ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h.  */
21558 #include <sys/types.h>
21559 #include <sys/time.h>
21560 #include <time.h>
21561
21562 int
21563 main ()
21564 {
21565 if ((struct tm *) 0)
21566 return 0;
21567   ;
21568   return 0;
21569 }
21570 _ACEOF
21571 rm -f conftest.$ac_objext
21572 if { (ac_try="$ac_compile"
21573 case "(($ac_try" in
21574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575   *) ac_try_echo=$ac_try;;
21576 esac
21577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21578 $as_echo "$ac_try_echo") >&5
21579   (eval "$ac_compile") 2>conftest.er1
21580   ac_status=$?
21581   grep -v '^ *+' conftest.er1 >conftest.err
21582   rm -f conftest.er1
21583   cat conftest.err >&5
21584   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585   (exit $ac_status); } && {
21586          test -z "$ac_c_werror_flag" ||
21587          test ! -s conftest.err
21588        } && test -s conftest.$ac_objext; then
21589   ac_cv_header_time=yes
21590 else
21591   $as_echo "$as_me: failed program was:" >&5
21592 sed 's/^/| /' conftest.$ac_ext >&5
21593
21594         ac_cv_header_time=no
21595 fi
21596
21597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21598 fi
21599 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21600 $as_echo "$ac_cv_header_time" >&6; }
21601 if test $ac_cv_header_time = yes; then
21602
21603 cat >>confdefs.h <<\_ACEOF
21604 #define TIME_WITH_SYS_TIME 1
21605 _ACEOF
21606
21607 fi
21608
21609
21610 # Checks for library functions.
21611
21612 for ac_header in vfork.h
21613 do
21614 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21616   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21617 $as_echo_n "checking for $ac_header... " >&6; }
21618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21619   $as_echo_n "(cached) " >&6
21620 fi
21621 ac_res=`eval 'as_val=${'$as_ac_Header'}
21622                  $as_echo "$as_val"'`
21623                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21624 $as_echo "$ac_res" >&6; }
21625 else
21626   # Is the header compilable?
21627 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21628 $as_echo_n "checking $ac_header usability... " >&6; }
21629 cat >conftest.$ac_ext <<_ACEOF
21630 /* confdefs.h.  */
21631 _ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h.  */
21635 $ac_includes_default
21636 #include <$ac_header>
21637 _ACEOF
21638 rm -f conftest.$ac_objext
21639 if { (ac_try="$ac_compile"
21640 case "(($ac_try" in
21641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642   *) ac_try_echo=$ac_try;;
21643 esac
21644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21645 $as_echo "$ac_try_echo") >&5
21646   (eval "$ac_compile") 2>conftest.er1
21647   ac_status=$?
21648   grep -v '^ *+' conftest.er1 >conftest.err
21649   rm -f conftest.er1
21650   cat conftest.err >&5
21651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652   (exit $ac_status); } && {
21653          test -z "$ac_c_werror_flag" ||
21654          test ! -s conftest.err
21655        } && test -s conftest.$ac_objext; then
21656   ac_header_compiler=yes
21657 else
21658   $as_echo "$as_me: failed program was:" >&5
21659 sed 's/^/| /' conftest.$ac_ext >&5
21660
21661         ac_header_compiler=no
21662 fi
21663
21664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21665 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21666 $as_echo "$ac_header_compiler" >&6; }
21667
21668 # Is the header present?
21669 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21670 $as_echo_n "checking $ac_header presence... " >&6; }
21671 cat >conftest.$ac_ext <<_ACEOF
21672 /* confdefs.h.  */
21673 _ACEOF
21674 cat confdefs.h >>conftest.$ac_ext
21675 cat >>conftest.$ac_ext <<_ACEOF
21676 /* end confdefs.h.  */
21677 #include <$ac_header>
21678 _ACEOF
21679 if { (ac_try="$ac_cpp conftest.$ac_ext"
21680 case "(($ac_try" in
21681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21682   *) ac_try_echo=$ac_try;;
21683 esac
21684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21685 $as_echo "$ac_try_echo") >&5
21686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21687   ac_status=$?
21688   grep -v '^ *+' conftest.er1 >conftest.err
21689   rm -f conftest.er1
21690   cat conftest.err >&5
21691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692   (exit $ac_status); } >/dev/null && {
21693          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21694          test ! -s conftest.err
21695        }; then
21696   ac_header_preproc=yes
21697 else
21698   $as_echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21700
21701   ac_header_preproc=no
21702 fi
21703
21704 rm -f conftest.err conftest.$ac_ext
21705 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21706 $as_echo "$ac_header_preproc" >&6; }
21707
21708 # So?  What about this header?
21709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21710   yes:no: )
21711     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21712 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21713     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21714 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21715     ac_header_preproc=yes
21716     ;;
21717   no:yes:* )
21718     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21719 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21720     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21721 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21722     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21723 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21724     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21725 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21726     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21727 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21728     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21729 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21730     ( cat <<\_ASBOX
21731 ## ----------------------------------------------- ##
21732 ## Report this to mznflapaf (at) 0pointer (dot) de ##
21733 ## ----------------------------------------------- ##
21734 _ASBOX
21735      ) | sed "s/^/$as_me: WARNING:     /" >&2
21736     ;;
21737 esac
21738 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21739 $as_echo_n "checking for $ac_header... " >&6; }
21740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21741   $as_echo_n "(cached) " >&6
21742 else
21743   eval "$as_ac_Header=\$ac_header_preproc"
21744 fi
21745 ac_res=`eval 'as_val=${'$as_ac_Header'}
21746                  $as_echo "$as_val"'`
21747                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21748 $as_echo "$ac_res" >&6; }
21749
21750 fi
21751 as_val=`eval 'as_val=${'$as_ac_Header'}
21752                  $as_echo "$as_val"'`
21753    if test "x$as_val" = x""yes; then
21754   cat >>confdefs.h <<_ACEOF
21755 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21756 _ACEOF
21757
21758 fi
21759
21760 done
21761
21762
21763
21764 for ac_func in fork vfork
21765 do
21766 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21767 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21768 $as_echo_n "checking for $ac_func... " >&6; }
21769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21770   $as_echo_n "(cached) " >&6
21771 else
21772   cat >conftest.$ac_ext <<_ACEOF
21773 /* confdefs.h.  */
21774 _ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h.  */
21778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21780 #define $ac_func innocuous_$ac_func
21781
21782 /* System header to define __stub macros and hopefully few prototypes,
21783     which can conflict with char $ac_func (); below.
21784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21785     <limits.h> exists even on freestanding compilers.  */
21786
21787 #ifdef __STDC__
21788 # include <limits.h>
21789 #else
21790 # include <assert.h>
21791 #endif
21792
21793 #undef $ac_func
21794
21795 /* Override any GCC internal prototype to avoid an error.
21796    Use char because int might match the return type of a GCC
21797    builtin and then its argument prototype would still apply.  */
21798 #ifdef __cplusplus
21799 extern "C"
21800 #endif
21801 char $ac_func ();
21802 /* The GNU C library defines this for functions which it implements
21803     to always fail with ENOSYS.  Some functions are actually named
21804     something starting with __ and the normal name is an alias.  */
21805 #if defined __stub_$ac_func || defined __stub___$ac_func
21806 choke me
21807 #endif
21808
21809 int
21810 main ()
21811 {
21812 return $ac_func ();
21813   ;
21814   return 0;
21815 }
21816 _ACEOF
21817 rm -f conftest.$ac_objext conftest$ac_exeext
21818 if { (ac_try="$ac_link"
21819 case "(($ac_try" in
21820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21821   *) ac_try_echo=$ac_try;;
21822 esac
21823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21824 $as_echo "$ac_try_echo") >&5
21825   (eval "$ac_link") 2>conftest.er1
21826   ac_status=$?
21827   grep -v '^ *+' conftest.er1 >conftest.err
21828   rm -f conftest.er1
21829   cat conftest.err >&5
21830   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831   (exit $ac_status); } && {
21832          test -z "$ac_c_werror_flag" ||
21833          test ! -s conftest.err
21834        } && test -s conftest$ac_exeext && {
21835          test "$cross_compiling" = yes ||
21836          $as_test_x conftest$ac_exeext
21837        }; then
21838   eval "$as_ac_var=yes"
21839 else
21840   $as_echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21842
21843         eval "$as_ac_var=no"
21844 fi
21845
21846 rm -rf conftest.dSYM
21847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21848       conftest$ac_exeext conftest.$ac_ext
21849 fi
21850 ac_res=`eval 'as_val=${'$as_ac_var'}
21851                  $as_echo "$as_val"'`
21852                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21853 $as_echo "$ac_res" >&6; }
21854 as_val=`eval 'as_val=${'$as_ac_var'}
21855                  $as_echo "$as_val"'`
21856    if test "x$as_val" = x""yes; then
21857   cat >>confdefs.h <<_ACEOF
21858 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21859 _ACEOF
21860
21861 fi
21862 done
21863
21864 if test "x$ac_cv_func_fork" = xyes; then
21865   { $as_echo "$as_me:$LINENO: checking for working fork" >&5
21866 $as_echo_n "checking for working fork... " >&6; }
21867 if test "${ac_cv_func_fork_works+set}" = set; then
21868   $as_echo_n "(cached) " >&6
21869 else
21870   if test "$cross_compiling" = yes; then
21871   ac_cv_func_fork_works=cross
21872 else
21873   cat >conftest.$ac_ext <<_ACEOF
21874 /* confdefs.h.  */
21875 _ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h.  */
21879 $ac_includes_default
21880 int
21881 main ()
21882 {
21883
21884           /* By Ruediger Kuhlmann. */
21885           return fork () < 0;
21886
21887   ;
21888   return 0;
21889 }
21890 _ACEOF
21891 rm -f conftest$ac_exeext
21892 if { (ac_try="$ac_link"
21893 case "(($ac_try" in
21894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21895   *) ac_try_echo=$ac_try;;
21896 esac
21897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21898 $as_echo "$ac_try_echo") >&5
21899   (eval "$ac_link") 2>&5
21900   ac_status=$?
21901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21903   { (case "(($ac_try" in
21904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21905   *) ac_try_echo=$ac_try;;
21906 esac
21907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21908 $as_echo "$ac_try_echo") >&5
21909   (eval "$ac_try") 2>&5
21910   ac_status=$?
21911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912   (exit $ac_status); }; }; then
21913   ac_cv_func_fork_works=yes
21914 else
21915   $as_echo "$as_me: program exited with status $ac_status" >&5
21916 $as_echo "$as_me: failed program was:" >&5
21917 sed 's/^/| /' conftest.$ac_ext >&5
21918
21919 ( exit $ac_status )
21920 ac_cv_func_fork_works=no
21921 fi
21922 rm -rf conftest.dSYM
21923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21924 fi
21925
21926
21927 fi
21928 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21929 $as_echo "$ac_cv_func_fork_works" >&6; }
21930
21931 else
21932   ac_cv_func_fork_works=$ac_cv_func_fork
21933 fi
21934 if test "x$ac_cv_func_fork_works" = xcross; then
21935   case $host in
21936     *-*-amigaos* | *-*-msdosdjgpp*)
21937       # Override, as these systems have only a dummy fork() stub
21938       ac_cv_func_fork_works=no
21939       ;;
21940     *)
21941       ac_cv_func_fork_works=yes
21942       ;;
21943   esac
21944   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21945 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21946 fi
21947 ac_cv_func_vfork_works=$ac_cv_func_vfork
21948 if test "x$ac_cv_func_vfork" = xyes; then
21949   { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
21950 $as_echo_n "checking for working vfork... " >&6; }
21951 if test "${ac_cv_func_vfork_works+set}" = set; then
21952   $as_echo_n "(cached) " >&6
21953 else
21954   if test "$cross_compiling" = yes; then
21955   ac_cv_func_vfork_works=cross
21956 else
21957   cat >conftest.$ac_ext <<_ACEOF
21958 /* confdefs.h.  */
21959 _ACEOF
21960 cat confdefs.h >>conftest.$ac_ext
21961 cat >>conftest.$ac_ext <<_ACEOF
21962 /* end confdefs.h.  */
21963 /* Thanks to Paul Eggert for this test.  */
21964 $ac_includes_default
21965 #include <sys/wait.h>
21966 #ifdef HAVE_VFORK_H
21967 # include <vfork.h>
21968 #endif
21969 /* On some sparc systems, changes by the child to local and incoming
21970    argument registers are propagated back to the parent.  The compiler
21971    is told about this with #include <vfork.h>, but some compilers
21972    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
21973    static variable whose address is put into a register that is
21974    clobbered by the vfork.  */
21975 static void
21976 #ifdef __cplusplus
21977 sparc_address_test (int arg)
21978 # else
21979 sparc_address_test (arg) int arg;
21980 #endif
21981 {
21982   static pid_t child;
21983   if (!child) {
21984     child = vfork ();
21985     if (child < 0) {
21986       perror ("vfork");
21987       _exit(2);
21988     }
21989     if (!child) {
21990       arg = getpid();
21991       write(-1, "", 0);
21992       _exit (arg);
21993     }
21994   }
21995 }
21996
21997 int
21998 main ()
21999 {
22000   pid_t parent = getpid ();
22001   pid_t child;
22002
22003   sparc_address_test (0);
22004
22005   child = vfork ();
22006
22007   if (child == 0) {
22008     /* Here is another test for sparc vfork register problems.  This
22009        test uses lots of local variables, at least as many local
22010        variables as main has allocated so far including compiler
22011        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
22012        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
22013        reuse the register of parent for one of the local variables,
22014        since it will think that parent can't possibly be used any more
22015        in this routine.  Assigning to the local variable will thus
22016        munge parent in the parent process.  */
22017     pid_t
22018       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22019       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22020     /* Convince the compiler that p..p7 are live; otherwise, it might
22021        use the same hardware register for all 8 local variables.  */
22022     if (p != p1 || p != p2 || p != p3 || p != p4
22023         || p != p5 || p != p6 || p != p7)
22024       _exit(1);
22025
22026     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22027        from child file descriptors.  If the child closes a descriptor
22028        before it execs or exits, this munges the parent's descriptor
22029        as well.  Test for this by closing stdout in the child.  */
22030     _exit(close(fileno(stdout)) != 0);
22031   } else {
22032     int status;
22033     struct stat st;
22034
22035     while (wait(&status) != child)
22036       ;
22037     return (
22038          /* Was there some problem with vforking?  */
22039          child < 0
22040
22041          /* Did the child fail?  (This shouldn't happen.)  */
22042          || status
22043
22044          /* Did the vfork/compiler bug occur?  */
22045          || parent != getpid()
22046
22047          /* Did the file descriptor bug occur?  */
22048          || fstat(fileno(stdout), &st) != 0
22049          );
22050   }
22051 }
22052 _ACEOF
22053 rm -f conftest$ac_exeext
22054 if { (ac_try="$ac_link"
22055 case "(($ac_try" in
22056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22057   *) ac_try_echo=$ac_try;;
22058 esac
22059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22060 $as_echo "$ac_try_echo") >&5
22061   (eval "$ac_link") 2>&5
22062   ac_status=$?
22063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22065   { (case "(($ac_try" in
22066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067   *) ac_try_echo=$ac_try;;
22068 esac
22069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22070 $as_echo "$ac_try_echo") >&5
22071   (eval "$ac_try") 2>&5
22072   ac_status=$?
22073   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074   (exit $ac_status); }; }; then
22075   ac_cv_func_vfork_works=yes
22076 else
22077   $as_echo "$as_me: program exited with status $ac_status" >&5
22078 $as_echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22080
22081 ( exit $ac_status )
22082 ac_cv_func_vfork_works=no
22083 fi
22084 rm -rf conftest.dSYM
22085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22086 fi
22087
22088
22089 fi
22090 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22091 $as_echo "$ac_cv_func_vfork_works" >&6; }
22092
22093 fi;
22094 if test "x$ac_cv_func_fork_works" = xcross; then
22095   ac_cv_func_vfork_works=$ac_cv_func_vfork
22096   { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22097 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22098 fi
22099
22100 if test "x$ac_cv_func_vfork_works" = xyes; then
22101
22102 cat >>confdefs.h <<\_ACEOF
22103 #define HAVE_WORKING_VFORK 1
22104 _ACEOF
22105
22106 else
22107
22108 cat >>confdefs.h <<\_ACEOF
22109 #define vfork fork
22110 _ACEOF
22111
22112 fi
22113 if test "x$ac_cv_func_fork_works" = xyes; then
22114
22115 cat >>confdefs.h <<\_ACEOF
22116 #define HAVE_WORKING_FORK 1
22117 _ACEOF
22118
22119 fi
22120
22121
22122 for ac_header in stdlib.h
22123 do
22124 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22126   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22127 $as_echo_n "checking for $ac_header... " >&6; }
22128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22129   $as_echo_n "(cached) " >&6
22130 fi
22131 ac_res=`eval 'as_val=${'$as_ac_Header'}
22132                  $as_echo "$as_val"'`
22133                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22134 $as_echo "$ac_res" >&6; }
22135 else
22136   # Is the header compilable?
22137 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22138 $as_echo_n "checking $ac_header usability... " >&6; }
22139 cat >conftest.$ac_ext <<_ACEOF
22140 /* confdefs.h.  */
22141 _ACEOF
22142 cat confdefs.h >>conftest.$ac_ext
22143 cat >>conftest.$ac_ext <<_ACEOF
22144 /* end confdefs.h.  */
22145 $ac_includes_default
22146 #include <$ac_header>
22147 _ACEOF
22148 rm -f conftest.$ac_objext
22149 if { (ac_try="$ac_compile"
22150 case "(($ac_try" in
22151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22152   *) ac_try_echo=$ac_try;;
22153 esac
22154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22155 $as_echo "$ac_try_echo") >&5
22156   (eval "$ac_compile") 2>conftest.er1
22157   ac_status=$?
22158   grep -v '^ *+' conftest.er1 >conftest.err
22159   rm -f conftest.er1
22160   cat conftest.err >&5
22161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162   (exit $ac_status); } && {
22163          test -z "$ac_c_werror_flag" ||
22164          test ! -s conftest.err
22165        } && test -s conftest.$ac_objext; then
22166   ac_header_compiler=yes
22167 else
22168   $as_echo "$as_me: failed program was:" >&5
22169 sed 's/^/| /' conftest.$ac_ext >&5
22170
22171         ac_header_compiler=no
22172 fi
22173
22174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22175 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22176 $as_echo "$ac_header_compiler" >&6; }
22177
22178 # Is the header present?
22179 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22180 $as_echo_n "checking $ac_header presence... " >&6; }
22181 cat >conftest.$ac_ext <<_ACEOF
22182 /* confdefs.h.  */
22183 _ACEOF
22184 cat confdefs.h >>conftest.$ac_ext
22185 cat >>conftest.$ac_ext <<_ACEOF
22186 /* end confdefs.h.  */
22187 #include <$ac_header>
22188 _ACEOF
22189 if { (ac_try="$ac_cpp conftest.$ac_ext"
22190 case "(($ac_try" in
22191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192   *) ac_try_echo=$ac_try;;
22193 esac
22194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22195 $as_echo "$ac_try_echo") >&5
22196   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22197   ac_status=$?
22198   grep -v '^ *+' conftest.er1 >conftest.err
22199   rm -f conftest.er1
22200   cat conftest.err >&5
22201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202   (exit $ac_status); } >/dev/null && {
22203          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22204          test ! -s conftest.err
22205        }; then
22206   ac_header_preproc=yes
22207 else
22208   $as_echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22210
22211   ac_header_preproc=no
22212 fi
22213
22214 rm -f conftest.err conftest.$ac_ext
22215 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22216 $as_echo "$ac_header_preproc" >&6; }
22217
22218 # So?  What about this header?
22219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22220   yes:no: )
22221     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22222 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22223     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22224 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22225     ac_header_preproc=yes
22226     ;;
22227   no:yes:* )
22228     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22229 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22230     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22231 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22232     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22233 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22234     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22235 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22236     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22237 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22238     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22239 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22240     ( cat <<\_ASBOX
22241 ## ----------------------------------------------- ##
22242 ## Report this to mznflapaf (at) 0pointer (dot) de ##
22243 ## ----------------------------------------------- ##
22244 _ASBOX
22245      ) | sed "s/^/$as_me: WARNING:     /" >&2
22246     ;;
22247 esac
22248 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22249 $as_echo_n "checking for $ac_header... " >&6; }
22250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22251   $as_echo_n "(cached) " >&6
22252 else
22253   eval "$as_ac_Header=\$ac_header_preproc"
22254 fi
22255 ac_res=`eval 'as_val=${'$as_ac_Header'}
22256                  $as_echo "$as_val"'`
22257                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22258 $as_echo "$ac_res" >&6; }
22259
22260 fi
22261 as_val=`eval 'as_val=${'$as_ac_Header'}
22262                  $as_echo "$as_val"'`
22263    if test "x$as_val" = x""yes; then
22264   cat >>confdefs.h <<_ACEOF
22265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22266 _ACEOF
22267
22268 fi
22269
22270 done
22271
22272 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22273 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
22274 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22275   $as_echo_n "(cached) " >&6
22276 else
22277   if test "$cross_compiling" = yes; then
22278   ac_cv_func_malloc_0_nonnull=no
22279 else
22280   cat >conftest.$ac_ext <<_ACEOF
22281 /* confdefs.h.  */
22282 _ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h.  */
22286 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
22287 # include <stdlib.h>
22288 #else
22289 char *malloc ();
22290 #endif
22291
22292 int
22293 main ()
22294 {
22295 return ! malloc (0);
22296   ;
22297   return 0;
22298 }
22299 _ACEOF
22300 rm -f conftest$ac_exeext
22301 if { (ac_try="$ac_link"
22302 case "(($ac_try" in
22303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22304   *) ac_try_echo=$ac_try;;
22305 esac
22306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22307 $as_echo "$ac_try_echo") >&5
22308   (eval "$ac_link") 2>&5
22309   ac_status=$?
22310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22312   { (case "(($ac_try" in
22313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22314   *) ac_try_echo=$ac_try;;
22315 esac
22316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22317 $as_echo "$ac_try_echo") >&5
22318   (eval "$ac_try") 2>&5
22319   ac_status=$?
22320   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321   (exit $ac_status); }; }; then
22322   ac_cv_func_malloc_0_nonnull=yes
22323 else
22324   $as_echo "$as_me: program exited with status $ac_status" >&5
22325 $as_echo "$as_me: failed program was:" >&5
22326 sed 's/^/| /' conftest.$ac_ext >&5
22327
22328 ( exit $ac_status )
22329 ac_cv_func_malloc_0_nonnull=no
22330 fi
22331 rm -rf conftest.dSYM
22332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22333 fi
22334
22335
22336 fi
22337 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22338 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
22339 if test $ac_cv_func_malloc_0_nonnull = yes; then
22340
22341 cat >>confdefs.h <<\_ACEOF
22342 #define HAVE_MALLOC 1
22343 _ACEOF
22344
22345 else
22346   cat >>confdefs.h <<\_ACEOF
22347 #define HAVE_MALLOC 0
22348 _ACEOF
22349
22350    case " $LIBOBJS " in
22351   *" malloc.$ac_objext "* ) ;;
22352   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
22353  ;;
22354 esac
22355
22356
22357 cat >>confdefs.h <<\_ACEOF
22358 #define malloc rpl_malloc
22359 _ACEOF
22360
22361 fi
22362
22363
22364
22365
22366
22367 for ac_header in sys/select.h sys/socket.h
22368 do
22369 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22371   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22372 $as_echo_n "checking for $ac_header... " >&6; }
22373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22374   $as_echo_n "(cached) " >&6
22375 fi
22376 ac_res=`eval 'as_val=${'$as_ac_Header'}
22377                  $as_echo "$as_val"'`
22378                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22379 $as_echo "$ac_res" >&6; }
22380 else
22381   # Is the header compilable?
22382 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22383 $as_echo_n "checking $ac_header usability... " >&6; }
22384 cat >conftest.$ac_ext <<_ACEOF
22385 /* confdefs.h.  */
22386 _ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h.  */
22390 $ac_includes_default
22391 #include <$ac_header>
22392 _ACEOF
22393 rm -f conftest.$ac_objext
22394 if { (ac_try="$ac_compile"
22395 case "(($ac_try" in
22396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397   *) ac_try_echo=$ac_try;;
22398 esac
22399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22400 $as_echo "$ac_try_echo") >&5
22401   (eval "$ac_compile") 2>conftest.er1
22402   ac_status=$?
22403   grep -v '^ *+' conftest.er1 >conftest.err
22404   rm -f conftest.er1
22405   cat conftest.err >&5
22406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407   (exit $ac_status); } && {
22408          test -z "$ac_c_werror_flag" ||
22409          test ! -s conftest.err
22410        } && test -s conftest.$ac_objext; then
22411   ac_header_compiler=yes
22412 else
22413   $as_echo "$as_me: failed program was:" >&5
22414 sed 's/^/| /' conftest.$ac_ext >&5
22415
22416         ac_header_compiler=no
22417 fi
22418
22419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22420 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22421 $as_echo "$ac_header_compiler" >&6; }
22422
22423 # Is the header present?
22424 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22425 $as_echo_n "checking $ac_header presence... " >&6; }
22426 cat >conftest.$ac_ext <<_ACEOF
22427 /* confdefs.h.  */
22428 _ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h.  */
22432 #include <$ac_header>
22433 _ACEOF
22434 if { (ac_try="$ac_cpp conftest.$ac_ext"
22435 case "(($ac_try" in
22436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437   *) ac_try_echo=$ac_try;;
22438 esac
22439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22440 $as_echo "$ac_try_echo") >&5
22441   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22442   ac_status=$?
22443   grep -v '^ *+' conftest.er1 >conftest.err
22444   rm -f conftest.er1
22445   cat conftest.err >&5
22446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447   (exit $ac_status); } >/dev/null && {
22448          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22449          test ! -s conftest.err
22450        }; then
22451   ac_header_preproc=yes
22452 else
22453   $as_echo "$as_me: failed program was:" >&5
22454 sed 's/^/| /' conftest.$ac_ext >&5
22455
22456   ac_header_preproc=no
22457 fi
22458
22459 rm -f conftest.err conftest.$ac_ext
22460 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22461 $as_echo "$ac_header_preproc" >&6; }
22462
22463 # So?  What about this header?
22464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22465   yes:no: )
22466     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22467 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22468     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22469 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22470     ac_header_preproc=yes
22471     ;;
22472   no:yes:* )
22473     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22474 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22475     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22476 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22477     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22478 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22479     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22480 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22481     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22482 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22483     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22484 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22485     ( cat <<\_ASBOX
22486 ## ----------------------------------------------- ##
22487 ## Report this to mznflapaf (at) 0pointer (dot) de ##
22488 ## ----------------------------------------------- ##
22489 _ASBOX
22490      ) | sed "s/^/$as_me: WARNING:     /" >&2
22491     ;;
22492 esac
22493 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22494 $as_echo_n "checking for $ac_header... " >&6; }
22495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22496   $as_echo_n "(cached) " >&6
22497 else
22498   eval "$as_ac_Header=\$ac_header_preproc"
22499 fi
22500 ac_res=`eval 'as_val=${'$as_ac_Header'}
22501                  $as_echo "$as_val"'`
22502                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22503 $as_echo "$ac_res" >&6; }
22504
22505 fi
22506 as_val=`eval 'as_val=${'$as_ac_Header'}
22507                  $as_echo "$as_val"'`
22508    if test "x$as_val" = x""yes; then
22509   cat >>confdefs.h <<_ACEOF
22510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22511 _ACEOF
22512
22513 fi
22514
22515 done
22516
22517 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
22518 $as_echo_n "checking types of arguments for select... " >&6; }
22519 if test "${ac_cv_func_select_args+set}" = set; then
22520   $as_echo_n "(cached) " >&6
22521 else
22522   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22523  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22524   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
22525    cat >conftest.$ac_ext <<_ACEOF
22526 /* confdefs.h.  */
22527 _ACEOF
22528 cat confdefs.h >>conftest.$ac_ext
22529 cat >>conftest.$ac_ext <<_ACEOF
22530 /* end confdefs.h.  */
22531 $ac_includes_default
22532 #ifdef HAVE_SYS_SELECT_H
22533 # include <sys/select.h>
22534 #endif
22535 #ifdef HAVE_SYS_SOCKET_H
22536 # include <sys/socket.h>
22537 #endif
22538
22539 int
22540 main ()
22541 {
22542 extern int select ($ac_arg1,
22543                                             $ac_arg234, $ac_arg234, $ac_arg234,
22544                                             $ac_arg5);
22545   ;
22546   return 0;
22547 }
22548 _ACEOF
22549 rm -f conftest.$ac_objext
22550 if { (ac_try="$ac_compile"
22551 case "(($ac_try" in
22552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553   *) ac_try_echo=$ac_try;;
22554 esac
22555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22556 $as_echo "$ac_try_echo") >&5
22557   (eval "$ac_compile") 2>conftest.er1
22558   ac_status=$?
22559   grep -v '^ *+' conftest.er1 >conftest.err
22560   rm -f conftest.er1
22561   cat conftest.err >&5
22562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563   (exit $ac_status); } && {
22564          test -z "$ac_c_werror_flag" ||
22565          test ! -s conftest.err
22566        } && test -s conftest.$ac_objext; then
22567   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
22568 else
22569   $as_echo "$as_me: failed program was:" >&5
22570 sed 's/^/| /' conftest.$ac_ext >&5
22571
22572
22573 fi
22574
22575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22576   done
22577  done
22578 done
22579 # Provide a safe default value.
22580 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
22581
22582 fi
22583 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
22584 $as_echo "$ac_cv_func_select_args" >&6; }
22585 ac_save_IFS=$IFS; IFS=','
22586 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22587 IFS=$ac_save_IFS
22588 shift
22589
22590 cat >>confdefs.h <<_ACEOF
22591 #define SELECT_TYPE_ARG1 $1
22592 _ACEOF
22593
22594
22595 cat >>confdefs.h <<_ACEOF
22596 #define SELECT_TYPE_ARG234 ($2)
22597 _ACEOF
22598
22599
22600 cat >>confdefs.h <<_ACEOF
22601 #define SELECT_TYPE_ARG5 ($3)
22602 _ACEOF
22603
22604 rm -f conftest*
22605
22606 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22607 $as_echo_n "checking return type of signal handlers... " >&6; }
22608 if test "${ac_cv_type_signal+set}" = set; then
22609   $as_echo_n "(cached) " >&6
22610 else
22611   cat >conftest.$ac_ext <<_ACEOF
22612 /* confdefs.h.  */
22613 _ACEOF
22614 cat confdefs.h >>conftest.$ac_ext
22615 cat >>conftest.$ac_ext <<_ACEOF
22616 /* end confdefs.h.  */
22617 #include <sys/types.h>
22618 #include <signal.h>
22619
22620 int
22621 main ()
22622 {
22623 return *(signal (0, 0)) (0) == 1;
22624   ;
22625   return 0;
22626 }
22627 _ACEOF
22628 rm -f conftest.$ac_objext
22629 if { (ac_try="$ac_compile"
22630 case "(($ac_try" in
22631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22632   *) ac_try_echo=$ac_try;;
22633 esac
22634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22635 $as_echo "$ac_try_echo") >&5
22636   (eval "$ac_compile") 2>conftest.er1
22637   ac_status=$?
22638   grep -v '^ *+' conftest.er1 >conftest.err
22639   rm -f conftest.er1
22640   cat conftest.err >&5
22641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642   (exit $ac_status); } && {
22643          test -z "$ac_c_werror_flag" ||
22644          test ! -s conftest.err
22645        } && test -s conftest.$ac_objext; then
22646   ac_cv_type_signal=int
22647 else
22648   $as_echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22650
22651         ac_cv_type_signal=void
22652 fi
22653
22654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22655 fi
22656 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22657 $as_echo "$ac_cv_type_signal" >&6; }
22658
22659 cat >>confdefs.h <<_ACEOF
22660 #define RETSIGTYPE $ac_cv_type_signal
22661 _ACEOF
22662
22663
22664
22665
22666
22667
22668
22669
22670 for ac_func in memset select strndup setresuid setreuid strerror
22671 do
22672 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22673 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22674 $as_echo_n "checking for $ac_func... " >&6; }
22675 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22676   $as_echo_n "(cached) " >&6
22677 else
22678   cat >conftest.$ac_ext <<_ACEOF
22679 /* confdefs.h.  */
22680 _ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h.  */
22684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22686 #define $ac_func innocuous_$ac_func
22687
22688 /* System header to define __stub macros and hopefully few prototypes,
22689     which can conflict with char $ac_func (); below.
22690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22691     <limits.h> exists even on freestanding compilers.  */
22692
22693 #ifdef __STDC__
22694 # include <limits.h>
22695 #else
22696 # include <assert.h>
22697 #endif
22698
22699 #undef $ac_func
22700
22701 /* Override any GCC internal prototype to avoid an error.
22702    Use char because int might match the return type of a GCC
22703    builtin and then its argument prototype would still apply.  */
22704 #ifdef __cplusplus
22705 extern "C"
22706 #endif
22707 char $ac_func ();
22708 /* The GNU C library defines this for functions which it implements
22709     to always fail with ENOSYS.  Some functions are actually named
22710     something starting with __ and the normal name is an alias.  */
22711 #if defined __stub_$ac_func || defined __stub___$ac_func
22712 choke me
22713 #endif
22714
22715 int
22716 main ()
22717 {
22718 return $ac_func ();
22719   ;
22720   return 0;
22721 }
22722 _ACEOF
22723 rm -f conftest.$ac_objext conftest$ac_exeext
22724 if { (ac_try="$ac_link"
22725 case "(($ac_try" in
22726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22727   *) ac_try_echo=$ac_try;;
22728 esac
22729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22730 $as_echo "$ac_try_echo") >&5
22731   (eval "$ac_link") 2>conftest.er1
22732   ac_status=$?
22733   grep -v '^ *+' conftest.er1 >conftest.err
22734   rm -f conftest.er1
22735   cat conftest.err >&5
22736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); } && {
22738          test -z "$ac_c_werror_flag" ||
22739          test ! -s conftest.err
22740        } && test -s conftest$ac_exeext && {
22741          test "$cross_compiling" = yes ||
22742          $as_test_x conftest$ac_exeext
22743        }; then
22744   eval "$as_ac_var=yes"
22745 else
22746   $as_echo "$as_me: failed program was:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22748
22749         eval "$as_ac_var=no"
22750 fi
22751
22752 rm -rf conftest.dSYM
22753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22754       conftest$ac_exeext conftest.$ac_ext
22755 fi
22756 ac_res=`eval 'as_val=${'$as_ac_var'}
22757                  $as_echo "$as_val"'`
22758                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22759 $as_echo "$ac_res" >&6; }
22760 as_val=`eval 'as_val=${'$as_ac_var'}
22761                  $as_echo "$as_val"'`
22762    if test "x$as_val" = x""yes; then
22763   cat >>confdefs.h <<_ACEOF
22764 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22765 _ACEOF
22766
22767 fi
22768 done
22769
22770
22771
22772 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22773 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
22774 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22775   $as_echo_n "(cached) " >&6
22776 else
22777   ac_check_lib_save_LIBS=$LIBS
22778 LIBS="-lnsl  $LIBS"
22779 cat >conftest.$ac_ext <<_ACEOF
22780 /* confdefs.h.  */
22781 _ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h.  */
22785
22786 /* Override any GCC internal prototype to avoid an error.
22787    Use char because int might match the return type of a GCC
22788    builtin and then its argument prototype would still apply.  */
22789 #ifdef __cplusplus
22790 extern "C"
22791 #endif
22792 char gethostbyname ();
22793 int
22794 main ()
22795 {
22796 return gethostbyname ();
22797   ;
22798   return 0;
22799 }
22800 _ACEOF
22801 rm -f conftest.$ac_objext conftest$ac_exeext
22802 if { (ac_try="$ac_link"
22803 case "(($ac_try" in
22804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22805   *) ac_try_echo=$ac_try;;
22806 esac
22807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22808 $as_echo "$ac_try_echo") >&5
22809   (eval "$ac_link") 2>conftest.er1
22810   ac_status=$?
22811   grep -v '^ *+' conftest.er1 >conftest.err
22812   rm -f conftest.er1
22813   cat conftest.err >&5
22814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815   (exit $ac_status); } && {
22816          test -z "$ac_c_werror_flag" ||
22817          test ! -s conftest.err
22818        } && test -s conftest$ac_exeext && {
22819          test "$cross_compiling" = yes ||
22820          $as_test_x conftest$ac_exeext
22821        }; then
22822   ac_cv_lib_nsl_gethostbyname=yes
22823 else
22824   $as_echo "$as_me: failed program was:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22826
22827         ac_cv_lib_nsl_gethostbyname=no
22828 fi
22829
22830 rm -rf conftest.dSYM
22831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22832       conftest$ac_exeext conftest.$ac_ext
22833 LIBS=$ac_check_lib_save_LIBS
22834 fi
22835 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22836 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
22837 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
22838   cat >>confdefs.h <<_ACEOF
22839 #define HAVE_LIBNSL 1
22840 _ACEOF
22841
22842   LIBS="-lnsl $LIBS"
22843
22844 fi
22845
22846
22847 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22848 $as_echo_n "checking for connect in -lsocket... " >&6; }
22849 if test "${ac_cv_lib_socket_connect+set}" = set; then
22850   $as_echo_n "(cached) " >&6
22851 else
22852   ac_check_lib_save_LIBS=$LIBS
22853 LIBS="-lsocket  $LIBS"
22854 cat >conftest.$ac_ext <<_ACEOF
22855 /* confdefs.h.  */
22856 _ACEOF
22857 cat confdefs.h >>conftest.$ac_ext
22858 cat >>conftest.$ac_ext <<_ACEOF
22859 /* end confdefs.h.  */
22860
22861 /* Override any GCC internal prototype to avoid an error.
22862    Use char because int might match the return type of a GCC
22863    builtin and then its argument prototype would still apply.  */
22864 #ifdef __cplusplus
22865 extern "C"
22866 #endif
22867 char connect ();
22868 int
22869 main ()
22870 {
22871 return connect ();
22872   ;
22873   return 0;
22874 }
22875 _ACEOF
22876 rm -f conftest.$ac_objext conftest$ac_exeext
22877 if { (ac_try="$ac_link"
22878 case "(($ac_try" in
22879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22880   *) ac_try_echo=$ac_try;;
22881 esac
22882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22883 $as_echo "$ac_try_echo") >&5
22884   (eval "$ac_link") 2>conftest.er1
22885   ac_status=$?
22886   grep -v '^ *+' conftest.er1 >conftest.err
22887   rm -f conftest.er1
22888   cat conftest.err >&5
22889   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22890   (exit $ac_status); } && {
22891          test -z "$ac_c_werror_flag" ||
22892          test ! -s conftest.err
22893        } && test -s conftest$ac_exeext && {
22894          test "$cross_compiling" = yes ||
22895          $as_test_x conftest$ac_exeext
22896        }; then
22897   ac_cv_lib_socket_connect=yes
22898 else
22899   $as_echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22901
22902         ac_cv_lib_socket_connect=no
22903 fi
22904
22905 rm -rf conftest.dSYM
22906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22907       conftest$ac_exeext conftest.$ac_ext
22908 LIBS=$ac_check_lib_save_LIBS
22909 fi
22910 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22911 $as_echo "$ac_cv_lib_socket_connect" >&6; }
22912 if test "x$ac_cv_lib_socket_connect" = x""yes; then
22913   cat >>confdefs.h <<_ACEOF
22914 #define HAVE_LIBSOCKET 1
22915 _ACEOF
22916
22917   LIBS="-lsocket $LIBS"
22918
22919 fi
22920
22921
22922 { $as_echo "$as_me:$LINENO: checking for res_query" >&5
22923 $as_echo_n "checking for res_query... " >&6; }
22924 if test "${ac_cv_func_res_query+set}" = set; then
22925   $as_echo_n "(cached) " >&6
22926 else
22927   cat >conftest.$ac_ext <<_ACEOF
22928 /* confdefs.h.  */
22929 _ACEOF
22930 cat confdefs.h >>conftest.$ac_ext
22931 cat >>conftest.$ac_ext <<_ACEOF
22932 /* end confdefs.h.  */
22933 /* Define res_query to an innocuous variant, in case <limits.h> declares res_query.
22934    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22935 #define res_query innocuous_res_query
22936
22937 /* System header to define __stub macros and hopefully few prototypes,
22938     which can conflict with char res_query (); below.
22939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22940     <limits.h> exists even on freestanding compilers.  */
22941
22942 #ifdef __STDC__
22943 # include <limits.h>
22944 #else
22945 # include <assert.h>
22946 #endif
22947
22948 #undef res_query
22949
22950 /* Override any GCC internal prototype to avoid an error.
22951    Use char because int might match the return type of a GCC
22952    builtin and then its argument prototype would still apply.  */
22953 #ifdef __cplusplus
22954 extern "C"
22955 #endif
22956 char res_query ();
22957 /* The GNU C library defines this for functions which it implements
22958     to always fail with ENOSYS.  Some functions are actually named
22959     something starting with __ and the normal name is an alias.  */
22960 #if defined __stub_res_query || defined __stub___res_query
22961 choke me
22962 #endif
22963
22964 int
22965 main ()
22966 {
22967 return res_query ();
22968   ;
22969   return 0;
22970 }
22971 _ACEOF
22972 rm -f conftest.$ac_objext conftest$ac_exeext
22973 if { (ac_try="$ac_link"
22974 case "(($ac_try" in
22975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976   *) ac_try_echo=$ac_try;;
22977 esac
22978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22979 $as_echo "$ac_try_echo") >&5
22980   (eval "$ac_link") 2>conftest.er1
22981   ac_status=$?
22982   grep -v '^ *+' conftest.er1 >conftest.err
22983   rm -f conftest.er1
22984   cat conftest.err >&5
22985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986   (exit $ac_status); } && {
22987          test -z "$ac_c_werror_flag" ||
22988          test ! -s conftest.err
22989        } && test -s conftest$ac_exeext && {
22990          test "$cross_compiling" = yes ||
22991          $as_test_x conftest$ac_exeext
22992        }; then
22993   ac_cv_func_res_query=yes
22994 else
22995   $as_echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22997
22998         ac_cv_func_res_query=no
22999 fi
23000
23001 rm -rf conftest.dSYM
23002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23003       conftest$ac_exeext conftest.$ac_ext
23004 fi
23005 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_query" >&5
23006 $as_echo "$ac_cv_func_res_query" >&6; }
23007 if test "x$ac_cv_func_res_query" = x""yes; then
23008   :
23009 else
23010
23011 { $as_echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
23012 $as_echo_n "checking for res_query in -lresolv... " >&6; }
23013 if test "${ac_cv_lib_resolv_res_query+set}" = set; then
23014   $as_echo_n "(cached) " >&6
23015 else
23016   ac_check_lib_save_LIBS=$LIBS
23017 LIBS="-lresolv  $LIBS"
23018 cat >conftest.$ac_ext <<_ACEOF
23019 /* confdefs.h.  */
23020 _ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h.  */
23024
23025 /* Override any GCC internal prototype to avoid an error.
23026    Use char because int might match the return type of a GCC
23027    builtin and then its argument prototype would still apply.  */
23028 #ifdef __cplusplus
23029 extern "C"
23030 #endif
23031 char res_query ();
23032 int
23033 main ()
23034 {
23035 return res_query ();
23036   ;
23037   return 0;
23038 }
23039 _ACEOF
23040 rm -f conftest.$ac_objext conftest$ac_exeext
23041 if { (ac_try="$ac_link"
23042 case "(($ac_try" in
23043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23044   *) ac_try_echo=$ac_try;;
23045 esac
23046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23047 $as_echo "$ac_try_echo") >&5
23048   (eval "$ac_link") 2>conftest.er1
23049   ac_status=$?
23050   grep -v '^ *+' conftest.er1 >conftest.err
23051   rm -f conftest.er1
23052   cat conftest.err >&5
23053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054   (exit $ac_status); } && {
23055          test -z "$ac_c_werror_flag" ||
23056          test ! -s conftest.err
23057        } && test -s conftest$ac_exeext && {
23058          test "$cross_compiling" = yes ||
23059          $as_test_x conftest$ac_exeext
23060        }; then
23061   ac_cv_lib_resolv_res_query=yes
23062 else
23063   $as_echo "$as_me: failed program was:" >&5
23064 sed 's/^/| /' conftest.$ac_ext >&5
23065
23066         ac_cv_lib_resolv_res_query=no
23067 fi
23068
23069 rm -rf conftest.dSYM
23070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23071       conftest$ac_exeext conftest.$ac_ext
23072 LIBS=$ac_check_lib_save_LIBS
23073 fi
23074 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
23075 $as_echo "$ac_cv_lib_resolv_res_query" >&6; }
23076 if test "x$ac_cv_lib_resolv_res_query" = x""yes; then
23077   cat >>confdefs.h <<_ACEOF
23078 #define HAVE_LIBRESOLV 1
23079 _ACEOF
23080
23081   LIBS="-lresolv $LIBS"
23082
23083 else
23084    save_libs="$LIBS"
23085       LIBS="-lresolv $LIBS"
23086       { $as_echo "$as_me:$LINENO: checking for res_query in -lresolv (alternate version)" >&5
23087 $as_echo_n "checking for res_query in -lresolv (alternate version)... " >&6; }
23088       cat >conftest.$ac_ext <<_ACEOF
23089 /* confdefs.h.  */
23090 _ACEOF
23091 cat confdefs.h >>conftest.$ac_ext
23092 cat >>conftest.$ac_ext <<_ACEOF
23093 /* end confdefs.h.  */
23094 #include <resolv.h>
23095 int
23096 main ()
23097 {
23098 res_query(0,0,0,0,0)
23099   ;
23100   return 0;
23101 }
23102 _ACEOF
23103 rm -f conftest.$ac_objext conftest$ac_exeext
23104 if { (ac_try="$ac_link"
23105 case "(($ac_try" in
23106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23107   *) ac_try_echo=$ac_try;;
23108 esac
23109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23110 $as_echo "$ac_try_echo") >&5
23111   (eval "$ac_link") 2>conftest.er1
23112   ac_status=$?
23113   grep -v '^ *+' conftest.er1 >conftest.err
23114   rm -f conftest.er1
23115   cat conftest.err >&5
23116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117   (exit $ac_status); } && {
23118          test -z "$ac_c_werror_flag" ||
23119          test ! -s conftest.err
23120        } && test -s conftest$ac_exeext && {
23121          test "$cross_compiling" = yes ||
23122          $as_test_x conftest$ac_exeext
23123        }; then
23124    { $as_echo "$as_me:$LINENO: result: yes" >&5
23125 $as_echo "yes" >&6; }
23126 else
23127   $as_echo "$as_me: failed program was:" >&5
23128 sed 's/^/| /' conftest.$ac_ext >&5
23129
23130          { $as_echo "$as_me:$LINENO: result: no" >&5
23131 $as_echo "no" >&6; }
23132           LIBS="$save_libs"
23133
23134 { $as_echo "$as_me:$LINENO: checking for res_query in -lbind" >&5
23135 $as_echo_n "checking for res_query in -lbind... " >&6; }
23136 if test "${ac_cv_lib_bind_res_query+set}" = set; then
23137   $as_echo_n "(cached) " >&6
23138 else
23139   ac_check_lib_save_LIBS=$LIBS
23140 LIBS="-lbind  $LIBS"
23141 cat >conftest.$ac_ext <<_ACEOF
23142 /* confdefs.h.  */
23143 _ACEOF
23144 cat confdefs.h >>conftest.$ac_ext
23145 cat >>conftest.$ac_ext <<_ACEOF
23146 /* end confdefs.h.  */
23147
23148 /* Override any GCC internal prototype to avoid an error.
23149    Use char because int might match the return type of a GCC
23150    builtin and then its argument prototype would still apply.  */
23151 #ifdef __cplusplus
23152 extern "C"
23153 #endif
23154 char res_query ();
23155 int
23156 main ()
23157 {
23158 return res_query ();
23159   ;
23160   return 0;
23161 }
23162 _ACEOF
23163 rm -f conftest.$ac_objext conftest$ac_exeext
23164 if { (ac_try="$ac_link"
23165 case "(($ac_try" in
23166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23167   *) ac_try_echo=$ac_try;;
23168 esac
23169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23170 $as_echo "$ac_try_echo") >&5
23171   (eval "$ac_link") 2>conftest.er1
23172   ac_status=$?
23173   grep -v '^ *+' conftest.er1 >conftest.err
23174   rm -f conftest.er1
23175   cat conftest.err >&5
23176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177   (exit $ac_status); } && {
23178          test -z "$ac_c_werror_flag" ||
23179          test ! -s conftest.err
23180        } && test -s conftest$ac_exeext && {
23181          test "$cross_compiling" = yes ||
23182          $as_test_x conftest$ac_exeext
23183        }; then
23184   ac_cv_lib_bind_res_query=yes
23185 else
23186   $as_echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23188
23189         ac_cv_lib_bind_res_query=no
23190 fi
23191
23192 rm -rf conftest.dSYM
23193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23194       conftest$ac_exeext conftest.$ac_ext
23195 LIBS=$ac_check_lib_save_LIBS
23196 fi
23197 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_query" >&5
23198 $as_echo "$ac_cv_lib_bind_res_query" >&6; }
23199 if test "x$ac_cv_lib_bind_res_query" = x""yes; then
23200   cat >>confdefs.h <<_ACEOF
23201 #define HAVE_LIBBIND 1
23202 _ACEOF
23203
23204   LIBS="-lbind $LIBS"
23205
23206 else
23207    { { $as_echo "$as_me:$LINENO: error: res_query not found" >&5
23208 $as_echo "$as_me: error: res_query not found" >&2;}
23209    { (exit 1); exit 1; }; }
23210 fi
23211
23212 fi
23213
23214 rm -rf conftest.dSYM
23215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23216       conftest$ac_exeext conftest.$ac_ext
23217 fi
23218
23219
23220
23221 fi
23222
23223
23224
23225
23226
23227 ac_ext=c
23228 ac_cpp='$CPP $CPPFLAGS'
23229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23232
23233 acx_pthread_ok=no
23234
23235 # We used to check for pthread.h first, but this fails if pthread.h
23236 # requires special compiler flags (e.g. on True64 or Sequent).
23237 # It gets checked for in the link test anyway.
23238
23239 # First of all, check if the user has set any of the PTHREAD_LIBS,
23240 # etcetera environment variables, and if threads linking works using
23241 # them:
23242 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23243         save_CFLAGS="$CFLAGS"
23244         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23245         save_LIBS="$LIBS"
23246         LIBS="$PTHREAD_LIBS $LIBS"
23247         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23248 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
23249         cat >conftest.$ac_ext <<_ACEOF
23250 /* confdefs.h.  */
23251 _ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h.  */
23255
23256 /* Override any GCC internal prototype to avoid an error.
23257    Use char because int might match the return type of a GCC
23258    builtin and then its argument prototype would still apply.  */
23259 #ifdef __cplusplus
23260 extern "C"
23261 #endif
23262 char pthread_join ();
23263 int
23264 main ()
23265 {
23266 return pthread_join ();
23267   ;
23268   return 0;
23269 }
23270 _ACEOF
23271 rm -f conftest.$ac_objext conftest$ac_exeext
23272 if { (ac_try="$ac_link"
23273 case "(($ac_try" in
23274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23275   *) ac_try_echo=$ac_try;;
23276 esac
23277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23278 $as_echo "$ac_try_echo") >&5
23279   (eval "$ac_link") 2>conftest.er1
23280   ac_status=$?
23281   grep -v '^ *+' conftest.er1 >conftest.err
23282   rm -f conftest.er1
23283   cat conftest.err >&5
23284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285   (exit $ac_status); } && {
23286          test -z "$ac_c_werror_flag" ||
23287          test ! -s conftest.err
23288        } && test -s conftest$ac_exeext && {
23289          test "$cross_compiling" = yes ||
23290          $as_test_x conftest$ac_exeext
23291        }; then
23292   acx_pthread_ok=yes
23293 else
23294   $as_echo "$as_me: failed program was:" >&5
23295 sed 's/^/| /' conftest.$ac_ext >&5
23296
23297
23298 fi
23299
23300 rm -rf conftest.dSYM
23301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23302       conftest$ac_exeext conftest.$ac_ext
23303         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23304 $as_echo "$acx_pthread_ok" >&6; }
23305         if test x"$acx_pthread_ok" = xno; then
23306                 PTHREAD_LIBS=""
23307                 PTHREAD_CFLAGS=""
23308         fi
23309         LIBS="$save_LIBS"
23310         CFLAGS="$save_CFLAGS"
23311 fi
23312
23313 # We must check for the threads library under a number of different
23314 # names; the ordering is very important because some systems
23315 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23316 # libraries is broken (non-POSIX).
23317
23318 # Create a list of thread flags to try.  Items starting with a "-" are
23319 # C compiler flags, and other items are library names, except for "none"
23320 # which indicates that we try without any flags at all, and "pthread-config"
23321 # which is a program returning the flags for the Pth emulation library.
23322
23323 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
23324
23325 # The ordering *is* (sometimes) important.  Some notes on the
23326 # individual items follow:
23327
23328 # pthreads: AIX (must check this before -lpthread)
23329 # none: in case threads are in libc; should be tried before -Kthread and
23330 #       other compiler flags to prevent continual compiler warnings
23331 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23332 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23333 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23334 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23335 # -pthreads: Solaris/gcc
23336 # -mthreads: Mingw32/gcc, Lynx/gcc
23337 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23338 #      doesn't hurt to check since this sometimes defines pthreads too;
23339 #      also defines -D_REENTRANT)
23340 # pthread: Linux, etcetera
23341 # --thread-safe: KAI C++
23342 # pthread-config: use pthread-config program (for GNU Pth library)
23343
23344 case "${host_cpu}-${host_os}" in
23345         *solaris*)
23346
23347         # On Solaris (at least, for some versions), libc contains stubbed
23348         # (non-functional) versions of the pthreads routines, so link-based
23349         # tests will erroneously succeed.  (We need to link with -pthread or
23350         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
23351         # a function called by this macro, so we could check for that, but
23352         # who knows whether they'll stub that too in a future libc.)  So,
23353         # we'll just look for -pthreads and -lpthread first:
23354
23355         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
23356         ;;
23357 esac
23358
23359 if test x"$acx_pthread_ok" = xno; then
23360 for flag in $acx_pthread_flags; do
23361
23362         case $flag in
23363                 none)
23364                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
23365 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
23366                 ;;
23367
23368                 -*)
23369                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
23370 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
23371                 PTHREAD_CFLAGS="$flag"
23372                 ;;
23373
23374                 pthread-config)
23375                 # Extract the first word of "pthread-config", so it can be a program name with args.
23376 set dummy pthread-config; ac_word=$2
23377 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23378 $as_echo_n "checking for $ac_word... " >&6; }
23379 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
23380   $as_echo_n "(cached) " >&6
23381 else
23382   if test -n "$acx_pthread_config"; then
23383   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
23384 else
23385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23386 for as_dir in $PATH
23387 do
23388   IFS=$as_save_IFS
23389   test -z "$as_dir" && as_dir=.
23390   for ac_exec_ext in '' $ac_executable_extensions; do
23391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23392     ac_cv_prog_acx_pthread_config="yes"
23393     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23394     break 2
23395   fi
23396 done
23397 done
23398 IFS=$as_save_IFS
23399
23400   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23401 fi
23402 fi
23403 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23404 if test -n "$acx_pthread_config"; then
23405   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23406 $as_echo "$acx_pthread_config" >&6; }
23407 else
23408   { $as_echo "$as_me:$LINENO: result: no" >&5
23409 $as_echo "no" >&6; }
23410 fi
23411
23412
23413                 if test x"$acx_pthread_config" = xno; then continue; fi
23414                 PTHREAD_CFLAGS="`pthread-config --cflags`"
23415                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23416                 ;;
23417
23418                 *)
23419                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23420 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
23421                 PTHREAD_LIBS="-l$flag"
23422                 ;;
23423         esac
23424
23425         save_LIBS="$LIBS"
23426         save_CFLAGS="$CFLAGS"
23427         LIBS="$PTHREAD_LIBS $LIBS"
23428         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23429
23430         # Check for various functions.  We must include pthread.h,
23431         # since some functions may be macros.  (On the Sequent, we
23432         # need a special flag -Kthread to make this header compile.)
23433         # We check for pthread_join because it is in -lpthread on IRIX
23434         # while pthread_create is in libc.  We check for pthread_attr_init
23435         # due to DEC craziness with -lpthreads.  We check for
23436         # pthread_cleanup_push because it is one of the few pthread
23437         # functions on Solaris that doesn't have a non-functional libc stub.
23438         # We try pthread_create on general principles.
23439         cat >conftest.$ac_ext <<_ACEOF
23440 /* confdefs.h.  */
23441 _ACEOF
23442 cat confdefs.h >>conftest.$ac_ext
23443 cat >>conftest.$ac_ext <<_ACEOF
23444 /* end confdefs.h.  */
23445 #include <pthread.h>
23446 int
23447 main ()
23448 {
23449 pthread_t th; pthread_join(th, 0);
23450                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
23451                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23452   ;
23453   return 0;
23454 }
23455 _ACEOF
23456 rm -f conftest.$ac_objext conftest$ac_exeext
23457 if { (ac_try="$ac_link"
23458 case "(($ac_try" in
23459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23460   *) ac_try_echo=$ac_try;;
23461 esac
23462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23463 $as_echo "$ac_try_echo") >&5
23464   (eval "$ac_link") 2>conftest.er1
23465   ac_status=$?
23466   grep -v '^ *+' conftest.er1 >conftest.err
23467   rm -f conftest.er1
23468   cat conftest.err >&5
23469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470   (exit $ac_status); } && {
23471          test -z "$ac_c_werror_flag" ||
23472          test ! -s conftest.err
23473        } && test -s conftest$ac_exeext && {
23474          test "$cross_compiling" = yes ||
23475          $as_test_x conftest$ac_exeext
23476        }; then
23477   acx_pthread_ok=yes
23478 else
23479   $as_echo "$as_me: failed program was:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23481
23482
23483 fi
23484
23485 rm -rf conftest.dSYM
23486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23487       conftest$ac_exeext conftest.$ac_ext
23488
23489         LIBS="$save_LIBS"
23490         CFLAGS="$save_CFLAGS"
23491
23492         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23493 $as_echo "$acx_pthread_ok" >&6; }
23494         if test "x$acx_pthread_ok" = xyes; then
23495                 break;
23496         fi
23497
23498         PTHREAD_LIBS=""
23499         PTHREAD_CFLAGS=""
23500 done
23501 fi
23502
23503 # Various other checks:
23504 if test "x$acx_pthread_ok" = xyes; then
23505         save_LIBS="$LIBS"
23506         LIBS="$PTHREAD_LIBS $LIBS"
23507         save_CFLAGS="$CFLAGS"
23508         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23509
23510         # Detect AIX lossage: threads are created detached by default
23511         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
23512         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23513 $as_echo_n "checking for joinable pthread attribute... " >&6; }
23514         cat >conftest.$ac_ext <<_ACEOF
23515 /* confdefs.h.  */
23516 _ACEOF
23517 cat confdefs.h >>conftest.$ac_ext
23518 cat >>conftest.$ac_ext <<_ACEOF
23519 /* end confdefs.h.  */
23520 #include <pthread.h>
23521 int
23522 main ()
23523 {
23524 int attr=PTHREAD_CREATE_JOINABLE;
23525   ;
23526   return 0;
23527 }
23528 _ACEOF
23529 rm -f conftest.$ac_objext conftest$ac_exeext
23530 if { (ac_try="$ac_link"
23531 case "(($ac_try" in
23532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23533   *) ac_try_echo=$ac_try;;
23534 esac
23535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23536 $as_echo "$ac_try_echo") >&5
23537   (eval "$ac_link") 2>conftest.er1
23538   ac_status=$?
23539   grep -v '^ *+' conftest.er1 >conftest.err
23540   rm -f conftest.er1
23541   cat conftest.err >&5
23542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543   (exit $ac_status); } && {
23544          test -z "$ac_c_werror_flag" ||
23545          test ! -s conftest.err
23546        } && test -s conftest$ac_exeext && {
23547          test "$cross_compiling" = yes ||
23548          $as_test_x conftest$ac_exeext
23549        }; then
23550   ok=PTHREAD_CREATE_JOINABLE
23551 else
23552   $as_echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.$ac_ext >&5
23554
23555         ok=unknown
23556 fi
23557
23558 rm -rf conftest.dSYM
23559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23560       conftest$ac_exeext conftest.$ac_ext
23561         if test x"$ok" = xunknown; then
23562                 cat >conftest.$ac_ext <<_ACEOF
23563 /* confdefs.h.  */
23564 _ACEOF
23565 cat confdefs.h >>conftest.$ac_ext
23566 cat >>conftest.$ac_ext <<_ACEOF
23567 /* end confdefs.h.  */
23568 #include <pthread.h>
23569 int
23570 main ()
23571 {
23572 int attr=PTHREAD_CREATE_UNDETACHED;
23573   ;
23574   return 0;
23575 }
23576 _ACEOF
23577 rm -f conftest.$ac_objext conftest$ac_exeext
23578 if { (ac_try="$ac_link"
23579 case "(($ac_try" in
23580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23581   *) ac_try_echo=$ac_try;;
23582 esac
23583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23584 $as_echo "$ac_try_echo") >&5
23585   (eval "$ac_link") 2>conftest.er1
23586   ac_status=$?
23587   grep -v '^ *+' conftest.er1 >conftest.err
23588   rm -f conftest.er1
23589   cat conftest.err >&5
23590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591   (exit $ac_status); } && {
23592          test -z "$ac_c_werror_flag" ||
23593          test ! -s conftest.err
23594        } && test -s conftest$ac_exeext && {
23595          test "$cross_compiling" = yes ||
23596          $as_test_x conftest$ac_exeext
23597        }; then
23598   ok=PTHREAD_CREATE_UNDETACHED
23599 else
23600   $as_echo "$as_me: failed program was:" >&5
23601 sed 's/^/| /' conftest.$ac_ext >&5
23602
23603         ok=unknown
23604 fi
23605
23606 rm -rf conftest.dSYM
23607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23608       conftest$ac_exeext conftest.$ac_ext
23609         fi
23610         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23611
23612 cat >>confdefs.h <<\_ACEOF
23613 #define PTHREAD_CREATE_JOINABLE $ok
23614 _ACEOF
23615
23616         fi
23617         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23618 $as_echo "${ok}" >&6; }
23619         if test x"$ok" = xunknown; then
23620                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23621 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23622         fi
23623
23624         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23625 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23626         flag=no
23627         case "${host_cpu}-${host_os}" in
23628                 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23629                 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23630         esac
23631         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23632 $as_echo "${flag}" >&6; }
23633         if test "x$flag" != xno; then
23634                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23635         fi
23636
23637         LIBS="$save_LIBS"
23638         CFLAGS="$save_CFLAGS"
23639
23640         # More AIX lossage: must compile with cc_r
23641         # Extract the first word of "cc_r", so it can be a program name with args.
23642 set dummy cc_r; ac_word=$2
23643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23644 $as_echo_n "checking for $ac_word... " >&6; }
23645 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23646   $as_echo_n "(cached) " >&6
23647 else
23648   if test -n "$PTHREAD_CC"; then
23649   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23650 else
23651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23652 for as_dir in $PATH
23653 do
23654   IFS=$as_save_IFS
23655   test -z "$as_dir" && as_dir=.
23656   for ac_exec_ext in '' $ac_executable_extensions; do
23657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23658     ac_cv_prog_PTHREAD_CC="cc_r"
23659     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23660     break 2
23661   fi
23662 done
23663 done
23664 IFS=$as_save_IFS
23665
23666   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23667 fi
23668 fi
23669 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23670 if test -n "$PTHREAD_CC"; then
23671   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23672 $as_echo "$PTHREAD_CC" >&6; }
23673 else
23674   { $as_echo "$as_me:$LINENO: result: no" >&5
23675 $as_echo "no" >&6; }
23676 fi
23677
23678
23679 else
23680         PTHREAD_CC="$CC"
23681 fi
23682
23683
23684
23685
23686
23687 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23688 if test x"$acx_pthread_ok" = xyes; then
23689
23690 cat >>confdefs.h <<\_ACEOF
23691 #define HAVE_PTHREAD 1
23692 _ACEOF
23693
23694         :
23695 else
23696         acx_pthread_ok=no
23697
23698 fi
23699 ac_ext=c
23700 ac_cpp='$CPP $CPPFLAGS'
23701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23704
23705
23706
23707
23708   # Check whether --enable-lynx was given.
23709 if test "${enable_lynx+set}" = set; then
23710   enableval=$enable_lynx;
23711 else
23712   enable_lynx=yes
23713 fi
23714
23715
23716   case "${enable_lynx}" in
23717     yes)
23718       # Extract the first word of "lynx", so it can be a program name with args.
23719 set dummy lynx; ac_word=$2
23720 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23721 $as_echo_n "checking for $ac_word... " >&6; }
23722 if test "${ac_cv_prog_have_lynx+set}" = set; then
23723   $as_echo_n "(cached) " >&6
23724 else
23725   if test -n "$have_lynx"; then
23726   ac_cv_prog_have_lynx="$have_lynx" # Let the user override the test.
23727 else
23728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23729 for as_dir in $PATH
23730 do
23731   IFS=$as_save_IFS
23732   test -z "$as_dir" && as_dir=.
23733   for ac_exec_ext in '' $ac_executable_extensions; do
23734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23735     ac_cv_prog_have_lynx="yes"
23736     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23737     break 2
23738   fi
23739 done
23740 done
23741 IFS=$as_save_IFS
23742
23743   test -z "$ac_cv_prog_have_lynx" && ac_cv_prog_have_lynx="no"
23744 fi
23745 fi
23746 have_lynx=$ac_cv_prog_have_lynx
23747 if test -n "$have_lynx"; then
23748   { $as_echo "$as_me:$LINENO: result: $have_lynx" >&5
23749 $as_echo "$have_lynx" >&6; }
23750 else
23751   { $as_echo "$as_me:$LINENO: result: no" >&5
23752 $as_echo "no" >&6; }
23753 fi
23754
23755
23756
23757       if test x$have_lynx = xno ; then
23758          { $as_echo "$as_me:$LINENO: WARNING: *** lynx not found, plain text README will not be built ***" >&5
23759 $as_echo "$as_me: WARNING: *** lynx not found, plain text README will not be built ***" >&2;}
23760       fi
23761       ;;
23762     no)
23763       have_lynx=no ;;
23764     *)
23765       { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-lynx" >&5
23766 $as_echo "$as_me: error: bad value ${enableval} for --disable-lynx" >&2;}
23767    { (exit 1); exit 1; }; } ;;
23768   esac
23769
23770    if test "x$have_lynx" = xyes; then
23771   USE_LYNX_TRUE=
23772   USE_LYNX_FALSE='#'
23773 else
23774   USE_LYNX_TRUE='#'
23775   USE_LYNX_FALSE=
23776 fi
23777
23778
23779
23780 ac_config_files="$ac_config_files Makefile libasyncns/Makefile doc/Makefile doc/README.html doxygen/Makefile doxygen/doxygen.conf libasyncns.pc"
23781
23782 cat >confcache <<\_ACEOF
23783 # This file is a shell script that caches the results of configure
23784 # tests run on this system so they can be shared between configure
23785 # scripts and configure runs, see configure's option --config-cache.
23786 # It is not useful on other systems.  If it contains results you don't
23787 # want to keep, you may remove or edit it.
23788 #
23789 # config.status only pays attention to the cache file if you give it
23790 # the --recheck option to rerun configure.
23791 #
23792 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23793 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23794 # following values.
23795
23796 _ACEOF
23797
23798 # The following way of writing the cache mishandles newlines in values,
23799 # but we know of no workaround that is simple, portable, and efficient.
23800 # So, we kill variables containing newlines.
23801 # Ultrix sh set writes to stderr and can't be redirected directly,
23802 # and sets the high bit in the cache file unless we assign to the vars.
23803 (
23804   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23805     eval ac_val=\$$ac_var
23806     case $ac_val in #(
23807     *${as_nl}*)
23808       case $ac_var in #(
23809       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
23810 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23811       esac
23812       case $ac_var in #(
23813       _ | IFS | as_nl) ;; #(
23814       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23815       *) $as_unset $ac_var ;;
23816       esac ;;
23817     esac
23818   done
23819
23820   (set) 2>&1 |
23821     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23822     *${as_nl}ac_space=\ *)
23823       # `set' does not quote correctly, so add quotes (double-quote
23824       # substitution turns \\\\ into \\, and sed turns \\ into \).
23825       sed -n \
23826         "s/'/'\\\\''/g;
23827           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23828       ;; #(
23829     *)
23830       # `set' quotes correctly as required by POSIX, so do not add quotes.
23831       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23832       ;;
23833     esac |
23834     sort
23835 ) |
23836   sed '
23837      /^ac_cv_env_/b end
23838      t clear
23839      :clear
23840      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23841      t end
23842      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23843      :end' >>confcache
23844 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23845   if test -w "$cache_file"; then
23846     test "x$cache_file" != "x/dev/null" &&
23847       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
23848 $as_echo "$as_me: updating cache $cache_file" >&6;}
23849     cat confcache >$cache_file
23850   else
23851     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23852 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23853   fi
23854 fi
23855 rm -f confcache
23856
23857 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23858 # Let make expand exec_prefix.
23859 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23860
23861 DEFS=-DHAVE_CONFIG_H
23862
23863 ac_libobjs=
23864 ac_ltlibobjs=
23865 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23866   # 1. Remove the extension, and $U if already installed.
23867   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23868   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23869   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23870   #    will be set to the directory where LIBOBJS objects are built.
23871   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23872   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23873 done
23874 LIBOBJS=$ac_libobjs
23875
23876 LTLIBOBJS=$ac_ltlibobjs
23877
23878
23879 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23880   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23881 Usually this means the macro was only invoked conditionally." >&5
23882 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
23883 Usually this means the macro was only invoked conditionally." >&2;}
23884    { (exit 1); exit 1; }; }
23885 fi
23886 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23887   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23888 Usually this means the macro was only invoked conditionally." >&5
23889 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23890 Usually this means the macro was only invoked conditionally." >&2;}
23891    { (exit 1); exit 1; }; }
23892 fi
23893 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23894   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23895 Usually this means the macro was only invoked conditionally." >&5
23896 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23897 Usually this means the macro was only invoked conditionally." >&2;}
23898    { (exit 1); exit 1; }; }
23899 fi
23900 if test -z "${USE_LYNX_TRUE}" && test -z "${USE_LYNX_FALSE}"; then
23901   { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LYNX\" was never defined.
23902 Usually this means the macro was only invoked conditionally." >&5
23903 $as_echo "$as_me: error: conditional \"USE_LYNX\" was never defined.
23904 Usually this means the macro was only invoked conditionally." >&2;}
23905    { (exit 1); exit 1; }; }
23906 fi
23907
23908 : ${CONFIG_STATUS=./config.status}
23909 ac_write_fail=0
23910 ac_clean_files_save=$ac_clean_files
23911 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23912 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23913 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23914 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23915 #! $SHELL
23916 # Generated by $as_me.
23917 # Run this file to recreate the current configuration.
23918 # Compiler output produced by configure, useful for debugging
23919 # configure, is in config.log if it exists.
23920
23921 debug=false
23922 ac_cs_recheck=false
23923 ac_cs_silent=false
23924 SHELL=\${CONFIG_SHELL-$SHELL}
23925 _ACEOF
23926
23927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23928 ## --------------------- ##
23929 ## M4sh Initialization.  ##
23930 ## --------------------- ##
23931
23932 # Be more Bourne compatible
23933 DUALCASE=1; export DUALCASE # for MKS sh
23934 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23935   emulate sh
23936   NULLCMD=:
23937   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23938   # is contrary to our usage.  Disable this feature.
23939   alias -g '${1+"$@"}'='"$@"'
23940   setopt NO_GLOB_SUBST
23941 else
23942   case `(set -o) 2>/dev/null` in
23943   *posix*) set -o posix ;;
23944 esac
23945
23946 fi
23947
23948
23949
23950
23951 # PATH needs CR
23952 # Avoid depending upon Character Ranges.
23953 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23954 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23955 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23956 as_cr_digits='0123456789'
23957 as_cr_alnum=$as_cr_Letters$as_cr_digits
23958
23959 as_nl='
23960 '
23961 export as_nl
23962 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23963 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23964 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23965 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23966 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23967   as_echo='printf %s\n'
23968   as_echo_n='printf %s'
23969 else
23970   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23971     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23972     as_echo_n='/usr/ucb/echo -n'
23973   else
23974     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23975     as_echo_n_body='eval
23976       arg=$1;
23977       case $arg in
23978       *"$as_nl"*)
23979         expr "X$arg" : "X\\(.*\\)$as_nl";
23980         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23981       esac;
23982       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23983     '
23984     export as_echo_n_body
23985     as_echo_n='sh -c $as_echo_n_body as_echo'
23986   fi
23987   export as_echo_body
23988   as_echo='sh -c $as_echo_body as_echo'
23989 fi
23990
23991 # The user is always right.
23992 if test "${PATH_SEPARATOR+set}" != set; then
23993   PATH_SEPARATOR=:
23994   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23995     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23996       PATH_SEPARATOR=';'
23997   }
23998 fi
23999
24000 # Support unset when possible.
24001 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24002   as_unset=unset
24003 else
24004   as_unset=false
24005 fi
24006
24007
24008 # IFS
24009 # We need space, tab and new line, in precisely that order.  Quoting is
24010 # there to prevent editors from complaining about space-tab.
24011 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24012 # splitting by setting IFS to empty value.)
24013 IFS=" ""        $as_nl"
24014
24015 # Find who we are.  Look in the path if we contain no directory separator.
24016 case $0 in
24017   *[\\/]* ) as_myself=$0 ;;
24018   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24019 for as_dir in $PATH
24020 do
24021   IFS=$as_save_IFS
24022   test -z "$as_dir" && as_dir=.
24023   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24024 done
24025 IFS=$as_save_IFS
24026
24027      ;;
24028 esac
24029 # We did not find ourselves, most probably we were run as `sh COMMAND'
24030 # in which case we are not to be found in the path.
24031 if test "x$as_myself" = x; then
24032   as_myself=$0
24033 fi
24034 if test ! -f "$as_myself"; then
24035   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24036   { (exit 1); exit 1; }
24037 fi
24038
24039 # Work around bugs in pre-3.0 UWIN ksh.
24040 for as_var in ENV MAIL MAILPATH
24041 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24042 done
24043 PS1='$ '
24044 PS2='> '
24045 PS4='+ '
24046
24047 # NLS nuisances.
24048 LC_ALL=C
24049 export LC_ALL
24050 LANGUAGE=C
24051 export LANGUAGE
24052
24053 # Required to use basename.
24054 if expr a : '\(a\)' >/dev/null 2>&1 &&
24055    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24056   as_expr=expr
24057 else
24058   as_expr=false
24059 fi
24060
24061 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24062   as_basename=basename
24063 else
24064   as_basename=false
24065 fi
24066
24067
24068 # Name of the executable.
24069 as_me=`$as_basename -- "$0" ||
24070 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24071          X"$0" : 'X\(//\)$' \| \
24072          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24073 $as_echo X/"$0" |
24074     sed '/^.*\/\([^/][^/]*\)\/*$/{
24075             s//\1/
24076             q
24077           }
24078           /^X\/\(\/\/\)$/{
24079             s//\1/
24080             q
24081           }
24082           /^X\/\(\/\).*/{
24083             s//\1/
24084             q
24085           }
24086           s/.*/./; q'`
24087
24088 # CDPATH.
24089 $as_unset CDPATH
24090
24091
24092
24093   as_lineno_1=$LINENO
24094   as_lineno_2=$LINENO
24095   test "x$as_lineno_1" != "x$as_lineno_2" &&
24096   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24097
24098   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24099   # uniformly replaced by the line number.  The first 'sed' inserts a
24100   # line-number line after each line using $LINENO; the second 'sed'
24101   # does the real work.  The second script uses 'N' to pair each
24102   # line-number line with the line containing $LINENO, and appends
24103   # trailing '-' during substitution so that $LINENO is not a special
24104   # case at line end.
24105   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24106   # scripts with optimization help from Paolo Bonzini.  Blame Lee
24107   # E. McMahon (1931-1989) for sed's syntax.  :-)
24108   sed -n '
24109     p
24110     /[$]LINENO/=
24111   ' <$as_myself |
24112     sed '
24113       s/[$]LINENO.*/&-/
24114       t lineno
24115       b
24116       :lineno
24117       N
24118       :loop
24119       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24120       t loop
24121       s/-\n.*//
24122     ' >$as_me.lineno &&
24123   chmod +x "$as_me.lineno" ||
24124     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24125    { (exit 1); exit 1; }; }
24126
24127   # Don't try to exec as it changes $[0], causing all sort of problems
24128   # (the dirname of $[0] is not the place where we might find the
24129   # original and so on.  Autoconf is especially sensitive to this).
24130   . "./$as_me.lineno"
24131   # Exit status is that of the last command.
24132   exit
24133 }
24134
24135
24136 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24137   as_dirname=dirname
24138 else
24139   as_dirname=false
24140 fi
24141
24142 ECHO_C= ECHO_N= ECHO_T=
24143 case `echo -n x` in
24144 -n*)
24145   case `echo 'x\c'` in
24146   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24147   *)   ECHO_C='\c';;
24148   esac;;
24149 *)
24150   ECHO_N='-n';;
24151 esac
24152 if expr a : '\(a\)' >/dev/null 2>&1 &&
24153    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24154   as_expr=expr
24155 else
24156   as_expr=false
24157 fi
24158
24159 rm -f conf$$ conf$$.exe conf$$.file
24160 if test -d conf$$.dir; then
24161   rm -f conf$$.dir/conf$$.file
24162 else
24163   rm -f conf$$.dir
24164   mkdir conf$$.dir 2>/dev/null
24165 fi
24166 if (echo >conf$$.file) 2>/dev/null; then
24167   if ln -s conf$$.file conf$$ 2>/dev/null; then
24168     as_ln_s='ln -s'
24169     # ... but there are two gotchas:
24170     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24171     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24172     # In both cases, we have to default to `cp -p'.
24173     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24174       as_ln_s='cp -p'
24175   elif ln conf$$.file conf$$ 2>/dev/null; then
24176     as_ln_s=ln
24177   else
24178     as_ln_s='cp -p'
24179   fi
24180 else
24181   as_ln_s='cp -p'
24182 fi
24183 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24184 rmdir conf$$.dir 2>/dev/null
24185
24186 if mkdir -p . 2>/dev/null; then
24187   as_mkdir_p=:
24188 else
24189   test -d ./-p && rmdir ./-p
24190   as_mkdir_p=false
24191 fi
24192
24193 if test -x / >/dev/null 2>&1; then
24194   as_test_x='test -x'
24195 else
24196   if ls -dL / >/dev/null 2>&1; then
24197     as_ls_L_option=L
24198   else
24199     as_ls_L_option=
24200   fi
24201   as_test_x='
24202     eval sh -c '\''
24203       if test -d "$1"; then
24204         test -d "$1/.";
24205       else
24206         case $1 in
24207         -*)set "./$1";;
24208         esac;
24209         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24210         ???[sx]*):;;*)false;;esac;fi
24211     '\'' sh
24212   '
24213 fi
24214 as_executable_p=$as_test_x
24215
24216 # Sed expression to map a string onto a valid CPP name.
24217 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24218
24219 # Sed expression to map a string onto a valid variable name.
24220 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24221
24222
24223 exec 6>&1
24224
24225 # Save the log message, to keep $[0] and so on meaningful, and to
24226 # report actual input values of CONFIG_FILES etc. instead of their
24227 # values after options handling.
24228 ac_log="
24229 This file was extended by libasyncns $as_me 0.7, which was
24230 generated by GNU Autoconf 2.63.  Invocation command line was
24231
24232   CONFIG_FILES    = $CONFIG_FILES
24233   CONFIG_HEADERS  = $CONFIG_HEADERS
24234   CONFIG_LINKS    = $CONFIG_LINKS
24235   CONFIG_COMMANDS = $CONFIG_COMMANDS
24236   $ $0 $@
24237
24238 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24239 "
24240
24241 _ACEOF
24242
24243 case $ac_config_files in *"
24244 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24245 esac
24246
24247 case $ac_config_headers in *"
24248 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24249 esac
24250
24251
24252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24253 # Files that config.status was made for.
24254 config_files="$ac_config_files"
24255 config_headers="$ac_config_headers"
24256 config_commands="$ac_config_commands"
24257
24258 _ACEOF
24259
24260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24261 ac_cs_usage="\
24262 \`$as_me' instantiates files from templates according to the
24263 current configuration.
24264
24265 Usage: $0 [OPTION]... [FILE]...
24266
24267   -h, --help       print this help, then exit
24268   -V, --version    print version number and configuration settings, then exit
24269   -q, --quiet, --silent
24270                    do not print progress messages
24271   -d, --debug      don't remove temporary files
24272       --recheck    update $as_me by reconfiguring in the same conditions
24273       --file=FILE[:TEMPLATE]
24274                    instantiate the configuration file FILE
24275       --header=FILE[:TEMPLATE]
24276                    instantiate the configuration header FILE
24277
24278 Configuration files:
24279 $config_files
24280
24281 Configuration headers:
24282 $config_headers
24283
24284 Configuration commands:
24285 $config_commands
24286
24287 Report bugs to <bug-autoconf@gnu.org>."
24288
24289 _ACEOF
24290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24291 ac_cs_version="\\
24292 libasyncns config.status 0.7
24293 configured by $0, generated by GNU Autoconf 2.63,
24294   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24295
24296 Copyright (C) 2008 Free Software Foundation, Inc.
24297 This config.status script is free software; the Free Software Foundation
24298 gives unlimited permission to copy, distribute and modify it."
24299
24300 ac_pwd='$ac_pwd'
24301 srcdir='$srcdir'
24302 INSTALL='$INSTALL'
24303 MKDIR_P='$MKDIR_P'
24304 AWK='$AWK'
24305 test -n "\$AWK" || AWK=awk
24306 _ACEOF
24307
24308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24309 # The default lists apply if the user does not specify any file.
24310 ac_need_defaults=:
24311 while test $# != 0
24312 do
24313   case $1 in
24314   --*=*)
24315     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24316     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24317     ac_shift=:
24318     ;;
24319   *)
24320     ac_option=$1
24321     ac_optarg=$2
24322     ac_shift=shift
24323     ;;
24324   esac
24325
24326   case $ac_option in
24327   # Handling of the options.
24328   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24329     ac_cs_recheck=: ;;
24330   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24331     $as_echo "$ac_cs_version"; exit ;;
24332   --debug | --debu | --deb | --de | --d | -d )
24333     debug=: ;;
24334   --file | --fil | --fi | --f )
24335     $ac_shift
24336     case $ac_optarg in
24337     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24338     esac
24339     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
24340     ac_need_defaults=false;;
24341   --header | --heade | --head | --hea )
24342     $ac_shift
24343     case $ac_optarg in
24344     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24345     esac
24346     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
24347     ac_need_defaults=false;;
24348   --he | --h)
24349     # Conflict between --help and --header
24350     { $as_echo "$as_me: error: ambiguous option: $1
24351 Try \`$0 --help' for more information." >&2
24352    { (exit 1); exit 1; }; };;
24353   --help | --hel | -h )
24354     $as_echo "$ac_cs_usage"; exit ;;
24355   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24356   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24357     ac_cs_silent=: ;;
24358
24359   # This is an error.
24360   -*) { $as_echo "$as_me: error: unrecognized option: $1
24361 Try \`$0 --help' for more information." >&2
24362    { (exit 1); exit 1; }; } ;;
24363
24364   *) ac_config_targets="$ac_config_targets $1"
24365      ac_need_defaults=false ;;
24366
24367   esac
24368   shift
24369 done
24370
24371 ac_configure_extra_args=
24372
24373 if $ac_cs_silent; then
24374   exec 6>/dev/null
24375   ac_configure_extra_args="$ac_configure_extra_args --silent"
24376 fi
24377
24378 _ACEOF
24379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24380 if \$ac_cs_recheck; then
24381   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24382   shift
24383   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24384   CONFIG_SHELL='$SHELL'
24385   export CONFIG_SHELL
24386   exec "\$@"
24387 fi
24388
24389 _ACEOF
24390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24391 exec 5>>config.log
24392 {
24393   echo
24394   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24395 ## Running $as_me. ##
24396 _ASBOX
24397   $as_echo "$ac_log"
24398 } >&5
24399
24400 _ACEOF
24401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24402 #
24403 # INIT-COMMANDS
24404 #
24405 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24406
24407 _ACEOF
24408
24409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24410
24411 # Handling of arguments.
24412 for ac_config_target in $ac_config_targets
24413 do
24414   case $ac_config_target in
24415     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24416     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24417     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24418     "libasyncns/Makefile") CONFIG_FILES="$CONFIG_FILES libasyncns/Makefile" ;;
24419     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24420     "doc/README.html") CONFIG_FILES="$CONFIG_FILES doc/README.html" ;;
24421     "doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doxygen/Makefile" ;;
24422     "doxygen/doxygen.conf") CONFIG_FILES="$CONFIG_FILES doxygen/doxygen.conf" ;;
24423     "libasyncns.pc") CONFIG_FILES="$CONFIG_FILES libasyncns.pc" ;;
24424
24425   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24426 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24427    { (exit 1); exit 1; }; };;
24428   esac
24429 done
24430
24431
24432 # If the user did not use the arguments to specify the items to instantiate,
24433 # then the envvar interface is used.  Set only those that are not.
24434 # We use the long form for the default assignment because of an extremely
24435 # bizarre bug on SunOS 4.1.3.
24436 if $ac_need_defaults; then
24437   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24438   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24439   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24440 fi
24441
24442 # Have a temporary directory for convenience.  Make it in the build tree
24443 # simply because there is no reason against having it here, and in addition,
24444 # creating and moving files from /tmp can sometimes cause problems.
24445 # Hook for its removal unless debugging.
24446 # Note that there is a small window in which the directory will not be cleaned:
24447 # after its creation but before its name has been assigned to `$tmp'.
24448 $debug ||
24449 {
24450   tmp=
24451   trap 'exit_status=$?
24452   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24453 ' 0
24454   trap '{ (exit 1); exit 1; }' 1 2 13 15
24455 }
24456 # Create a (secure) tmp directory for tmp files.
24457
24458 {
24459   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24460   test -n "$tmp" && test -d "$tmp"
24461 }  ||
24462 {
24463   tmp=./conf$$-$RANDOM
24464   (umask 077 && mkdir "$tmp")
24465 } ||
24466 {
24467    $as_echo "$as_me: cannot create a temporary directory in ." >&2
24468    { (exit 1); exit 1; }
24469 }
24470
24471 # Set up the scripts for CONFIG_FILES section.
24472 # No need to generate them if there are no CONFIG_FILES.
24473 # This happens for instance with `./config.status config.h'.
24474 if test -n "$CONFIG_FILES"; then
24475
24476
24477 ac_cr='\r'
24478 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24479 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24480   ac_cs_awk_cr='\\r'
24481 else
24482   ac_cs_awk_cr=$ac_cr
24483 fi
24484
24485 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24486 _ACEOF
24487
24488
24489 {
24490   echo "cat >conf$$subs.awk <<_ACEOF" &&
24491   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24492   echo "_ACEOF"
24493 } >conf$$subs.sh ||
24494   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24495 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24496    { (exit 1); exit 1; }; }
24497 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24498 ac_delim='%!_!# '
24499 for ac_last_try in false false false false false :; do
24500   . ./conf$$subs.sh ||
24501     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24502 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24503    { (exit 1); exit 1; }; }
24504
24505   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24506   if test $ac_delim_n = $ac_delim_num; then
24507     break
24508   elif $ac_last_try; then
24509     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24510 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24511    { (exit 1); exit 1; }; }
24512   else
24513     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24514   fi
24515 done
24516 rm -f conf$$subs.sh
24517
24518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24519 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24520 _ACEOF
24521 sed -n '
24522 h
24523 s/^/S["/; s/!.*/"]=/
24524 p
24525 g
24526 s/^[^!]*!//
24527 :repl
24528 t repl
24529 s/'"$ac_delim"'$//
24530 t delim
24531 :nl
24532 h
24533 s/\(.\{148\}\).*/\1/
24534 t more1
24535 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24536 p
24537 n
24538 b repl
24539 :more1
24540 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24541 p
24542 g
24543 s/.\{148\}//
24544 t nl
24545 :delim
24546 h
24547 s/\(.\{148\}\).*/\1/
24548 t more2
24549 s/["\\]/\\&/g; s/^/"/; s/$/"/
24550 p
24551 b
24552 :more2
24553 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24554 p
24555 g
24556 s/.\{148\}//
24557 t delim
24558 ' <conf$$subs.awk | sed '
24559 /^[^""]/{
24560   N
24561   s/\n//
24562 }
24563 ' >>$CONFIG_STATUS || ac_write_fail=1
24564 rm -f conf$$subs.awk
24565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24566 _ACAWK
24567 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
24568   for (key in S) S_is_set[key] = 1
24569   FS = "\a"
24570
24571 }
24572 {
24573   line = $ 0
24574   nfields = split(line, field, "@")
24575   substed = 0
24576   len = length(field[1])
24577   for (i = 2; i < nfields; i++) {
24578     key = field[i]
24579     keylen = length(key)
24580     if (S_is_set[key]) {
24581       value = S[key]
24582       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24583       len += length(value) + length(field[++i])
24584       substed = 1
24585     } else
24586       len += 1 + keylen
24587   }
24588
24589   print line
24590 }
24591
24592 _ACAWK
24593 _ACEOF
24594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24595 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24596   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24597 else
24598   cat
24599 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
24600   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
24601 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
24602    { (exit 1); exit 1; }; }
24603 _ACEOF
24604
24605 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24606 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24607 # trailing colons and then remove the whole line if VPATH becomes empty
24608 # (actually we leave an empty line to preserve line numbers).
24609 if test "x$srcdir" = x.; then
24610   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24611 s/:*\$(srcdir):*/:/
24612 s/:*\${srcdir}:*/:/
24613 s/:*@srcdir@:*/:/
24614 s/^\([^=]*=[     ]*\):*/\1/
24615 s/:*$//
24616 s/^[^=]*=[       ]*$//
24617 }'
24618 fi
24619
24620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24621 fi # test -n "$CONFIG_FILES"
24622
24623 # Set up the scripts for CONFIG_HEADERS section.
24624 # No need to generate them if there are no CONFIG_HEADERS.
24625 # This happens for instance with `./config.status Makefile'.
24626 if test -n "$CONFIG_HEADERS"; then
24627 cat >"$tmp/defines.awk" <<\_ACAWK ||
24628 BEGIN {
24629 _ACEOF
24630
24631 # Transform confdefs.h into an awk script `defines.awk', embedded as
24632 # here-document in config.status, that substitutes the proper values into
24633 # config.h.in to produce config.h.
24634
24635 # Create a delimiter string that does not exist in confdefs.h, to ease
24636 # handling of long lines.
24637 ac_delim='%!_!# '
24638 for ac_last_try in false false :; do
24639   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
24640   if test -z "$ac_t"; then
24641     break
24642   elif $ac_last_try; then
24643     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
24644 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
24645    { (exit 1); exit 1; }; }
24646   else
24647     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24648   fi
24649 done
24650
24651 # For the awk script, D is an array of macro values keyed by name,
24652 # likewise P contains macro parameters if any.  Preserve backslash
24653 # newline sequences.
24654
24655 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24656 sed -n '
24657 s/.\{148\}/&'"$ac_delim"'/g
24658 t rset
24659 :rset
24660 s/^[     ]*#[    ]*define[       ][      ]*/ /
24661 t def
24662 d
24663 :def
24664 s/\\$//
24665 t bsnl
24666 s/["\\]/\\&/g
24667 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
24668 D["\1"]=" \3"/p
24669 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
24670 d
24671 :bsnl
24672 s/["\\]/\\&/g
24673 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
24674 D["\1"]=" \3\\\\\\n"\\/p
24675 t cont
24676 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24677 t cont
24678 d
24679 :cont
24680 n
24681 s/.\{148\}/&'"$ac_delim"'/g
24682 t clear
24683 :clear
24684 s/\\$//
24685 t bsnlc
24686 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24687 d
24688 :bsnlc
24689 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24690 b cont
24691 ' <confdefs.h | sed '
24692 s/'"$ac_delim"'/"\\\
24693 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24694
24695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24696   for (key in D) D_is_set[key] = 1
24697   FS = "\a"
24698 }
24699 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24700   line = \$ 0
24701   split(line, arg, " ")
24702   if (arg[1] == "#") {
24703     defundef = arg[2]
24704     mac1 = arg[3]
24705   } else {
24706     defundef = substr(arg[1], 2)
24707     mac1 = arg[2]
24708   }
24709   split(mac1, mac2, "(") #)
24710   macro = mac2[1]
24711   prefix = substr(line, 1, index(line, defundef) - 1)
24712   if (D_is_set[macro]) {
24713     # Preserve the white space surrounding the "#".
24714     print prefix "define", macro P[macro] D[macro]
24715     next
24716   } else {
24717     # Replace #undef with comments.  This is necessary, for example,
24718     # in the case of _POSIX_SOURCE, which is predefined and required
24719     # on some systems where configure will not decide to define it.
24720     if (defundef == "undef") {
24721       print "/*", prefix defundef, macro, "*/"
24722       next
24723     }
24724   }
24725 }
24726 { print }
24727 _ACAWK
24728 _ACEOF
24729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24730   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
24731 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
24732    { (exit 1); exit 1; }; }
24733 fi # test -n "$CONFIG_HEADERS"
24734
24735
24736 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
24737 shift
24738 for ac_tag
24739 do
24740   case $ac_tag in
24741   :[FHLC]) ac_mode=$ac_tag; continue;;
24742   esac
24743   case $ac_mode$ac_tag in
24744   :[FHL]*:*);;
24745   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
24746 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
24747    { (exit 1); exit 1; }; };;
24748   :[FH]-) ac_tag=-:-;;
24749   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24750   esac
24751   ac_save_IFS=$IFS
24752   IFS=:
24753   set x $ac_tag
24754   IFS=$ac_save_IFS
24755   shift
24756   ac_file=$1
24757   shift
24758
24759   case $ac_mode in
24760   :L) ac_source=$1;;
24761   :[FH])
24762     ac_file_inputs=
24763     for ac_f
24764     do
24765       case $ac_f in
24766       -) ac_f="$tmp/stdin";;
24767       *) # Look for the file first in the build tree, then in the source tree
24768          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24769          # because $ac_f cannot contain `:'.
24770          test -f "$ac_f" ||
24771            case $ac_f in
24772            [\\/$]*) false;;
24773            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24774            esac ||
24775            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24776 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24777    { (exit 1); exit 1; }; };;
24778       esac
24779       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24780       ac_file_inputs="$ac_file_inputs '$ac_f'"
24781     done
24782
24783     # Let's still pretend it is `configure' which instantiates (i.e., don't
24784     # use $as_me), people would be surprised to read:
24785     #    /* config.h.  Generated by config.status.  */
24786     configure_input='Generated from '`
24787           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24788         `' by configure.'
24789     if test x"$ac_file" != x-; then
24790       configure_input="$ac_file.  $configure_input"
24791       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
24792 $as_echo "$as_me: creating $ac_file" >&6;}
24793     fi
24794     # Neutralize special characters interpreted by sed in replacement strings.
24795     case $configure_input in #(
24796     *\&* | *\|* | *\\* )
24797        ac_sed_conf_input=`$as_echo "$configure_input" |
24798        sed 's/[\\\\&|]/\\\\&/g'`;; #(
24799     *) ac_sed_conf_input=$configure_input;;
24800     esac
24801
24802     case $ac_tag in
24803     *:-:* | *:-) cat >"$tmp/stdin" \
24804       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24805 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24806    { (exit 1); exit 1; }; } ;;
24807     esac
24808     ;;
24809   esac
24810
24811   ac_dir=`$as_dirname -- "$ac_file" ||
24812 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24813          X"$ac_file" : 'X\(//\)[^/]' \| \
24814          X"$ac_file" : 'X\(//\)$' \| \
24815          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24816 $as_echo X"$ac_file" |
24817     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24818             s//\1/
24819             q
24820           }
24821           /^X\(\/\/\)[^/].*/{
24822             s//\1/
24823             q
24824           }
24825           /^X\(\/\/\)$/{
24826             s//\1/
24827             q
24828           }
24829           /^X\(\/\).*/{
24830             s//\1/
24831             q
24832           }
24833           s/.*/./; q'`
24834   { as_dir="$ac_dir"
24835   case $as_dir in #(
24836   -*) as_dir=./$as_dir;;
24837   esac
24838   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24839     as_dirs=
24840     while :; do
24841       case $as_dir in #(
24842       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24843       *) as_qdir=$as_dir;;
24844       esac
24845       as_dirs="'$as_qdir' $as_dirs"
24846       as_dir=`$as_dirname -- "$as_dir" ||
24847 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24848          X"$as_dir" : 'X\(//\)[^/]' \| \
24849          X"$as_dir" : 'X\(//\)$' \| \
24850          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24851 $as_echo X"$as_dir" |
24852     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24853             s//\1/
24854             q
24855           }
24856           /^X\(\/\/\)[^/].*/{
24857             s//\1/
24858             q
24859           }
24860           /^X\(\/\/\)$/{
24861             s//\1/
24862             q
24863           }
24864           /^X\(\/\).*/{
24865             s//\1/
24866             q
24867           }
24868           s/.*/./; q'`
24869       test -d "$as_dir" && break
24870     done
24871     test -z "$as_dirs" || eval "mkdir $as_dirs"
24872   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24873 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24874    { (exit 1); exit 1; }; }; }
24875   ac_builddir=.
24876
24877 case "$ac_dir" in
24878 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24879 *)
24880   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24881   # A ".." for each directory in $ac_dir_suffix.
24882   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24883   case $ac_top_builddir_sub in
24884   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24885   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24886   esac ;;
24887 esac
24888 ac_abs_top_builddir=$ac_pwd
24889 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24890 # for backward compatibility:
24891 ac_top_builddir=$ac_top_build_prefix
24892
24893 case $srcdir in
24894   .)  # We are building in place.
24895     ac_srcdir=.
24896     ac_top_srcdir=$ac_top_builddir_sub
24897     ac_abs_top_srcdir=$ac_pwd ;;
24898   [\\/]* | ?:[\\/]* )  # Absolute name.
24899     ac_srcdir=$srcdir$ac_dir_suffix;
24900     ac_top_srcdir=$srcdir
24901     ac_abs_top_srcdir=$srcdir ;;
24902   *) # Relative name.
24903     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24904     ac_top_srcdir=$ac_top_build_prefix$srcdir
24905     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24906 esac
24907 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24908
24909
24910   case $ac_mode in
24911   :F)
24912   #
24913   # CONFIG_FILE
24914   #
24915
24916   case $INSTALL in
24917   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24918   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24919   esac
24920   ac_MKDIR_P=$MKDIR_P
24921   case $MKDIR_P in
24922   [\\/$]* | ?:[\\/]* ) ;;
24923   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24924   esac
24925 _ACEOF
24926
24927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24928 # If the template does not know about datarootdir, expand it.
24929 # FIXME: This hack should be removed a few years after 2.60.
24930 ac_datarootdir_hack=; ac_datarootdir_seen=
24931
24932 ac_sed_dataroot='
24933 /datarootdir/ {
24934   p
24935   q
24936 }
24937 /@datadir@/p
24938 /@docdir@/p
24939 /@infodir@/p
24940 /@localedir@/p
24941 /@mandir@/p
24942 '
24943 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24944 *datarootdir*) ac_datarootdir_seen=yes;;
24945 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24946   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24947 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24948 _ACEOF
24949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24950   ac_datarootdir_hack='
24951   s&@datadir@&$datadir&g
24952   s&@docdir@&$docdir&g
24953   s&@infodir@&$infodir&g
24954   s&@localedir@&$localedir&g
24955   s&@mandir@&$mandir&g
24956     s&\\\${datarootdir}&$datarootdir&g' ;;
24957 esac
24958 _ACEOF
24959
24960 # Neutralize VPATH when `$srcdir' = `.'.
24961 # Shell code in configure.ac might set extrasub.
24962 # FIXME: do we really want to maintain this feature?
24963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24964 ac_sed_extra="$ac_vpsub
24965 $extrasub
24966 _ACEOF
24967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24968 :t
24969 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24970 s|@configure_input@|$ac_sed_conf_input|;t t
24971 s&@top_builddir@&$ac_top_builddir_sub&;t t
24972 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24973 s&@srcdir@&$ac_srcdir&;t t
24974 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24975 s&@top_srcdir@&$ac_top_srcdir&;t t
24976 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24977 s&@builddir@&$ac_builddir&;t t
24978 s&@abs_builddir@&$ac_abs_builddir&;t t
24979 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24980 s&@INSTALL@&$ac_INSTALL&;t t
24981 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24982 $ac_datarootdir_hack
24983 "
24984 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
24985   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24986 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24987    { (exit 1); exit 1; }; }
24988
24989 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24990   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24991   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24992   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24993 which seems to be undefined.  Please make sure it is defined." >&5
24994 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24995 which seems to be undefined.  Please make sure it is defined." >&2;}
24996
24997   rm -f "$tmp/stdin"
24998   case $ac_file in
24999   -) cat "$tmp/out" && rm -f "$tmp/out";;
25000   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25001   esac \
25002   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25003 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25004    { (exit 1); exit 1; }; }
25005  ;;
25006   :H)
25007   #
25008   # CONFIG_HEADER
25009   #
25010   if test x"$ac_file" != x-; then
25011     {
25012       $as_echo "/* $configure_input  */" \
25013       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25014     } >"$tmp/config.h" \
25015       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25016 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25017    { (exit 1); exit 1; }; }
25018     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25019       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25020 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25021     else
25022       rm -f "$ac_file"
25023       mv "$tmp/config.h" "$ac_file" \
25024         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25025 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25026    { (exit 1); exit 1; }; }
25027     fi
25028   else
25029     $as_echo "/* $configure_input  */" \
25030       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25031       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
25032 $as_echo "$as_me: error: could not create -" >&2;}
25033    { (exit 1); exit 1; }; }
25034   fi
25035 # Compute "$ac_file"'s index in $config_headers.
25036 _am_arg="$ac_file"
25037 _am_stamp_count=1
25038 for _am_header in $config_headers :; do
25039   case $_am_header in
25040     $_am_arg | $_am_arg:* )
25041       break ;;
25042     * )
25043       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25044   esac
25045 done
25046 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25047 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25048          X"$_am_arg" : 'X\(//\)[^/]' \| \
25049          X"$_am_arg" : 'X\(//\)$' \| \
25050          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25051 $as_echo X"$_am_arg" |
25052     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25053             s//\1/
25054             q
25055           }
25056           /^X\(\/\/\)[^/].*/{
25057             s//\1/
25058             q
25059           }
25060           /^X\(\/\/\)$/{
25061             s//\1/
25062             q
25063           }
25064           /^X\(\/\).*/{
25065             s//\1/
25066             q
25067           }
25068           s/.*/./; q'`/stamp-h$_am_stamp_count
25069  ;;
25070
25071   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
25072 $as_echo "$as_me: executing $ac_file commands" >&6;}
25073  ;;
25074   esac
25075
25076
25077   case $ac_file$ac_mode in
25078     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25079   # Strip MF so we end up with the name of the file.
25080   mf=`echo "$mf" | sed -e 's/:.*$//'`
25081   # Check whether this is an Automake generated Makefile or not.
25082   # We used to match only the files named `Makefile.in', but
25083   # some people rename them; so instead we look at the file content.
25084   # Grep'ing the first line is not enough: some people post-process
25085   # each Makefile.in and add a new line on top of each file to say so.
25086   # Grep'ing the whole file is not good either: AIX grep has a line
25087   # limit of 2048, but all sed's we know have understand at least 4000.
25088   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25089     dirpart=`$as_dirname -- "$mf" ||
25090 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25091          X"$mf" : 'X\(//\)[^/]' \| \
25092          X"$mf" : 'X\(//\)$' \| \
25093          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25094 $as_echo X"$mf" |
25095     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25096             s//\1/
25097             q
25098           }
25099           /^X\(\/\/\)[^/].*/{
25100             s//\1/
25101             q
25102           }
25103           /^X\(\/\/\)$/{
25104             s//\1/
25105             q
25106           }
25107           /^X\(\/\).*/{
25108             s//\1/
25109             q
25110           }
25111           s/.*/./; q'`
25112   else
25113     continue
25114   fi
25115   # Extract the definition of DEPDIR, am__include, and am__quote
25116   # from the Makefile without running `make'.
25117   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25118   test -z "$DEPDIR" && continue
25119   am__include=`sed -n 's/^am__include = //p' < "$mf"`
25120   test -z "am__include" && continue
25121   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25122   # When using ansi2knr, U may be empty or an underscore; expand it
25123   U=`sed -n 's/^U = //p' < "$mf"`
25124   # Find all dependency output files, they are included files with
25125   # $(DEPDIR) in their names.  We invoke sed twice because it is the
25126   # simplest approach to changing $(DEPDIR) to its actual value in the
25127   # expansion.
25128   for file in `sed -n "
25129     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25130        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25131     # Make sure the directory exists.
25132     test -f "$dirpart/$file" && continue
25133     fdir=`$as_dirname -- "$file" ||
25134 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25135          X"$file" : 'X\(//\)[^/]' \| \
25136          X"$file" : 'X\(//\)$' \| \
25137          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25138 $as_echo X"$file" |
25139     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25140             s//\1/
25141             q
25142           }
25143           /^X\(\/\/\)[^/].*/{
25144             s//\1/
25145             q
25146           }
25147           /^X\(\/\/\)$/{
25148             s//\1/
25149             q
25150           }
25151           /^X\(\/\).*/{
25152             s//\1/
25153             q
25154           }
25155           s/.*/./; q'`
25156     { as_dir=$dirpart/$fdir
25157   case $as_dir in #(
25158   -*) as_dir=./$as_dir;;
25159   esac
25160   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25161     as_dirs=
25162     while :; do
25163       case $as_dir in #(
25164       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25165       *) as_qdir=$as_dir;;
25166       esac
25167       as_dirs="'$as_qdir' $as_dirs"
25168       as_dir=`$as_dirname -- "$as_dir" ||
25169 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25170          X"$as_dir" : 'X\(//\)[^/]' \| \
25171          X"$as_dir" : 'X\(//\)$' \| \
25172          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25173 $as_echo X"$as_dir" |
25174     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25175             s//\1/
25176             q
25177           }
25178           /^X\(\/\/\)[^/].*/{
25179             s//\1/
25180             q
25181           }
25182           /^X\(\/\/\)$/{
25183             s//\1/
25184             q
25185           }
25186           /^X\(\/\).*/{
25187             s//\1/
25188             q
25189           }
25190           s/.*/./; q'`
25191       test -d "$as_dir" && break
25192     done
25193     test -z "$as_dirs" || eval "mkdir $as_dirs"
25194   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25195 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25196    { (exit 1); exit 1; }; }; }
25197     # echo "creating $dirpart/$file"
25198     echo '# dummy' > "$dirpart/$file"
25199   done
25200 done
25201  ;;
25202
25203   esac
25204 done # for ac_tag
25205
25206
25207 { (exit 0); exit 0; }
25208 _ACEOF
25209 chmod +x $CONFIG_STATUS
25210 ac_clean_files=$ac_clean_files_save
25211
25212 test $ac_write_fail = 0 ||
25213   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
25214 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
25215    { (exit 1); exit 1; }; }
25216
25217
25218 # configure is writing to config.log, and then calls config.status.
25219 # config.status does its own redirection, appending to config.log.
25220 # Unfortunately, on DOS this fails, as config.log is still kept open
25221 # by configure, so config.status won't be able to write to it; its
25222 # output is simply discarded.  So we exec the FD to /dev/null,
25223 # effectively closing config.log, so it can be properly (re)opened and
25224 # appended to by config.status.  When coming back to configure, we
25225 # need to make the FD available again.
25226 if test "$no_create" != yes; then
25227   ac_cs_success=:
25228   ac_config_status_args=
25229   test "$silent" = yes &&
25230     ac_config_status_args="$ac_config_status_args --quiet"
25231   exec 5>/dev/null
25232   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25233   exec 5>>config.log
25234   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25235   # would make configure fail if this is the last instruction.
25236   $ac_cs_success || { (exit 1); exit 1; }
25237 fi
25238 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25239   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25240 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25241 fi
25242