Imported Upstream version 3.0.3
[debian/gnuradio] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20   setopt NO_GLOB_SUBST
21 else
22   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23 fi
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38   echo "#! /bin/sh" >conf$$.sh
39   echo  "exit 0"   >>conf$$.sh
40   chmod +x conf$$.sh
41   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42     PATH_SEPARATOR=';'
43   else
44     PATH_SEPARATOR=:
45   fi
46   rm -f conf$$.sh
47 fi
48
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51   as_unset=unset
52 else
53   as_unset=false
54 fi
55
56
57 # IFS
58 # We need space, tab and new line, in precisely that order.  Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
63 '
64 IFS=" ""        $as_nl"
65
66 # Find who we are.  Look in the path if we contain no directory separator.
67 case $0 in
68   *[\\/]* ) as_myself=$0 ;;
69   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
71 do
72   IFS=$as_save_IFS
73   test -z "$as_dir" && as_dir=.
74   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
77
78      ;;
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83   as_myself=$0
84 fi
85 if test ! -f "$as_myself"; then
86   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87   { (exit 1); exit 1; }
88 fi
89
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 for as_var in \
100   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102   LC_TELEPHONE LC_TIME
103 do
104   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105     eval $as_var=C; export $as_var
106   else
107     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108   fi
109 done
110
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113    test "X`expr 00001 : '.*\(...\)'`" = X001; then
114   as_expr=expr
115 else
116   as_expr=false
117 fi
118
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120   as_basename=basename
121 else
122   as_basename=false
123 fi
124
125
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129          X"$0" : 'X\(//\)$' \| \
130          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132     sed '/^.*\/\([^/][^/]*\)\/*$/{
133             s//\1/
134             q
135           }
136           /^X\/\(\/\/\)$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\).*/{
141             s//\1/
142             q
143           }
144           s/.*/./; q'`
145
146 # CDPATH.
147 $as_unset CDPATH
148
149
150 if test "x$CONFIG_SHELL" = x; then
151   if (eval ":") 2>/dev/null; then
152   as_have_required=yes
153 else
154   as_have_required=no
155 fi
156
157   if test $as_have_required = yes &&     (eval ":
158 (as_func_return () {
159   (exit \$1)
160 }
161 as_func_success () {
162   as_func_return 0
163 }
164 as_func_failure () {
165   as_func_return 1
166 }
167 as_func_ret_success () {
168   return 0
169 }
170 as_func_ret_failure () {
171   return 1
172 }
173
174 exitcode=0
175 if as_func_success; then
176   :
177 else
178   exitcode=1
179   echo as_func_success failed.
180 fi
181
182 if as_func_failure; then
183   exitcode=1
184   echo as_func_failure succeeded.
185 fi
186
187 if as_func_ret_success; then
188   :
189 else
190   exitcode=1
191   echo as_func_ret_success failed.
192 fi
193
194 if as_func_ret_failure; then
195   exitcode=1
196   echo as_func_ret_failure succeeded.
197 fi
198
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200   :
201 else
202   exitcode=1
203   echo positional parameters were not saved.
204 fi
205
206 test \$exitcode = 0) || { (exit 1); exit 1; }
207
208 (
209   as_lineno_1=\$LINENO
210   as_lineno_2=\$LINENO
211   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
214   :
215 else
216   as_candidate_shells=
217     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   case $as_dir in
223          /*)
224            for as_base in sh bash ksh sh5; do
225              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226            done;;
227        esac
228 done
229 IFS=$as_save_IFS
230
231
232       for as_shell in $as_candidate_shells $SHELL; do
233          # Try only shells that exist, to save several forks.
234          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235                 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238   emulate sh
239   NULLCMD=:
240   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241   # is contrary to our usage.  Disable this feature.
242   alias -g '${1+"$@"}'='"$@"'
243   setopt NO_GLOB_SUBST
244 else
245   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 _ASEOF
252 }; then
253   CONFIG_SHELL=$as_shell
254                as_have_required=yes
255                if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258   emulate sh
259   NULLCMD=:
260   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261   # is contrary to our usage.  Disable this feature.
262   alias -g '${1+"$@"}'='"$@"'
263   setopt NO_GLOB_SUBST
264 else
265   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266 fi
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
269
270 :
271 (as_func_return () {
272   (exit $1)
273 }
274 as_func_success () {
275   as_func_return 0
276 }
277 as_func_failure () {
278   as_func_return 1
279 }
280 as_func_ret_success () {
281   return 0
282 }
283 as_func_ret_failure () {
284   return 1
285 }
286
287 exitcode=0
288 if as_func_success; then
289   :
290 else
291   exitcode=1
292   echo as_func_success failed.
293 fi
294
295 if as_func_failure; then
296   exitcode=1
297   echo as_func_failure succeeded.
298 fi
299
300 if as_func_ret_success; then
301   :
302 else
303   exitcode=1
304   echo as_func_ret_success failed.
305 fi
306
307 if as_func_ret_failure; then
308   exitcode=1
309   echo as_func_ret_failure succeeded.
310 fi
311
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
313   :
314 else
315   exitcode=1
316   echo positional parameters were not saved.
317 fi
318
319 test $exitcode = 0) || { (exit 1); exit 1; }
320
321 (
322   as_lineno_1=$LINENO
323   as_lineno_2=$LINENO
324   test "x$as_lineno_1" != "x$as_lineno_2" &&
325   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327 _ASEOF
328 }; then
329   break
330 fi
331
332 fi
333
334       done
335
336       if test "x$CONFIG_SHELL" != x; then
337   for as_var in BASH_ENV ENV
338         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339         done
340         export CONFIG_SHELL
341         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342 fi
343
344
345     if test $as_have_required = no; then
346   echo This script requires a shell more modern than all the
347       echo shells that I found on your system.  Please install a
348       echo modern shell, or manually run the script under such a
349       echo shell if you do have one.
350       { (exit 1); exit 1; }
351 fi
352
353
354 fi
355
356 fi
357
358
359
360 (eval "as_func_return () {
361   (exit \$1)
362 }
363 as_func_success () {
364   as_func_return 0
365 }
366 as_func_failure () {
367   as_func_return 1
368 }
369 as_func_ret_success () {
370   return 0
371 }
372 as_func_ret_failure () {
373   return 1
374 }
375
376 exitcode=0
377 if as_func_success; then
378   :
379 else
380   exitcode=1
381   echo as_func_success failed.
382 fi
383
384 if as_func_failure; then
385   exitcode=1
386   echo as_func_failure succeeded.
387 fi
388
389 if as_func_ret_success; then
390   :
391 else
392   exitcode=1
393   echo as_func_ret_success failed.
394 fi
395
396 if as_func_ret_failure; then
397   exitcode=1
398   echo as_func_ret_failure succeeded.
399 fi
400
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402   :
403 else
404   exitcode=1
405   echo positional parameters were not saved.
406 fi
407
408 test \$exitcode = 0") || {
409   echo No shell found that supports shell functions.
410   echo Please tell autoconf@gnu.org about your system,
411   echo including any error possibly output before this
412   echo message
413 }
414
415
416
417   as_lineno_1=$LINENO
418   as_lineno_2=$LINENO
419   test "x$as_lineno_1" != "x$as_lineno_2" &&
420   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423   # uniformly replaced by the line number.  The first 'sed' inserts a
424   # line-number line after each line using $LINENO; the second 'sed'
425   # does the real work.  The second script uses 'N' to pair each
426   # line-number line with the line containing $LINENO, and appends
427   # trailing '-' during substitution so that $LINENO is not a special
428   # case at line end.
429   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430   # scripts with optimization help from Paolo Bonzini.  Blame Lee
431   # E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449    { (exit 1); exit 1; }; }
450
451   # Don't try to exec as it changes $[0], causing all sort of problems
452   # (the dirname of $[0] is not the place where we might find the
453   # original and so on.  Autoconf is especially sensitive to this).
454   . "./$as_me.lineno"
455   # Exit status is that of the last command.
456   exit
457 }
458
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461   as_dirname=dirname
462 else
463   as_dirname=false
464 fi
465
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469   case `echo 'x\c'` in
470   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
471   *)   ECHO_C='\c';;
472   esac;;
473 *)
474   ECHO_N='-n';;
475 esac
476
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478    test "X`expr 00001 : '.*\(...\)'`" = X001; then
479   as_expr=expr
480 else
481   as_expr=false
482 fi
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir
490 fi
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493   as_ln_s='ln -s'
494   # ... but there are two gotchas:
495   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497   # In both cases, we have to default to `cp -p'.
498   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499     as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s=ln
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p=:
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523   as_executable_p="test -x"
524 else
525   as_executable_p=:
526 fi
527 rm -f conf$$.file
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541 case X$ECHO in
542 X*--fallback-echo)
543   # Remove one level of quotation (which was required for Make).
544   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
545   ;;
546 esac
547
548 echo=${ECHO-echo}
549 if test "X$1" = X--no-reexec; then
550   # Discard the --no-reexec flag, and continue.
551   shift
552 elif test "X$1" = X--fallback-echo; then
553   # Avoid inline document here, it may be left over
554   :
555 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556   # Yippee, $echo works!
557   :
558 else
559   # Restart under the correct shell.
560   exec $SHELL "$0" --no-reexec ${1+"$@"}
561 fi
562
563 if test "X$1" = X--fallback-echo; then
564   # used as fallback echo
565   shift
566   cat <<EOF
567 $*
568 EOF
569   exit 0
570 fi
571
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 # if CDPATH is set.
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575
576 if test -z "$ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582        echo_test_string=`eval $cmd` &&
583        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
584     then
585       break
586     fi
587   done
588 fi
589
590 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592    test "X$echo_testing_string" = "X$echo_test_string"; then
593   :
594 else
595   # The Solaris, AIX, and Digital Unix default echo programs unquote
596   # backslashes.  This makes it impossible to quote backslashes using
597   #   echo "$something" | sed 's/\\/\\\\/g'
598   #
599   # So, first we look for a working echo in the user's PATH.
600
601   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602   for dir in $PATH /usr/ucb; do
603     IFS="$lt_save_ifs"
604     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607        test "X$echo_testing_string" = "X$echo_test_string"; then
608       echo="$dir/echo"
609       break
610     fi
611   done
612   IFS="$lt_save_ifs"
613
614   if test "X$echo" = Xecho; then
615     # We didn't find a better echo, so look for alternatives.
616     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618        test "X$echo_testing_string" = "X$echo_test_string"; then
619       # This shell has a builtin print -r that does the trick.
620       echo='print -r'
621     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622          test "X$CONFIG_SHELL" != X/bin/ksh; then
623       # If we have ksh, try running configure again with it.
624       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625       export ORIGINAL_CONFIG_SHELL
626       CONFIG_SHELL=/bin/ksh
627       export CONFIG_SHELL
628       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
629     else
630       # Try using printf.
631       echo='printf %s\n'
632       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634          test "X$echo_testing_string" = "X$echo_test_string"; then
635         # Cool, printf works
636         :
637       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638            test "X$echo_testing_string" = 'X\t' &&
639            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640            test "X$echo_testing_string" = "X$echo_test_string"; then
641         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
642         export CONFIG_SHELL
643         SHELL="$CONFIG_SHELL"
644         export SHELL
645         echo="$CONFIG_SHELL $0 --fallback-echo"
646       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647            test "X$echo_testing_string" = 'X\t' &&
648            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649            test "X$echo_testing_string" = "X$echo_test_string"; then
650         echo="$CONFIG_SHELL $0 --fallback-echo"
651       else
652         # maybe with a smaller string...
653         prev=:
654
655         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
657           then
658             break
659           fi
660           prev="$cmd"
661         done
662
663         if test "$prev" != 'sed 50q "$0"'; then
664           echo_test_string=`eval $prev`
665           export echo_test_string
666           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
667         else
668           # Oops.  We lost completely, so just stick with echo.
669           echo=echo
670         fi
671       fi
672     fi
673   fi
674 fi
675 fi
676
677 # Copy echo and quote the copy suitably for passing to libtool from
678 # the Makefile, instead of quoting the original, which is used later.
679 ECHO=$echo
680 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
682 fi
683
684
685
686
687 tagnames=${tagnames+${tagnames},}CXX
688
689 tagnames=${tagnames+${tagnames},}F77
690
691 exec 7<&0 </dev/null 6>&1
692
693 # Name of the host.
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695 # so uname gets run too.
696 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
697
698 #
699 # Initializations.
700 #
701 ac_default_prefix=/usr/local
702 ac_clean_files=
703 ac_config_libobj_dir=.
704 LIBOBJS=
705 cross_compiling=no
706 subdirs=
707 MFLAGS=
708 MAKEFLAGS=
709 SHELL=${CONFIG_SHELL-/bin/sh}
710
711 # Identity of this package.
712 PACKAGE_NAME=
713 PACKAGE_TARNAME=
714 PACKAGE_VERSION=
715 PACKAGE_STRING=
716 PACKAGE_BUGREPORT=
717
718 ac_unique_file="gnuradio-core/src/lib/runtime/gr_vmcircbuf.cc"
719 # Factoring default headers for most tests.
720 ac_includes_default="\
721 #include <stdio.h>
722 #if HAVE_SYS_TYPES_H
723 # include <sys/types.h>
724 #endif
725 #if HAVE_SYS_STAT_H
726 # include <sys/stat.h>
727 #endif
728 #if STDC_HEADERS
729 # include <stdlib.h>
730 # include <stddef.h>
731 #else
732 # if HAVE_STDLIB_H
733 #  include <stdlib.h>
734 # endif
735 #endif
736 #if HAVE_STRING_H
737 # if !STDC_HEADERS && HAVE_MEMORY_H
738 #  include <memory.h>
739 # endif
740 # include <string.h>
741 #endif
742 #if HAVE_STRINGS_H
743 # include <strings.h>
744 #endif
745 #if HAVE_INTTYPES_H
746 # include <inttypes.h>
747 #endif
748 #if HAVE_STDINT_H
749 # include <stdint.h>
750 #endif
751 #if HAVE_UNISTD_H
752 # include <unistd.h>
753 #endif"
754
755 ac_subst_vars='SHELL
756 PATH_SEPARATOR
757 PACKAGE_NAME
758 PACKAGE_TARNAME
759 PACKAGE_VERSION
760 PACKAGE_STRING
761 PACKAGE_BUGREPORT
762 exec_prefix
763 prefix
764 program_transform_name
765 bindir
766 sbindir
767 libexecdir
768 datarootdir
769 datadir
770 sysconfdir
771 sharedstatedir
772 localstatedir
773 includedir
774 oldincludedir
775 docdir
776 infodir
777 htmldir
778 dvidir
779 pdfdir
780 psdir
781 libdir
782 localedir
783 mandir
784 DEFS
785 ECHO_C
786 ECHO_N
787 ECHO_T
788 LIBS
789 build_alias
790 host_alias
791 target_alias
792 build
793 build_cpu
794 build_vendor
795 build_os
796 host
797 host_cpu
798 host_vendor
799 host_os
800 target
801 target_cpu
802 target_vendor
803 target_os
804 INSTALL_PROGRAM
805 INSTALL_SCRIPT
806 INSTALL_DATA
807 CYGPATH_W
808 PACKAGE
809 VERSION
810 ACLOCAL
811 AUTOCONF
812 AUTOMAKE
813 AUTOHEADER
814 MAKEINFO
815 install_sh
816 STRIP
817 INSTALL_STRIP_PROGRAM
818 mkdir_p
819 AWK
820 SET_MAKE
821 am__leading_dot
822 AMTAR
823 am__tar
824 am__untar
825 CC
826 CFLAGS
827 LDFLAGS
828 CPPFLAGS
829 ac_ct_CC
830 EXEEXT
831 OBJEXT
832 DEPDIR
833 am__include
834 am__quote
835 AMDEP_TRUE
836 AMDEP_FALSE
837 AMDEPBACKSLASH
838 CCDEPMODE
839 am__fastdepCC_TRUE
840 am__fastdepCC_FALSE
841 CPP
842 GREP
843 EGREP
844 CXX
845 CXXFLAGS
846 ac_ct_CXX
847 CXXDEPMODE
848 am__fastdepCXX_TRUE
849 am__fastdepCXX_FALSE
850 CXXCPP
851 CCAS
852 CCASFLAGS
853 LN_S
854 RM_PROG
855 ECHO
856 AR
857 RANLIB
858 DLLTOOL
859 AS
860 OBJDUMP
861 F77
862 FFLAGS
863 ac_ct_F77
864 LIBTOOL
865 ENABLE_FORTRAN_TRUE
866 ENABLE_FORTRAN_FALSE
867 FLIBS
868 NO_UNDEFINED
869 SWIG
870 PYTHON
871 PYTHON_VERSION
872 PYTHON_PREFIX
873 PYTHON_EXEC_PREFIX
874 PYTHON_PLATFORM
875 pythondir
876 pkgpythondir
877 pyexecdir
878 pkgpyexecdir
879 PYTHON_CPPFLAGS
880 PYTHON_LDFLAGS
881 SWIG_PYTHON_LIB
882 SWIG_PYTHON_OPT
883 SWIG_PYTHON_CPPFLAGS
884 XMLTO
885 HAS_XMLTO_TRUE
886 HAS_XMLTO_FALSE
887 PTHREAD_CC
888 PTHREAD_LIBS
889 PTHREAD_CFLAGS
890 OMNITHREAD_POSIX_TRUE
891 OMNITHREAD_POSIX_FALSE
892 OMNITHREAD_NT_TRUE
893 OMNITHREAD_NT_FALSE
894 CXX_FOR_BUILD
895 IPC_LIBS
896 ALLOCA
897 SHM_OPEN_LIBS
898 LIBGNURADIO_CORE_EXTRA_LDFLAGS
899 HAVE_CREATEFILEMAPPING_TRUE
900 HAVE_CREATEFILEMAPPING_FALSE
901 LIBOBJS
902 HAVE_DOT
903 PKG_CONFIG
904 FFTW3F_CFLAGS
905 FFTW3F_LIBS
906 FFTW3F_INCLUDEDIR
907 DOXYGEN
908 DOT
909 DOC_TRUE
910 DOC_FALSE
911 enable_dot
912 enable_html_docs
913 enable_latex_docs
914 generate_docs
915 MD_CPU
916 MD_SUBCPU
917 MD_CPU_x86_TRUE
918 MD_CPU_x86_FALSE
919 MD_SUBCPU_x86_64_TRUE
920 MD_SUBCPU_x86_64_FALSE
921 MD_CPU_generic_TRUE
922 MD_CPU_generic_FALSE
923 CPPUNIT_CONFIG
924 CPPUNIT_CFLAGS
925 CPPUNIT_LIBS
926 CPPUNIT_INCLUDES
927 BOOST_CFLAGS
928 DEFINES
929 USB_LIBS
930 FUSB_TECH
931 FUSB_TECH_darwin_TRUE
932 FUSB_TECH_darwin_FALSE
933 FUSB_TECH_win32_TRUE
934 FUSB_TECH_win32_FALSE
935 FUSB_TECH_generic_TRUE
936 FUSB_TECH_generic_FALSE
937 FUSB_TECH_linux_TRUE
938 FUSB_TECH_linux_FALSE
939 FUSB_TECH_ra_wb_TRUE
940 FUSB_TECH_ra_wb_FALSE
941 XCC
942 XAS
943 ALSA_CFLAGS
944 ALSA_LIBS
945 ALSA_INCLUDEDIR
946 JACK_CFLAGS
947 JACK_LIBS
948 JACK_INCLUDEDIR
949 OSS_LIBS
950 PORTAUDIO_CFLAGS
951 PORTAUDIO_LIBS
952 PORTAUDIO_INCLUDEDIR
953 WINAUDIO_LIBS
954 SDL_CONFIG
955 SDL_CFLAGS
956 SDL_LIBS
957 build_dirs
958 skipped_dirs
959 LTLIBOBJS'
960 ac_subst_files=''
961       ac_precious_vars='build_alias
962 host_alias
963 target_alias
964 CC
965 CFLAGS
966 LDFLAGS
967 CPPFLAGS
968 CPP
969 CXX
970 CXXFLAGS
971 CCC
972 CXXCPP
973 CCAS
974 CCASFLAGS
975 F77
976 FFLAGS'
977
978
979 # Initialize some variables set by options.
980 ac_init_help=
981 ac_init_version=false
982 # The variables have the same names as the options, with
983 # dashes changed to underlines.
984 cache_file=/dev/null
985 exec_prefix=NONE
986 no_create=
987 no_recursion=
988 prefix=NONE
989 program_prefix=NONE
990 program_suffix=NONE
991 program_transform_name=s,x,x,
992 silent=
993 site=
994 srcdir=
995 verbose=
996 x_includes=NONE
997 x_libraries=NONE
998
999 # Installation directory options.
1000 # These are left unexpanded so users can "make install exec_prefix=/foo"
1001 # and all the variables that are supposed to be based on exec_prefix
1002 # by default will actually change.
1003 # Use braces instead of parens because sh, perl, etc. also accept them.
1004 # (The list follows the same order as the GNU Coding Standards.)
1005 bindir='${exec_prefix}/bin'
1006 sbindir='${exec_prefix}/sbin'
1007 libexecdir='${exec_prefix}/libexec'
1008 datarootdir='${prefix}/share'
1009 datadir='${datarootdir}'
1010 sysconfdir='${prefix}/etc'
1011 sharedstatedir='${prefix}/com'
1012 localstatedir='${prefix}/var'
1013 includedir='${prefix}/include'
1014 oldincludedir='/usr/include'
1015 docdir='${datarootdir}/doc/${PACKAGE}'
1016 infodir='${datarootdir}/info'
1017 htmldir='${docdir}'
1018 dvidir='${docdir}'
1019 pdfdir='${docdir}'
1020 psdir='${docdir}'
1021 libdir='${exec_prefix}/lib'
1022 localedir='${datarootdir}/locale'
1023 mandir='${datarootdir}/man'
1024
1025 ac_prev=
1026 ac_dashdash=
1027 for ac_option
1028 do
1029   # If the previous option needs an argument, assign it.
1030   if test -n "$ac_prev"; then
1031     eval $ac_prev=\$ac_option
1032     ac_prev=
1033     continue
1034   fi
1035
1036   case $ac_option in
1037   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038   *)    ac_optarg=yes ;;
1039   esac
1040
1041   # Accept the important Cygnus configure options, so we can diagnose typos.
1042
1043   case $ac_dashdash$ac_option in
1044   --)
1045     ac_dashdash=yes ;;
1046
1047   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1048     ac_prev=bindir ;;
1049   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050     bindir=$ac_optarg ;;
1051
1052   -build | --build | --buil | --bui | --bu)
1053     ac_prev=build_alias ;;
1054   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055     build_alias=$ac_optarg ;;
1056
1057   -cache-file | --cache-file | --cache-fil | --cache-fi \
1058   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059     ac_prev=cache_file ;;
1060   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062     cache_file=$ac_optarg ;;
1063
1064   --config-cache | -C)
1065     cache_file=config.cache ;;
1066
1067   -datadir | --datadir | --datadi | --datad)
1068     ac_prev=datadir ;;
1069   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1070     datadir=$ac_optarg ;;
1071
1072   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073   | --dataroo | --dataro | --datar)
1074     ac_prev=datarootdir ;;
1075   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077     datarootdir=$ac_optarg ;;
1078
1079   -disable-* | --disable-*)
1080     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081     # Reject names that are not valid shell variable names.
1082     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1083       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1084    { (exit 1); exit 1; }; }
1085     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1086     eval enable_$ac_feature=no ;;
1087
1088   -docdir | --docdir | --docdi | --doc | --do)
1089     ac_prev=docdir ;;
1090   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1091     docdir=$ac_optarg ;;
1092
1093   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1094     ac_prev=dvidir ;;
1095   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1096     dvidir=$ac_optarg ;;
1097
1098   -enable-* | --enable-*)
1099     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1100     # Reject names that are not valid shell variable names.
1101     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1102       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1103    { (exit 1); exit 1; }; }
1104     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1105     eval enable_$ac_feature=\$ac_optarg ;;
1106
1107   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109   | --exec | --exe | --ex)
1110     ac_prev=exec_prefix ;;
1111   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113   | --exec=* | --exe=* | --ex=*)
1114     exec_prefix=$ac_optarg ;;
1115
1116   -gas | --gas | --ga | --g)
1117     # Obsolete; use --with-gas.
1118     with_gas=yes ;;
1119
1120   -help | --help | --hel | --he | -h)
1121     ac_init_help=long ;;
1122   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123     ac_init_help=recursive ;;
1124   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125     ac_init_help=short ;;
1126
1127   -host | --host | --hos | --ho)
1128     ac_prev=host_alias ;;
1129   -host=* | --host=* | --hos=* | --ho=*)
1130     host_alias=$ac_optarg ;;
1131
1132   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1133     ac_prev=htmldir ;;
1134   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1135   | --ht=*)
1136     htmldir=$ac_optarg ;;
1137
1138   -includedir | --includedir | --includedi | --included | --include \
1139   | --includ | --inclu | --incl | --inc)
1140     ac_prev=includedir ;;
1141   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142   | --includ=* | --inclu=* | --incl=* | --inc=*)
1143     includedir=$ac_optarg ;;
1144
1145   -infodir | --infodir | --infodi | --infod | --info | --inf)
1146     ac_prev=infodir ;;
1147   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148     infodir=$ac_optarg ;;
1149
1150   -libdir | --libdir | --libdi | --libd)
1151     ac_prev=libdir ;;
1152   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153     libdir=$ac_optarg ;;
1154
1155   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156   | --libexe | --libex | --libe)
1157     ac_prev=libexecdir ;;
1158   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159   | --libexe=* | --libex=* | --libe=*)
1160     libexecdir=$ac_optarg ;;
1161
1162   -localedir | --localedir | --localedi | --localed | --locale)
1163     ac_prev=localedir ;;
1164   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165     localedir=$ac_optarg ;;
1166
1167   -localstatedir | --localstatedir | --localstatedi | --localstated \
1168   | --localstate | --localstat | --localsta | --localst | --locals)
1169     ac_prev=localstatedir ;;
1170   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1171   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1172     localstatedir=$ac_optarg ;;
1173
1174   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1175     ac_prev=mandir ;;
1176   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177     mandir=$ac_optarg ;;
1178
1179   -nfp | --nfp | --nf)
1180     # Obsolete; use --without-fp.
1181     with_fp=no ;;
1182
1183   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184   | --no-cr | --no-c | -n)
1185     no_create=yes ;;
1186
1187   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189     no_recursion=yes ;;
1190
1191   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193   | --oldin | --oldi | --old | --ol | --o)
1194     ac_prev=oldincludedir ;;
1195   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198     oldincludedir=$ac_optarg ;;
1199
1200   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1201     ac_prev=prefix ;;
1202   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203     prefix=$ac_optarg ;;
1204
1205   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206   | --program-pre | --program-pr | --program-p)
1207     ac_prev=program_prefix ;;
1208   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210     program_prefix=$ac_optarg ;;
1211
1212   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213   | --program-suf | --program-su | --program-s)
1214     ac_prev=program_suffix ;;
1215   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217     program_suffix=$ac_optarg ;;
1218
1219   -program-transform-name | --program-transform-name \
1220   | --program-transform-nam | --program-transform-na \
1221   | --program-transform-n | --program-transform- \
1222   | --program-transform | --program-transfor \
1223   | --program-transfo | --program-transf \
1224   | --program-trans | --program-tran \
1225   | --progr-tra | --program-tr | --program-t)
1226     ac_prev=program_transform_name ;;
1227   -program-transform-name=* | --program-transform-name=* \
1228   | --program-transform-nam=* | --program-transform-na=* \
1229   | --program-transform-n=* | --program-transform-=* \
1230   | --program-transform=* | --program-transfor=* \
1231   | --program-transfo=* | --program-transf=* \
1232   | --program-trans=* | --program-tran=* \
1233   | --progr-tra=* | --program-tr=* | --program-t=*)
1234     program_transform_name=$ac_optarg ;;
1235
1236   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1237     ac_prev=pdfdir ;;
1238   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239     pdfdir=$ac_optarg ;;
1240
1241   -psdir | --psdir | --psdi | --psd | --ps)
1242     ac_prev=psdir ;;
1243   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244     psdir=$ac_optarg ;;
1245
1246   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247   | -silent | --silent | --silen | --sile | --sil)
1248     silent=yes ;;
1249
1250   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1251     ac_prev=sbindir ;;
1252   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1253   | --sbi=* | --sb=*)
1254     sbindir=$ac_optarg ;;
1255
1256   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258   | --sharedst | --shareds | --shared | --share | --shar \
1259   | --sha | --sh)
1260     ac_prev=sharedstatedir ;;
1261   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1264   | --sha=* | --sh=*)
1265     sharedstatedir=$ac_optarg ;;
1266
1267   -site | --site | --sit)
1268     ac_prev=site ;;
1269   -site=* | --site=* | --sit=*)
1270     site=$ac_optarg ;;
1271
1272   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1273     ac_prev=srcdir ;;
1274   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275     srcdir=$ac_optarg ;;
1276
1277   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278   | --syscon | --sysco | --sysc | --sys | --sy)
1279     ac_prev=sysconfdir ;;
1280   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282     sysconfdir=$ac_optarg ;;
1283
1284   -target | --target | --targe | --targ | --tar | --ta | --t)
1285     ac_prev=target_alias ;;
1286   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287     target_alias=$ac_optarg ;;
1288
1289   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290     verbose=yes ;;
1291
1292   -version | --version | --versio | --versi | --vers | -V)
1293     ac_init_version=: ;;
1294
1295   -with-* | --with-*)
1296     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297     # Reject names that are not valid shell variable names.
1298     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1299       { echo "$as_me: error: invalid package name: $ac_package" >&2
1300    { (exit 1); exit 1; }; }
1301     ac_package=`echo $ac_package| sed 's/-/_/g'`
1302     eval with_$ac_package=\$ac_optarg ;;
1303
1304   -without-* | --without-*)
1305     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1306     # Reject names that are not valid shell variable names.
1307     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1308       { echo "$as_me: error: invalid package name: $ac_package" >&2
1309    { (exit 1); exit 1; }; }
1310     ac_package=`echo $ac_package | sed 's/-/_/g'`
1311     eval with_$ac_package=no ;;
1312
1313   --x)
1314     # Obsolete; use --with-x.
1315     with_x=yes ;;
1316
1317   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318   | --x-incl | --x-inc | --x-in | --x-i)
1319     ac_prev=x_includes ;;
1320   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322     x_includes=$ac_optarg ;;
1323
1324   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326     ac_prev=x_libraries ;;
1327   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329     x_libraries=$ac_optarg ;;
1330
1331   -*) { echo "$as_me: error: unrecognized option: $ac_option
1332 Try \`$0 --help' for more information." >&2
1333    { (exit 1); exit 1; }; }
1334     ;;
1335
1336   *=*)
1337     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338     # Reject names that are not valid shell variable names.
1339     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1340       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1341    { (exit 1); exit 1; }; }
1342     eval $ac_envvar=\$ac_optarg
1343     export $ac_envvar ;;
1344
1345   *)
1346     # FIXME: should be removed in autoconf 3.0.
1347     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1351     ;;
1352
1353   esac
1354 done
1355
1356 if test -n "$ac_prev"; then
1357   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358   { echo "$as_me: error: missing argument to $ac_option" >&2
1359    { (exit 1); exit 1; }; }
1360 fi
1361
1362 # Be sure to have absolute directory names.
1363 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364                 datadir sysconfdir sharedstatedir localstatedir includedir \
1365                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366                 libdir localedir mandir
1367 do
1368   eval ac_val=\$$ac_var
1369   case $ac_val in
1370     [\\/$]* | ?:[\\/]* )  continue;;
1371     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1372   esac
1373   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1374    { (exit 1); exit 1; }; }
1375 done
1376
1377 # There might be people who depend on the old broken behavior: `$host'
1378 # used to hold the argument of --host etc.
1379 # FIXME: To remove some day.
1380 build=$build_alias
1381 host=$host_alias
1382 target=$target_alias
1383
1384 # FIXME: To remove some day.
1385 if test "x$host_alias" != x; then
1386   if test "x$build_alias" = x; then
1387     cross_compiling=maybe
1388     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1389     If a cross compiler is detected then cross compile mode will be used." >&2
1390   elif test "x$build_alias" != "x$host_alias"; then
1391     cross_compiling=yes
1392   fi
1393 fi
1394
1395 ac_tool_prefix=
1396 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1397
1398 test "$silent" = yes && exec 6>/dev/null
1399
1400
1401 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1402 ac_ls_di=`ls -di .` &&
1403 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1404   { echo "$as_me: error: Working directory cannot be determined" >&2
1405    { (exit 1); exit 1; }; }
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407   { echo "$as_me: error: pwd does not report name of working directory" >&2
1408    { (exit 1); exit 1; }; }
1409
1410
1411 # Find the source files, if location was not specified.
1412 if test -z "$srcdir"; then
1413   ac_srcdir_defaulted=yes
1414   # Try the directory containing this script, then the parent directory.
1415   ac_confdir=`$as_dirname -- "$0" ||
1416 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1417          X"$0" : 'X\(//\)[^/]' \| \
1418          X"$0" : 'X\(//\)$' \| \
1419          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1420 echo X"$0" |
1421     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1422             s//\1/
1423             q
1424           }
1425           /^X\(\/\/\)[^/].*/{
1426             s//\1/
1427             q
1428           }
1429           /^X\(\/\/\)$/{
1430             s//\1/
1431             q
1432           }
1433           /^X\(\/\).*/{
1434             s//\1/
1435             q
1436           }
1437           s/.*/./; q'`
1438   srcdir=$ac_confdir
1439   if test ! -r "$srcdir/$ac_unique_file"; then
1440     srcdir=..
1441   fi
1442 else
1443   ac_srcdir_defaulted=no
1444 fi
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1447   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1448    { (exit 1); exit 1; }; }
1449 fi
1450 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1451 ac_abs_confdir=`(
1452         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1453    { (exit 1); exit 1; }; }
1454         pwd)`
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1457   srcdir=.
1458 fi
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1462 case $srcdir in
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464 esac
1465 for ac_var in $ac_precious_vars; do
1466   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467   eval ac_env_${ac_var}_value=\$${ac_var}
1468   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470 done
1471
1472 #
1473 # Report the --help message.
1474 #
1475 if test "$ac_init_help" = "long"; then
1476   # Omit some internal or obsolete options to make the list less imposing.
1477   # This message is too long to be a string in the A/UX 3.1 sh.
1478   cat <<_ACEOF
1479 \`configure' configures this package to adapt to many kinds of systems.
1480
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1482
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE.  See below for descriptions of some of the useful variables.
1485
1486 Defaults for the options are specified in brackets.
1487
1488 Configuration:
1489   -h, --help              display this help and exit
1490       --help=short        display options specific to this package
1491       --help=recursive    display the short help of all the included packages
1492   -V, --version           display version information and exit
1493   -q, --quiet, --silent   do not print \`checking...' messages
1494       --cache-file=FILE   cache test results in FILE [disabled]
1495   -C, --config-cache      alias for \`--cache-file=config.cache'
1496   -n, --no-create         do not create output files
1497       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1498
1499 Installation directories:
1500   --prefix=PREFIX         install architecture-independent files in PREFIX
1501                           [$ac_default_prefix]
1502   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1503                           [PREFIX]
1504
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1509
1510 For better control, use the options below.
1511
1512 Fine tuning of the installation directories:
1513   --bindir=DIR           user executables [EPREFIX/bin]
1514   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1515   --libexecdir=DIR       program executables [EPREFIX/libexec]
1516   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1517   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1518   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1519   --libdir=DIR           object code libraries [EPREFIX/lib]
1520   --includedir=DIR       C header files [PREFIX/include]
1521   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1522   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1523   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1524   --infodir=DIR          info documentation [DATAROOTDIR/info]
1525   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1526   --mandir=DIR           man documentation [DATAROOTDIR/man]
1527   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1528   --htmldir=DIR          html documentation [DOCDIR]
1529   --dvidir=DIR           dvi documentation [DOCDIR]
1530   --pdfdir=DIR           pdf documentation [DOCDIR]
1531   --psdir=DIR            ps documentation [DOCDIR]
1532 _ACEOF
1533
1534   cat <<\_ACEOF
1535
1536 Program names:
1537   --program-prefix=PREFIX            prepend PREFIX to installed program names
1538   --program-suffix=SUFFIX            append SUFFIX to installed program names
1539   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1540
1541 System types:
1542   --build=BUILD     configure for building on BUILD [guessed]
1543   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1544   --target=TARGET   configure for building compilers for TARGET [HOST]
1545 _ACEOF
1546 fi
1547
1548 if test -n "$ac_init_help"; then
1549
1550   cat <<\_ACEOF
1551
1552 Optional Features:
1553   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1554   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1555   --disable-dependency-tracking  speeds up one-time build
1556   --enable-dependency-tracking   do not reject slow dependency extractors
1557   --disable-assert        don't use cpp.h assert
1558   --enable-shared[=PKGS]  build shared libraries [default=yes]
1559   --enable-static[=PKGS]  build static libraries [default=no]
1560   --enable-fast-install[=PKGS]
1561                           optimize for fast installation [default=yes]
1562   --disable-libtool-lock  avoid locking (might break parallel builds)
1563   --enable-fortran        enable fortran (no)
1564   --enable-doxygen        enable documentation generation with doxygen (no)
1565   --enable-dot            use 'dot' to generate graphs in doxygen (auto)
1566   --enable-html-docs      enable HTML generation with doxygen (yes)
1567   --enable-latex-docs     enable LaTeX doc generation with doxygen (no)
1568   --enable-all-components Build all components or stop on failed dependencies
1569
1570   --enable-gnuradio-core  Fail build if gnuradio-core fails configuration
1571   --enable-gnuradio-examples  Fail build if gnuradio-examples fails configuration
1572   --enable-usrp  Fail build if usrp fails configuration
1573   --enable-gr-usrp  Fail build if gr-usrp fails configuration
1574   --enable-gr-audio-alsa  Fail build if gr-audio-alsa fails configuration
1575   --enable-gr-audio-jack  Fail build if gr-audio-jack fails configuration
1576   --enable-gr-audio-oss  Fail build if gr-audio-oss fails configuration
1577   --enable-gr-audio-osx  Fail build if gr-audio-osx fails configuration
1578   --enable-gr-audio-portaudio  Fail build if gr-audio-portaudio fails configuration
1579   --enable-gr-audio-windows  Fail build if gr-audio-windows fails configuration
1580   --enable-gr-gsm-fr-vocoder  Fail build if gr-gsm-fr-vocoder fails configuration
1581   --enable-gr-radio-astronomy  Fail build if gr-radio-astronomy fails configuration
1582   --enable-gr-trellis  Fail build if gr-trellis fails configuration
1583   --enable-gr-video-sdl  Fail build if gr-video-sdl fails configuration
1584   --disable-sdltest       Do not try to compile and run a test SDL program
1585   --enable-gr-wxgui  Fail build if gr-wxgui fails configuration
1586
1587 Optional Packages:
1588   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1589   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1590   --with-warnings         Turn on warnings
1591   --with-gprof            Turn on gprof profiling
1592   --with-prof             Turn on prof profiling
1593   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1594   --with-pic              try to use only PIC/non-PIC objects [default=use
1595                           both]
1596   --with-tags[=TAGS]      include additional configurations [automatic]
1597   --with-md-cpu=ARCH      set machine dependent speedups (auto)
1598   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1599   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1600   --with-boost-include-dir=<path>
1601                           path to boost c++ include files
1602   --with-fusb-tech=OS     set fast usb technique (auto)
1603   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1604   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1605
1606 Some influential environment variables:
1607   CC          C compiler command
1608   CFLAGS      C compiler flags
1609   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1610               nonstandard directory <lib dir>
1611   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1612               you have headers in a nonstandard directory <include dir>
1613   CPP         C preprocessor
1614   CXX         C++ compiler command
1615   CXXFLAGS    C++ compiler flags
1616   CXXCPP      C++ preprocessor
1617   CCAS        assembler compiler command (defaults to CC)
1618   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1619   F77         Fortran 77 compiler command
1620   FFLAGS      Fortran 77 compiler flags
1621
1622 Use these variables to override the choices made by `configure' or to help
1623 it to find libraries and programs with nonstandard names/locations.
1624
1625 _ACEOF
1626 ac_status=$?
1627 fi
1628
1629 if test "$ac_init_help" = "recursive"; then
1630   # If there are subdirs, report their specific --help.
1631   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1632     test -d "$ac_dir" || continue
1633     ac_builddir=.
1634
1635 case "$ac_dir" in
1636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *)
1638   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1639   # A ".." for each directory in $ac_dir_suffix.
1640   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1641   case $ac_top_builddir_sub in
1642   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1644   esac ;;
1645 esac
1646 ac_abs_top_builddir=$ac_pwd
1647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648 # for backward compatibility:
1649 ac_top_builddir=$ac_top_build_prefix
1650
1651 case $srcdir in
1652   .)  # We are building in place.
1653     ac_srcdir=.
1654     ac_top_srcdir=$ac_top_builddir_sub
1655     ac_abs_top_srcdir=$ac_pwd ;;
1656   [\\/]* | ?:[\\/]* )  # Absolute name.
1657     ac_srcdir=$srcdir$ac_dir_suffix;
1658     ac_top_srcdir=$srcdir
1659     ac_abs_top_srcdir=$srcdir ;;
1660   *) # Relative name.
1661     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662     ac_top_srcdir=$ac_top_build_prefix$srcdir
1663     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1664 esac
1665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1666
1667     cd "$ac_dir" || { ac_status=$?; continue; }
1668     # Check for guested configure.
1669     if test -f "$ac_srcdir/configure.gnu"; then
1670       echo &&
1671       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672     elif test -f "$ac_srcdir/configure"; then
1673       echo &&
1674       $SHELL "$ac_srcdir/configure" --help=recursive
1675     else
1676       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1677     fi || ac_status=$?
1678     cd "$ac_pwd" || { ac_status=$?; break; }
1679   done
1680 fi
1681
1682 test -n "$ac_init_help" && exit $ac_status
1683 if $ac_init_version; then
1684   cat <<\_ACEOF
1685 configure
1686 generated by GNU Autoconf 2.60
1687
1688 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1689 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1690 This configure script is free software; the Free Software Foundation
1691 gives unlimited permission to copy, distribute and modify it.
1692 _ACEOF
1693   exit
1694 fi
1695 cat >config.log <<_ACEOF
1696 This file contains any messages produced by compilers while
1697 running configure, to aid debugging if configure makes a mistake.
1698
1699 It was created by $as_me, which was
1700 generated by GNU Autoconf 2.60.  Invocation command line was
1701
1702   $ $0 $@
1703
1704 _ACEOF
1705 exec 5>>config.log
1706 {
1707 cat <<_ASUNAME
1708 ## --------- ##
1709 ## Platform. ##
1710 ## --------- ##
1711
1712 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1713 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1714 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1715 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1716 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1717
1718 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1719 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1720
1721 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1722 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1723 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1724 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1725 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1726 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1727 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1728
1729 _ASUNAME
1730
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1732 for as_dir in $PATH
1733 do
1734   IFS=$as_save_IFS
1735   test -z "$as_dir" && as_dir=.
1736   echo "PATH: $as_dir"
1737 done
1738 IFS=$as_save_IFS
1739
1740 } >&5
1741
1742 cat >&5 <<_ACEOF
1743
1744
1745 ## ----------- ##
1746 ## Core tests. ##
1747 ## ----------- ##
1748
1749 _ACEOF
1750
1751
1752 # Keep a trace of the command line.
1753 # Strip out --no-create and --no-recursion so they do not pile up.
1754 # Strip out --silent because we don't want to record it for future runs.
1755 # Also quote any args containing shell meta-characters.
1756 # Make two passes to allow for proper duplicate-argument suppression.
1757 ac_configure_args=
1758 ac_configure_args0=
1759 ac_configure_args1=
1760 ac_must_keep_next=false
1761 for ac_pass in 1 2
1762 do
1763   for ac_arg
1764   do
1765     case $ac_arg in
1766     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1767     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1768     | -silent | --silent | --silen | --sile | --sil)
1769       continue ;;
1770     *\'*)
1771       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1772     esac
1773     case $ac_pass in
1774     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1775     2)
1776       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1777       if test $ac_must_keep_next = true; then
1778         ac_must_keep_next=false # Got value, back to normal.
1779       else
1780         case $ac_arg in
1781           *=* | --config-cache | -C | -disable-* | --disable-* \
1782           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1783           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1784           | -with-* | --with-* | -without-* | --without-* | --x)
1785             case "$ac_configure_args0 " in
1786               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1787             esac
1788             ;;
1789           -* ) ac_must_keep_next=true ;;
1790         esac
1791       fi
1792       ac_configure_args="$ac_configure_args '$ac_arg'"
1793       ;;
1794     esac
1795   done
1796 done
1797 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1798 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1799
1800 # When interrupted or exit'd, cleanup temporary files, and complete
1801 # config.log.  We remove comments because anyway the quotes in there
1802 # would cause problems or look ugly.
1803 # WARNING: Use '\'' to represent an apostrophe within the trap.
1804 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1805 trap 'exit_status=$?
1806   # Save into config.log some information that might help in debugging.
1807   {
1808     echo
1809
1810     cat <<\_ASBOX
1811 ## ---------------- ##
1812 ## Cache variables. ##
1813 ## ---------------- ##
1814 _ASBOX
1815     echo
1816     # The following way of writing the cache mishandles newlines in values,
1817 (
1818   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1819     eval ac_val=\$$ac_var
1820     case $ac_val in #(
1821     *${as_nl}*)
1822       case $ac_var in #(
1823       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1824 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1825       esac
1826       case $ac_var in #(
1827       _ | IFS | as_nl) ;; #(
1828       *) $as_unset $ac_var ;;
1829       esac ;;
1830     esac
1831   done
1832   (set) 2>&1 |
1833     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1834     *${as_nl}ac_space=\ *)
1835       sed -n \
1836         "s/'\''/'\''\\\\'\'''\''/g;
1837           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1838       ;; #(
1839     *)
1840       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1841       ;;
1842     esac |
1843     sort
1844 )
1845     echo
1846
1847     cat <<\_ASBOX
1848 ## ----------------- ##
1849 ## Output variables. ##
1850 ## ----------------- ##
1851 _ASBOX
1852     echo
1853     for ac_var in $ac_subst_vars
1854     do
1855       eval ac_val=\$$ac_var
1856       case $ac_val in
1857       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1858       esac
1859       echo "$ac_var='\''$ac_val'\''"
1860     done | sort
1861     echo
1862
1863     if test -n "$ac_subst_files"; then
1864       cat <<\_ASBOX
1865 ## ------------------- ##
1866 ## File substitutions. ##
1867 ## ------------------- ##
1868 _ASBOX
1869       echo
1870       for ac_var in $ac_subst_files
1871       do
1872         eval ac_val=\$$ac_var
1873         case $ac_val in
1874         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1875         esac
1876         echo "$ac_var='\''$ac_val'\''"
1877       done | sort
1878       echo
1879     fi
1880
1881     if test -s confdefs.h; then
1882       cat <<\_ASBOX
1883 ## ----------- ##
1884 ## confdefs.h. ##
1885 ## ----------- ##
1886 _ASBOX
1887       echo
1888       cat confdefs.h
1889       echo
1890     fi
1891     test "$ac_signal" != 0 &&
1892       echo "$as_me: caught signal $ac_signal"
1893     echo "$as_me: exit $exit_status"
1894   } >&5
1895   rm -f core *.core core.conftest.* &&
1896     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1897     exit $exit_status
1898 ' 0
1899 for ac_signal in 1 2 13 15; do
1900   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1901 done
1902 ac_signal=0
1903
1904 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1905 rm -f -r conftest* confdefs.h
1906
1907 # Predefined preprocessor variables.
1908
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_NAME "$PACKAGE_NAME"
1911 _ACEOF
1912
1913
1914 cat >>confdefs.h <<_ACEOF
1915 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1916 _ACEOF
1917
1918
1919 cat >>confdefs.h <<_ACEOF
1920 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1921 _ACEOF
1922
1923
1924 cat >>confdefs.h <<_ACEOF
1925 #define PACKAGE_STRING "$PACKAGE_STRING"
1926 _ACEOF
1927
1928
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1931 _ACEOF
1932
1933
1934 # Let the site file select an alternate cache file if it wants to.
1935 # Prefer explicitly selected file to automatically selected ones.
1936 if test -n "$CONFIG_SITE"; then
1937   set x "$CONFIG_SITE"
1938 elif test "x$prefix" != xNONE; then
1939   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1940 else
1941   set x "$ac_default_prefix/share/config.site" \
1942         "$ac_default_prefix/etc/config.site"
1943 fi
1944 shift
1945 for ac_site_file
1946 do
1947   if test -r "$ac_site_file"; then
1948     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1949 echo "$as_me: loading site script $ac_site_file" >&6;}
1950     sed 's/^/| /' "$ac_site_file" >&5
1951     . "$ac_site_file"
1952   fi
1953 done
1954
1955 if test -r "$cache_file"; then
1956   # Some versions of bash will fail to source /dev/null (special
1957   # files actually), so we avoid doing that.
1958   if test -f "$cache_file"; then
1959     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1960 echo "$as_me: loading cache $cache_file" >&6;}
1961     case $cache_file in
1962       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1963       *)                      . "./$cache_file";;
1964     esac
1965   fi
1966 else
1967   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1968 echo "$as_me: creating cache $cache_file" >&6;}
1969   >$cache_file
1970 fi
1971
1972 # Check that the precious variables saved in the cache have kept the same
1973 # value.
1974 ac_cache_corrupted=false
1975 for ac_var in $ac_precious_vars; do
1976   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1977   eval ac_new_set=\$ac_env_${ac_var}_set
1978   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1979   eval ac_new_val=\$ac_env_${ac_var}_value
1980   case $ac_old_set,$ac_new_set in
1981     set,)
1982       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1983 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1984       ac_cache_corrupted=: ;;
1985     ,set)
1986       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1987 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1988       ac_cache_corrupted=: ;;
1989     ,);;
1990     *)
1991       if test "x$ac_old_val" != "x$ac_new_val"; then
1992         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1993 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1994         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1995 echo "$as_me:   former value:  $ac_old_val" >&2;}
1996         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1997 echo "$as_me:   current value: $ac_new_val" >&2;}
1998         ac_cache_corrupted=:
1999       fi;;
2000   esac
2001   # Pass precious variables to config.status.
2002   if test "$ac_new_set" = set; then
2003     case $ac_new_val in
2004     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2005     *) ac_arg=$ac_var=$ac_new_val ;;
2006     esac
2007     case " $ac_configure_args " in
2008       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2009       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2010     esac
2011   fi
2012 done
2013 if $ac_cache_corrupted; then
2014   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2015 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2016   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2017 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2018    { (exit 1); exit 1; }; }
2019 fi
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037 ac_ext=c
2038 ac_cpp='$CPP $CPPFLAGS'
2039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2042
2043
2044
2045 ac_config_headers="$ac_config_headers config.h"
2046
2047 ac_aux_dir=
2048 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2049   if test -f "$ac_dir/install-sh"; then
2050     ac_aux_dir=$ac_dir
2051     ac_install_sh="$ac_aux_dir/install-sh -c"
2052     break
2053   elif test -f "$ac_dir/install.sh"; then
2054     ac_aux_dir=$ac_dir
2055     ac_install_sh="$ac_aux_dir/install.sh -c"
2056     break
2057   elif test -f "$ac_dir/shtool"; then
2058     ac_aux_dir=$ac_dir
2059     ac_install_sh="$ac_aux_dir/shtool install -c"
2060     break
2061   fi
2062 done
2063 if test -z "$ac_aux_dir"; then
2064   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2065 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2066    { (exit 1); exit 1; }; }
2067 fi
2068
2069 # These three variables are undocumented and unsupported,
2070 # and are intended to be withdrawn in a future Autoconf release.
2071 # They can cause serious problems if a builder's source tree is in a directory
2072 # whose full name contains unusual characters.
2073 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2074 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2075 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2076
2077
2078 # Make sure we can run config.sub.
2079 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2080   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2081 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2082    { (exit 1); exit 1; }; }
2083
2084 { echo "$as_me:$LINENO: checking build system type" >&5
2085 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2086 if test "${ac_cv_build+set}" = set; then
2087   echo $ECHO_N "(cached) $ECHO_C" >&6
2088 else
2089   ac_build_alias=$build_alias
2090 test "x$ac_build_alias" = x &&
2091   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2092 test "x$ac_build_alias" = x &&
2093   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2094 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2095    { (exit 1); exit 1; }; }
2096 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2097   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2098 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2099    { (exit 1); exit 1; }; }
2100
2101 fi
2102 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2103 echo "${ECHO_T}$ac_cv_build" >&6; }
2104 case $ac_cv_build in
2105 *-*-*) ;;
2106 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2107 echo "$as_me: error: invalid value of canonical build" >&2;}
2108    { (exit 1); exit 1; }; };;
2109 esac
2110 build=$ac_cv_build
2111 ac_save_IFS=$IFS; IFS='-'
2112 set x $ac_cv_build
2113 shift
2114 build_cpu=$1
2115 build_vendor=$2
2116 shift; shift
2117 # Remember, the first character of IFS is used to create $*,
2118 # except with old shells:
2119 build_os=$*
2120 IFS=$ac_save_IFS
2121 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2122
2123
2124 { echo "$as_me:$LINENO: checking host system type" >&5
2125 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2126 if test "${ac_cv_host+set}" = set; then
2127   echo $ECHO_N "(cached) $ECHO_C" >&6
2128 else
2129   if test "x$host_alias" = x; then
2130   ac_cv_host=$ac_cv_build
2131 else
2132   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2133     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2134 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2135    { (exit 1); exit 1; }; }
2136 fi
2137
2138 fi
2139 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2140 echo "${ECHO_T}$ac_cv_host" >&6; }
2141 case $ac_cv_host in
2142 *-*-*) ;;
2143 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2144 echo "$as_me: error: invalid value of canonical host" >&2;}
2145    { (exit 1); exit 1; }; };;
2146 esac
2147 host=$ac_cv_host
2148 ac_save_IFS=$IFS; IFS='-'
2149 set x $ac_cv_host
2150 shift
2151 host_cpu=$1
2152 host_vendor=$2
2153 shift; shift
2154 # Remember, the first character of IFS is used to create $*,
2155 # except with old shells:
2156 host_os=$*
2157 IFS=$ac_save_IFS
2158 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2159
2160
2161 { echo "$as_me:$LINENO: checking target system type" >&5
2162 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2163 if test "${ac_cv_target+set}" = set; then
2164   echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166   if test "x$target_alias" = x; then
2167   ac_cv_target=$ac_cv_host
2168 else
2169   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2170     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2171 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2172    { (exit 1); exit 1; }; }
2173 fi
2174
2175 fi
2176 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2177 echo "${ECHO_T}$ac_cv_target" >&6; }
2178 case $ac_cv_target in
2179 *-*-*) ;;
2180 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2181 echo "$as_me: error: invalid value of canonical target" >&2;}
2182    { (exit 1); exit 1; }; };;
2183 esac
2184 target=$ac_cv_target
2185 ac_save_IFS=$IFS; IFS='-'
2186 set x $ac_cv_target
2187 shift
2188 target_cpu=$1
2189 target_vendor=$2
2190 shift; shift
2191 # Remember, the first character of IFS is used to create $*,
2192 # except with old shells:
2193 target_os=$*
2194 IFS=$ac_save_IFS
2195 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2196
2197
2198 # The aliases save the names the user supplied, while $host etc.
2199 # will get canonicalized.
2200 test -n "$target_alias" &&
2201   test "$program_prefix$program_suffix$program_transform_name" = \
2202     NONENONEs,x,x, &&
2203   program_prefix=${target_alias}-
2204 am__api_version="1.9"
2205 # Find a good install program.  We prefer a C program (faster),
2206 # so one script is as good as another.  But avoid the broken or
2207 # incompatible versions:
2208 # SysV /etc/install, /usr/sbin/install
2209 # SunOS /usr/etc/install
2210 # IRIX /sbin/install
2211 # AIX /bin/install
2212 # AmigaOS /C/install, which installs bootblocks on floppy discs
2213 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2214 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2215 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2216 # OS/2's system install, which has a completely different semantic
2217 # ./install, which can be erroneously created by make from ./install.sh.
2218 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2219 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2220 if test -z "$INSTALL"; then
2221 if test "${ac_cv_path_install+set}" = set; then
2222   echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2226 do
2227   IFS=$as_save_IFS
2228   test -z "$as_dir" && as_dir=.
2229   # Account for people who put trailing slashes in PATH elements.
2230 case $as_dir/ in
2231   ./ | .// | /cC/* | \
2232   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2233   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2234   /usr/ucb/* ) ;;
2235   *)
2236     # OSF1 and SCO ODT 3.0 have their own names for install.
2237     # Don't use installbsd from OSF since it installs stuff as root
2238     # by default.
2239     for ac_prog in ginstall scoinst install; do
2240       for ac_exec_ext in '' $ac_executable_extensions; do
2241         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2242           if test $ac_prog = install &&
2243             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2244             # AIX install.  It has an incompatible calling convention.
2245             :
2246           elif test $ac_prog = install &&
2247             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2248             # program-specific install script used by HP pwplus--don't use.
2249             :
2250           else
2251             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2252             break 3
2253           fi
2254         fi
2255       done
2256     done
2257     ;;
2258 esac
2259 done
2260 IFS=$as_save_IFS
2261
2262
2263 fi
2264   if test "${ac_cv_path_install+set}" = set; then
2265     INSTALL=$ac_cv_path_install
2266   else
2267     # As a last resort, use the slow shell script.  Don't cache a
2268     # value for INSTALL within a source directory, because that will
2269     # break other packages using the cache if that directory is
2270     # removed, or if the value is a relative name.
2271     INSTALL=$ac_install_sh
2272   fi
2273 fi
2274 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2275 echo "${ECHO_T}$INSTALL" >&6; }
2276
2277 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2278 # It thinks the first close brace ends the variable substitution.
2279 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2280
2281 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2282
2283 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2284
2285 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2286 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2287 # Just in case
2288 sleep 1
2289 echo timestamp > conftest.file
2290 # Do `set' in a subshell so we don't clobber the current shell's
2291 # arguments.  Must try -L first in case configure is actually a
2292 # symlink; some systems play weird games with the mod time of symlinks
2293 # (eg FreeBSD returns the mod time of the symlink's containing
2294 # directory).
2295 if (
2296    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2297    if test "$*" = "X"; then
2298       # -L didn't work.
2299       set X `ls -t $srcdir/configure conftest.file`
2300    fi
2301    rm -f conftest.file
2302    if test "$*" != "X $srcdir/configure conftest.file" \
2303       && test "$*" != "X conftest.file $srcdir/configure"; then
2304
2305       # If neither matched, then we have a broken ls.  This can happen
2306       # if, for instance, CONFIG_SHELL is bash and it inherits a
2307       # broken ls alias from the environment.  This has actually
2308       # happened.  Such a system could not be considered "sane".
2309       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2310 alias in your environment" >&5
2311 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2312 alias in your environment" >&2;}
2313    { (exit 1); exit 1; }; }
2314    fi
2315
2316    test "$2" = conftest.file
2317    )
2318 then
2319    # Ok.
2320    :
2321 else
2322    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2323 Check your system clock" >&5
2324 echo "$as_me: error: newly created file is older than distributed files!
2325 Check your system clock" >&2;}
2326    { (exit 1); exit 1; }; }
2327 fi
2328 { echo "$as_me:$LINENO: result: yes" >&5
2329 echo "${ECHO_T}yes" >&6; }
2330 test "$program_prefix" != NONE &&
2331   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2332 # Use a double $ so make ignores it.
2333 test "$program_suffix" != NONE &&
2334   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2335 # Double any \ or $.  echo might interpret backslashes.
2336 # By default was `s,x,x', remove it if useless.
2337 cat <<\_ACEOF >conftest.sed
2338 s/[\\$]/&&/g;s/;s,x,x,$//
2339 _ACEOF
2340 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2341 rm -f conftest.sed
2342
2343 # expand $ac_aux_dir to an absolute path
2344 am_aux_dir=`cd $ac_aux_dir && pwd`
2345
2346 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2347 # Use eval to expand $SHELL
2348 if eval "$MISSING --run true"; then
2349   am_missing_run="$MISSING --run "
2350 else
2351   am_missing_run=
2352   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2353 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2354 fi
2355
2356 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2357   # We used to keeping the `.' as first argument, in order to
2358   # allow $(mkdir_p) to be used without argument.  As in
2359   #   $(mkdir_p) $(somedir)
2360   # where $(somedir) is conditionally defined.  However this is wrong
2361   # for two reasons:
2362   #  1. if the package is installed by a user who cannot write `.'
2363   #     make install will fail,
2364   #  2. the above comment should most certainly read
2365   #     $(mkdir_p) $(DESTDIR)$(somedir)
2366   #     so it does not work when $(somedir) is undefined and
2367   #     $(DESTDIR) is not.
2368   #  To support the latter case, we have to write
2369   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2370   #  so the `.' trick is pointless.
2371   mkdir_p='mkdir -p --'
2372 else
2373   # On NextStep and OpenStep, the `mkdir' command does not
2374   # recognize any option.  It will interpret all options as
2375   # directories to create, and then abort because `.' already
2376   # exists.
2377   for d in ./-p ./--version;
2378   do
2379     test -d $d && rmdir $d
2380   done
2381   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2382   if test -f "$ac_aux_dir/mkinstalldirs"; then
2383     mkdir_p='$(mkinstalldirs)'
2384   else
2385     mkdir_p='$(install_sh) -d'
2386   fi
2387 fi
2388
2389 for ac_prog in gawk mawk nawk awk
2390 do
2391   # Extract the first word of "$ac_prog", so it can be a program name with args.
2392 set dummy $ac_prog; ac_word=$2
2393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2395 if test "${ac_cv_prog_AWK+set}" = set; then
2396   echo $ECHO_N "(cached) $ECHO_C" >&6
2397 else
2398   if test -n "$AWK"; then
2399   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2400 else
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 for as_dir in $PATH
2403 do
2404   IFS=$as_save_IFS
2405   test -z "$as_dir" && as_dir=.
2406   for ac_exec_ext in '' $ac_executable_extensions; do
2407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2408     ac_cv_prog_AWK="$ac_prog"
2409     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2410     break 2
2411   fi
2412 done
2413 done
2414 IFS=$as_save_IFS
2415
2416 fi
2417 fi
2418 AWK=$ac_cv_prog_AWK
2419 if test -n "$AWK"; then
2420   { echo "$as_me:$LINENO: result: $AWK" >&5
2421 echo "${ECHO_T}$AWK" >&6; }
2422 else
2423   { echo "$as_me:$LINENO: result: no" >&5
2424 echo "${ECHO_T}no" >&6; }
2425 fi
2426
2427
2428   test -n "$AWK" && break
2429 done
2430
2431 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2432 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2433 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2434 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2435   echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437   cat >conftest.make <<\_ACEOF
2438 SHELL = /bin/sh
2439 all:
2440         @echo '@@@%%%=$(MAKE)=@@@%%%'
2441 _ACEOF
2442 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2443 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2444   *@@@%%%=?*=@@@%%%*)
2445     eval ac_cv_prog_make_${ac_make}_set=yes;;
2446   *)
2447     eval ac_cv_prog_make_${ac_make}_set=no;;
2448 esac
2449 rm -f conftest.make
2450 fi
2451 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2452   { echo "$as_me:$LINENO: result: yes" >&5
2453 echo "${ECHO_T}yes" >&6; }
2454   SET_MAKE=
2455 else
2456   { echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6; }
2458   SET_MAKE="MAKE=${MAKE-make}"
2459 fi
2460
2461 rm -rf .tst 2>/dev/null
2462 mkdir .tst 2>/dev/null
2463 if test -d .tst; then
2464   am__leading_dot=.
2465 else
2466   am__leading_dot=_
2467 fi
2468 rmdir .tst 2>/dev/null
2469
2470 # test to see if srcdir already configured
2471 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2472    test -f $srcdir/config.status; then
2473   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2474 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2475    { (exit 1); exit 1; }; }
2476 fi
2477
2478 # test whether we have cygpath
2479 if test -z "$CYGPATH_W"; then
2480   if (cygpath --version) >/dev/null 2>/dev/null; then
2481     CYGPATH_W='cygpath -w'
2482   else
2483     CYGPATH_W=echo
2484   fi
2485 fi
2486
2487
2488 # Define the identity of the package.
2489  PACKAGE=gnuradio
2490  VERSION=3.0.3
2491
2492
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE "$PACKAGE"
2495 _ACEOF
2496
2497
2498 cat >>confdefs.h <<_ACEOF
2499 #define VERSION "$VERSION"
2500 _ACEOF
2501
2502 # Some tools Automake needs.
2503
2504 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2505
2506
2507 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2508
2509
2510 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2511
2512
2513 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2514
2515
2516 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2517
2518 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2519
2520 # Installed binaries are usually stripped using `strip' when the user
2521 # run `make install-strip'.  However `strip' might not be the right
2522 # tool to use in cross-compilation environments, therefore Automake
2523 # will honor the `STRIP' environment variable to overrule this program.
2524 if test "$cross_compiling" != no; then
2525   if test -n "$ac_tool_prefix"; then
2526   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2527 set dummy ${ac_tool_prefix}strip; ac_word=$2
2528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530 if test "${ac_cv_prog_STRIP+set}" = set; then
2531   echo $ECHO_N "(cached) $ECHO_C" >&6
2532 else
2533   if test -n "$STRIP"; then
2534   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539   IFS=$as_save_IFS
2540   test -z "$as_dir" && as_dir=.
2541   for ac_exec_ext in '' $ac_executable_extensions; do
2542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2543     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545     break 2
2546   fi
2547 done
2548 done
2549 IFS=$as_save_IFS
2550
2551 fi
2552 fi
2553 STRIP=$ac_cv_prog_STRIP
2554 if test -n "$STRIP"; then
2555   { echo "$as_me:$LINENO: result: $STRIP" >&5
2556 echo "${ECHO_T}$STRIP" >&6; }
2557 else
2558   { echo "$as_me:$LINENO: result: no" >&5
2559 echo "${ECHO_T}no" >&6; }
2560 fi
2561
2562
2563 fi
2564 if test -z "$ac_cv_prog_STRIP"; then
2565   ac_ct_STRIP=$STRIP
2566   # Extract the first word of "strip", so it can be a program name with args.
2567 set dummy strip; ac_word=$2
2568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2570 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2571   echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573   if test -n "$ac_ct_STRIP"; then
2574   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2575 else
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2578 do
2579   IFS=$as_save_IFS
2580   test -z "$as_dir" && as_dir=.
2581   for ac_exec_ext in '' $ac_executable_extensions; do
2582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2583     ac_cv_prog_ac_ct_STRIP="strip"
2584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2585     break 2
2586   fi
2587 done
2588 done
2589 IFS=$as_save_IFS
2590
2591 fi
2592 fi
2593 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2594 if test -n "$ac_ct_STRIP"; then
2595   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2596 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2597 else
2598   { echo "$as_me:$LINENO: result: no" >&5
2599 echo "${ECHO_T}no" >&6; }
2600 fi
2601
2602   if test "x$ac_ct_STRIP" = x; then
2603     STRIP=":"
2604   else
2605     case $cross_compiling:$ac_tool_warned in
2606 yes:)
2607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2608 whose name does not start with the host triplet.  If you think this
2609 configuration is useful to you, please write to autoconf@gnu.org." >&5
2610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2611 whose name does not start with the host triplet.  If you think this
2612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2613 ac_tool_warned=yes ;;
2614 esac
2615     STRIP=$ac_ct_STRIP
2616   fi
2617 else
2618   STRIP="$ac_cv_prog_STRIP"
2619 fi
2620
2621 fi
2622 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2623
2624 # We need awk for the "check" target.  The system "awk" is bad on
2625 # some platforms.
2626 # Always define AMTAR for backward compatibility.
2627
2628 AMTAR=${AMTAR-"${am_missing_run}tar"}
2629
2630 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640   if test "$host_cpu" = "x86_64"; then
2641     { echo "$as_me:$LINENO: checking libdir for lib64 suffix" >&5
2642 echo $ECHO_N "checking libdir for lib64 suffix... $ECHO_C" >&6; }
2643     t=${libdir##*/lib}
2644     if test "$t" != 64 && test -d /lib64 && ! test -L /lib64; then
2645       libdir=${libdir}64
2646       { echo "$as_me:$LINENO: result: no. Setting libdir to $libdir" >&5
2647 echo "${ECHO_T}no. Setting libdir to $libdir" >&6; }
2648     else
2649       { echo "$as_me:$LINENO: result: yes" >&5
2650 echo "${ECHO_T}yes" >&6; }
2651     fi
2652   fi
2653                 DEPDIR="${am__leading_dot}deps"
2654
2655 ac_config_commands="$ac_config_commands depfiles"
2656
2657
2658 am_make=${MAKE-make}
2659 cat > confinc << 'END'
2660 am__doit:
2661         @echo done
2662 .PHONY: am__doit
2663 END
2664 # If we don't find an include directive, just comment out the code.
2665 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2666 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2667 am__include="#"
2668 am__quote=
2669 _am_result=none
2670 # First try GNU make style include.
2671 echo "include confinc" > confmf
2672 # We grep out `Entering directory' and `Leaving directory'
2673 # messages which can occur if `w' ends up in MAKEFLAGS.
2674 # In particular we don't look at `^make:' because GNU make might
2675 # be invoked under some other name (usually "gmake"), in which
2676 # case it prints its new name instead of `make'.
2677 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2678    am__include=include
2679    am__quote=
2680    _am_result=GNU
2681 fi
2682 # Now try BSD make style include.
2683 if test "$am__include" = "#"; then
2684    echo '.include "confinc"' > confmf
2685    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2686       am__include=.include
2687       am__quote="\""
2688       _am_result=BSD
2689    fi
2690 fi
2691
2692
2693 { echo "$as_me:$LINENO: result: $_am_result" >&5
2694 echo "${ECHO_T}$_am_result" >&6; }
2695 rm -f confinc confmf
2696
2697 # Check whether --enable-dependency-tracking was given.
2698 if test "${enable_dependency_tracking+set}" = set; then
2699   enableval=$enable_dependency_tracking;
2700 fi
2701
2702 if test "x$enable_dependency_tracking" != xno; then
2703   am_depcomp="$ac_aux_dir/depcomp"
2704   AMDEPBACKSLASH='\'
2705 fi
2706
2707
2708 if test "x$enable_dependency_tracking" != xno; then
2709   AMDEP_TRUE=
2710   AMDEP_FALSE='#'
2711 else
2712   AMDEP_TRUE='#'
2713   AMDEP_FALSE=
2714 fi
2715
2716
2717
2718 ac_ext=c
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723 if test -n "$ac_tool_prefix"; then
2724   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2725 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2728 if test "${ac_cv_prog_CC+set}" = set; then
2729   echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731   if test -n "$CC"; then
2732   ac_cv_prog_CC="$CC" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2736 do
2737   IFS=$as_save_IFS
2738   test -z "$as_dir" && as_dir=.
2739   for ac_exec_ext in '' $ac_executable_extensions; do
2740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2741     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2743     break 2
2744   fi
2745 done
2746 done
2747 IFS=$as_save_IFS
2748
2749 fi
2750 fi
2751 CC=$ac_cv_prog_CC
2752 if test -n "$CC"; then
2753   { echo "$as_me:$LINENO: result: $CC" >&5
2754 echo "${ECHO_T}$CC" >&6; }
2755 else
2756   { echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6; }
2758 fi
2759
2760
2761 fi
2762 if test -z "$ac_cv_prog_CC"; then
2763   ac_ct_CC=$CC
2764   # Extract the first word of "gcc", so it can be a program name with args.
2765 set dummy gcc; ac_word=$2
2766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2768 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2769   echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771   if test -n "$ac_ct_CC"; then
2772   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777   IFS=$as_save_IFS
2778   test -z "$as_dir" && as_dir=.
2779   for ac_exec_ext in '' $ac_executable_extensions; do
2780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2781     ac_cv_prog_ac_ct_CC="gcc"
2782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2783     break 2
2784   fi
2785 done
2786 done
2787 IFS=$as_save_IFS
2788
2789 fi
2790 fi
2791 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2792 if test -n "$ac_ct_CC"; then
2793   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2794 echo "${ECHO_T}$ac_ct_CC" >&6; }
2795 else
2796   { echo "$as_me:$LINENO: result: no" >&5
2797 echo "${ECHO_T}no" >&6; }
2798 fi
2799
2800   if test "x$ac_ct_CC" = x; then
2801     CC=""
2802   else
2803     case $cross_compiling:$ac_tool_warned in
2804 yes:)
2805 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2806 whose name does not start with the host triplet.  If you think this
2807 configuration is useful to you, please write to autoconf@gnu.org." >&5
2808 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2809 whose name does not start with the host triplet.  If you think this
2810 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2811 ac_tool_warned=yes ;;
2812 esac
2813     CC=$ac_ct_CC
2814   fi
2815 else
2816   CC="$ac_cv_prog_CC"
2817 fi
2818
2819 if test -z "$CC"; then
2820           if test -n "$ac_tool_prefix"; then
2821     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2822 set dummy ${ac_tool_prefix}cc; ac_word=$2
2823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2825 if test "${ac_cv_prog_CC+set}" = set; then
2826   echo $ECHO_N "(cached) $ECHO_C" >&6
2827 else
2828   if test -n "$CC"; then
2829   ac_cv_prog_CC="$CC" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834   IFS=$as_save_IFS
2835   test -z "$as_dir" && as_dir=.
2836   for ac_exec_ext in '' $ac_executable_extensions; do
2837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2838     ac_cv_prog_CC="${ac_tool_prefix}cc"
2839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840     break 2
2841   fi
2842 done
2843 done
2844 IFS=$as_save_IFS
2845
2846 fi
2847 fi
2848 CC=$ac_cv_prog_CC
2849 if test -n "$CC"; then
2850   { echo "$as_me:$LINENO: result: $CC" >&5
2851 echo "${ECHO_T}$CC" >&6; }
2852 else
2853   { echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6; }
2855 fi
2856
2857
2858   fi
2859 fi
2860 if test -z "$CC"; then
2861   # Extract the first word of "cc", so it can be a program name with args.
2862 set dummy cc; ac_word=$2
2863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2865 if test "${ac_cv_prog_CC+set}" = set; then
2866   echo $ECHO_N "(cached) $ECHO_C" >&6
2867 else
2868   if test -n "$CC"; then
2869   ac_cv_prog_CC="$CC" # Let the user override the test.
2870 else
2871   ac_prog_rejected=no
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875   IFS=$as_save_IFS
2876   test -z "$as_dir" && as_dir=.
2877   for ac_exec_ext in '' $ac_executable_extensions; do
2878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2879     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2880        ac_prog_rejected=yes
2881        continue
2882      fi
2883     ac_cv_prog_CC="cc"
2884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885     break 2
2886   fi
2887 done
2888 done
2889 IFS=$as_save_IFS
2890
2891 if test $ac_prog_rejected = yes; then
2892   # We found a bogon in the path, so make sure we never use it.
2893   set dummy $ac_cv_prog_CC
2894   shift
2895   if test $# != 0; then
2896     # We chose a different compiler from the bogus one.
2897     # However, it has the same basename, so the bogon will be chosen
2898     # first if we set CC to just the basename; use the full file name.
2899     shift
2900     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2901   fi
2902 fi
2903 fi
2904 fi
2905 CC=$ac_cv_prog_CC
2906 if test -n "$CC"; then
2907   { echo "$as_me:$LINENO: result: $CC" >&5
2908 echo "${ECHO_T}$CC" >&6; }
2909 else
2910   { echo "$as_me:$LINENO: result: no" >&5
2911 echo "${ECHO_T}no" >&6; }
2912 fi
2913
2914
2915 fi
2916 if test -z "$CC"; then
2917   if test -n "$ac_tool_prefix"; then
2918   for ac_prog in cl.exe
2919   do
2920     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2921 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2924 if test "${ac_cv_prog_CC+set}" = set; then
2925   echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927   if test -n "$CC"; then
2928   ac_cv_prog_CC="$CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933   IFS=$as_save_IFS
2934   test -z "$as_dir" && as_dir=.
2935   for ac_exec_ext in '' $ac_executable_extensions; do
2936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2937     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2939     break 2
2940   fi
2941 done
2942 done
2943 IFS=$as_save_IFS
2944
2945 fi
2946 fi
2947 CC=$ac_cv_prog_CC
2948 if test -n "$CC"; then
2949   { echo "$as_me:$LINENO: result: $CC" >&5
2950 echo "${ECHO_T}$CC" >&6; }
2951 else
2952   { echo "$as_me:$LINENO: result: no" >&5
2953 echo "${ECHO_T}no" >&6; }
2954 fi
2955
2956
2957     test -n "$CC" && break
2958   done
2959 fi
2960 if test -z "$CC"; then
2961   ac_ct_CC=$CC
2962   for ac_prog in cl.exe
2963 do
2964   # Extract the first word of "$ac_prog", so it can be a program name with args.
2965 set dummy $ac_prog; ac_word=$2
2966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2968 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2969   echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971   if test -n "$ac_ct_CC"; then
2972   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977   IFS=$as_save_IFS
2978   test -z "$as_dir" && as_dir=.
2979   for ac_exec_ext in '' $ac_executable_extensions; do
2980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2981     ac_cv_prog_ac_ct_CC="$ac_prog"
2982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2983     break 2
2984   fi
2985 done
2986 done
2987 IFS=$as_save_IFS
2988
2989 fi
2990 fi
2991 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2992 if test -n "$ac_ct_CC"; then
2993   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2994 echo "${ECHO_T}$ac_ct_CC" >&6; }
2995 else
2996   { echo "$as_me:$LINENO: result: no" >&5
2997 echo "${ECHO_T}no" >&6; }
2998 fi
2999
3000
3001   test -n "$ac_ct_CC" && break
3002 done
3003
3004   if test "x$ac_ct_CC" = x; then
3005     CC=""
3006   else
3007     case $cross_compiling:$ac_tool_warned in
3008 yes:)
3009 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3010 whose name does not start with the host triplet.  If you think this
3011 configuration is useful to you, please write to autoconf@gnu.org." >&5
3012 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3013 whose name does not start with the host triplet.  If you think this
3014 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3015 ac_tool_warned=yes ;;
3016 esac
3017     CC=$ac_ct_CC
3018   fi
3019 fi
3020
3021 fi
3022
3023
3024 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3025 See \`config.log' for more details." >&5
3026 echo "$as_me: error: no acceptable C compiler found in \$PATH
3027 See \`config.log' for more details." >&2;}
3028    { (exit 1); exit 1; }; }
3029
3030 # Provide some information about the compiler.
3031 echo "$as_me:$LINENO: checking for C compiler version" >&5
3032 ac_compiler=`set X $ac_compile; echo $2`
3033 { (ac_try="$ac_compiler --version >&5"
3034 case "(($ac_try" in
3035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036   *) ac_try_echo=$ac_try;;
3037 esac
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039   (eval "$ac_compiler --version >&5") 2>&5
3040   ac_status=$?
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); }
3043 { (ac_try="$ac_compiler -v >&5"
3044 case "(($ac_try" in
3045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046   *) ac_try_echo=$ac_try;;
3047 esac
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049   (eval "$ac_compiler -v >&5") 2>&5
3050   ac_status=$?
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); }
3053 { (ac_try="$ac_compiler -V >&5"
3054 case "(($ac_try" in
3055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056   *) ac_try_echo=$ac_try;;
3057 esac
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059   (eval "$ac_compiler -V >&5") 2>&5
3060   ac_status=$?
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); }
3063
3064 cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h.  */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h.  */
3070
3071 int
3072 main ()
3073 {
3074
3075   ;
3076   return 0;
3077 }
3078 _ACEOF
3079 ac_clean_files_save=$ac_clean_files
3080 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3081 # Try to create an executable without -o first, disregard a.out.
3082 # It will help us diagnose broken compilers, and finding out an intuition
3083 # of exeext.
3084 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3085 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3086 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3087 #
3088 # List of possible output files, starting from the most likely.
3089 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3090 # only as a last resort.  b.out is created by i960 compilers.
3091 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3092 #
3093 # The IRIX 6 linker writes into existing files which may not be
3094 # executable, retaining their permissions.  Remove them first so a
3095 # subsequent execution test works.
3096 ac_rmfiles=
3097 for ac_file in $ac_files
3098 do
3099   case $ac_file in
3100     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3101     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3102   esac
3103 done
3104 rm -f $ac_rmfiles
3105
3106 if { (ac_try="$ac_link_default"
3107 case "(($ac_try" in
3108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109   *) ac_try_echo=$ac_try;;
3110 esac
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112   (eval "$ac_link_default") 2>&5
3113   ac_status=$?
3114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115   (exit $ac_status); }; then
3116   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3117 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3118 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3119 # so that the user can short-circuit this test for compilers unknown to
3120 # Autoconf.
3121 for ac_file in $ac_files
3122 do
3123   test -f "$ac_file" || continue
3124   case $ac_file in
3125     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3126         ;;
3127     [ab].out )
3128         # We found the default executable, but exeext='' is most
3129         # certainly right.
3130         break;;
3131     *.* )
3132         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3133         then :; else
3134            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3135         fi
3136         # We set ac_cv_exeext here because the later test for it is not
3137         # safe: cross compilers may not add the suffix if given an `-o'
3138         # argument, so we may need to know it at that point already.
3139         # Even if this section looks crufty: it has the advantage of
3140         # actually working.
3141         break;;
3142     * )
3143         break;;
3144   esac
3145 done
3146 test "$ac_cv_exeext" = no && ac_cv_exeext=
3147
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3153 See \`config.log' for more details." >&5
3154 echo "$as_me: error: C compiler cannot create executables
3155 See \`config.log' for more details." >&2;}
3156    { (exit 77); exit 77; }; }
3157 fi
3158
3159 ac_exeext=$ac_cv_exeext
3160 { echo "$as_me:$LINENO: result: $ac_file" >&5
3161 echo "${ECHO_T}$ac_file" >&6; }
3162
3163 # Check that the compiler produces executables we can run.  If not, either
3164 # the compiler is broken, or we cross compile.
3165 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3166 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3167 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3168 # If not cross compiling, check that we can run a simple program.
3169 if test "$cross_compiling" != yes; then
3170   if { ac_try='./$ac_file'
3171   { (case "(($ac_try" in
3172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173   *) ac_try_echo=$ac_try;;
3174 esac
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176   (eval "$ac_try") 2>&5
3177   ac_status=$?
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); }; }; then
3180     cross_compiling=no
3181   else
3182     if test "$cross_compiling" = maybe; then
3183         cross_compiling=yes
3184     else
3185         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3186 If you meant to cross compile, use \`--host'.
3187 See \`config.log' for more details." >&5
3188 echo "$as_me: error: cannot run C compiled programs.
3189 If you meant to cross compile, use \`--host'.
3190 See \`config.log' for more details." >&2;}
3191    { (exit 1); exit 1; }; }
3192     fi
3193   fi
3194 fi
3195 { echo "$as_me:$LINENO: result: yes" >&5
3196 echo "${ECHO_T}yes" >&6; }
3197
3198 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3199 ac_clean_files=$ac_clean_files_save
3200 # Check that the compiler produces executables we can run.  If not, either
3201 # the compiler is broken, or we cross compile.
3202 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3203 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3204 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3205 echo "${ECHO_T}$cross_compiling" >&6; }
3206
3207 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3208 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3209 if { (ac_try="$ac_link"
3210 case "(($ac_try" in
3211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212   *) ac_try_echo=$ac_try;;
3213 esac
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215   (eval "$ac_link") 2>&5
3216   ac_status=$?
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); }; then
3219   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3220 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3221 # work properly (i.e., refer to `conftest.exe'), while it won't with
3222 # `rm'.
3223 for ac_file in conftest.exe conftest conftest.*; do
3224   test -f "$ac_file" || continue
3225   case $ac_file in
3226     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3227     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3228           break;;
3229     * ) break;;
3230   esac
3231 done
3232 else
3233   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3234 See \`config.log' for more details." >&5
3235 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3236 See \`config.log' for more details." >&2;}
3237    { (exit 1); exit 1; }; }
3238 fi
3239
3240 rm -f conftest$ac_cv_exeext
3241 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3242 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3243
3244 rm -f conftest.$ac_ext
3245 EXEEXT=$ac_cv_exeext
3246 ac_exeext=$EXEEXT
3247 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3248 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3249 if test "${ac_cv_objext+set}" = set; then
3250   echo $ECHO_N "(cached) $ECHO_C" >&6
3251 else
3252   cat >conftest.$ac_ext <<_ACEOF
3253 /* confdefs.h.  */
3254 _ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h.  */
3258
3259 int
3260 main ()
3261 {
3262
3263   ;
3264   return 0;
3265 }
3266 _ACEOF
3267 rm -f conftest.o conftest.obj
3268 if { (ac_try="$ac_compile"
3269 case "(($ac_try" in
3270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271   *) ac_try_echo=$ac_try;;
3272 esac
3273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274   (eval "$ac_compile") 2>&5
3275   ac_status=$?
3276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277   (exit $ac_status); }; then
3278   for ac_file in conftest.o conftest.obj conftest.*; do
3279   test -f "$ac_file" || continue;
3280   case $ac_file in
3281     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3282     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3283        break;;
3284   esac
3285 done
3286 else
3287   echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3291 See \`config.log' for more details." >&5
3292 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3293 See \`config.log' for more details." >&2;}
3294    { (exit 1); exit 1; }; }
3295 fi
3296
3297 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3298 fi
3299 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3300 echo "${ECHO_T}$ac_cv_objext" >&6; }
3301 OBJEXT=$ac_cv_objext
3302 ac_objext=$OBJEXT
3303 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3304 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3305 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3306   echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308   cat >conftest.$ac_ext <<_ACEOF
3309 /* confdefs.h.  */
3310 _ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h.  */
3314
3315 int
3316 main ()
3317 {
3318 #ifndef __GNUC__
3319        choke me
3320 #endif
3321
3322   ;
3323   return 0;
3324 }
3325 _ACEOF
3326 rm -f conftest.$ac_objext
3327 if { (ac_try="$ac_compile"
3328 case "(($ac_try" in
3329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330   *) ac_try_echo=$ac_try;;
3331 esac
3332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3333   (eval "$ac_compile") 2>conftest.er1
3334   ac_status=$?
3335   grep -v '^ *+' conftest.er1 >conftest.err
3336   rm -f conftest.er1
3337   cat conftest.err >&5
3338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339   (exit $ac_status); } &&
3340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3341   { (case "(($ac_try" in
3342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343   *) ac_try_echo=$ac_try;;
3344 esac
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346   (eval "$ac_try") 2>&5
3347   ac_status=$?
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); }; } &&
3350          { ac_try='test -s conftest.$ac_objext'
3351   { (case "(($ac_try" in
3352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353   *) ac_try_echo=$ac_try;;
3354 esac
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356   (eval "$ac_try") 2>&5
3357   ac_status=$?
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); }; }; then
3360   ac_compiler_gnu=yes
3361 else
3362   echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365         ac_compiler_gnu=no
3366 fi
3367
3368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3370
3371 fi
3372 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3373 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3374 GCC=`test $ac_compiler_gnu = yes && echo yes`
3375 ac_test_CFLAGS=${CFLAGS+set}
3376 ac_save_CFLAGS=$CFLAGS
3377 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3378 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3379 if test "${ac_cv_prog_cc_g+set}" = set; then
3380   echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382   ac_save_c_werror_flag=$ac_c_werror_flag
3383    ac_c_werror_flag=yes
3384    ac_cv_prog_cc_g=no
3385    CFLAGS="-g"
3386    cat >conftest.$ac_ext <<_ACEOF
3387 /* confdefs.h.  */
3388 _ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h.  */
3392
3393 int
3394 main ()
3395 {
3396
3397   ;
3398   return 0;
3399 }
3400 _ACEOF
3401 rm -f conftest.$ac_objext
3402 if { (ac_try="$ac_compile"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408   (eval "$ac_compile") 2>conftest.er1
3409   ac_status=$?
3410   grep -v '^ *+' conftest.er1 >conftest.err
3411   rm -f conftest.er1
3412   cat conftest.err >&5
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); } &&
3415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3416   { (case "(($ac_try" in
3417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418   *) ac_try_echo=$ac_try;;
3419 esac
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421   (eval "$ac_try") 2>&5
3422   ac_status=$?
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); }; } &&
3425          { ac_try='test -s conftest.$ac_objext'
3426   { (case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431   (eval "$ac_try") 2>&5
3432   ac_status=$?
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); }; }; then
3435   ac_cv_prog_cc_g=yes
3436 else
3437   echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3439
3440         CFLAGS=""
3441       cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h.  */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h.  */
3447
3448 int
3449 main ()
3450 {
3451
3452   ;
3453   return 0;
3454 }
3455 _ACEOF
3456 rm -f conftest.$ac_objext
3457 if { (ac_try="$ac_compile"
3458 case "(($ac_try" in
3459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460   *) ac_try_echo=$ac_try;;
3461 esac
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463   (eval "$ac_compile") 2>conftest.er1
3464   ac_status=$?
3465   grep -v '^ *+' conftest.er1 >conftest.err
3466   rm -f conftest.er1
3467   cat conftest.err >&5
3468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469   (exit $ac_status); } &&
3470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3471   { (case "(($ac_try" in
3472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473   *) ac_try_echo=$ac_try;;
3474 esac
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476   (eval "$ac_try") 2>&5
3477   ac_status=$?
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); }; } &&
3480          { ac_try='test -s conftest.$ac_objext'
3481   { (case "(($ac_try" in
3482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483   *) ac_try_echo=$ac_try;;
3484 esac
3485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3486   (eval "$ac_try") 2>&5
3487   ac_status=$?
3488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489   (exit $ac_status); }; }; then
3490   :
3491 else
3492   echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3494
3495         ac_c_werror_flag=$ac_save_c_werror_flag
3496          CFLAGS="-g"
3497          cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h.  */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h.  */
3503
3504 int
3505 main ()
3506 {
3507
3508   ;
3509   return 0;
3510 }
3511 _ACEOF
3512 rm -f conftest.$ac_objext
3513 if { (ac_try="$ac_compile"
3514 case "(($ac_try" in
3515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516   *) ac_try_echo=$ac_try;;
3517 esac
3518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519   (eval "$ac_compile") 2>conftest.er1
3520   ac_status=$?
3521   grep -v '^ *+' conftest.er1 >conftest.err
3522   rm -f conftest.er1
3523   cat conftest.err >&5
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); } &&
3526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3527   { (case "(($ac_try" in
3528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529   *) ac_try_echo=$ac_try;;
3530 esac
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532   (eval "$ac_try") 2>&5
3533   ac_status=$?
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); }; } &&
3536          { ac_try='test -s conftest.$ac_objext'
3537   { (case "(($ac_try" in
3538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539   *) ac_try_echo=$ac_try;;
3540 esac
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542   (eval "$ac_try") 2>&5
3543   ac_status=$?
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); }; }; then
3546   ac_cv_prog_cc_g=yes
3547 else
3548   echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3550
3551
3552 fi
3553
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 fi
3556
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 fi
3559
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561    ac_c_werror_flag=$ac_save_c_werror_flag
3562 fi
3563 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3564 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3565 if test "$ac_test_CFLAGS" = set; then
3566   CFLAGS=$ac_save_CFLAGS
3567 elif test $ac_cv_prog_cc_g = yes; then
3568   if test "$GCC" = yes; then
3569     CFLAGS="-g -O2"
3570   else
3571     CFLAGS="-g"
3572   fi
3573 else
3574   if test "$GCC" = yes; then
3575     CFLAGS="-O2"
3576   else
3577     CFLAGS=
3578   fi
3579 fi
3580 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3581 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3582 if test "${ac_cv_prog_cc_c89+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   ac_cv_prog_cc_c89=no
3586 ac_save_CC=$CC
3587 cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h.  */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h.  */
3593 #include <stdarg.h>
3594 #include <stdio.h>
3595 #include <sys/types.h>
3596 #include <sys/stat.h>
3597 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3598 struct buf { int x; };
3599 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3600 static char *e (p, i)
3601      char **p;
3602      int i;
3603 {
3604   return p[i];
3605 }
3606 static char *f (char * (*g) (char **, int), char **p, ...)
3607 {
3608   char *s;
3609   va_list v;
3610   va_start (v,p);
3611   s = g (p, va_arg (v,int));
3612   va_end (v);
3613   return s;
3614 }
3615
3616 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3617    function prototypes and stuff, but not '\xHH' hex character constants.
3618    These don't provoke an error unfortunately, instead are silently treated
3619    as 'x'.  The following induces an error, until -std is added to get
3620    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3621    array size at least.  It's necessary to write '\x00'==0 to get something
3622    that's true only with -std.  */
3623 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3624
3625 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3626    inside strings and character constants.  */
3627 #define FOO(x) 'x'
3628 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3629
3630 int test (int i, double x);
3631 struct s1 {int (*f) (int a);};
3632 struct s2 {int (*f) (double a);};
3633 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3634 int argc;
3635 char **argv;
3636 int
3637 main ()
3638 {
3639 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3640   ;
3641   return 0;
3642 }
3643 _ACEOF
3644 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3645         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3646 do
3647   CC="$ac_save_CC $ac_arg"
3648   rm -f conftest.$ac_objext
3649 if { (ac_try="$ac_compile"
3650 case "(($ac_try" in
3651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652   *) ac_try_echo=$ac_try;;
3653 esac
3654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3655   (eval "$ac_compile") 2>conftest.er1
3656   ac_status=$?
3657   grep -v '^ *+' conftest.er1 >conftest.err
3658   rm -f conftest.er1
3659   cat conftest.err >&5
3660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661   (exit $ac_status); } &&
3662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3663   { (case "(($ac_try" in
3664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665   *) ac_try_echo=$ac_try;;
3666 esac
3667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668   (eval "$ac_try") 2>&5
3669   ac_status=$?
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); }; } &&
3672          { ac_try='test -s conftest.$ac_objext'
3673   { (case "(($ac_try" in
3674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675   *) ac_try_echo=$ac_try;;
3676 esac
3677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3678   (eval "$ac_try") 2>&5
3679   ac_status=$?
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); }; }; then
3682   ac_cv_prog_cc_c89=$ac_arg
3683 else
3684   echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3686
3687
3688 fi
3689
3690 rm -f core conftest.err conftest.$ac_objext
3691   test "x$ac_cv_prog_cc_c89" != "xno" && break
3692 done
3693 rm -f conftest.$ac_ext
3694 CC=$ac_save_CC
3695
3696 fi
3697 # AC_CACHE_VAL
3698 case "x$ac_cv_prog_cc_c89" in
3699   x)
3700     { echo "$as_me:$LINENO: result: none needed" >&5
3701 echo "${ECHO_T}none needed" >&6; } ;;
3702   xno)
3703     { echo "$as_me:$LINENO: result: unsupported" >&5
3704 echo "${ECHO_T}unsupported" >&6; } ;;
3705   *)
3706     CC="$CC $ac_cv_prog_cc_c89"
3707     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3708 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3709 esac
3710
3711
3712 ac_ext=c
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3717
3718 depcc="$CC"   am_compiler_list=
3719
3720 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3721 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3722 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3723   echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3726   # We make a subdir and do the tests there.  Otherwise we can end up
3727   # making bogus files that we don't know about and never remove.  For
3728   # instance it was reported that on HP-UX the gcc test will end up
3729   # making a dummy file named `D' -- because `-MD' means `put the output
3730   # in D'.
3731   mkdir conftest.dir
3732   # Copy depcomp to subdir because otherwise we won't find it if we're
3733   # using a relative directory.
3734   cp "$am_depcomp" conftest.dir
3735   cd conftest.dir
3736   # We will build objects and dependencies in a subdirectory because
3737   # it helps to detect inapplicable dependency modes.  For instance
3738   # both Tru64's cc and ICC support -MD to output dependencies as a
3739   # side effect of compilation, but ICC will put the dependencies in
3740   # the current directory while Tru64 will put them in the object
3741   # directory.
3742   mkdir sub
3743
3744   am_cv_CC_dependencies_compiler_type=none
3745   if test "$am_compiler_list" = ""; then
3746      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3747   fi
3748   for depmode in $am_compiler_list; do
3749     # Setup a source with many dependencies, because some compilers
3750     # like to wrap large dependency lists on column 80 (with \), and
3751     # we should not choose a depcomp mode which is confused by this.
3752     #
3753     # We need to recreate these files for each test, as the compiler may
3754     # overwrite some of them when testing with obscure command lines.
3755     # This happens at least with the AIX C compiler.
3756     : > sub/conftest.c
3757     for i in 1 2 3 4 5 6; do
3758       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3759       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3760       # Solaris 8's {/usr,}/bin/sh.
3761       touch sub/conftst$i.h
3762     done
3763     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3764
3765     case $depmode in
3766     nosideeffect)
3767       # after this tag, mechanisms are not by side-effect, so they'll
3768       # only be used when explicitly requested
3769       if test "x$enable_dependency_tracking" = xyes; then
3770         continue
3771       else
3772         break
3773       fi
3774       ;;
3775     none) break ;;
3776     esac
3777     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3778     # mode.  It turns out that the SunPro C++ compiler does not properly
3779     # handle `-M -o', and we need to detect this.
3780     if depmode=$depmode \
3781        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3782        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3783        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3784          >/dev/null 2>conftest.err &&
3785        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3786        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3787        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3788       # icc doesn't choke on unknown options, it will just issue warnings
3789       # or remarks (even with -Werror).  So we grep stderr for any message
3790       # that says an option was ignored or not supported.
3791       # When given -MP, icc 7.0 and 7.1 complain thusly:
3792       #   icc: Command line warning: ignoring option '-M'; no argument required
3793       # The diagnosis changed in icc 8.0:
3794       #   icc: Command line remark: option '-MP' not supported
3795       if (grep 'ignoring option' conftest.err ||
3796           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3797         am_cv_CC_dependencies_compiler_type=$depmode
3798         break
3799       fi
3800     fi
3801   done
3802
3803   cd ..
3804   rm -rf conftest.dir
3805 else
3806   am_cv_CC_dependencies_compiler_type=none
3807 fi
3808
3809 fi
3810 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3811 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3812 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3813
3814
3815
3816 if
3817   test "x$enable_dependency_tracking" != xno \
3818   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3819   am__fastdepCC_TRUE=
3820   am__fastdepCC_FALSE='#'
3821 else
3822   am__fastdepCC_TRUE='#'
3823   am__fastdepCC_FALSE=
3824 fi
3825
3826
3827 ac_ext=c
3828 ac_cpp='$CPP $CPPFLAGS'
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3833 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3834 # On Suns, sometimes $CPP names a directory.
3835 if test -n "$CPP" && test -d "$CPP"; then
3836   CPP=
3837 fi
3838 if test -z "$CPP"; then
3839   if test "${ac_cv_prog_CPP+set}" = set; then
3840   echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842       # Double quotes because CPP needs to be expanded
3843     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3844     do
3845       ac_preproc_ok=false
3846 for ac_c_preproc_warn_flag in '' yes
3847 do
3848   # Use a header file that comes with gcc, so configuring glibc
3849   # with a fresh cross-compiler works.
3850   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3851   # <limits.h> exists even on freestanding compilers.
3852   # On the NeXT, cc -E runs the code through the compiler's parser,
3853   # not just through cpp. "Syntax error" is here to catch this case.
3854   cat >conftest.$ac_ext <<_ACEOF
3855 /* confdefs.h.  */
3856 _ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h.  */
3860 #ifdef __STDC__
3861 # include <limits.h>
3862 #else
3863 # include <assert.h>
3864 #endif
3865                      Syntax error
3866 _ACEOF
3867 if { (ac_try="$ac_cpp conftest.$ac_ext"
3868 case "(($ac_try" in
3869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870   *) ac_try_echo=$ac_try;;
3871 esac
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3874   ac_status=$?
3875   grep -v '^ *+' conftest.er1 >conftest.err
3876   rm -f conftest.er1
3877   cat conftest.err >&5
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); } >/dev/null; then
3880   if test -s conftest.err; then
3881     ac_cpp_err=$ac_c_preproc_warn_flag
3882     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3883   else
3884     ac_cpp_err=
3885   fi
3886 else
3887   ac_cpp_err=yes
3888 fi
3889 if test -z "$ac_cpp_err"; then
3890   :
3891 else
3892   echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3894
3895   # Broken: fails on valid input.
3896 continue
3897 fi
3898
3899 rm -f conftest.err conftest.$ac_ext
3900
3901   # OK, works on sane cases.  Now check whether nonexistent headers
3902   # can be detected and how.
3903   cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h.  */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h.  */
3909 #include <ac_nonexistent.h>
3910 _ACEOF
3911 if { (ac_try="$ac_cpp conftest.$ac_ext"
3912 case "(($ac_try" in
3913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914   *) ac_try_echo=$ac_try;;
3915 esac
3916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3917   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3918   ac_status=$?
3919   grep -v '^ *+' conftest.er1 >conftest.err
3920   rm -f conftest.er1
3921   cat conftest.err >&5
3922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923   (exit $ac_status); } >/dev/null; then
3924   if test -s conftest.err; then
3925     ac_cpp_err=$ac_c_preproc_warn_flag
3926     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3927   else
3928     ac_cpp_err=
3929   fi
3930 else
3931   ac_cpp_err=yes
3932 fi
3933 if test -z "$ac_cpp_err"; then
3934   # Broken: success on invalid input.
3935 continue
3936 else
3937   echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3939
3940   # Passes both tests.
3941 ac_preproc_ok=:
3942 break
3943 fi
3944
3945 rm -f conftest.err conftest.$ac_ext
3946
3947 done
3948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3949 rm -f conftest.err conftest.$ac_ext
3950 if $ac_preproc_ok; then
3951   break
3952 fi
3953
3954     done
3955     ac_cv_prog_CPP=$CPP
3956
3957 fi
3958   CPP=$ac_cv_prog_CPP
3959 else
3960   ac_cv_prog_CPP=$CPP
3961 fi
3962 { echo "$as_me:$LINENO: result: $CPP" >&5
3963 echo "${ECHO_T}$CPP" >&6; }
3964 ac_preproc_ok=false
3965 for ac_c_preproc_warn_flag in '' yes
3966 do
3967   # Use a header file that comes with gcc, so configuring glibc
3968   # with a fresh cross-compiler works.
3969   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3970   # <limits.h> exists even on freestanding compilers.
3971   # On the NeXT, cc -E runs the code through the compiler's parser,
3972   # not just through cpp. "Syntax error" is here to catch this case.
3973   cat >conftest.$ac_ext <<_ACEOF
3974 /* confdefs.h.  */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h.  */
3979 #ifdef __STDC__
3980 # include <limits.h>
3981 #else
3982 # include <assert.h>
3983 #endif
3984                      Syntax error
3985 _ACEOF
3986 if { (ac_try="$ac_cpp conftest.$ac_ext"
3987 case "(($ac_try" in
3988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989   *) ac_try_echo=$ac_try;;
3990 esac
3991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3993   ac_status=$?
3994   grep -v '^ *+' conftest.er1 >conftest.err
3995   rm -f conftest.er1
3996   cat conftest.err >&5
3997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998   (exit $ac_status); } >/dev/null; then
3999   if test -s conftest.err; then
4000     ac_cpp_err=$ac_c_preproc_warn_flag
4001     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4002   else
4003     ac_cpp_err=
4004   fi
4005 else
4006   ac_cpp_err=yes
4007 fi
4008 if test -z "$ac_cpp_err"; then
4009   :
4010 else
4011   echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4013
4014   # Broken: fails on valid input.
4015 continue
4016 fi
4017
4018 rm -f conftest.err conftest.$ac_ext
4019
4020   # OK, works on sane cases.  Now check whether nonexistent headers
4021   # can be detected and how.
4022   cat >conftest.$ac_ext <<_ACEOF
4023 /* confdefs.h.  */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h.  */
4028 #include <ac_nonexistent.h>
4029 _ACEOF
4030 if { (ac_try="$ac_cpp conftest.$ac_ext"
4031 case "(($ac_try" in
4032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033   *) ac_try_echo=$ac_try;;
4034 esac
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4037   ac_status=$?
4038   grep -v '^ *+' conftest.er1 >conftest.err
4039   rm -f conftest.er1
4040   cat conftest.err >&5
4041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042   (exit $ac_status); } >/dev/null; then
4043   if test -s conftest.err; then
4044     ac_cpp_err=$ac_c_preproc_warn_flag
4045     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4046   else
4047     ac_cpp_err=
4048   fi
4049 else
4050   ac_cpp_err=yes
4051 fi
4052 if test -z "$ac_cpp_err"; then
4053   # Broken: success on invalid input.
4054 continue
4055 else
4056   echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4058
4059   # Passes both tests.
4060 ac_preproc_ok=:
4061 break
4062 fi
4063
4064 rm -f conftest.err conftest.$ac_ext
4065
4066 done
4067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4068 rm -f conftest.err conftest.$ac_ext
4069 if $ac_preproc_ok; then
4070   :
4071 else
4072   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4073 See \`config.log' for more details." >&5
4074 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4075 See \`config.log' for more details." >&2;}
4076    { (exit 1); exit 1; }; }
4077 fi
4078
4079 ac_ext=c
4080 ac_cpp='$CPP $CPPFLAGS'
4081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084
4085
4086
4087 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4088 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4089 if test "${ac_cv_path_GREP+set}" = set; then
4090   echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092   # Extract the first word of "grep ggrep" to use in msg output
4093 if test -z "$GREP"; then
4094 set dummy grep ggrep; ac_prog_name=$2
4095 if test "${ac_cv_path_GREP+set}" = set; then
4096   echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098   ac_path_GREP_found=false
4099 # Loop through the user's path and test for each of PROGNAME-LIST
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4102 do
4103   IFS=$as_save_IFS
4104   test -z "$as_dir" && as_dir=.
4105   for ac_prog in grep ggrep; do
4106   for ac_exec_ext in '' $ac_executable_extensions; do
4107     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4108     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4109     # Check for GNU ac_path_GREP and select it if it is found.
4110   # Check for GNU $ac_path_GREP
4111 case `"$ac_path_GREP" --version 2>&1` in
4112 *GNU*)
4113   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4114 *)
4115   ac_count=0
4116   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4117   while :
4118   do
4119     cat "conftest.in" "conftest.in" >"conftest.tmp"
4120     mv "conftest.tmp" "conftest.in"
4121     cp "conftest.in" "conftest.nl"
4122     echo 'GREP' >> "conftest.nl"
4123     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4124     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4125     ac_count=`expr $ac_count + 1`
4126     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4127       # Best one so far, save it but keep looking for a better one
4128       ac_cv_path_GREP="$ac_path_GREP"
4129       ac_path_GREP_max=$ac_count
4130     fi
4131     # 10*(2^10) chars as input seems more than enough
4132     test $ac_count -gt 10 && break
4133   done
4134   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4135 esac
4136
4137
4138     $ac_path_GREP_found && break 3
4139   done
4140 done
4141
4142 done
4143 IFS=$as_save_IFS
4144
4145
4146 fi
4147
4148 GREP="$ac_cv_path_GREP"
4149 if test -z "$GREP"; then
4150   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4151 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4152    { (exit 1); exit 1; }; }
4153 fi
4154
4155 else
4156   ac_cv_path_GREP=$GREP
4157 fi
4158
4159
4160 fi
4161 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4162 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4163  GREP="$ac_cv_path_GREP"
4164
4165
4166 { echo "$as_me:$LINENO: checking for egrep" >&5
4167 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4168 if test "${ac_cv_path_EGREP+set}" = set; then
4169   echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4172    then ac_cv_path_EGREP="$GREP -E"
4173    else
4174      # Extract the first word of "egrep" to use in msg output
4175 if test -z "$EGREP"; then
4176 set dummy egrep; ac_prog_name=$2
4177 if test "${ac_cv_path_EGREP+set}" = set; then
4178   echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180   ac_path_EGREP_found=false
4181 # Loop through the user's path and test for each of PROGNAME-LIST
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4184 do
4185   IFS=$as_save_IFS
4186   test -z "$as_dir" && as_dir=.
4187   for ac_prog in egrep; do
4188   for ac_exec_ext in '' $ac_executable_extensions; do
4189     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4190     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4191     # Check for GNU ac_path_EGREP and select it if it is found.
4192   # Check for GNU $ac_path_EGREP
4193 case `"$ac_path_EGREP" --version 2>&1` in
4194 *GNU*)
4195   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4196 *)
4197   ac_count=0
4198   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4199   while :
4200   do
4201     cat "conftest.in" "conftest.in" >"conftest.tmp"
4202     mv "conftest.tmp" "conftest.in"
4203     cp "conftest.in" "conftest.nl"
4204     echo 'EGREP' >> "conftest.nl"
4205     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4206     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4207     ac_count=`expr $ac_count + 1`
4208     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4209       # Best one so far, save it but keep looking for a better one
4210       ac_cv_path_EGREP="$ac_path_EGREP"
4211       ac_path_EGREP_max=$ac_count
4212     fi
4213     # 10*(2^10) chars as input seems more than enough
4214     test $ac_count -gt 10 && break
4215   done
4216   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4217 esac
4218
4219
4220     $ac_path_EGREP_found && break 3
4221   done
4222 done
4223
4224 done
4225 IFS=$as_save_IFS
4226
4227
4228 fi
4229
4230 EGREP="$ac_cv_path_EGREP"
4231 if test -z "$EGREP"; then
4232   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4233 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4234    { (exit 1); exit 1; }; }
4235 fi
4236
4237 else
4238   ac_cv_path_EGREP=$EGREP
4239 fi
4240
4241
4242    fi
4243 fi
4244 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4245 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4246  EGREP="$ac_cv_path_EGREP"
4247
4248
4249
4250 { echo "$as_me:$LINENO: checking for AIX" >&5
4251 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4252 cat >conftest.$ac_ext <<_ACEOF
4253 /* confdefs.h.  */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h.  */
4258 #ifdef _AIX
4259   yes
4260 #endif
4261
4262 _ACEOF
4263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4264   $EGREP "yes" >/dev/null 2>&1; then
4265   { echo "$as_me:$LINENO: result: yes" >&5
4266 echo "${ECHO_T}yes" >&6; }
4267 cat >>confdefs.h <<\_ACEOF
4268 #define _ALL_SOURCE 1
4269 _ACEOF
4270
4271 else
4272   { echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6; }
4274 fi
4275 rm -f conftest*
4276
4277
4278 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4279 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4280 if test "${ac_cv_search_strerror+set}" = set; then
4281   echo $ECHO_N "(cached) $ECHO_C" >&6
4282 else
4283   ac_func_search_save_LIBS=$LIBS
4284 cat >conftest.$ac_ext <<_ACEOF
4285 /* confdefs.h.  */
4286 _ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h.  */
4290
4291 /* Override any GCC internal prototype to avoid an error.
4292    Use char because int might match the return type of a GCC
4293    builtin and then its argument prototype would still apply.  */
4294 #ifdef __cplusplus
4295 extern "C"
4296 #endif
4297 char strerror ();
4298 int
4299 main ()
4300 {
4301 return strerror ();
4302   ;
4303   return 0;
4304 }
4305 _ACEOF
4306 for ac_lib in '' cposix; do
4307   if test -z "$ac_lib"; then
4308     ac_res="none required"
4309   else
4310     ac_res=-l$ac_lib
4311     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4312   fi
4313   rm -f conftest.$ac_objext conftest$ac_exeext
4314 if { (ac_try="$ac_link"
4315 case "(($ac_try" in
4316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317   *) ac_try_echo=$ac_try;;
4318 esac
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320   (eval "$ac_link") 2>conftest.er1
4321   ac_status=$?
4322   grep -v '^ *+' conftest.er1 >conftest.err
4323   rm -f conftest.er1
4324   cat conftest.err >&5
4325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326   (exit $ac_status); } &&
4327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4328   { (case "(($ac_try" in
4329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330   *) ac_try_echo=$ac_try;;
4331 esac
4332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333   (eval "$ac_try") 2>&5
4334   ac_status=$?
4335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336   (exit $ac_status); }; } &&
4337          { ac_try='test -s conftest$ac_exeext'
4338   { (case "(($ac_try" in
4339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340   *) ac_try_echo=$ac_try;;
4341 esac
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343   (eval "$ac_try") 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); }; }; then
4347   ac_cv_search_strerror=$ac_res
4348 else
4349   echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4351
4352
4353 fi
4354
4355 rm -f core conftest.err conftest.$ac_objext \
4356       conftest$ac_exeext
4357   if test "${ac_cv_search_strerror+set}" = set; then
4358   break
4359 fi
4360 done
4361 if test "${ac_cv_search_strerror+set}" = set; then
4362   :
4363 else
4364   ac_cv_search_strerror=no
4365 fi
4366 rm conftest.$ac_ext
4367 LIBS=$ac_func_search_save_LIBS
4368 fi
4369 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4370 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4371 ac_res=$ac_cv_search_strerror
4372 if test "$ac_res" != no; then
4373   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4374
4375 fi
4376
4377 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4378 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4379 if test "${ac_cv_header_stdc+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h.  */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h.  */
4388 #include <stdlib.h>
4389 #include <stdarg.h>
4390 #include <string.h>
4391 #include <float.h>
4392
4393 int
4394 main ()
4395 {
4396
4397   ;
4398   return 0;
4399 }
4400 _ACEOF
4401 rm -f conftest.$ac_objext
4402 if { (ac_try="$ac_compile"
4403 case "(($ac_try" in
4404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405   *) ac_try_echo=$ac_try;;
4406 esac
4407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4408   (eval "$ac_compile") 2>conftest.er1
4409   ac_status=$?
4410   grep -v '^ *+' conftest.er1 >conftest.err
4411   rm -f conftest.er1
4412   cat conftest.err >&5
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); } &&
4415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4416   { (case "(($ac_try" in
4417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418   *) ac_try_echo=$ac_try;;
4419 esac
4420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4421   (eval "$ac_try") 2>&5
4422   ac_status=$?
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); }; } &&
4425          { ac_try='test -s conftest.$ac_objext'
4426   { (case "(($ac_try" in
4427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428   *) ac_try_echo=$ac_try;;
4429 esac
4430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4431   (eval "$ac_try") 2>&5
4432   ac_status=$?
4433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434   (exit $ac_status); }; }; then
4435   ac_cv_header_stdc=yes
4436 else
4437   echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4439
4440         ac_cv_header_stdc=no
4441 fi
4442
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4444
4445 if test $ac_cv_header_stdc = yes; then
4446   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4447   cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h.  */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h.  */
4453 #include <string.h>
4454
4455 _ACEOF
4456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4457   $EGREP "memchr" >/dev/null 2>&1; then
4458   :
4459 else
4460   ac_cv_header_stdc=no
4461 fi
4462 rm -f conftest*
4463
4464 fi
4465
4466 if test $ac_cv_header_stdc = yes; then
4467   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4468   cat >conftest.$ac_ext <<_ACEOF
4469 /* confdefs.h.  */
4470 _ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h.  */
4474 #include <stdlib.h>
4475
4476 _ACEOF
4477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4478   $EGREP "free" >/dev/null 2>&1; then
4479   :
4480 else
4481   ac_cv_header_stdc=no
4482 fi
4483 rm -f conftest*
4484
4485 fi
4486
4487 if test $ac_cv_header_stdc = yes; then
4488   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4489   if test "$cross_compiling" = yes; then
4490   :
4491 else
4492   cat >conftest.$ac_ext <<_ACEOF
4493 /* confdefs.h.  */
4494 _ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h.  */
4498 #include <ctype.h>
4499 #include <stdlib.h>
4500 #if ((' ' & 0x0FF) == 0x020)
4501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4503 #else
4504 # define ISLOWER(c) \
4505                    (('a' <= (c) && (c) <= 'i') \
4506                      || ('j' <= (c) && (c) <= 'r') \
4507                      || ('s' <= (c) && (c) <= 'z'))
4508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4509 #endif
4510
4511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4512 int
4513 main ()
4514 {
4515   int i;
4516   for (i = 0; i < 256; i++)
4517     if (XOR (islower (i), ISLOWER (i))
4518         || toupper (i) != TOUPPER (i))
4519       return 2;
4520   return 0;
4521 }
4522 _ACEOF
4523 rm -f conftest$ac_exeext
4524 if { (ac_try="$ac_link"
4525 case "(($ac_try" in
4526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527   *) ac_try_echo=$ac_try;;
4528 esac
4529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530   (eval "$ac_link") 2>&5
4531   ac_status=$?
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4534   { (case "(($ac_try" in
4535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536   *) ac_try_echo=$ac_try;;
4537 esac
4538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539   (eval "$ac_try") 2>&5
4540   ac_status=$?
4541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542   (exit $ac_status); }; }; then
4543   :
4544 else
4545   echo "$as_me: program exited with status $ac_status" >&5
4546 echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4548
4549 ( exit $ac_status )
4550 ac_cv_header_stdc=no
4551 fi
4552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4553 fi
4554
4555
4556 fi
4557 fi
4558 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4559 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4560 if test $ac_cv_header_stdc = yes; then
4561
4562 cat >>confdefs.h <<\_ACEOF
4563 #define STDC_HEADERS 1
4564 _ACEOF
4565
4566 fi
4567
4568 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4579                   inttypes.h stdint.h unistd.h
4580 do
4581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4585   echo $ECHO_N "(cached) $ECHO_C" >&6
4586 else
4587   cat >conftest.$ac_ext <<_ACEOF
4588 /* confdefs.h.  */
4589 _ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h.  */
4593 $ac_includes_default
4594
4595 #include <$ac_header>
4596 _ACEOF
4597 rm -f conftest.$ac_objext
4598 if { (ac_try="$ac_compile"
4599 case "(($ac_try" in
4600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601   *) ac_try_echo=$ac_try;;
4602 esac
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604   (eval "$ac_compile") 2>conftest.er1
4605   ac_status=$?
4606   grep -v '^ *+' conftest.er1 >conftest.err
4607   rm -f conftest.er1
4608   cat conftest.err >&5
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } &&
4611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4612   { (case "(($ac_try" in
4613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614   *) ac_try_echo=$ac_try;;
4615 esac
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617   (eval "$ac_try") 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }; } &&
4621          { ac_try='test -s conftest.$ac_objext'
4622   { (case "(($ac_try" in
4623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624   *) ac_try_echo=$ac_try;;
4625 esac
4626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627   (eval "$ac_try") 2>&5
4628   ac_status=$?
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); }; }; then
4631   eval "$as_ac_Header=yes"
4632 else
4633   echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4635
4636         eval "$as_ac_Header=no"
4637 fi
4638
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 fi
4641 ac_res=`eval echo '${'$as_ac_Header'}'`
4642                { echo "$as_me:$LINENO: result: $ac_res" >&5
4643 echo "${ECHO_T}$ac_res" >&6; }
4644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4645   cat >>confdefs.h <<_ACEOF
4646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4647 _ACEOF
4648
4649 fi
4650
4651 done
4652
4653
4654 if test "${ac_cv_header_minix_config_h+set}" = set; then
4655   { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4656 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4657 if test "${ac_cv_header_minix_config_h+set}" = set; then
4658   echo $ECHO_N "(cached) $ECHO_C" >&6
4659 fi
4660 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4661 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4662 else
4663   # Is the header compilable?
4664 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4665 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4666 cat >conftest.$ac_ext <<_ACEOF
4667 /* confdefs.h.  */
4668 _ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h.  */
4672 $ac_includes_default
4673 #include <minix/config.h>
4674 _ACEOF
4675 rm -f conftest.$ac_objext
4676 if { (ac_try="$ac_compile"
4677 case "(($ac_try" in
4678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679   *) ac_try_echo=$ac_try;;
4680 esac
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682   (eval "$ac_compile") 2>conftest.er1
4683   ac_status=$?
4684   grep -v '^ *+' conftest.er1 >conftest.err
4685   rm -f conftest.er1
4686   cat conftest.err >&5
4687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688   (exit $ac_status); } &&
4689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4690   { (case "(($ac_try" in
4691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692   *) ac_try_echo=$ac_try;;
4693 esac
4694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4695   (eval "$ac_try") 2>&5
4696   ac_status=$?
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); }; } &&
4699          { ac_try='test -s conftest.$ac_objext'
4700   { (case "(($ac_try" in
4701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702   *) ac_try_echo=$ac_try;;
4703 esac
4704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4705   (eval "$ac_try") 2>&5
4706   ac_status=$?
4707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708   (exit $ac_status); }; }; then
4709   ac_header_compiler=yes
4710 else
4711   echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.$ac_ext >&5
4713
4714         ac_header_compiler=no
4715 fi
4716
4717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4719 echo "${ECHO_T}$ac_header_compiler" >&6; }
4720
4721 # Is the header present?
4722 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4723 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4724 cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h.  */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h.  */
4730 #include <minix/config.h>
4731 _ACEOF
4732 if { (ac_try="$ac_cpp conftest.$ac_ext"
4733 case "(($ac_try" in
4734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735   *) ac_try_echo=$ac_try;;
4736 esac
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4739   ac_status=$?
4740   grep -v '^ *+' conftest.er1 >conftest.err
4741   rm -f conftest.er1
4742   cat conftest.err >&5
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); } >/dev/null; then
4745   if test -s conftest.err; then
4746     ac_cpp_err=$ac_c_preproc_warn_flag
4747     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4748   else
4749     ac_cpp_err=
4750   fi
4751 else
4752   ac_cpp_err=yes
4753 fi
4754 if test -z "$ac_cpp_err"; then
4755   ac_header_preproc=yes
4756 else
4757   echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4759
4760   ac_header_preproc=no
4761 fi
4762
4763 rm -f conftest.err conftest.$ac_ext
4764 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4765 echo "${ECHO_T}$ac_header_preproc" >&6; }
4766
4767 # So?  What about this header?
4768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4769   yes:no: )
4770     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4771 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4772     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4773 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4774     ac_header_preproc=yes
4775     ;;
4776   no:yes:* )
4777     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4778 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4779     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4780 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4781     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4782 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4783     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4784 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4785     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4786 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4787     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4788 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4789
4790     ;;
4791 esac
4792 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4793 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4794 if test "${ac_cv_header_minix_config_h+set}" = set; then
4795   echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797   ac_cv_header_minix_config_h=$ac_header_preproc
4798 fi
4799 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4800 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4801
4802 fi
4803 if test $ac_cv_header_minix_config_h = yes; then
4804   MINIX=yes
4805 else
4806   MINIX=
4807 fi
4808
4809
4810 if test "$MINIX" = yes; then
4811
4812 cat >>confdefs.h <<\_ACEOF
4813 #define _POSIX_SOURCE 1
4814 _ACEOF
4815
4816
4817 cat >>confdefs.h <<\_ACEOF
4818 #define _POSIX_1_SOURCE 2
4819 _ACEOF
4820
4821
4822 cat >>confdefs.h <<\_ACEOF
4823 #define _MINIX 1
4824 _ACEOF
4825
4826 fi
4827
4828
4829
4830 ac_ext=cpp
4831 ac_cpp='$CXXCPP $CPPFLAGS'
4832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4835 if test -z "$CXX"; then
4836   if test -n "$CCC"; then
4837     CXX=$CCC
4838   else
4839     if test -n "$ac_tool_prefix"; then
4840   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4841   do
4842     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4846 if test "${ac_cv_prog_CXX+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849   if test -n "$CXX"; then
4850   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855   IFS=$as_save_IFS
4856   test -z "$as_dir" && as_dir=.
4857   for ac_exec_ext in '' $ac_executable_extensions; do
4858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4859     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861     break 2
4862   fi
4863 done
4864 done
4865 IFS=$as_save_IFS
4866
4867 fi
4868 fi
4869 CXX=$ac_cv_prog_CXX
4870 if test -n "$CXX"; then
4871   { echo "$as_me:$LINENO: result: $CXX" >&5
4872 echo "${ECHO_T}$CXX" >&6; }
4873 else
4874   { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4876 fi
4877
4878
4879     test -n "$CXX" && break
4880   done
4881 fi
4882 if test -z "$CXX"; then
4883   ac_ct_CXX=$CXX
4884   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4885 do
4886   # Extract the first word of "$ac_prog", so it can be a program name with args.
4887 set dummy $ac_prog; ac_word=$2
4888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4890 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4891   echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893   if test -n "$ac_ct_CXX"; then
4894   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4895 else
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899   IFS=$as_save_IFS
4900   test -z "$as_dir" && as_dir=.
4901   for ac_exec_ext in '' $ac_executable_extensions; do
4902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4903     ac_cv_prog_ac_ct_CXX="$ac_prog"
4904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905     break 2
4906   fi
4907 done
4908 done
4909 IFS=$as_save_IFS
4910
4911 fi
4912 fi
4913 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4914 if test -n "$ac_ct_CXX"; then
4915   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4916 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4917 else
4918   { echo "$as_me:$LINENO: result: no" >&5
4919 echo "${ECHO_T}no" >&6; }
4920 fi
4921
4922
4923   test -n "$ac_ct_CXX" && break
4924 done
4925
4926   if test "x$ac_ct_CXX" = x; then
4927     CXX="g++"
4928   else
4929     case $cross_compiling:$ac_tool_warned in
4930 yes:)
4931 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4932 whose name does not start with the host triplet.  If you think this
4933 configuration is useful to you, please write to autoconf@gnu.org." >&5
4934 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4935 whose name does not start with the host triplet.  If you think this
4936 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4937 ac_tool_warned=yes ;;
4938 esac
4939     CXX=$ac_ct_CXX
4940   fi
4941 fi
4942
4943   fi
4944 fi
4945 # Provide some information about the compiler.
4946 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4947 ac_compiler=`set X $ac_compile; echo $2`
4948 { (ac_try="$ac_compiler --version >&5"
4949 case "(($ac_try" in
4950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951   *) ac_try_echo=$ac_try;;
4952 esac
4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954   (eval "$ac_compiler --version >&5") 2>&5
4955   ac_status=$?
4956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957   (exit $ac_status); }
4958 { (ac_try="$ac_compiler -v >&5"
4959 case "(($ac_try" in
4960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961   *) ac_try_echo=$ac_try;;
4962 esac
4963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4964   (eval "$ac_compiler -v >&5") 2>&5
4965   ac_status=$?
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); }
4968 { (ac_try="$ac_compiler -V >&5"
4969 case "(($ac_try" in
4970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4971   *) ac_try_echo=$ac_try;;
4972 esac
4973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4974   (eval "$ac_compiler -V >&5") 2>&5
4975   ac_status=$?
4976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977   (exit $ac_status); }
4978
4979 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4980 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4981 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4982   echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984   cat >conftest.$ac_ext <<_ACEOF
4985 /* confdefs.h.  */
4986 _ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h.  */
4990
4991 int
4992 main ()
4993 {
4994 #ifndef __GNUC__
4995        choke me
4996 #endif
4997
4998   ;
4999   return 0;
5000 }
5001 _ACEOF
5002 rm -f conftest.$ac_objext
5003 if { (ac_try="$ac_compile"
5004 case "(($ac_try" in
5005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006   *) ac_try_echo=$ac_try;;
5007 esac
5008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009   (eval "$ac_compile") 2>conftest.er1
5010   ac_status=$?
5011   grep -v '^ *+' conftest.er1 >conftest.err
5012   rm -f conftest.er1
5013   cat conftest.err >&5
5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); } &&
5016          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5017   { (case "(($ac_try" in
5018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5019   *) ac_try_echo=$ac_try;;
5020 esac
5021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5022   (eval "$ac_try") 2>&5
5023   ac_status=$?
5024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025   (exit $ac_status); }; } &&
5026          { ac_try='test -s conftest.$ac_objext'
5027   { (case "(($ac_try" in
5028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029   *) ac_try_echo=$ac_try;;
5030 esac
5031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5032   (eval "$ac_try") 2>&5
5033   ac_status=$?
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); }; }; then
5036   ac_compiler_gnu=yes
5037 else
5038   echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5040
5041         ac_compiler_gnu=no
5042 fi
5043
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5046
5047 fi
5048 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5049 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5050 GXX=`test $ac_compiler_gnu = yes && echo yes`
5051 ac_test_CXXFLAGS=${CXXFLAGS+set}
5052 ac_save_CXXFLAGS=$CXXFLAGS
5053 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5054 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5055 if test "${ac_cv_prog_cxx_g+set}" = set; then
5056   echo $ECHO_N "(cached) $ECHO_C" >&6
5057 else
5058   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5059    ac_cxx_werror_flag=yes
5060    ac_cv_prog_cxx_g=no
5061    CXXFLAGS="-g"
5062    cat >conftest.$ac_ext <<_ACEOF
5063 /* confdefs.h.  */
5064 _ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h.  */
5068
5069 int
5070 main ()
5071 {
5072
5073   ;
5074   return 0;
5075 }
5076 _ACEOF
5077 rm -f conftest.$ac_objext
5078 if { (ac_try="$ac_compile"
5079 case "(($ac_try" in
5080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081   *) ac_try_echo=$ac_try;;
5082 esac
5083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084   (eval "$ac_compile") 2>conftest.er1
5085   ac_status=$?
5086   grep -v '^ *+' conftest.er1 >conftest.err
5087   rm -f conftest.er1
5088   cat conftest.err >&5
5089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090   (exit $ac_status); } &&
5091          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5092   { (case "(($ac_try" in
5093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094   *) ac_try_echo=$ac_try;;
5095 esac
5096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5097   (eval "$ac_try") 2>&5
5098   ac_status=$?
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); }; } &&
5101          { ac_try='test -s conftest.$ac_objext'
5102   { (case "(($ac_try" in
5103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104   *) ac_try_echo=$ac_try;;
5105 esac
5106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107   (eval "$ac_try") 2>&5
5108   ac_status=$?
5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); }; }; then
5111   ac_cv_prog_cxx_g=yes
5112 else
5113   echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5115
5116         CXXFLAGS=""
5117       cat >conftest.$ac_ext <<_ACEOF
5118 /* confdefs.h.  */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h.  */
5123
5124 int
5125 main ()
5126 {
5127
5128   ;
5129   return 0;
5130 }
5131 _ACEOF
5132 rm -f conftest.$ac_objext
5133 if { (ac_try="$ac_compile"
5134 case "(($ac_try" in
5135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136   *) ac_try_echo=$ac_try;;
5137 esac
5138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139   (eval "$ac_compile") 2>conftest.er1
5140   ac_status=$?
5141   grep -v '^ *+' conftest.er1 >conftest.err
5142   rm -f conftest.er1
5143   cat conftest.err >&5
5144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145   (exit $ac_status); } &&
5146          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5147   { (case "(($ac_try" in
5148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149   *) ac_try_echo=$ac_try;;
5150 esac
5151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5152   (eval "$ac_try") 2>&5
5153   ac_status=$?
5154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155   (exit $ac_status); }; } &&
5156          { ac_try='test -s conftest.$ac_objext'
5157   { (case "(($ac_try" in
5158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159   *) ac_try_echo=$ac_try;;
5160 esac
5161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162   (eval "$ac_try") 2>&5
5163   ac_status=$?
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); }; }; then
5166   :
5167 else
5168   echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5170
5171         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5172          CXXFLAGS="-g"
5173          cat >conftest.$ac_ext <<_ACEOF
5174 /* confdefs.h.  */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h.  */
5179
5180 int
5181 main ()
5182 {
5183
5184   ;
5185   return 0;
5186 }
5187 _ACEOF
5188 rm -f conftest.$ac_objext
5189 if { (ac_try="$ac_compile"
5190 case "(($ac_try" in
5191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192   *) ac_try_echo=$ac_try;;
5193 esac
5194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195   (eval "$ac_compile") 2>conftest.er1
5196   ac_status=$?
5197   grep -v '^ *+' conftest.er1 >conftest.err
5198   rm -f conftest.er1
5199   cat conftest.err >&5
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); } &&
5202          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5203   { (case "(($ac_try" in
5204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205   *) ac_try_echo=$ac_try;;
5206 esac
5207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208   (eval "$ac_try") 2>&5
5209   ac_status=$?
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); }; } &&
5212          { ac_try='test -s conftest.$ac_objext'
5213   { (case "(($ac_try" in
5214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215   *) ac_try_echo=$ac_try;;
5216 esac
5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218   (eval "$ac_try") 2>&5
5219   ac_status=$?
5220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221   (exit $ac_status); }; }; then
5222   ac_cv_prog_cxx_g=yes
5223 else
5224   echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5226
5227
5228 fi
5229
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5231 fi
5232
5233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5234 fi
5235
5236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5237    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5238 fi
5239 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5240 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5241 if test "$ac_test_CXXFLAGS" = set; then
5242   CXXFLAGS=$ac_save_CXXFLAGS
5243 elif test $ac_cv_prog_cxx_g = yes; then
5244   if test "$GXX" = yes; then
5245     CXXFLAGS="-g -O2"
5246   else
5247     CXXFLAGS="-g"
5248   fi
5249 else
5250   if test "$GXX" = yes; then
5251     CXXFLAGS="-O2"
5252   else
5253     CXXFLAGS=
5254   fi
5255 fi
5256 ac_ext=c
5257 ac_cpp='$CPP $CPPFLAGS'
5258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5261
5262 depcc="$CXX"  am_compiler_list=
5263
5264 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5265 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5266 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5270   # We make a subdir and do the tests there.  Otherwise we can end up
5271   # making bogus files that we don't know about and never remove.  For
5272   # instance it was reported that on HP-UX the gcc test will end up
5273   # making a dummy file named `D' -- because `-MD' means `put the output
5274   # in D'.
5275   mkdir conftest.dir
5276   # Copy depcomp to subdir because otherwise we won't find it if we're
5277   # using a relative directory.
5278   cp "$am_depcomp" conftest.dir
5279   cd conftest.dir
5280   # We will build objects and dependencies in a subdirectory because
5281   # it helps to detect inapplicable dependency modes.  For instance
5282   # both Tru64's cc and ICC support -MD to output dependencies as a
5283   # side effect of compilation, but ICC will put the dependencies in
5284   # the current directory while Tru64 will put them in the object
5285   # directory.
5286   mkdir sub
5287
5288   am_cv_CXX_dependencies_compiler_type=none
5289   if test "$am_compiler_list" = ""; then
5290      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5291   fi
5292   for depmode in $am_compiler_list; do
5293     # Setup a source with many dependencies, because some compilers
5294     # like to wrap large dependency lists on column 80 (with \), and
5295     # we should not choose a depcomp mode which is confused by this.
5296     #
5297     # We need to recreate these files for each test, as the compiler may
5298     # overwrite some of them when testing with obscure command lines.
5299     # This happens at least with the AIX C compiler.
5300     : > sub/conftest.c
5301     for i in 1 2 3 4 5 6; do
5302       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5303       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5304       # Solaris 8's {/usr,}/bin/sh.
5305       touch sub/conftst$i.h
5306     done
5307     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5308
5309     case $depmode in
5310     nosideeffect)
5311       # after this tag, mechanisms are not by side-effect, so they'll
5312       # only be used when explicitly requested
5313       if test "x$enable_dependency_tracking" = xyes; then
5314         continue
5315       else
5316         break
5317       fi
5318       ;;
5319     none) break ;;
5320     esac
5321     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5322     # mode.  It turns out that the SunPro C++ compiler does not properly
5323     # handle `-M -o', and we need to detect this.
5324     if depmode=$depmode \
5325        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5326        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5327        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5328          >/dev/null 2>conftest.err &&
5329        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5330        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5331        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5332       # icc doesn't choke on unknown options, it will just issue warnings
5333       # or remarks (even with -Werror).  So we grep stderr for any message
5334       # that says an option was ignored or not supported.
5335       # When given -MP, icc 7.0 and 7.1 complain thusly:
5336       #   icc: Command line warning: ignoring option '-M'; no argument required
5337       # The diagnosis changed in icc 8.0:
5338       #   icc: Command line remark: option '-MP' not supported
5339       if (grep 'ignoring option' conftest.err ||
5340           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5341         am_cv_CXX_dependencies_compiler_type=$depmode
5342         break
5343       fi
5344     fi
5345   done
5346
5347   cd ..
5348   rm -rf conftest.dir
5349 else
5350   am_cv_CXX_dependencies_compiler_type=none
5351 fi
5352
5353 fi
5354 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5355 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5356 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5357
5358
5359
5360 if
5361   test "x$enable_dependency_tracking" != xno \
5362   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5363   am__fastdepCXX_TRUE=
5364   am__fastdepCXX_FALSE='#'
5365 else
5366   am__fastdepCXX_TRUE='#'
5367   am__fastdepCXX_FALSE=
5368 fi
5369
5370
5371 ac_ext=cpp
5372 ac_cpp='$CXXCPP $CPPFLAGS'
5373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5376 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5377 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5378 if test -z "$CXXCPP"; then
5379   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5380   echo $ECHO_N "(cached) $ECHO_C" >&6
5381 else
5382       # Double quotes because CXXCPP needs to be expanded
5383     for CXXCPP in "$CXX -E" "/lib/cpp"
5384     do
5385       ac_preproc_ok=false
5386 for ac_cxx_preproc_warn_flag in '' yes
5387 do
5388   # Use a header file that comes with gcc, so configuring glibc
5389   # with a fresh cross-compiler works.
5390   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5391   # <limits.h> exists even on freestanding compilers.
5392   # On the NeXT, cc -E runs the code through the compiler's parser,
5393   # not just through cpp. "Syntax error" is here to catch this case.
5394   cat >conftest.$ac_ext <<_ACEOF
5395 /* confdefs.h.  */
5396 _ACEOF
5397 cat confdefs.h >>conftest.$ac_ext
5398 cat >>conftest.$ac_ext <<_ACEOF
5399 /* end confdefs.h.  */
5400 #ifdef __STDC__
5401 # include <limits.h>
5402 #else
5403 # include <assert.h>
5404 #endif
5405                      Syntax error
5406 _ACEOF
5407 if { (ac_try="$ac_cpp conftest.$ac_ext"
5408 case "(($ac_try" in
5409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410   *) ac_try_echo=$ac_try;;
5411 esac
5412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5413   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5414   ac_status=$?
5415   grep -v '^ *+' conftest.er1 >conftest.err
5416   rm -f conftest.er1
5417   cat conftest.err >&5
5418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419   (exit $ac_status); } >/dev/null; then
5420   if test -s conftest.err; then
5421     ac_cpp_err=$ac_cxx_preproc_warn_flag
5422     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5423   else
5424     ac_cpp_err=
5425   fi
5426 else
5427   ac_cpp_err=yes
5428 fi
5429 if test -z "$ac_cpp_err"; then
5430   :
5431 else
5432   echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.$ac_ext >&5
5434
5435   # Broken: fails on valid input.
5436 continue
5437 fi
5438
5439 rm -f conftest.err conftest.$ac_ext
5440
5441   # OK, works on sane cases.  Now check whether nonexistent headers
5442   # can be detected and how.
5443   cat >conftest.$ac_ext <<_ACEOF
5444 /* confdefs.h.  */
5445 _ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h.  */
5449 #include <ac_nonexistent.h>
5450 _ACEOF
5451 if { (ac_try="$ac_cpp conftest.$ac_ext"
5452 case "(($ac_try" in
5453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454   *) ac_try_echo=$ac_try;;
5455 esac
5456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5458   ac_status=$?
5459   grep -v '^ *+' conftest.er1 >conftest.err
5460   rm -f conftest.er1
5461   cat conftest.err >&5
5462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463   (exit $ac_status); } >/dev/null; then
5464   if test -s conftest.err; then
5465     ac_cpp_err=$ac_cxx_preproc_warn_flag
5466     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5467   else
5468     ac_cpp_err=
5469   fi
5470 else
5471   ac_cpp_err=yes
5472 fi
5473 if test -z "$ac_cpp_err"; then
5474   # Broken: success on invalid input.
5475 continue
5476 else
5477   echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5479
5480   # Passes both tests.
5481 ac_preproc_ok=:
5482 break
5483 fi
5484
5485 rm -f conftest.err conftest.$ac_ext
5486
5487 done
5488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5489 rm -f conftest.err conftest.$ac_ext
5490 if $ac_preproc_ok; then
5491   break
5492 fi
5493
5494     done
5495     ac_cv_prog_CXXCPP=$CXXCPP
5496
5497 fi
5498   CXXCPP=$ac_cv_prog_CXXCPP
5499 else
5500   ac_cv_prog_CXXCPP=$CXXCPP
5501 fi
5502 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5503 echo "${ECHO_T}$CXXCPP" >&6; }
5504 ac_preproc_ok=false
5505 for ac_cxx_preproc_warn_flag in '' yes
5506 do
5507   # Use a header file that comes with gcc, so configuring glibc
5508   # with a fresh cross-compiler works.
5509   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5510   # <limits.h> exists even on freestanding compilers.
5511   # On the NeXT, cc -E runs the code through the compiler's parser,
5512   # not just through cpp. "Syntax error" is here to catch this case.
5513   cat >conftest.$ac_ext <<_ACEOF
5514 /* confdefs.h.  */
5515 _ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h.  */
5519 #ifdef __STDC__
5520 # include <limits.h>
5521 #else
5522 # include <assert.h>
5523 #endif
5524                      Syntax error
5525 _ACEOF
5526 if { (ac_try="$ac_cpp conftest.$ac_ext"
5527 case "(($ac_try" in
5528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529   *) ac_try_echo=$ac_try;;
5530 esac
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5533   ac_status=$?
5534   grep -v '^ *+' conftest.er1 >conftest.err
5535   rm -f conftest.er1
5536   cat conftest.err >&5
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); } >/dev/null; then
5539   if test -s conftest.err; then
5540     ac_cpp_err=$ac_cxx_preproc_warn_flag
5541     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5542   else
5543     ac_cpp_err=
5544   fi
5545 else
5546   ac_cpp_err=yes
5547 fi
5548 if test -z "$ac_cpp_err"; then
5549   :
5550 else
5551   echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5553
5554   # Broken: fails on valid input.
5555 continue
5556 fi
5557
5558 rm -f conftest.err conftest.$ac_ext
5559
5560   # OK, works on sane cases.  Now check whether nonexistent headers
5561   # can be detected and how.
5562   cat >conftest.$ac_ext <<_ACEOF
5563 /* confdefs.h.  */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h.  */
5568 #include <ac_nonexistent.h>
5569 _ACEOF
5570 if { (ac_try="$ac_cpp conftest.$ac_ext"
5571 case "(($ac_try" in
5572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573   *) ac_try_echo=$ac_try;;
5574 esac
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5577   ac_status=$?
5578   grep -v '^ *+' conftest.er1 >conftest.err
5579   rm -f conftest.er1
5580   cat conftest.err >&5
5581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582   (exit $ac_status); } >/dev/null; then
5583   if test -s conftest.err; then
5584     ac_cpp_err=$ac_cxx_preproc_warn_flag
5585     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5586   else
5587     ac_cpp_err=
5588   fi
5589 else
5590   ac_cpp_err=yes
5591 fi
5592 if test -z "$ac_cpp_err"; then
5593   # Broken: success on invalid input.
5594 continue
5595 else
5596   echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5598
5599   # Passes both tests.
5600 ac_preproc_ok=:
5601 break
5602 fi
5603
5604 rm -f conftest.err conftest.$ac_ext
5605
5606 done
5607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5608 rm -f conftest.err conftest.$ac_ext
5609 if $ac_preproc_ok; then
5610   :
5611 else
5612   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5613 See \`config.log' for more details." >&5
5614 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5615 See \`config.log' for more details." >&2;}
5616    { (exit 1); exit 1; }; }
5617 fi
5618
5619 ac_ext=c
5620 ac_cpp='$CPP $CPPFLAGS'
5621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5624
5625
5626
5627
5628
5629
5630
5631   ac_ext=cpp
5632 ac_cpp='$CXXCPP $CPPFLAGS'
5633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5636
5637
5638     { echo "$as_me:$LINENO: checking whether C++ has bool" >&5
5639 echo $ECHO_N "checking whether C++ has bool... $ECHO_C" >&6; }
5640   if test "$cross_compiling" = yes; then
5641    { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5
5642 echo "$as_me: WARNING: Don't cross-compile" >&2;}
5643
5644 else
5645   cat >conftest.$ac_ext <<_ACEOF
5646 /* confdefs.h.  */
5647 _ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h.  */
5651 main() { bool b1=true; bool b2=false; }
5652 _ACEOF
5653 rm -f conftest$ac_exeext
5654 if { (ac_try="$ac_link"
5655 case "(($ac_try" in
5656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657   *) ac_try_echo=$ac_try;;
5658 esac
5659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660   (eval "$ac_link") 2>&5
5661   ac_status=$?
5662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5664   { (case "(($ac_try" in
5665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666   *) ac_try_echo=$ac_try;;
5667 esac
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669   (eval "$ac_try") 2>&5
5670   ac_status=$?
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); }; }; then
5673    { echo "$as_me:$LINENO: result: yes" >&5
5674 echo "${ECHO_T}yes" >&6; }
5675 else
5676   echo "$as_me: program exited with status $ac_status" >&5
5677 echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5679
5680 ( exit $ac_status )
5681  { echo "$as_me:$LINENO: result: no" >&5
5682 echo "${ECHO_T}no" >&6; }
5683
5684 cat >>confdefs.h <<\_ACEOF
5685 #define CXX_HAS_NO_BOOL
5686 _ACEOF
5687
5688 fi
5689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5690 fi
5691
5692
5693
5694     { echo "$as_me:$LINENO: checking whether C++ has buggy scoping in for-loops" >&5
5695 echo $ECHO_N "checking whether C++ has buggy scoping in for-loops... $ECHO_C" >&6; }
5696   cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h.  */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h.  */
5702 #include <iostream.h>
5703 int
5704 main ()
5705 {
5706
5707    for (int i=0;i<10;i++) { }
5708    for (int i=0;i<10;i++) { }
5709
5710   ;
5711   return 0;
5712 }
5713 _ACEOF
5714 rm -f conftest.$ac_objext
5715 if { (ac_try="$ac_compile"
5716 case "(($ac_try" in
5717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718   *) ac_try_echo=$ac_try;;
5719 esac
5720 eval "echo \"\$as_me:$LINENO: $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   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727   (exit $ac_status); } &&
5728          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5729   { (case "(($ac_try" in
5730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731   *) ac_try_echo=$ac_try;;
5732 esac
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734   (eval "$ac_try") 2>&5
5735   ac_status=$?
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); }; } &&
5738          { ac_try='test -s conftest.$ac_objext'
5739   { (case "(($ac_try" in
5740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741   *) ac_try_echo=$ac_try;;
5742 esac
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744   (eval "$ac_try") 2>&5
5745   ac_status=$?
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); }; }; then
5748    { echo "$as_me:$LINENO: result: no" >&5
5749 echo "${ECHO_T}no" >&6; }
5750 else
5751   echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5753
5754          { echo "$as_me:$LINENO: result: yes" >&5
5755 echo "${ECHO_T}yes" >&6; }
5756
5757 cat >>confdefs.h <<\_ACEOF
5758 #define CXX_HAS_BUGGY_FOR_LOOPS
5759 _ACEOF
5760
5761 fi
5762
5763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5764
5765     { echo "$as_me:$LINENO: checking whether user wants assertions" >&5
5766 echo $ECHO_N "checking whether user wants assertions... $ECHO_C" >&6; }
5767   # Check whether --enable-assert was given.
5768 if test "${enable_assert+set}" = set; then
5769   enableval=$enable_assert;
5770 cat >>confdefs.h <<\_ACEOF
5771 #define NDEBUG
5772 _ACEOF
5773
5774                   { echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6; }
5776 else
5777    { echo "$as_me:$LINENO: result: yes" >&5
5778 echo "${ECHO_T}yes" >&6; }
5779 fi
5780
5781
5782     { echo "$as_me:$LINENO: checking whether C++ has std::isnan" >&5
5783 echo $ECHO_N "checking whether C++ has std::isnan... $ECHO_C" >&6; }
5784   cat >conftest.$ac_ext <<_ACEOF
5785 /* confdefs.h.  */
5786 _ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h.  */
5790 #include <cmath>
5791 int
5792 main ()
5793 {
5794
5795    std::isnan(0);
5796
5797   ;
5798   return 0;
5799 }
5800 _ACEOF
5801 rm -f conftest.$ac_objext
5802 if { (ac_try="$ac_compile"
5803 case "(($ac_try" in
5804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805   *) ac_try_echo=$ac_try;;
5806 esac
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808   (eval "$ac_compile") 2>conftest.er1
5809   ac_status=$?
5810   grep -v '^ *+' conftest.er1 >conftest.err
5811   rm -f conftest.er1
5812   cat conftest.err >&5
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); } &&
5815          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5816   { (case "(($ac_try" in
5817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818   *) ac_try_echo=$ac_try;;
5819 esac
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821   (eval "$ac_try") 2>&5
5822   ac_status=$?
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); }; } &&
5825          { ac_try='test -s conftest.$ac_objext'
5826   { (case "(($ac_try" in
5827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828   *) ac_try_echo=$ac_try;;
5829 esac
5830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831   (eval "$ac_try") 2>&5
5832   ac_status=$?
5833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834   (exit $ac_status); }; }; then
5835    { echo "$as_me:$LINENO: result: yes" >&5
5836 echo "${ECHO_T}yes" >&6; }
5837
5838 cat >>confdefs.h <<\_ACEOF
5839 #define CXX_HAS_STD_ISNAN
5840 _ACEOF
5841
5842 else
5843   echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5845
5846          { echo "$as_me:$LINENO: result: no" >&5
5847 echo "${ECHO_T}no" >&6; }
5848 fi
5849
5850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851
5852       ac_ext=c
5853 ac_cpp='$CPP $CPPFLAGS'
5854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5857
5858
5859
5860
5861     { echo "$as_me:$LINENO: checking whether user wants warnings" >&5
5862 echo $ECHO_N "checking whether user wants warnings... $ECHO_C" >&6; }
5863
5864 # Check whether --with-warnings was given.
5865 if test "${with_warnings+set}" = set; then
5866   withval=$with_warnings;  lf_warnings=yes
5867 else
5868    lf_warnings=no
5869 fi
5870
5871   lf_warnings=yes # hard code for now -eb
5872   { echo "$as_me:$LINENO: result: $lf_warnings" >&5
5873 echo "${ECHO_T}$lf_warnings" >&6; }
5874
5875     cc_warning_flags="-Wall"
5876   cxx_warning_flags="-Wall -Woverloaded-virtual"
5877   if test $lf_warnings = yes
5878   then
5879     if test -n "${CC}"
5880     then
5881
5882   echo 'void f(){}' > conftest.c
5883   for i in $cc_warning_flags
5884   do
5885     { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
5886 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
5887     if test -z "`${CC} $i -c conftest.c 2>&1`"
5888     then
5889       CFLAGS="${CFLAGS} $i"
5890       { echo "$as_me:$LINENO: result: yes" >&5
5891 echo "${ECHO_T}yes" >&6; }
5892     else
5893       { echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6; }
5895     fi
5896   done
5897   rm -f conftest.c conftest.o
5898
5899     fi
5900     if test -n "${CXX}"
5901     then
5902
5903   echo 'void f(){}' > conftest.cc
5904   for i in $cxx_warning_flags
5905   do
5906     { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
5907 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
5908     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
5909     then
5910       CXXFLAGS="${CXXFLAGS} $i"
5911       { echo "$as_me:$LINENO: result: yes" >&5
5912 echo "${ECHO_T}yes" >&6; }
5913     else
5914       { echo "$as_me:$LINENO: result: no" >&5
5915 echo "${ECHO_T}no" >&6; }
5916     fi
5917   done
5918   rm -f conftest.cc conftest.o
5919
5920     fi
5921   fi
5922
5923
5924     { echo "$as_me:$LINENO: checking whether user wants gprof" >&5
5925 echo $ECHO_N "checking whether user wants gprof... $ECHO_C" >&6; }
5926
5927 # Check whether --with-gprof was given.
5928 if test "${with_gprof+set}" = set; then
5929   withval=$with_gprof;
5930 else
5931    with_gprof=no
5932 fi
5933
5934   { echo "$as_me:$LINENO: result: $with_gprof" >&5
5935 echo "${ECHO_T}$with_gprof" >&6; }
5936
5937     cc_profiling_flags="-pg"
5938   cxx_profiling_flags="-pg"
5939   ld_profiling_flags="-pg"
5940   if test $with_gprof = yes
5941   then
5942     if test -n "${CC}"
5943     then
5944
5945   echo 'void f(){}' > conftest.c
5946   for i in $cc_profiling_flags
5947   do
5948     { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
5949 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
5950     if test -z "`${CC} $i -c conftest.c 2>&1`"
5951     then
5952       CFLAGS="${CFLAGS} $i"
5953       { echo "$as_me:$LINENO: result: yes" >&5
5954 echo "${ECHO_T}yes" >&6; }
5955     else
5956       { echo "$as_me:$LINENO: result: no" >&5
5957 echo "${ECHO_T}no" >&6; }
5958     fi
5959   done
5960   rm -f conftest.c conftest.o
5961
5962     fi
5963     if test -n "${CXX}"
5964     then
5965
5966   echo 'void f(){}' > conftest.cc
5967   for i in $cxx_profiling_flags
5968   do
5969     { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
5970 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
5971     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
5972     then
5973       CXXFLAGS="${CXXFLAGS} $i"
5974       { echo "$as_me:$LINENO: result: yes" >&5
5975 echo "${ECHO_T}yes" >&6; }
5976     else
5977       { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5979     fi
5980   done
5981   rm -f conftest.cc conftest.o
5982
5983     fi
5984   fi
5985
5986
5987     { echo "$as_me:$LINENO: checking whether user wants prof" >&5
5988 echo $ECHO_N "checking whether user wants prof... $ECHO_C" >&6; }
5989
5990 # Check whether --with-prof was given.
5991 if test "${with_prof+set}" = set; then
5992   withval=$with_prof;
5993 else
5994    with_prof=no
5995 fi
5996
5997   { echo "$as_me:$LINENO: result: $with_prof" >&5
5998 echo "${ECHO_T}$with_prof" >&6; }
5999
6000     cc_profiling_flags="-p"
6001   cxx_profiling_flags="-p"
6002   ld_profiling_flags="-p"
6003   if test $with_prof = yes
6004   then
6005     if test -n "${CC}"
6006     then
6007
6008   echo 'void f(){}' > conftest.c
6009   for i in $cc_profiling_flags
6010   do
6011     { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
6012 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
6013     if test -z "`${CC} $i -c conftest.c 2>&1`"
6014     then
6015       CFLAGS="${CFLAGS} $i"
6016       { echo "$as_me:$LINENO: result: yes" >&5
6017 echo "${ECHO_T}yes" >&6; }
6018     else
6019       { echo "$as_me:$LINENO: result: no" >&5
6020 echo "${ECHO_T}no" >&6; }
6021     fi
6022   done
6023   rm -f conftest.c conftest.o
6024
6025     fi
6026     if test -n "${CXX}"
6027     then
6028
6029   echo 'void f(){}' > conftest.cc
6030   for i in $cxx_profiling_flags
6031   do
6032     { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
6033 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
6034     if test -z "`${CXX} $i -c conftest.cc 2>&1`"
6035     then
6036       CXXFLAGS="${CXXFLAGS} $i"
6037       { echo "$as_me:$LINENO: result: yes" >&5
6038 echo "${ECHO_T}yes" >&6; }
6039     else
6040       { echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6; }
6042     fi
6043   done
6044   rm -f conftest.cc conftest.o
6045
6046     fi
6047   fi
6048
6049 # By default we simply use the C compiler to build assembly code.
6050
6051 test "${CCAS+set}" = set || CCAS=$CC
6052 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6053
6054
6055
6056 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6057 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6058 LN_S=$as_ln_s
6059 if test "$LN_S" = "ln -s"; then
6060   { echo "$as_me:$LINENO: result: yes" >&5
6061 echo "${ECHO_T}yes" >&6; }
6062 else
6063   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6064 echo "${ECHO_T}no, using $LN_S" >&6; }
6065 fi
6066
6067 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6068 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
6069 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6070 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   cat >conftest.make <<\_ACEOF
6074 SHELL = /bin/sh
6075 all:
6076         @echo '@@@%%%=$(MAKE)=@@@%%%'
6077 _ACEOF
6078 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6079 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6080   *@@@%%%=?*=@@@%%%*)
6081     eval ac_cv_prog_make_${ac_make}_set=yes;;
6082   *)
6083     eval ac_cv_prog_make_${ac_make}_set=no;;
6084 esac
6085 rm -f conftest.make
6086 fi
6087 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6088   { echo "$as_me:$LINENO: result: yes" >&5
6089 echo "${ECHO_T}yes" >&6; }
6090   SET_MAKE=
6091 else
6092   { echo "$as_me:$LINENO: result: no" >&5
6093 echo "${ECHO_T}no" >&6; }
6094   SET_MAKE="MAKE=${MAKE-make}"
6095 fi
6096
6097 # Find a good install program.  We prefer a C program (faster),
6098 # so one script is as good as another.  But avoid the broken or
6099 # incompatible versions:
6100 # SysV /etc/install, /usr/sbin/install
6101 # SunOS /usr/etc/install
6102 # IRIX /sbin/install
6103 # AIX /bin/install
6104 # AmigaOS /C/install, which installs bootblocks on floppy discs
6105 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6106 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6107 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6108 # OS/2's system install, which has a completely different semantic
6109 # ./install, which can be erroneously created by make from ./install.sh.
6110 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6111 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6112 if test -z "$INSTALL"; then
6113 if test "${ac_cv_path_install+set}" = set; then
6114   echo $ECHO_N "(cached) $ECHO_C" >&6
6115 else
6116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6118 do
6119   IFS=$as_save_IFS
6120   test -z "$as_dir" && as_dir=.
6121   # Account for people who put trailing slashes in PATH elements.
6122 case $as_dir/ in
6123   ./ | .// | /cC/* | \
6124   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6125   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6126   /usr/ucb/* ) ;;
6127   *)
6128     # OSF1 and SCO ODT 3.0 have their own names for install.
6129     # Don't use installbsd from OSF since it installs stuff as root
6130     # by default.
6131     for ac_prog in ginstall scoinst install; do
6132       for ac_exec_ext in '' $ac_executable_extensions; do
6133         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6134           if test $ac_prog = install &&
6135             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6136             # AIX install.  It has an incompatible calling convention.
6137             :
6138           elif test $ac_prog = install &&
6139             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6140             # program-specific install script used by HP pwplus--don't use.
6141             :
6142           else
6143             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6144             break 3
6145           fi
6146         fi
6147       done
6148     done
6149     ;;
6150 esac
6151 done
6152 IFS=$as_save_IFS
6153
6154
6155 fi
6156   if test "${ac_cv_path_install+set}" = set; then
6157     INSTALL=$ac_cv_path_install
6158   else
6159     # As a last resort, use the slow shell script.  Don't cache a
6160     # value for INSTALL within a source directory, because that will
6161     # break other packages using the cache if that directory is
6162     # removed, or if the value is a relative name.
6163     INSTALL=$ac_install_sh
6164   fi
6165 fi
6166 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6167 echo "${ECHO_T}$INSTALL" >&6; }
6168
6169 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6170 # It thinks the first close brace ends the variable substitution.
6171 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6172
6173 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6174
6175 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6176
6177 # Extract the first word of "rm", so it can be a program name with args.
6178 set dummy rm; ac_word=$2
6179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181 if test "${ac_cv_path_RM_PROG+set}" = set; then
6182   echo $ECHO_N "(cached) $ECHO_C" >&6
6183 else
6184   case $RM_PROG in
6185   [\\/]* | ?:[\\/]*)
6186   ac_cv_path_RM_PROG="$RM_PROG" # Let the user override the test with a path.
6187   ;;
6188   *)
6189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in $PATH
6191 do
6192   IFS=$as_save_IFS
6193   test -z "$as_dir" && as_dir=.
6194   for ac_exec_ext in '' $ac_executable_extensions; do
6195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6196     ac_cv_path_RM_PROG="$as_dir/$ac_word$ac_exec_ext"
6197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6198     break 2
6199   fi
6200 done
6201 done
6202 IFS=$as_save_IFS
6203
6204   ;;
6205 esac
6206 fi
6207 RM_PROG=$ac_cv_path_RM_PROG
6208 if test -n "$RM_PROG"; then
6209   { echo "$as_me:$LINENO: result: $RM_PROG" >&5
6210 echo "${ECHO_T}$RM_PROG" >&6; }
6211 else
6212   { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6214 fi
6215
6216
6217
6218
6219
6220 # Check whether --enable-shared was given.
6221 if test "${enable_shared+set}" = set; then
6222   enableval=$enable_shared; p=${PACKAGE-default}
6223     case $enableval in
6224     yes) enable_shared=yes ;;
6225     no) enable_shared=no ;;
6226     *)
6227       enable_shared=no
6228       # Look at the argument we got.  We use all the common list separators.
6229       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6230       for pkg in $enableval; do
6231         IFS="$lt_save_ifs"
6232         if test "X$pkg" = "X$p"; then
6233           enable_shared=yes
6234         fi
6235       done
6236       IFS="$lt_save_ifs"
6237       ;;
6238     esac
6239 else
6240   enable_shared=yes
6241 fi
6242
6243         # Check whether --enable-static was given.
6244 if test "${enable_static+set}" = set; then
6245   enableval=$enable_static; p=${PACKAGE-default}
6246     case $enableval in
6247     yes) enable_static=yes ;;
6248     no) enable_static=no ;;
6249     *)
6250      enable_static=no
6251       # Look at the argument we got.  We use all the common list separators.
6252       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6253       for pkg in $enableval; do
6254         IFS="$lt_save_ifs"
6255         if test "X$pkg" = "X$p"; then
6256           enable_static=yes
6257         fi
6258       done
6259       IFS="$lt_save_ifs"
6260       ;;
6261     esac
6262 else
6263   enable_static=no
6264 fi
6265
6266
6267         # Check whether --enable-fast-install was given.
6268 if test "${enable_fast_install+set}" = set; then
6269   enableval=$enable_fast_install; p=${PACKAGE-default}
6270     case $enableval in
6271     yes) enable_fast_install=yes ;;
6272     no) enable_fast_install=no ;;
6273     *)
6274       enable_fast_install=no
6275       # Look at the argument we got.  We use all the common list separators.
6276       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6277       for pkg in $enableval; do
6278         IFS="$lt_save_ifs"
6279         if test "X$pkg" = "X$p"; then
6280           enable_fast_install=yes
6281         fi
6282       done
6283       IFS="$lt_save_ifs"
6284       ;;
6285     esac
6286 else
6287   enable_fast_install=yes
6288 fi
6289
6290
6291 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6292 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6293 if test "${lt_cv_path_SED+set}" = set; then
6294   echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296   # Loop through the user's path and test for sed and gsed.
6297 # Then use that list of sed's as ones to test for truncation.
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301   IFS=$as_save_IFS
6302   test -z "$as_dir" && as_dir=.
6303   for lt_ac_prog in sed gsed; do
6304     for ac_exec_ext in '' $ac_executable_extensions; do
6305       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6306         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6307       fi
6308     done
6309   done
6310 done
6311 lt_ac_max=0
6312 lt_ac_count=0
6313 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6314 # along with /bin/sed that truncates output.
6315 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6316   test ! -f $lt_ac_sed && continue
6317   cat /dev/null > conftest.in
6318   lt_ac_count=0
6319   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6320   # Check for GNU sed and select it if it is found.
6321   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6322     lt_cv_path_SED=$lt_ac_sed
6323     break
6324   fi
6325   while true; do
6326     cat conftest.in conftest.in >conftest.tmp
6327     mv conftest.tmp conftest.in
6328     cp conftest.in conftest.nl
6329     echo >>conftest.nl
6330     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6331     cmp -s conftest.out conftest.nl || break
6332     # 10000 chars as input seems more than enough
6333     test $lt_ac_count -gt 10 && break
6334     lt_ac_count=`expr $lt_ac_count + 1`
6335     if test $lt_ac_count -gt $lt_ac_max; then
6336       lt_ac_max=$lt_ac_count
6337       lt_cv_path_SED=$lt_ac_sed
6338     fi
6339   done
6340 done
6341
6342 fi
6343
6344 SED=$lt_cv_path_SED
6345 { echo "$as_me:$LINENO: result: $SED" >&5
6346 echo "${ECHO_T}$SED" >&6; }
6347
6348
6349 # Check whether --with-gnu-ld was given.
6350 if test "${with_gnu_ld+set}" = set; then
6351   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6352 else
6353   with_gnu_ld=no
6354 fi
6355
6356 ac_prog=ld
6357 if test "$GCC" = yes; then
6358   # Check if gcc -print-prog-name=ld gives a path.
6359   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6360 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6361   case $host in
6362   *-*-mingw*)
6363     # gcc leaves a trailing carriage return which upsets mingw
6364     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6365   *)
6366     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6367   esac
6368   case $ac_prog in
6369     # Accept absolute paths.
6370     [\\/]* | ?:[\\/]*)
6371       re_direlt='/[^/][^/]*/\.\./'
6372       # Canonicalize the pathname of ld
6373       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6374       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6375         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6376       done
6377       test -z "$LD" && LD="$ac_prog"
6378       ;;
6379   "")
6380     # If it fails, then pretend we aren't using GCC.
6381     ac_prog=ld
6382     ;;
6383   *)
6384     # If it is relative, then search for the first ld in PATH.
6385     with_gnu_ld=unknown
6386     ;;
6387   esac
6388 elif test "$with_gnu_ld" = yes; then
6389   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6390 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6391 else
6392   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6393 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6394 fi
6395 if test "${lt_cv_path_LD+set}" = set; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398   if test -z "$LD"; then
6399   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6400   for ac_dir in $PATH; do
6401     IFS="$lt_save_ifs"
6402     test -z "$ac_dir" && ac_dir=.
6403     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6404       lt_cv_path_LD="$ac_dir/$ac_prog"
6405       # Check to see if the program is GNU ld.  I'd rather use --version,
6406       # but apparently some variants of GNU ld only accept -v.
6407       # Break only if it was the GNU/non-GNU ld that we prefer.
6408       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6409       *GNU* | *'with BFD'*)
6410         test "$with_gnu_ld" != no && break
6411         ;;
6412       *)
6413         test "$with_gnu_ld" != yes && break
6414         ;;
6415       esac
6416     fi
6417   done
6418   IFS="$lt_save_ifs"
6419 else
6420   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6421 fi
6422 fi
6423
6424 LD="$lt_cv_path_LD"
6425 if test -n "$LD"; then
6426   { echo "$as_me:$LINENO: result: $LD" >&5
6427 echo "${ECHO_T}$LD" >&6; }
6428 else
6429   { echo "$as_me:$LINENO: result: no" >&5
6430 echo "${ECHO_T}no" >&6; }
6431 fi
6432 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6433 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6434    { (exit 1); exit 1; }; }
6435 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6436 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6437 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6438   echo $ECHO_N "(cached) $ECHO_C" >&6
6439 else
6440   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6441 case `$LD -v 2>&1 </dev/null` in
6442 *GNU* | *'with BFD'*)
6443   lt_cv_prog_gnu_ld=yes
6444   ;;
6445 *)
6446   lt_cv_prog_gnu_ld=no
6447   ;;
6448 esac
6449 fi
6450 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6451 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6452 with_gnu_ld=$lt_cv_prog_gnu_ld
6453
6454
6455 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6456 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6457 if test "${lt_cv_ld_reload_flag+set}" = set; then
6458   echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460   lt_cv_ld_reload_flag='-r'
6461 fi
6462 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6463 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6464 reload_flag=$lt_cv_ld_reload_flag
6465 case $reload_flag in
6466 "" | " "*) ;;
6467 *) reload_flag=" $reload_flag" ;;
6468 esac
6469 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6470 case $host_os in
6471   darwin*)
6472     if test "$GCC" = yes; then
6473       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6474     else
6475       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6476     fi
6477     ;;
6478 esac
6479
6480 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6481 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6482 if test "${lt_cv_path_NM+set}" = set; then
6483   echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485   if test -n "$NM"; then
6486   # Let the user override the test.
6487   lt_cv_path_NM="$NM"
6488 else
6489   lt_nm_to_check="${ac_tool_prefix}nm"
6490   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6491     lt_nm_to_check="$lt_nm_to_check nm"
6492   fi
6493   for lt_tmp_nm in $lt_nm_to_check; do
6494     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6495     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6496       IFS="$lt_save_ifs"
6497       test -z "$ac_dir" && ac_dir=.
6498       tmp_nm="$ac_dir/$lt_tmp_nm"
6499       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6500         # Check to see if the nm accepts a BSD-compat flag.
6501         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6502         #   nm: unknown option "B" ignored
6503         # Tru64's nm complains that /dev/null is an invalid object file
6504         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6505         */dev/null* | *'Invalid file or object type'*)
6506           lt_cv_path_NM="$tmp_nm -B"
6507           break
6508           ;;
6509         *)
6510           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6511           */dev/null*)
6512             lt_cv_path_NM="$tmp_nm -p"
6513             break
6514             ;;
6515           *)
6516             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6517             continue # so that we can try to find one that supports BSD flags
6518             ;;
6519           esac
6520           ;;
6521         esac
6522       fi
6523     done
6524     IFS="$lt_save_ifs"
6525   done
6526   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6527 fi
6528 fi
6529 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6530 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6531 NM="$lt_cv_path_NM"
6532
6533 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6534 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6535 if test "${lt_cv_deplibs_check_method+set}" = set; then
6536   echo $ECHO_N "(cached) $ECHO_C" >&6
6537 else
6538   lt_cv_file_magic_cmd='$MAGIC_CMD'
6539 lt_cv_file_magic_test_file=
6540 lt_cv_deplibs_check_method='unknown'
6541 # Need to set the preceding variable on all platforms that support
6542 # interlibrary dependencies.
6543 # 'none' -- dependencies not supported.
6544 # `unknown' -- same as none, but documents that we really don't know.
6545 # 'pass_all' -- all dependencies passed with no checks.
6546 # 'test_compile' -- check by making test program.
6547 # 'file_magic [[regex]]' -- check by looking for files in library path
6548 # which responds to the $file_magic_cmd with a given extended regex.
6549 # If you have `file' or equivalent on your system and you're not sure
6550 # whether `pass_all' will *always* work, you probably want this one.
6551
6552 case $host_os in
6553 aix4* | aix5*)
6554   lt_cv_deplibs_check_method=pass_all
6555   ;;
6556
6557 beos*)
6558   lt_cv_deplibs_check_method=pass_all
6559   ;;
6560
6561 bsdi[45]*)
6562   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6563   lt_cv_file_magic_cmd='/usr/bin/file -L'
6564   lt_cv_file_magic_test_file=/shlib/libc.so
6565   ;;
6566
6567 cygwin*)
6568   # func_win32_libid is a shell function defined in ltmain.sh
6569   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6570   lt_cv_file_magic_cmd='func_win32_libid'
6571   ;;
6572
6573 mingw* | pw32*)
6574   # Base MSYS/MinGW do not provide the 'file' command needed by
6575   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6576   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6577   lt_cv_file_magic_cmd='$OBJDUMP -f'
6578   ;;
6579
6580 darwin* | rhapsody*)
6581   lt_cv_deplibs_check_method=pass_all
6582   ;;
6583
6584 freebsd* | dragonfly*)
6585   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6586     case $host_cpu in
6587     i*86 )
6588       # Not sure whether the presence of OpenBSD here was a mistake.
6589       # Let's accept both of them until this is cleared up.
6590       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6591       lt_cv_file_magic_cmd=/usr/bin/file
6592       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6593       ;;
6594     esac
6595   else
6596     lt_cv_deplibs_check_method=pass_all
6597   fi
6598   ;;
6599
6600 gnu*)
6601   lt_cv_deplibs_check_method=pass_all
6602   ;;
6603
6604 hpux10.20* | hpux11*)
6605   lt_cv_file_magic_cmd=/usr/bin/file
6606   case $host_cpu in
6607   ia64*)
6608     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6609     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6610     ;;
6611   hppa*64*)
6612     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]'
6613     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6614     ;;
6615   *)
6616     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6617     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6618     ;;
6619   esac
6620   ;;
6621
6622 interix3*)
6623   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6624   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6625   ;;
6626
6627 irix5* | irix6* | nonstopux*)
6628   case $LD in
6629   *-32|*"-32 ") libmagic=32-bit;;
6630   *-n32|*"-n32 ") libmagic=N32;;
6631   *-64|*"-64 ") libmagic=64-bit;;
6632   *) libmagic=never-match;;
6633   esac
6634   lt_cv_deplibs_check_method=pass_all
6635   ;;
6636
6637 # This must be Linux ELF.
6638 linux* | k*bsd*-gnu)
6639   lt_cv_deplibs_check_method=pass_all
6640   ;;
6641
6642 netbsd* | netbsdelf*-gnu)
6643   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6644     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6645   else
6646     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6647   fi
6648   ;;
6649
6650 newos6*)
6651   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6652   lt_cv_file_magic_cmd=/usr/bin/file
6653   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6654   ;;
6655
6656 nto-qnx*)
6657   lt_cv_deplibs_check_method=unknown
6658   ;;
6659
6660 openbsd*)
6661   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6662     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6663   else
6664     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6665   fi
6666   ;;
6667
6668 osf3* | osf4* | osf5*)
6669   lt_cv_deplibs_check_method=pass_all
6670   ;;
6671
6672 solaris*)
6673   lt_cv_deplibs_check_method=pass_all
6674   ;;
6675
6676 sysv4 | sysv4.3*)
6677   case $host_vendor in
6678   motorola)
6679     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]'
6680     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6681     ;;
6682   ncr)
6683     lt_cv_deplibs_check_method=pass_all
6684     ;;
6685   sequent)
6686     lt_cv_file_magic_cmd='/bin/file'
6687     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6688     ;;
6689   sni)
6690     lt_cv_file_magic_cmd='/bin/file'
6691     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6692     lt_cv_file_magic_test_file=/lib/libc.so
6693     ;;
6694   siemens)
6695     lt_cv_deplibs_check_method=pass_all
6696     ;;
6697   pc)
6698     lt_cv_deplibs_check_method=pass_all
6699     ;;
6700   esac
6701   ;;
6702
6703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6704   lt_cv_deplibs_check_method=pass_all
6705   ;;
6706 esac
6707
6708 fi
6709 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6710 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6711 file_magic_cmd=$lt_cv_file_magic_cmd
6712 deplibs_check_method=$lt_cv_deplibs_check_method
6713 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6714
6715
6716
6717
6718 # If no C compiler was specified, use CC.
6719 LTCC=${LTCC-"$CC"}
6720
6721 # If no C compiler flags were specified, use CFLAGS.
6722 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6723
6724 # Allow CC to be a program name with arguments.
6725 compiler=$CC
6726
6727 # Check whether --enable-libtool-lock was given.
6728 if test "${enable_libtool_lock+set}" = set; then
6729   enableval=$enable_libtool_lock;
6730 fi
6731
6732 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6733
6734 # Some flags need to be propagated to the compiler or linker for good
6735 # libtool support.
6736 case $host in
6737 ia64-*-hpux*)
6738   # Find out which ABI we are using.
6739   echo 'int i;' > conftest.$ac_ext
6740   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6741   (eval $ac_compile) 2>&5
6742   ac_status=$?
6743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744   (exit $ac_status); }; then
6745     case `/usr/bin/file conftest.$ac_objext` in
6746     *ELF-32*)
6747       HPUX_IA64_MODE="32"
6748       ;;
6749     *ELF-64*)
6750       HPUX_IA64_MODE="64"
6751       ;;
6752     esac
6753   fi
6754   rm -rf conftest*
6755   ;;
6756 *-*-irix6*)
6757   # Find out which ABI we are using.
6758   echo '#line 6758 "configure"' > conftest.$ac_ext
6759   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760   (eval $ac_compile) 2>&5
6761   ac_status=$?
6762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763   (exit $ac_status); }; then
6764    if test "$lt_cv_prog_gnu_ld" = yes; then
6765     case `/usr/bin/file conftest.$ac_objext` in
6766     *32-bit*)
6767       LD="${LD-ld} -melf32bsmip"
6768       ;;
6769     *N32*)
6770       LD="${LD-ld} -melf32bmipn32"
6771       ;;
6772     *64-bit*)
6773       LD="${LD-ld} -melf64bmip"
6774       ;;
6775     esac
6776    else
6777     case `/usr/bin/file conftest.$ac_objext` in
6778     *32-bit*)
6779       LD="${LD-ld} -32"
6780       ;;
6781     *N32*)
6782       LD="${LD-ld} -n32"
6783       ;;
6784     *64-bit*)
6785       LD="${LD-ld} -64"
6786       ;;
6787     esac
6788    fi
6789   fi
6790   rm -rf conftest*
6791   ;;
6792
6793 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6794   # Find out which ABI we are using.
6795   echo 'int i;' > conftest.$ac_ext
6796   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6797   (eval $ac_compile) 2>&5
6798   ac_status=$?
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); }; then
6801     case `/usr/bin/file conftest.o` in
6802     *32-bit*)
6803       case $host in
6804         x86_64-*linux*)
6805           LD="${LD-ld} -m elf_i386"
6806           ;;
6807         ppc64-*linux*|powerpc64-*linux*)
6808           LD="${LD-ld} -m elf32ppclinux"
6809           ;;
6810         s390x-*linux*)
6811           LD="${LD-ld} -m elf_s390"
6812           ;;
6813         sparc64-*linux*)
6814           LD="${LD-ld} -m elf32_sparc"
6815           ;;
6816       esac
6817       ;;
6818     *64-bit*)
6819       case $host in
6820         x86_64-*linux*)
6821           LD="${LD-ld} -m elf_x86_64"
6822           ;;
6823         ppc*-*linux*|powerpc*-*linux*)
6824           LD="${LD-ld} -m elf64ppc"
6825           ;;
6826         s390*-*linux*)
6827           LD="${LD-ld} -m elf64_s390"
6828           ;;
6829         sparc*-*linux*)
6830           LD="${LD-ld} -m elf64_sparc"
6831           ;;
6832       esac
6833       ;;
6834     esac
6835   fi
6836   rm -rf conftest*
6837   ;;
6838
6839 *-*-sco3.2v5*)
6840   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6841   SAVE_CFLAGS="$CFLAGS"
6842   CFLAGS="$CFLAGS -belf"
6843   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6844 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6845 if test "${lt_cv_cc_needs_belf+set}" = set; then
6846   echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848   ac_ext=c
6849 ac_cpp='$CPP $CPPFLAGS'
6850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6853
6854      cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h.  */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h.  */
6860
6861 int
6862 main ()
6863 {
6864
6865   ;
6866   return 0;
6867 }
6868 _ACEOF
6869 rm -f conftest.$ac_objext conftest$ac_exeext
6870 if { (ac_try="$ac_link"
6871 case "(($ac_try" in
6872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6873   *) ac_try_echo=$ac_try;;
6874 esac
6875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6876   (eval "$ac_link") 2>conftest.er1
6877   ac_status=$?
6878   grep -v '^ *+' conftest.er1 >conftest.err
6879   rm -f conftest.er1
6880   cat conftest.err >&5
6881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882   (exit $ac_status); } &&
6883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6884   { (case "(($ac_try" in
6885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886   *) ac_try_echo=$ac_try;;
6887 esac
6888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6889   (eval "$ac_try") 2>&5
6890   ac_status=$?
6891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892   (exit $ac_status); }; } &&
6893          { ac_try='test -s conftest$ac_exeext'
6894   { (case "(($ac_try" in
6895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6896   *) ac_try_echo=$ac_try;;
6897 esac
6898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6899   (eval "$ac_try") 2>&5
6900   ac_status=$?
6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); }; }; then
6903   lt_cv_cc_needs_belf=yes
6904 else
6905   echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.$ac_ext >&5
6907
6908         lt_cv_cc_needs_belf=no
6909 fi
6910
6911 rm -f core conftest.err conftest.$ac_objext \
6912       conftest$ac_exeext conftest.$ac_ext
6913      ac_ext=c
6914 ac_cpp='$CPP $CPPFLAGS'
6915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6918
6919 fi
6920 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6921 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6922   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6923     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6924     CFLAGS="$SAVE_CFLAGS"
6925   fi
6926   ;;
6927 sparc*-*solaris*)
6928   # Find out which ABI we are using.
6929   echo 'int i;' > conftest.$ac_ext
6930   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6931   (eval $ac_compile) 2>&5
6932   ac_status=$?
6933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934   (exit $ac_status); }; then
6935     case `/usr/bin/file conftest.o` in
6936     *64-bit*)
6937       case $lt_cv_prog_gnu_ld in
6938       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6939       *)    LD="${LD-ld} -64" ;;
6940       esac
6941       ;;
6942     esac
6943   fi
6944   rm -rf conftest*
6945   ;;
6946
6947 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6948   if test -n "$ac_tool_prefix"; then
6949   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6950 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6954   echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956   if test -n "$DLLTOOL"; then
6957   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6961 do
6962   IFS=$as_save_IFS
6963   test -z "$as_dir" && as_dir=.
6964   for ac_exec_ext in '' $ac_executable_extensions; do
6965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6966     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6968     break 2
6969   fi
6970 done
6971 done
6972 IFS=$as_save_IFS
6973
6974 fi
6975 fi
6976 DLLTOOL=$ac_cv_prog_DLLTOOL
6977 if test -n "$DLLTOOL"; then
6978   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6979 echo "${ECHO_T}$DLLTOOL" >&6; }
6980 else
6981   { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6983 fi
6984
6985
6986 fi
6987 if test -z "$ac_cv_prog_DLLTOOL"; then
6988   ac_ct_DLLTOOL=$DLLTOOL
6989   # Extract the first word of "dlltool", so it can be a program name with args.
6990 set dummy dlltool; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6994   echo $ECHO_N "(cached) $ECHO_C" >&6
6995 else
6996   if test -n "$ac_ct_DLLTOOL"; then
6997   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6998 else
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002   IFS=$as_save_IFS
7003   test -z "$as_dir" && as_dir=.
7004   for ac_exec_ext in '' $ac_executable_extensions; do
7005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7006     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008     break 2
7009   fi
7010 done
7011 done
7012 IFS=$as_save_IFS
7013
7014 fi
7015 fi
7016 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7017 if test -n "$ac_ct_DLLTOOL"; then
7018   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7019 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
7020 else
7021   { echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6; }
7023 fi
7024
7025   if test "x$ac_ct_DLLTOOL" = x; then
7026     DLLTOOL="false"
7027   else
7028     case $cross_compiling:$ac_tool_warned in
7029 yes:)
7030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7031 whose name does not start with the host triplet.  If you think this
7032 configuration is useful to you, please write to autoconf@gnu.org." >&5
7033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7034 whose name does not start with the host triplet.  If you think this
7035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7036 ac_tool_warned=yes ;;
7037 esac
7038     DLLTOOL=$ac_ct_DLLTOOL
7039   fi
7040 else
7041   DLLTOOL="$ac_cv_prog_DLLTOOL"
7042 fi
7043
7044   if test -n "$ac_tool_prefix"; then
7045   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7046 set dummy ${ac_tool_prefix}as; ac_word=$2
7047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7049 if test "${ac_cv_prog_AS+set}" = set; then
7050   echo $ECHO_N "(cached) $ECHO_C" >&6
7051 else
7052   if test -n "$AS"; then
7053   ac_cv_prog_AS="$AS" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058   IFS=$as_save_IFS
7059   test -z "$as_dir" && as_dir=.
7060   for ac_exec_ext in '' $ac_executable_extensions; do
7061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7062     ac_cv_prog_AS="${ac_tool_prefix}as"
7063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064     break 2
7065   fi
7066 done
7067 done
7068 IFS=$as_save_IFS
7069
7070 fi
7071 fi
7072 AS=$ac_cv_prog_AS
7073 if test -n "$AS"; then
7074   { echo "$as_me:$LINENO: result: $AS" >&5
7075 echo "${ECHO_T}$AS" >&6; }
7076 else
7077   { echo "$as_me:$LINENO: result: no" >&5
7078 echo "${ECHO_T}no" >&6; }
7079 fi
7080
7081
7082 fi
7083 if test -z "$ac_cv_prog_AS"; then
7084   ac_ct_AS=$AS
7085   # Extract the first word of "as", so it can be a program name with args.
7086 set dummy as; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7090   echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092   if test -n "$ac_ct_AS"; then
7093   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7094 else
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7097 do
7098   IFS=$as_save_IFS
7099   test -z "$as_dir" && as_dir=.
7100   for ac_exec_ext in '' $ac_executable_extensions; do
7101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7102     ac_cv_prog_ac_ct_AS="as"
7103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104     break 2
7105   fi
7106 done
7107 done
7108 IFS=$as_save_IFS
7109
7110 fi
7111 fi
7112 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7113 if test -n "$ac_ct_AS"; then
7114   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7115 echo "${ECHO_T}$ac_ct_AS" >&6; }
7116 else
7117   { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7119 fi
7120
7121   if test "x$ac_ct_AS" = x; then
7122     AS="false"
7123   else
7124     case $cross_compiling:$ac_tool_warned in
7125 yes:)
7126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7127 whose name does not start with the host triplet.  If you think this
7128 configuration is useful to you, please write to autoconf@gnu.org." >&5
7129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7130 whose name does not start with the host triplet.  If you think this
7131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7132 ac_tool_warned=yes ;;
7133 esac
7134     AS=$ac_ct_AS
7135   fi
7136 else
7137   AS="$ac_cv_prog_AS"
7138 fi
7139
7140   if test -n "$ac_tool_prefix"; then
7141   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7142 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7145 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7146   echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148   if test -n "$OBJDUMP"; then
7149   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7150 else
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7153 do
7154   IFS=$as_save_IFS
7155   test -z "$as_dir" && as_dir=.
7156   for ac_exec_ext in '' $ac_executable_extensions; do
7157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7158     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160     break 2
7161   fi
7162 done
7163 done
7164 IFS=$as_save_IFS
7165
7166 fi
7167 fi
7168 OBJDUMP=$ac_cv_prog_OBJDUMP
7169 if test -n "$OBJDUMP"; then
7170   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7171 echo "${ECHO_T}$OBJDUMP" >&6; }
7172 else
7173   { echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6; }
7175 fi
7176
7177
7178 fi
7179 if test -z "$ac_cv_prog_OBJDUMP"; then
7180   ac_ct_OBJDUMP=$OBJDUMP
7181   # Extract the first word of "objdump", so it can be a program name with args.
7182 set dummy objdump; ac_word=$2
7183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7186   echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188   if test -n "$ac_ct_OBJDUMP"; then
7189   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7190 else
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7193 do
7194   IFS=$as_save_IFS
7195   test -z "$as_dir" && as_dir=.
7196   for ac_exec_ext in '' $ac_executable_extensions; do
7197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7198     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200     break 2
7201   fi
7202 done
7203 done
7204 IFS=$as_save_IFS
7205
7206 fi
7207 fi
7208 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7209 if test -n "$ac_ct_OBJDUMP"; then
7210   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7211 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
7212 else
7213   { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7215 fi
7216
7217   if test "x$ac_ct_OBJDUMP" = x; then
7218     OBJDUMP="false"
7219   else
7220     case $cross_compiling:$ac_tool_warned in
7221 yes:)
7222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7223 whose name does not start with the host triplet.  If you think this
7224 configuration is useful to you, please write to autoconf@gnu.org." >&5
7225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7226 whose name does not start with the host triplet.  If you think this
7227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7228 ac_tool_warned=yes ;;
7229 esac
7230     OBJDUMP=$ac_ct_OBJDUMP
7231   fi
7232 else
7233   OBJDUMP="$ac_cv_prog_OBJDUMP"
7234 fi
7235
7236   ;;
7237
7238 esac
7239
7240 need_locks="$enable_libtool_lock"
7241
7242
7243
7244 for ac_header in dlfcn.h
7245 do
7246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7248   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7251   echo $ECHO_N "(cached) $ECHO_C" >&6
7252 fi
7253 ac_res=`eval echo '${'$as_ac_Header'}'`
7254                { echo "$as_me:$LINENO: result: $ac_res" >&5
7255 echo "${ECHO_T}$ac_res" >&6; }
7256 else
7257   # Is the header compilable?
7258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7260 cat >conftest.$ac_ext <<_ACEOF
7261 /* confdefs.h.  */
7262 _ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h.  */
7266 $ac_includes_default
7267 #include <$ac_header>
7268 _ACEOF
7269 rm -f conftest.$ac_objext
7270 if { (ac_try="$ac_compile"
7271 case "(($ac_try" in
7272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273   *) ac_try_echo=$ac_try;;
7274 esac
7275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276   (eval "$ac_compile") 2>conftest.er1
7277   ac_status=$?
7278   grep -v '^ *+' conftest.er1 >conftest.err
7279   rm -f conftest.er1
7280   cat conftest.err >&5
7281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282   (exit $ac_status); } &&
7283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7284   { (case "(($ac_try" in
7285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7286   *) ac_try_echo=$ac_try;;
7287 esac
7288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7289   (eval "$ac_try") 2>&5
7290   ac_status=$?
7291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292   (exit $ac_status); }; } &&
7293          { ac_try='test -s conftest.$ac_objext'
7294   { (case "(($ac_try" in
7295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296   *) ac_try_echo=$ac_try;;
7297 esac
7298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7299   (eval "$ac_try") 2>&5
7300   ac_status=$?
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); }; }; then
7303   ac_header_compiler=yes
7304 else
7305   echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7307
7308         ac_header_compiler=no
7309 fi
7310
7311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7313 echo "${ECHO_T}$ac_header_compiler" >&6; }
7314
7315 # Is the header present?
7316 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7318 cat >conftest.$ac_ext <<_ACEOF
7319 /* confdefs.h.  */
7320 _ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h.  */
7324 #include <$ac_header>
7325 _ACEOF
7326 if { (ac_try="$ac_cpp conftest.$ac_ext"
7327 case "(($ac_try" in
7328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7329   *) ac_try_echo=$ac_try;;
7330 esac
7331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7332   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7333   ac_status=$?
7334   grep -v '^ *+' conftest.er1 >conftest.err
7335   rm -f conftest.er1
7336   cat conftest.err >&5
7337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338   (exit $ac_status); } >/dev/null; then
7339   if test -s conftest.err; then
7340     ac_cpp_err=$ac_c_preproc_warn_flag
7341     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7342   else
7343     ac_cpp_err=
7344   fi
7345 else
7346   ac_cpp_err=yes
7347 fi
7348 if test -z "$ac_cpp_err"; then
7349   ac_header_preproc=yes
7350 else
7351   echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7353
7354   ac_header_preproc=no
7355 fi
7356
7357 rm -f conftest.err conftest.$ac_ext
7358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7359 echo "${ECHO_T}$ac_header_preproc" >&6; }
7360
7361 # So?  What about this header?
7362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7363   yes:no: )
7364     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7366     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7368     ac_header_preproc=yes
7369     ;;
7370   no:yes:* )
7371     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7373     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7374 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7375     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7377     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7378 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7379     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7381     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7383
7384     ;;
7385 esac
7386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7389   echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391   eval "$as_ac_Header=\$ac_header_preproc"
7392 fi
7393 ac_res=`eval echo '${'$as_ac_Header'}'`
7394                { echo "$as_me:$LINENO: result: $ac_res" >&5
7395 echo "${ECHO_T}$ac_res" >&6; }
7396
7397 fi
7398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7399   cat >>confdefs.h <<_ACEOF
7400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7401 _ACEOF
7402
7403 fi
7404
7405 done
7406
7407
7408
7409 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7410     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7411     (test "X$CXX" != "Xg++"))) ; then
7412   ac_ext=cpp
7413 ac_cpp='$CXXCPP $CPPFLAGS'
7414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7417 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7418 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7419 if test -z "$CXXCPP"; then
7420   if test "${ac_cv_prog_CXXCPP+set}" = set; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423       # Double quotes because CXXCPP needs to be expanded
7424     for CXXCPP in "$CXX -E" "/lib/cpp"
7425     do
7426       ac_preproc_ok=false
7427 for ac_cxx_preproc_warn_flag in '' yes
7428 do
7429   # Use a header file that comes with gcc, so configuring glibc
7430   # with a fresh cross-compiler works.
7431   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7432   # <limits.h> exists even on freestanding compilers.
7433   # On the NeXT, cc -E runs the code through the compiler's parser,
7434   # not just through cpp. "Syntax error" is here to catch this case.
7435   cat >conftest.$ac_ext <<_ACEOF
7436 /* confdefs.h.  */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h.  */
7441 #ifdef __STDC__
7442 # include <limits.h>
7443 #else
7444 # include <assert.h>
7445 #endif
7446                      Syntax error
7447 _ACEOF
7448 if { (ac_try="$ac_cpp conftest.$ac_ext"
7449 case "(($ac_try" in
7450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451   *) ac_try_echo=$ac_try;;
7452 esac
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7455   ac_status=$?
7456   grep -v '^ *+' conftest.er1 >conftest.err
7457   rm -f conftest.er1
7458   cat conftest.err >&5
7459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460   (exit $ac_status); } >/dev/null; then
7461   if test -s conftest.err; then
7462     ac_cpp_err=$ac_cxx_preproc_warn_flag
7463     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7464   else
7465     ac_cpp_err=
7466   fi
7467 else
7468   ac_cpp_err=yes
7469 fi
7470 if test -z "$ac_cpp_err"; then
7471   :
7472 else
7473   echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7475
7476   # Broken: fails on valid input.
7477 continue
7478 fi
7479
7480 rm -f conftest.err conftest.$ac_ext
7481
7482   # OK, works on sane cases.  Now check whether nonexistent headers
7483   # can be detected and how.
7484   cat >conftest.$ac_ext <<_ACEOF
7485 /* confdefs.h.  */
7486 _ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h.  */
7490 #include <ac_nonexistent.h>
7491 _ACEOF
7492 if { (ac_try="$ac_cpp conftest.$ac_ext"
7493 case "(($ac_try" in
7494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495   *) ac_try_echo=$ac_try;;
7496 esac
7497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7499   ac_status=$?
7500   grep -v '^ *+' conftest.er1 >conftest.err
7501   rm -f conftest.er1
7502   cat conftest.err >&5
7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504   (exit $ac_status); } >/dev/null; then
7505   if test -s conftest.err; then
7506     ac_cpp_err=$ac_cxx_preproc_warn_flag
7507     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7508   else
7509     ac_cpp_err=
7510   fi
7511 else
7512   ac_cpp_err=yes
7513 fi
7514 if test -z "$ac_cpp_err"; then
7515   # Broken: success on invalid input.
7516 continue
7517 else
7518   echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.$ac_ext >&5
7520
7521   # Passes both tests.
7522 ac_preproc_ok=:
7523 break
7524 fi
7525
7526 rm -f conftest.err conftest.$ac_ext
7527
7528 done
7529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7530 rm -f conftest.err conftest.$ac_ext
7531 if $ac_preproc_ok; then
7532   break
7533 fi
7534
7535     done
7536     ac_cv_prog_CXXCPP=$CXXCPP
7537
7538 fi
7539   CXXCPP=$ac_cv_prog_CXXCPP
7540 else
7541   ac_cv_prog_CXXCPP=$CXXCPP
7542 fi
7543 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7544 echo "${ECHO_T}$CXXCPP" >&6; }
7545 ac_preproc_ok=false
7546 for ac_cxx_preproc_warn_flag in '' yes
7547 do
7548   # Use a header file that comes with gcc, so configuring glibc
7549   # with a fresh cross-compiler works.
7550   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7551   # <limits.h> exists even on freestanding compilers.
7552   # On the NeXT, cc -E runs the code through the compiler's parser,
7553   # not just through cpp. "Syntax error" is here to catch this case.
7554   cat >conftest.$ac_ext <<_ACEOF
7555 /* confdefs.h.  */
7556 _ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h.  */
7560 #ifdef __STDC__
7561 # include <limits.h>
7562 #else
7563 # include <assert.h>
7564 #endif
7565                      Syntax error
7566 _ACEOF
7567 if { (ac_try="$ac_cpp conftest.$ac_ext"
7568 case "(($ac_try" in
7569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570   *) ac_try_echo=$ac_try;;
7571 esac
7572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7573   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7574   ac_status=$?
7575   grep -v '^ *+' conftest.er1 >conftest.err
7576   rm -f conftest.er1
7577   cat conftest.err >&5
7578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579   (exit $ac_status); } >/dev/null; then
7580   if test -s conftest.err; then
7581     ac_cpp_err=$ac_cxx_preproc_warn_flag
7582     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7583   else
7584     ac_cpp_err=
7585   fi
7586 else
7587   ac_cpp_err=yes
7588 fi
7589 if test -z "$ac_cpp_err"; then
7590   :
7591 else
7592   echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7594
7595   # Broken: fails on valid input.
7596 continue
7597 fi
7598
7599 rm -f conftest.err conftest.$ac_ext
7600
7601   # OK, works on sane cases.  Now check whether nonexistent headers
7602   # can be detected and how.
7603   cat >conftest.$ac_ext <<_ACEOF
7604 /* confdefs.h.  */
7605 _ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h.  */
7609 #include <ac_nonexistent.h>
7610 _ACEOF
7611 if { (ac_try="$ac_cpp conftest.$ac_ext"
7612 case "(($ac_try" in
7613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614   *) ac_try_echo=$ac_try;;
7615 esac
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7618   ac_status=$?
7619   grep -v '^ *+' conftest.er1 >conftest.err
7620   rm -f conftest.er1
7621   cat conftest.err >&5
7622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623   (exit $ac_status); } >/dev/null; then
7624   if test -s conftest.err; then
7625     ac_cpp_err=$ac_cxx_preproc_warn_flag
7626     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7627   else
7628     ac_cpp_err=
7629   fi
7630 else
7631   ac_cpp_err=yes
7632 fi
7633 if test -z "$ac_cpp_err"; then
7634   # Broken: success on invalid input.
7635 continue
7636 else
7637   echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7639
7640   # Passes both tests.
7641 ac_preproc_ok=:
7642 break
7643 fi
7644
7645 rm -f conftest.err conftest.$ac_ext
7646
7647 done
7648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7649 rm -f conftest.err conftest.$ac_ext
7650 if $ac_preproc_ok; then
7651   :
7652 else
7653   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7654 See \`config.log' for more details." >&5
7655 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7656 See \`config.log' for more details." >&2;}
7657    { (exit 1); exit 1; }; }
7658 fi
7659
7660 ac_ext=cpp
7661 ac_cpp='$CXXCPP $CPPFLAGS'
7662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7665
7666 fi
7667
7668 ac_ext=f
7669 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7670 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7671 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7672 if test -n "$ac_tool_prefix"; then
7673   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
7674   do
7675     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7679 if test "${ac_cv_prog_F77+set}" = set; then
7680   echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682   if test -n "$F77"; then
7683   ac_cv_prog_F77="$F77" # Let the user override the test.
7684 else
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 for as_dir in $PATH
7687 do
7688   IFS=$as_save_IFS
7689   test -z "$as_dir" && as_dir=.
7690   for ac_exec_ext in '' $ac_executable_extensions; do
7691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7692     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7694     break 2
7695   fi
7696 done
7697 done
7698 IFS=$as_save_IFS
7699
7700 fi
7701 fi
7702 F77=$ac_cv_prog_F77
7703 if test -n "$F77"; then
7704   { echo "$as_me:$LINENO: result: $F77" >&5
7705 echo "${ECHO_T}$F77" >&6; }
7706 else
7707   { echo "$as_me:$LINENO: result: no" >&5
7708 echo "${ECHO_T}no" >&6; }
7709 fi
7710
7711
7712     test -n "$F77" && break
7713   done
7714 fi
7715 if test -z "$F77"; then
7716   ac_ct_F77=$F77
7717   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
7718 do
7719   # Extract the first word of "$ac_prog", so it can be a program name with args.
7720 set dummy $ac_prog; ac_word=$2
7721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7723 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7724   echo $ECHO_N "(cached) $ECHO_C" >&6
7725 else
7726   if test -n "$ac_ct_F77"; then
7727   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7728 else
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7731 do
7732   IFS=$as_save_IFS
7733   test -z "$as_dir" && as_dir=.
7734   for ac_exec_ext in '' $ac_executable_extensions; do
7735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7736     ac_cv_prog_ac_ct_F77="$ac_prog"
7737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7738     break 2
7739   fi
7740 done
7741 done
7742 IFS=$as_save_IFS
7743
7744 fi
7745 fi
7746 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7747 if test -n "$ac_ct_F77"; then
7748   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7749 echo "${ECHO_T}$ac_ct_F77" >&6; }
7750 else
7751   { echo "$as_me:$LINENO: result: no" >&5
7752 echo "${ECHO_T}no" >&6; }
7753 fi
7754
7755
7756   test -n "$ac_ct_F77" && break
7757 done
7758
7759   if test "x$ac_ct_F77" = x; then
7760     F77=""
7761   else
7762     case $cross_compiling:$ac_tool_warned in
7763 yes:)
7764 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7765 whose name does not start with the host triplet.  If you think this
7766 configuration is useful to you, please write to autoconf@gnu.org." >&5
7767 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7768 whose name does not start with the host triplet.  If you think this
7769 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7770 ac_tool_warned=yes ;;
7771 esac
7772     F77=$ac_ct_F77
7773   fi
7774 fi
7775
7776
7777 # Provide some information about the compiler.
7778 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7779 ac_compiler=`set X $ac_compile; echo $2`
7780 { (ac_try="$ac_compiler --version >&5"
7781 case "(($ac_try" in
7782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783   *) ac_try_echo=$ac_try;;
7784 esac
7785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786   (eval "$ac_compiler --version >&5") 2>&5
7787   ac_status=$?
7788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789   (exit $ac_status); }
7790 { (ac_try="$ac_compiler -v >&5"
7791 case "(($ac_try" in
7792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7793   *) ac_try_echo=$ac_try;;
7794 esac
7795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7796   (eval "$ac_compiler -v >&5") 2>&5
7797   ac_status=$?
7798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799   (exit $ac_status); }
7800 { (ac_try="$ac_compiler -V >&5"
7801 case "(($ac_try" in
7802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803   *) ac_try_echo=$ac_try;;
7804 esac
7805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7806   (eval "$ac_compiler -V >&5") 2>&5
7807   ac_status=$?
7808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809   (exit $ac_status); }
7810 rm -f a.out
7811
7812 # If we don't use `.F' as extension, the preprocessor is not run on the
7813 # input file.  (Note that this only needs to work for GNU compilers.)
7814 ac_save_ext=$ac_ext
7815 ac_ext=F
7816 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7817 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7818 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7819   echo $ECHO_N "(cached) $ECHO_C" >&6
7820 else
7821   cat >conftest.$ac_ext <<_ACEOF
7822       program main
7823 #ifndef __GNUC__
7824        choke me
7825 #endif
7826
7827       end
7828 _ACEOF
7829 rm -f conftest.$ac_objext
7830 if { (ac_try="$ac_compile"
7831 case "(($ac_try" in
7832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833   *) ac_try_echo=$ac_try;;
7834 esac
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836   (eval "$ac_compile") 2>conftest.er1
7837   ac_status=$?
7838   grep -v '^ *+' conftest.er1 >conftest.err
7839   rm -f conftest.er1
7840   cat conftest.err >&5
7841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842   (exit $ac_status); } &&
7843          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7844   { (case "(($ac_try" in
7845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846   *) ac_try_echo=$ac_try;;
7847 esac
7848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849   (eval "$ac_try") 2>&5
7850   ac_status=$?
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); }; } &&
7853          { ac_try='test -s conftest.$ac_objext'
7854   { (case "(($ac_try" in
7855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856   *) ac_try_echo=$ac_try;;
7857 esac
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859   (eval "$ac_try") 2>&5
7860   ac_status=$?
7861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862   (exit $ac_status); }; }; then
7863   ac_compiler_gnu=yes
7864 else
7865   echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7867
7868         ac_compiler_gnu=no
7869 fi
7870
7871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7873
7874 fi
7875 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7876 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7877 ac_ext=$ac_save_ext
7878 ac_test_FFLAGS=${FFLAGS+set}
7879 ac_save_FFLAGS=$FFLAGS
7880 FFLAGS=
7881 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7882 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7883 if test "${ac_cv_prog_f77_g+set}" = set; then
7884   echo $ECHO_N "(cached) $ECHO_C" >&6
7885 else
7886   FFLAGS=-g
7887 cat >conftest.$ac_ext <<_ACEOF
7888       program main
7889
7890       end
7891 _ACEOF
7892 rm -f conftest.$ac_objext
7893 if { (ac_try="$ac_compile"
7894 case "(($ac_try" in
7895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896   *) ac_try_echo=$ac_try;;
7897 esac
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899   (eval "$ac_compile") 2>conftest.er1
7900   ac_status=$?
7901   grep -v '^ *+' conftest.er1 >conftest.err
7902   rm -f conftest.er1
7903   cat conftest.err >&5
7904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905   (exit $ac_status); } &&
7906          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7907   { (case "(($ac_try" in
7908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909   *) ac_try_echo=$ac_try;;
7910 esac
7911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7912   (eval "$ac_try") 2>&5
7913   ac_status=$?
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); }; } &&
7916          { ac_try='test -s conftest.$ac_objext'
7917   { (case "(($ac_try" in
7918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919   *) ac_try_echo=$ac_try;;
7920 esac
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922   (eval "$ac_try") 2>&5
7923   ac_status=$?
7924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925   (exit $ac_status); }; }; then
7926   ac_cv_prog_f77_g=yes
7927 else
7928   echo "$as_me: failed program was:" >&5
7929 sed 's/^/| /' conftest.$ac_ext >&5
7930
7931         ac_cv_prog_f77_g=no
7932 fi
7933
7934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935
7936 fi
7937 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7938 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7939 if test "$ac_test_FFLAGS" = set; then
7940   FFLAGS=$ac_save_FFLAGS
7941 elif test $ac_cv_prog_f77_g = yes; then
7942   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7943     FFLAGS="-g -O2"
7944   else
7945     FFLAGS="-g"
7946   fi
7947 else
7948   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7949     FFLAGS="-O2"
7950   else
7951     FFLAGS=
7952   fi
7953 fi
7954
7955 G77=`test $ac_compiler_gnu = yes && echo yes`
7956 ac_ext=c
7957 ac_cpp='$CPP $CPPFLAGS'
7958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7961
7962
7963
7964 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7965
7966 # find the maximum length of command line arguments
7967 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7968 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7969 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7970   echo $ECHO_N "(cached) $ECHO_C" >&6
7971 else
7972     i=0
7973   teststring="ABCD"
7974
7975   case $build_os in
7976   msdosdjgpp*)
7977     # On DJGPP, this test can blow up pretty badly due to problems in libc
7978     # (any single argument exceeding 2000 bytes causes a buffer overrun
7979     # during glob expansion).  Even if it were fixed, the result of this
7980     # check would be larger than it should be.
7981     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7982     ;;
7983
7984   gnu*)
7985     # Under GNU Hurd, this test is not required because there is
7986     # no limit to the length of command line arguments.
7987     # Libtool will interpret -1 as no limit whatsoever
7988     lt_cv_sys_max_cmd_len=-1;
7989     ;;
7990
7991   cygwin* | mingw*)
7992     # On Win9x/ME, this test blows up -- it succeeds, but takes
7993     # about 5 minutes as the teststring grows exponentially.
7994     # Worse, since 9x/ME are not pre-emptively multitasking,
7995     # you end up with a "frozen" computer, even though with patience
7996     # the test eventually succeeds (with a max line length of 256k).
7997     # Instead, let's just punt: use the minimum linelength reported by
7998     # all of the supported platforms: 8192 (on NT/2K/XP).
7999     lt_cv_sys_max_cmd_len=8192;
8000     ;;
8001
8002   amigaos*)
8003     # On AmigaOS with pdksh, this test takes hours, literally.
8004     # So we just punt and use a minimum line length of 8192.
8005     lt_cv_sys_max_cmd_len=8192;
8006     ;;
8007
8008   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8009     # This has been around since 386BSD, at least.  Likely further.
8010     if test -x /sbin/sysctl; then
8011       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8012     elif test -x /usr/sbin/sysctl; then
8013       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8014     else
8015       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8016     fi
8017     # And add a safety zone
8018     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8019     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8020     ;;
8021
8022   interix*)
8023     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8024     lt_cv_sys_max_cmd_len=196608
8025     ;;
8026
8027   osf*)
8028     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8029     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8030     # nice to cause kernel panics so lets avoid the loop below.
8031     # First set a reasonable default.
8032     lt_cv_sys_max_cmd_len=16384
8033     #
8034     if test -x /sbin/sysconfig; then
8035       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8036         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8037       esac
8038     fi
8039     ;;
8040   sco3.2v5*)
8041     lt_cv_sys_max_cmd_len=102400
8042     ;;
8043   sysv5* | sco5v6* | sysv4.2uw2*)
8044     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8045     if test -n "$kargmax"; then
8046       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8047     else
8048       lt_cv_sys_max_cmd_len=32768
8049     fi
8050     ;;
8051   *)
8052     # If test is not a shell built-in, we'll probably end up computing a
8053     # maximum length that is only half of the actual maximum length, but
8054     # we can't tell.
8055     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8056     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8057                = "XX$teststring") >/dev/null 2>&1 &&
8058             new_result=`expr "X$teststring" : ".*" 2>&1` &&
8059             lt_cv_sys_max_cmd_len=$new_result &&
8060             test $i != 17 # 1/2 MB should be enough
8061     do
8062       i=`expr $i + 1`
8063       teststring=$teststring$teststring
8064     done
8065     teststring=
8066     # Add a significant safety factor because C++ compilers can tack on massive
8067     # amounts of additional arguments before passing them to the linker.
8068     # It appears as though 1/2 is a usable value.
8069     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8070     ;;
8071   esac
8072
8073 fi
8074
8075 if test -n $lt_cv_sys_max_cmd_len ; then
8076   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8077 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
8078 else
8079   { echo "$as_me:$LINENO: result: none" >&5
8080 echo "${ECHO_T}none" >&6; }
8081 fi
8082
8083
8084
8085
8086 # Check for command to grab the raw symbol name followed by C symbol from nm.
8087 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8088 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8089 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8090   echo $ECHO_N "(cached) $ECHO_C" >&6
8091 else
8092
8093 # These are sane defaults that work on at least a few old systems.
8094 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8095
8096 # Character class describing NM global symbol codes.
8097 symcode='[BCDEGRST]'
8098
8099 # Regexp to match symbols that can be accessed directly from C.
8100 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8101
8102 # Transform an extracted symbol line into a proper C declaration
8103 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8104
8105 # Transform an extracted symbol line into symbol name and symbol address
8106 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'"
8107
8108 # Define system-specific variables.
8109 case $host_os in
8110 aix*)
8111   symcode='[BCDT]'
8112   ;;
8113 cygwin* | mingw* | pw32*)
8114   symcode='[ABCDGISTW]'
8115   ;;
8116 hpux*) # Its linker distinguishes data from code symbols
8117   if test "$host_cpu" = ia64; then
8118     symcode='[ABCDEGRST]'
8119   fi
8120   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8121   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'"
8122   ;;
8123 linux* | k*bsd*-gnu)
8124   if test "$host_cpu" = ia64; then
8125     symcode='[ABCDGIRSTW]'
8126     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8127     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'"
8128   fi
8129   ;;
8130 irix* | nonstopux*)
8131   symcode='[BCDEGRST]'
8132   ;;
8133 osf*)
8134   symcode='[BCDEGQRST]'
8135   ;;
8136 solaris*)
8137   symcode='[BDRT]'
8138   ;;
8139 sco3.2v5*)
8140   symcode='[DT]'
8141   ;;
8142 sysv4.2uw2*)
8143   symcode='[DT]'
8144   ;;
8145 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8146   symcode='[ABDT]'
8147   ;;
8148 sysv4)
8149   symcode='[DFNSTU]'
8150   ;;
8151 esac
8152
8153 # Handle CRLF in mingw tool chain
8154 opt_cr=
8155 case $build_os in
8156 mingw*)
8157   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8158   ;;
8159 esac
8160
8161 # If we're using GNU nm, then use its standard symbol codes.
8162 case `$NM -V 2>&1` in
8163 *GNU* | *'with BFD'*)
8164   symcode='[ABCDGIRSTW]' ;;
8165 esac
8166
8167 # Try without a prefix undercore, then with it.
8168 for ac_symprfx in "" "_"; do
8169
8170   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8171   symxfrm="\\1 $ac_symprfx\\2 \\2"
8172
8173   # Write the raw and C identifiers.
8174   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8175
8176   # Check to see that the pipe works correctly.
8177   pipe_works=no
8178
8179   rm -f conftest*
8180   cat > conftest.$ac_ext <<EOF
8181 #ifdef __cplusplus
8182 extern "C" {
8183 #endif
8184 char nm_test_var;
8185 void nm_test_func(){}
8186 #ifdef __cplusplus
8187 }
8188 #endif
8189 int main(){nm_test_var='a';nm_test_func();return(0);}
8190 EOF
8191
8192   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8193   (eval $ac_compile) 2>&5
8194   ac_status=$?
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); }; then
8197     # Now try to grab the symbols.
8198     nlist=conftest.nm
8199     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8200   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8201   ac_status=$?
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); } && test -s "$nlist"; then
8204       # Try sorting and uniquifying the output.
8205       if sort "$nlist" | uniq > "$nlist"T; then
8206         mv -f "$nlist"T "$nlist"
8207       else
8208         rm -f "$nlist"T
8209       fi
8210
8211       # Make sure that we snagged all the symbols we need.
8212       if grep ' nm_test_var$' "$nlist" >/dev/null; then
8213         if grep ' nm_test_func$' "$nlist" >/dev/null; then
8214           cat <<EOF > conftest.$ac_ext
8215 #ifdef __cplusplus
8216 extern "C" {
8217 #endif
8218
8219 EOF
8220           # Now generate the symbol file.
8221           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8222
8223           cat <<EOF >> conftest.$ac_ext
8224 #if defined (__STDC__) && __STDC__
8225 # define lt_ptr_t void *
8226 #else
8227 # define lt_ptr_t char *
8228 # define const
8229 #endif
8230
8231 /* The mapping between symbol names and symbols. */
8232 const struct {
8233   const char *name;
8234   lt_ptr_t address;
8235 }
8236 lt_preloaded_symbols[] =
8237 {
8238 EOF
8239           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8240           cat <<\EOF >> conftest.$ac_ext
8241   {0, (lt_ptr_t) 0}
8242 };
8243
8244 #ifdef __cplusplus
8245 }
8246 #endif
8247 EOF
8248           # Now try linking the two files.
8249           mv conftest.$ac_objext conftstm.$ac_objext
8250           lt_save_LIBS="$LIBS"
8251           lt_save_CFLAGS="$CFLAGS"
8252           LIBS="conftstm.$ac_objext"
8253           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8254           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8255   (eval $ac_link) 2>&5
8256   ac_status=$?
8257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258   (exit $ac_status); } && test -s conftest${ac_exeext}; then
8259             pipe_works=yes
8260           fi
8261           LIBS="$lt_save_LIBS"
8262           CFLAGS="$lt_save_CFLAGS"
8263         else
8264           echo "cannot find nm_test_func in $nlist" >&5
8265         fi
8266       else
8267         echo "cannot find nm_test_var in $nlist" >&5
8268       fi
8269     else
8270       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8271     fi
8272   else
8273     echo "$progname: failed program was:" >&5
8274     cat conftest.$ac_ext >&5
8275   fi
8276   rm -f conftest* conftst*
8277
8278   # Do not use the global_symbol_pipe unless it works.
8279   if test "$pipe_works" = yes; then
8280     break
8281   else
8282     lt_cv_sys_global_symbol_pipe=
8283   fi
8284 done
8285
8286 fi
8287
8288 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8289   lt_cv_sys_global_symbol_to_cdecl=
8290 fi
8291 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8292   { echo "$as_me:$LINENO: result: failed" >&5
8293 echo "${ECHO_T}failed" >&6; }
8294 else
8295   { echo "$as_me:$LINENO: result: ok" >&5
8296 echo "${ECHO_T}ok" >&6; }
8297 fi
8298
8299 { echo "$as_me:$LINENO: checking for objdir" >&5
8300 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8301 if test "${lt_cv_objdir+set}" = set; then
8302   echo $ECHO_N "(cached) $ECHO_C" >&6
8303 else
8304   rm -f .libs 2>/dev/null
8305 mkdir .libs 2>/dev/null
8306 if test -d .libs; then
8307   lt_cv_objdir=.libs
8308 else
8309   # MS-DOS does not allow filenames that begin with a dot.
8310   lt_cv_objdir=_libs
8311 fi
8312 rmdir .libs 2>/dev/null
8313 fi
8314 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8315 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8316 objdir=$lt_cv_objdir
8317
8318
8319
8320
8321
8322 case $host_os in
8323 aix3*)
8324   # AIX sometimes has problems with the GCC collect2 program.  For some
8325   # reason, if we set the COLLECT_NAMES environment variable, the problems
8326   # vanish in a puff of smoke.
8327   if test "X${COLLECT_NAMES+set}" != Xset; then
8328     COLLECT_NAMES=
8329     export COLLECT_NAMES
8330   fi
8331   ;;
8332 esac
8333
8334 # Sed substitution that helps us do robust quoting.  It backslashifies
8335 # metacharacters that are still active within double-quoted strings.
8336 Xsed='sed -e 1s/^X//'
8337 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8338
8339 # Same as above, but do not quote variable references.
8340 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8341
8342 # Sed substitution to delay expansion of an escaped shell variable in a
8343 # double_quote_subst'ed string.
8344 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8345
8346 # Sed substitution to avoid accidental globbing in evaled expressions
8347 no_glob_subst='s/\*/\\\*/g'
8348
8349 # Constants:
8350 rm="rm -f"
8351
8352 # Global variables:
8353 default_ofile=libtool
8354 can_build_shared=yes
8355
8356 # All known linkers require a `.a' archive for static linking (except MSVC,
8357 # which needs '.lib').
8358 libext=a
8359 ltmain="$ac_aux_dir/ltmain.sh"
8360 ofile="$default_ofile"
8361 with_gnu_ld="$lt_cv_prog_gnu_ld"
8362
8363 if test -n "$ac_tool_prefix"; then
8364   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8365 set dummy ${ac_tool_prefix}ar; ac_word=$2
8366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8368 if test "${ac_cv_prog_AR+set}" = set; then
8369   echo $ECHO_N "(cached) $ECHO_C" >&6
8370 else
8371   if test -n "$AR"; then
8372   ac_cv_prog_AR="$AR" # Let the user override the test.
8373 else
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 for as_dir in $PATH
8376 do
8377   IFS=$as_save_IFS
8378   test -z "$as_dir" && as_dir=.
8379   for ac_exec_ext in '' $ac_executable_extensions; do
8380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8381     ac_cv_prog_AR="${ac_tool_prefix}ar"
8382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8383     break 2
8384   fi
8385 done
8386 done
8387 IFS=$as_save_IFS
8388
8389 fi
8390 fi
8391 AR=$ac_cv_prog_AR
8392 if test -n "$AR"; then
8393   { echo "$as_me:$LINENO: result: $AR" >&5
8394 echo "${ECHO_T}$AR" >&6; }
8395 else
8396   { echo "$as_me:$LINENO: result: no" >&5
8397 echo "${ECHO_T}no" >&6; }
8398 fi
8399
8400
8401 fi
8402 if test -z "$ac_cv_prog_AR"; then
8403   ac_ct_AR=$AR
8404   # Extract the first word of "ar", so it can be a program name with args.
8405 set dummy ar; ac_word=$2
8406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8408 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8409   echo $ECHO_N "(cached) $ECHO_C" >&6
8410 else
8411   if test -n "$ac_ct_AR"; then
8412   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8413 else
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 for as_dir in $PATH
8416 do
8417   IFS=$as_save_IFS
8418   test -z "$as_dir" && as_dir=.
8419   for ac_exec_ext in '' $ac_executable_extensions; do
8420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8421     ac_cv_prog_ac_ct_AR="ar"
8422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8423     break 2
8424   fi
8425 done
8426 done
8427 IFS=$as_save_IFS
8428
8429 fi
8430 fi
8431 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8432 if test -n "$ac_ct_AR"; then
8433   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8434 echo "${ECHO_T}$ac_ct_AR" >&6; }
8435 else
8436   { echo "$as_me:$LINENO: result: no" >&5
8437 echo "${ECHO_T}no" >&6; }
8438 fi
8439
8440   if test "x$ac_ct_AR" = x; then
8441     AR="false"
8442   else
8443     case $cross_compiling:$ac_tool_warned in
8444 yes:)
8445 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8446 whose name does not start with the host triplet.  If you think this
8447 configuration is useful to you, please write to autoconf@gnu.org." >&5
8448 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8449 whose name does not start with the host triplet.  If you think this
8450 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8451 ac_tool_warned=yes ;;
8452 esac
8453     AR=$ac_ct_AR
8454   fi
8455 else
8456   AR="$ac_cv_prog_AR"
8457 fi
8458
8459 if test -n "$ac_tool_prefix"; then
8460   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8461 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8464 if test "${ac_cv_prog_RANLIB+set}" = set; then
8465   echo $ECHO_N "(cached) $ECHO_C" >&6
8466 else
8467   if test -n "$RANLIB"; then
8468   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8469 else
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 for as_dir in $PATH
8472 do
8473   IFS=$as_save_IFS
8474   test -z "$as_dir" && as_dir=.
8475   for ac_exec_ext in '' $ac_executable_extensions; do
8476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8477     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8479     break 2
8480   fi
8481 done
8482 done
8483 IFS=$as_save_IFS
8484
8485 fi
8486 fi
8487 RANLIB=$ac_cv_prog_RANLIB
8488 if test -n "$RANLIB"; then
8489   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8490 echo "${ECHO_T}$RANLIB" >&6; }
8491 else
8492   { echo "$as_me:$LINENO: result: no" >&5
8493 echo "${ECHO_T}no" >&6; }
8494 fi
8495
8496
8497 fi
8498 if test -z "$ac_cv_prog_RANLIB"; then
8499   ac_ct_RANLIB=$RANLIB
8500   # Extract the first word of "ranlib", so it can be a program name with args.
8501 set dummy ranlib; ac_word=$2
8502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8504 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8505   echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507   if test -n "$ac_ct_RANLIB"; then
8508   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8509 else
8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8511 for as_dir in $PATH
8512 do
8513   IFS=$as_save_IFS
8514   test -z "$as_dir" && as_dir=.
8515   for ac_exec_ext in '' $ac_executable_extensions; do
8516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8517     ac_cv_prog_ac_ct_RANLIB="ranlib"
8518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8519     break 2
8520   fi
8521 done
8522 done
8523 IFS=$as_save_IFS
8524
8525 fi
8526 fi
8527 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8528 if test -n "$ac_ct_RANLIB"; then
8529   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8530 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8531 else
8532   { echo "$as_me:$LINENO: result: no" >&5
8533 echo "${ECHO_T}no" >&6; }
8534 fi
8535
8536   if test "x$ac_ct_RANLIB" = x; then
8537     RANLIB=":"
8538   else
8539     case $cross_compiling:$ac_tool_warned in
8540 yes:)
8541 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8542 whose name does not start with the host triplet.  If you think this
8543 configuration is useful to you, please write to autoconf@gnu.org." >&5
8544 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8545 whose name does not start with the host triplet.  If you think this
8546 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8547 ac_tool_warned=yes ;;
8548 esac
8549     RANLIB=$ac_ct_RANLIB
8550   fi
8551 else
8552   RANLIB="$ac_cv_prog_RANLIB"
8553 fi
8554
8555 if test -n "$ac_tool_prefix"; then
8556   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8557 set dummy ${ac_tool_prefix}strip; ac_word=$2
8558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8560 if test "${ac_cv_prog_STRIP+set}" = set; then
8561   echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563   if test -n "$STRIP"; then
8564   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8565 else
8566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567 for as_dir in $PATH
8568 do
8569   IFS=$as_save_IFS
8570   test -z "$as_dir" && as_dir=.
8571   for ac_exec_ext in '' $ac_executable_extensions; do
8572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8573     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8575     break 2
8576   fi
8577 done
8578 done
8579 IFS=$as_save_IFS
8580
8581 fi
8582 fi
8583 STRIP=$ac_cv_prog_STRIP
8584 if test -n "$STRIP"; then
8585   { echo "$as_me:$LINENO: result: $STRIP" >&5
8586 echo "${ECHO_T}$STRIP" >&6; }
8587 else
8588   { echo "$as_me:$LINENO: result: no" >&5
8589 echo "${ECHO_T}no" >&6; }
8590 fi
8591
8592
8593 fi
8594 if test -z "$ac_cv_prog_STRIP"; then
8595   ac_ct_STRIP=$STRIP
8596   # Extract the first word of "strip", so it can be a program name with args.
8597 set dummy strip; ac_word=$2
8598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8600 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8601   echo $ECHO_N "(cached) $ECHO_C" >&6
8602 else
8603   if test -n "$ac_ct_STRIP"; then
8604   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8605 else
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607 for as_dir in $PATH
8608 do
8609   IFS=$as_save_IFS
8610   test -z "$as_dir" && as_dir=.
8611   for ac_exec_ext in '' $ac_executable_extensions; do
8612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8613     ac_cv_prog_ac_ct_STRIP="strip"
8614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8615     break 2
8616   fi
8617 done
8618 done
8619 IFS=$as_save_IFS
8620
8621 fi
8622 fi
8623 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8624 if test -n "$ac_ct_STRIP"; then
8625   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8626 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8627 else
8628   { echo "$as_me:$LINENO: result: no" >&5
8629 echo "${ECHO_T}no" >&6; }
8630 fi
8631
8632   if test "x$ac_ct_STRIP" = x; then
8633     STRIP=":"
8634   else
8635     case $cross_compiling:$ac_tool_warned in
8636 yes:)
8637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8638 whose name does not start with the host triplet.  If you think this
8639 configuration is useful to you, please write to autoconf@gnu.org." >&5
8640 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8641 whose name does not start with the host triplet.  If you think this
8642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8643 ac_tool_warned=yes ;;
8644 esac
8645     STRIP=$ac_ct_STRIP
8646   fi
8647 else
8648   STRIP="$ac_cv_prog_STRIP"
8649 fi
8650
8651
8652 old_CC="$CC"
8653 old_CFLAGS="$CFLAGS"
8654
8655 # Set sane defaults for various variables
8656 test -z "$AR" && AR=ar
8657 test -z "$AR_FLAGS" && AR_FLAGS=cru
8658 test -z "$AS" && AS=as
8659 test -z "$CC" && CC=cc
8660 test -z "$LTCC" && LTCC=$CC
8661 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8662 test -z "$DLLTOOL" && DLLTOOL=dlltool
8663 test -z "$LD" && LD=ld
8664 test -z "$LN_S" && LN_S="ln -s"
8665 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8666 test -z "$NM" && NM=nm
8667 test -z "$SED" && SED=sed
8668 test -z "$OBJDUMP" && OBJDUMP=objdump
8669 test -z "$RANLIB" && RANLIB=:
8670 test -z "$STRIP" && STRIP=:
8671 test -z "$ac_objext" && ac_objext=o
8672
8673 # Determine commands to create old-style static archives.
8674 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8675 old_postinstall_cmds='chmod 644 $oldlib'
8676 old_postuninstall_cmds=
8677
8678 if test -n "$RANLIB"; then
8679   case $host_os in
8680   openbsd*)
8681     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8682     ;;
8683   *)
8684     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8685     ;;
8686   esac
8687   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8688 fi
8689
8690 for cc_temp in $compiler""; do
8691   case $cc_temp in
8692     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8693     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8694     \-*) ;;
8695     *) break;;
8696   esac
8697 done
8698 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8699
8700
8701 # Only perform the check for file, if the check method requires it
8702 case $deplibs_check_method in
8703 file_magic*)
8704   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8705     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8706 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8707 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8708   echo $ECHO_N "(cached) $ECHO_C" >&6
8709 else
8710   case $MAGIC_CMD in
8711 [\\/*] |  ?:[\\/]*)
8712   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8713   ;;
8714 *)
8715   lt_save_MAGIC_CMD="$MAGIC_CMD"
8716   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8717   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8718   for ac_dir in $ac_dummy; do
8719     IFS="$lt_save_ifs"
8720     test -z "$ac_dir" && ac_dir=.
8721     if test -f $ac_dir/${ac_tool_prefix}file; then
8722       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8723       if test -n "$file_magic_test_file"; then
8724         case $deplibs_check_method in
8725         "file_magic "*)
8726           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8727           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8728           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8729             $EGREP "$file_magic_regex" > /dev/null; then
8730             :
8731           else
8732             cat <<EOF 1>&2
8733
8734 *** Warning: the command libtool uses to detect shared libraries,
8735 *** $file_magic_cmd, produces output that libtool cannot recognize.
8736 *** The result is that libtool may fail to recognize shared libraries
8737 *** as such.  This will affect the creation of libtool libraries that
8738 *** depend on shared libraries, but programs linked with such libtool
8739 *** libraries will work regardless of this problem.  Nevertheless, you
8740 *** may want to report the problem to your system manager and/or to
8741 *** bug-libtool@gnu.org
8742
8743 EOF
8744           fi ;;
8745         esac
8746       fi
8747       break
8748     fi
8749   done
8750   IFS="$lt_save_ifs"
8751   MAGIC_CMD="$lt_save_MAGIC_CMD"
8752   ;;
8753 esac
8754 fi
8755
8756 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8757 if test -n "$MAGIC_CMD"; then
8758   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8759 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8760 else
8761   { echo "$as_me:$LINENO: result: no" >&5
8762 echo "${ECHO_T}no" >&6; }
8763 fi
8764
8765 if test -z "$lt_cv_path_MAGIC_CMD"; then
8766   if test -n "$ac_tool_prefix"; then
8767     { echo "$as_me:$LINENO: checking for file" >&5
8768 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8769 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8770   echo $ECHO_N "(cached) $ECHO_C" >&6
8771 else
8772   case $MAGIC_CMD in
8773 [\\/*] |  ?:[\\/]*)
8774   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8775   ;;
8776 *)
8777   lt_save_MAGIC_CMD="$MAGIC_CMD"
8778   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8779   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8780   for ac_dir in $ac_dummy; do
8781     IFS="$lt_save_ifs"
8782     test -z "$ac_dir" && ac_dir=.
8783     if test -f $ac_dir/file; then
8784       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8785       if test -n "$file_magic_test_file"; then
8786         case $deplibs_check_method in
8787         "file_magic "*)
8788           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8789           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8790           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8791             $EGREP "$file_magic_regex" > /dev/null; then
8792             :
8793           else
8794             cat <<EOF 1>&2
8795
8796 *** Warning: the command libtool uses to detect shared libraries,
8797 *** $file_magic_cmd, produces output that libtool cannot recognize.
8798 *** The result is that libtool may fail to recognize shared libraries
8799 *** as such.  This will affect the creation of libtool libraries that
8800 *** depend on shared libraries, but programs linked with such libtool
8801 *** libraries will work regardless of this problem.  Nevertheless, you
8802 *** may want to report the problem to your system manager and/or to
8803 *** bug-libtool@gnu.org
8804
8805 EOF
8806           fi ;;
8807         esac
8808       fi
8809       break
8810     fi
8811   done
8812   IFS="$lt_save_ifs"
8813   MAGIC_CMD="$lt_save_MAGIC_CMD"
8814   ;;
8815 esac
8816 fi
8817
8818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8819 if test -n "$MAGIC_CMD"; then
8820   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8821 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8822 else
8823   { echo "$as_me:$LINENO: result: no" >&5
8824 echo "${ECHO_T}no" >&6; }
8825 fi
8826
8827   else
8828     MAGIC_CMD=:
8829   fi
8830 fi
8831
8832   fi
8833   ;;
8834 esac
8835
8836 enable_dlopen=no
8837 enable_win32_dll=yes
8838
8839 # Check whether --enable-libtool-lock was given.
8840 if test "${enable_libtool_lock+set}" = set; then
8841   enableval=$enable_libtool_lock;
8842 fi
8843
8844 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8845
8846
8847 # Check whether --with-pic was given.
8848 if test "${with_pic+set}" = set; then
8849   withval=$with_pic; pic_mode="$withval"
8850 else
8851   pic_mode=default
8852 fi
8853
8854 test -z "$pic_mode" && pic_mode=default
8855
8856 # Use C for the default configuration in the libtool script
8857 tagname=
8858 lt_save_CC="$CC"
8859 ac_ext=c
8860 ac_cpp='$CPP $CPPFLAGS'
8861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8864
8865
8866 # Source file extension for C test sources.
8867 ac_ext=c
8868
8869 # Object file extension for compiled C test sources.
8870 objext=o
8871 objext=$objext
8872
8873 # Code to be used in simple compile tests
8874 lt_simple_compile_test_code="int some_variable = 0;\n"
8875
8876 # Code to be used in simple link tests
8877 lt_simple_link_test_code='int main(){return(0);}\n'
8878
8879
8880 # If no C compiler was specified, use CC.
8881 LTCC=${LTCC-"$CC"}
8882
8883 # If no C compiler flags were specified, use CFLAGS.
8884 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8885
8886 # Allow CC to be a program name with arguments.
8887 compiler=$CC
8888
8889
8890 # save warnings/boilerplate of simple test code
8891 ac_outfile=conftest.$ac_objext
8892 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8893 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8894 _lt_compiler_boilerplate=`cat conftest.err`
8895 $rm conftest*
8896
8897 ac_outfile=conftest.$ac_objext
8898 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8899 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8900 _lt_linker_boilerplate=`cat conftest.err`
8901 $rm conftest*
8902
8903
8904
8905 lt_prog_compiler_no_builtin_flag=
8906
8907 if test "$GCC" = yes; then
8908   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8909
8910
8911 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8912 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8913 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8914   echo $ECHO_N "(cached) $ECHO_C" >&6
8915 else
8916   lt_cv_prog_compiler_rtti_exceptions=no
8917   ac_outfile=conftest.$ac_objext
8918    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8919    lt_compiler_flag="-fno-rtti -fno-exceptions"
8920    # Insert the option either (1) after the last *FLAGS variable, or
8921    # (2) before a word containing "conftest.", or (3) at the end.
8922    # Note that $ac_compile itself does not contain backslashes and begins
8923    # with a dollar sign (not a hyphen), so the echo should work correctly.
8924    # The option is referenced via a variable to avoid confusing sed.
8925    lt_compile=`echo "$ac_compile" | $SED \
8926    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8927    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8928    -e 's:$: $lt_compiler_flag:'`
8929    (eval echo "\"\$as_me:8929: $lt_compile\"" >&5)
8930    (eval "$lt_compile" 2>conftest.err)
8931    ac_status=$?
8932    cat conftest.err >&5
8933    echo "$as_me:8933: \$? = $ac_status" >&5
8934    if (exit $ac_status) && test -s "$ac_outfile"; then
8935      # The compiler can only warn and ignore the option if not recognized
8936      # So say no if there are warnings other than the usual output.
8937      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8938      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8939      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8940        lt_cv_prog_compiler_rtti_exceptions=yes
8941      fi
8942    fi
8943    $rm conftest*
8944
8945 fi
8946 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8947 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8948
8949 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8950     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8951 else
8952     :
8953 fi
8954
8955 fi
8956
8957 lt_prog_compiler_wl=
8958 lt_prog_compiler_pic=
8959 lt_prog_compiler_static=
8960
8961 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8962 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8963
8964   if test "$GCC" = yes; then
8965     lt_prog_compiler_wl='-Wl,'
8966     lt_prog_compiler_static='-static'
8967
8968     case $host_os in
8969       aix*)
8970       # All AIX code is PIC.
8971       if test "$host_cpu" = ia64; then
8972         # AIX 5 now supports IA64 processor
8973         lt_prog_compiler_static='-Bstatic'
8974       fi
8975       ;;
8976
8977     amigaos*)
8978       # FIXME: we need at least 68020 code to build shared libraries, but
8979       # adding the `-m68020' flag to GCC prevents building anything better,
8980       # like `-m68040'.
8981       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8982       ;;
8983
8984     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8985       # PIC is the default for these OSes.
8986       ;;
8987
8988     mingw* | pw32* | os2*)
8989       # This hack is so that the source file can tell whether it is being
8990       # built for inclusion in a dll (and should export symbols for example).
8991       lt_prog_compiler_pic='-DDLL_EXPORT'
8992       ;;
8993
8994     darwin* | rhapsody*)
8995       # PIC is the default on this platform
8996       # Common symbols not allowed in MH_DYLIB files
8997       lt_prog_compiler_pic='-fno-common'
8998       ;;
8999
9000     interix3*)
9001       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9002       # Instead, we relocate shared libraries at runtime.
9003       ;;
9004
9005     msdosdjgpp*)
9006       # Just because we use GCC doesn't mean we suddenly get shared libraries
9007       # on systems that don't support them.
9008       lt_prog_compiler_can_build_shared=no
9009       enable_shared=no
9010       ;;
9011
9012     sysv4*MP*)
9013       if test -d /usr/nec; then
9014         lt_prog_compiler_pic=-Kconform_pic
9015       fi
9016       ;;
9017
9018     hpux*)
9019       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9020       # not for PA HP-UX.
9021       case $host_cpu in
9022       hppa*64*|ia64*)
9023         # +Z the default
9024         ;;
9025       *)
9026         lt_prog_compiler_pic='-fPIC'
9027         ;;
9028       esac
9029       ;;
9030
9031     *)
9032       lt_prog_compiler_pic='-fPIC'
9033       ;;
9034     esac
9035   else
9036     # PORTME Check for flag to pass linker flags through the system compiler.
9037     case $host_os in
9038     aix*)
9039       lt_prog_compiler_wl='-Wl,'
9040       if test "$host_cpu" = ia64; then
9041         # AIX 5 now supports IA64 processor
9042         lt_prog_compiler_static='-Bstatic'
9043       else
9044         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9045       fi
9046       ;;
9047       darwin*)
9048         # PIC is the default on this platform
9049         # Common symbols not allowed in MH_DYLIB files
9050        case $cc_basename in
9051          xlc*)
9052          lt_prog_compiler_pic='-qnocommon'
9053          lt_prog_compiler_wl='-Wl,'
9054          ;;
9055        esac
9056        ;;
9057
9058     mingw* | pw32* | os2*)
9059       # This hack is so that the source file can tell whether it is being
9060       # built for inclusion in a dll (and should export symbols for example).
9061       lt_prog_compiler_pic='-DDLL_EXPORT'
9062       ;;
9063
9064     hpux9* | hpux10* | hpux11*)
9065       lt_prog_compiler_wl='-Wl,'
9066       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9067       # not for PA HP-UX.
9068       case $host_cpu in
9069       hppa*64*|ia64*)
9070         # +Z the default
9071         ;;
9072       *)
9073         lt_prog_compiler_pic='+Z'
9074         ;;
9075       esac
9076       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9077       lt_prog_compiler_static='${wl}-a ${wl}archive'
9078       ;;
9079
9080     irix5* | irix6* | nonstopux*)
9081       lt_prog_compiler_wl='-Wl,'
9082       # PIC (with -KPIC) is the default.
9083       lt_prog_compiler_static='-non_shared'
9084       ;;
9085
9086     newsos6)
9087       lt_prog_compiler_pic='-KPIC'
9088       lt_prog_compiler_static='-Bstatic'
9089       ;;
9090
9091     linux* | k*bsd*-gnu)
9092       case $cc_basename in
9093       icc* | ecc*)
9094         lt_prog_compiler_wl='-Wl,'
9095         lt_prog_compiler_pic='-KPIC'
9096         lt_prog_compiler_static='-static'
9097         ;;
9098       pgcc* | pgf77* | pgf90* | pgf95*)
9099         # Portland Group compilers (*not* the Pentium gcc compiler,
9100         # which looks to be a dead project)
9101         lt_prog_compiler_wl='-Wl,'
9102         lt_prog_compiler_pic='-fpic'
9103         lt_prog_compiler_static='-Bstatic'
9104         ;;
9105       ccc*)
9106         lt_prog_compiler_wl='-Wl,'
9107         # All Alpha code is PIC.
9108         lt_prog_compiler_static='-non_shared'
9109         ;;
9110       esac
9111       ;;
9112
9113     osf3* | osf4* | osf5*)
9114       lt_prog_compiler_wl='-Wl,'
9115       # All OSF/1 code is PIC.
9116       lt_prog_compiler_static='-non_shared'
9117       ;;
9118
9119     solaris*)
9120       lt_prog_compiler_pic='-KPIC'
9121       lt_prog_compiler_static='-Bstatic'
9122       case $cc_basename in
9123       f77* | f90* | f95*)
9124         lt_prog_compiler_wl='-Qoption ld ';;
9125       *)
9126         lt_prog_compiler_wl='-Wl,';;
9127       esac
9128       ;;
9129
9130     sunos4*)
9131       lt_prog_compiler_wl='-Qoption ld '
9132       lt_prog_compiler_pic='-PIC'
9133       lt_prog_compiler_static='-Bstatic'
9134       ;;
9135
9136     sysv4 | sysv4.2uw2* | sysv4.3*)
9137       lt_prog_compiler_wl='-Wl,'
9138       lt_prog_compiler_pic='-KPIC'
9139       lt_prog_compiler_static='-Bstatic'
9140       ;;
9141
9142     sysv4*MP*)
9143       if test -d /usr/nec ;then
9144         lt_prog_compiler_pic='-Kconform_pic'
9145         lt_prog_compiler_static='-Bstatic'
9146       fi
9147       ;;
9148
9149     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9150       lt_prog_compiler_wl='-Wl,'
9151       lt_prog_compiler_pic='-KPIC'
9152       lt_prog_compiler_static='-Bstatic'
9153       ;;
9154
9155     unicos*)
9156       lt_prog_compiler_wl='-Wl,'
9157       lt_prog_compiler_can_build_shared=no
9158       ;;
9159
9160     uts4*)
9161       lt_prog_compiler_pic='-pic'
9162       lt_prog_compiler_static='-Bstatic'
9163       ;;
9164
9165     *)
9166       lt_prog_compiler_can_build_shared=no
9167       ;;
9168     esac
9169   fi
9170
9171 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9172 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9173
9174 #
9175 # Check to make sure the PIC flag actually works.
9176 #
9177 if test -n "$lt_prog_compiler_pic"; then
9178
9179 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9180 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9181 if test "${lt_prog_compiler_pic_works+set}" = set; then
9182   echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184   lt_prog_compiler_pic_works=no
9185   ac_outfile=conftest.$ac_objext
9186    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9187    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9188    # Insert the option either (1) after the last *FLAGS variable, or
9189    # (2) before a word containing "conftest.", or (3) at the end.
9190    # Note that $ac_compile itself does not contain backslashes and begins
9191    # with a dollar sign (not a hyphen), so the echo should work correctly.
9192    # The option is referenced via a variable to avoid confusing sed.
9193    lt_compile=`echo "$ac_compile" | $SED \
9194    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9195    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9196    -e 's:$: $lt_compiler_flag:'`
9197    (eval echo "\"\$as_me:9197: $lt_compile\"" >&5)
9198    (eval "$lt_compile" 2>conftest.err)
9199    ac_status=$?
9200    cat conftest.err >&5
9201    echo "$as_me:9201: \$? = $ac_status" >&5
9202    if (exit $ac_status) && test -s "$ac_outfile"; then
9203      # The compiler can only warn and ignore the option if not recognized
9204      # So say no if there are warnings other than the usual output.
9205      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9206      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9207      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9208        lt_prog_compiler_pic_works=yes
9209      fi
9210    fi
9211    $rm conftest*
9212
9213 fi
9214 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9215 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9216
9217 if test x"$lt_prog_compiler_pic_works" = xyes; then
9218     case $lt_prog_compiler_pic in
9219      "" | " "*) ;;
9220      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9221      esac
9222 else
9223     lt_prog_compiler_pic=
9224      lt_prog_compiler_can_build_shared=no
9225 fi
9226
9227 fi
9228 case $host_os in
9229   # For platforms which do not support PIC, -DPIC is meaningless:
9230   *djgpp*)
9231     lt_prog_compiler_pic=
9232     ;;
9233   *)
9234     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9235     ;;
9236 esac
9237
9238 #
9239 # Check to make sure the static flag actually works.
9240 #
9241 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9242 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9243 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9244 if test "${lt_prog_compiler_static_works+set}" = set; then
9245   echo $ECHO_N "(cached) $ECHO_C" >&6
9246 else
9247   lt_prog_compiler_static_works=no
9248    save_LDFLAGS="$LDFLAGS"
9249    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9250    printf "$lt_simple_link_test_code" > conftest.$ac_ext
9251    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9252      # The linker can only warn and ignore the option if not recognized
9253      # So say no if there are warnings
9254      if test -s conftest.err; then
9255        # Append any errors to the config.log.
9256        cat conftest.err 1>&5
9257        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9258        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9259        if diff conftest.exp conftest.er2 >/dev/null; then
9260          lt_prog_compiler_static_works=yes
9261        fi
9262      else
9263        lt_prog_compiler_static_works=yes
9264      fi
9265    fi
9266    $rm conftest*
9267    LDFLAGS="$save_LDFLAGS"
9268
9269 fi
9270 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9271 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9272
9273 if test x"$lt_prog_compiler_static_works" = xyes; then
9274     :
9275 else
9276     lt_prog_compiler_static=
9277 fi
9278
9279
9280 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9281 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9282 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9283   echo $ECHO_N "(cached) $ECHO_C" >&6
9284 else
9285   lt_cv_prog_compiler_c_o=no
9286    $rm -r conftest 2>/dev/null
9287    mkdir conftest
9288    cd conftest
9289    mkdir out
9290    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9291
9292    lt_compiler_flag="-o out/conftest2.$ac_objext"
9293    # Insert the option either (1) after the last *FLAGS variable, or
9294    # (2) before a word containing "conftest.", or (3) at the end.
9295    # Note that $ac_compile itself does not contain backslashes and begins
9296    # with a dollar sign (not a hyphen), so the echo should work correctly.
9297    lt_compile=`echo "$ac_compile" | $SED \
9298    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9299    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9300    -e 's:$: $lt_compiler_flag:'`
9301    (eval echo "\"\$as_me:9301: $lt_compile\"" >&5)
9302    (eval "$lt_compile" 2>out/conftest.err)
9303    ac_status=$?
9304    cat out/conftest.err >&5
9305    echo "$as_me:9305: \$? = $ac_status" >&5
9306    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9307    then
9308      # The compiler can only warn and ignore the option if not recognized
9309      # So say no if there are warnings
9310      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9311      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9312      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9313        lt_cv_prog_compiler_c_o=yes
9314      fi
9315    fi
9316    chmod u+w . 2>&5
9317    $rm conftest*
9318    # SGI C++ compiler will create directory out/ii_files/ for
9319    # template instantiation
9320    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9321    $rm out/* && rmdir out
9322    cd ..
9323    rmdir conftest
9324    $rm conftest*
9325
9326 fi
9327 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9328 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9329
9330
9331 hard_links="nottested"
9332 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9333   # do not overwrite the value of need_locks provided by the user
9334   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9335 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9336   hard_links=yes
9337   $rm conftest*
9338   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9339   touch conftest.a
9340   ln conftest.a conftest.b 2>&5 || hard_links=no
9341   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9342   { echo "$as_me:$LINENO: result: $hard_links" >&5
9343 echo "${ECHO_T}$hard_links" >&6; }
9344   if test "$hard_links" = no; then
9345     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9346 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9347     need_locks=warn
9348   fi
9349 else
9350   need_locks=no
9351 fi
9352
9353 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9354 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9355
9356   runpath_var=
9357   allow_undefined_flag=
9358   enable_shared_with_static_runtimes=no
9359   archive_cmds=
9360   archive_expsym_cmds=
9361   old_archive_From_new_cmds=
9362   old_archive_from_expsyms_cmds=
9363   export_dynamic_flag_spec=
9364   whole_archive_flag_spec=
9365   thread_safe_flag_spec=
9366   hardcode_libdir_flag_spec=
9367   hardcode_libdir_flag_spec_ld=
9368   hardcode_libdir_separator=
9369   hardcode_direct=no
9370   hardcode_minus_L=no
9371   hardcode_shlibpath_var=unsupported
9372   link_all_deplibs=unknown
9373   hardcode_automatic=no
9374   module_cmds=
9375   module_expsym_cmds=
9376   always_export_symbols=no
9377   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9378   # include_expsyms should be a list of space-separated symbols to be *always*
9379   # included in the symbol list
9380   include_expsyms=
9381   # exclude_expsyms can be an extended regexp of symbols to exclude
9382   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9383   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9384   # as well as any symbol that contains `d'.
9385   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9386   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9387   # platforms (ab)use it in PIC code, but their linkers get confused if
9388   # the symbol is explicitly referenced.  Since portable code cannot
9389   # rely on this symbol name, it's probably fine to never include it in
9390   # preloaded symbol tables.
9391   extract_expsyms_cmds=
9392   # Just being paranoid about ensuring that cc_basename is set.
9393   for cc_temp in $compiler""; do
9394   case $cc_temp in
9395     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9396     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9397     \-*) ;;
9398     *) break;;
9399   esac
9400 done
9401 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9402
9403   case $host_os in
9404   cygwin* | mingw* | pw32*)
9405     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9406     # When not using gcc, we currently assume that we are using
9407     # Microsoft Visual C++.
9408     if test "$GCC" != yes; then
9409       with_gnu_ld=no
9410     fi
9411     ;;
9412   interix*)
9413     # we just hope/assume this is gcc and not c89 (= MSVC++)
9414     with_gnu_ld=yes
9415     ;;
9416   openbsd*)
9417     with_gnu_ld=no
9418     ;;
9419   esac
9420
9421   ld_shlibs=yes
9422   if test "$with_gnu_ld" = yes; then
9423     # If archive_cmds runs LD, not CC, wlarc should be empty
9424     wlarc='${wl}'
9425
9426     # Set some defaults for GNU ld with shared library support. These
9427     # are reset later if shared libraries are not supported. Putting them
9428     # here allows them to be overridden if necessary.
9429     runpath_var=LD_RUN_PATH
9430     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9431     export_dynamic_flag_spec='${wl}--export-dynamic'
9432     # ancient GNU ld didn't support --whole-archive et. al.
9433     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9434         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9435       else
9436         whole_archive_flag_spec=
9437     fi
9438     supports_anon_versioning=no
9439     case `$LD -v 2>/dev/null` in
9440       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9441       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9442       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9443       *\ 2.11.*) ;; # other 2.11 versions
9444       *) supports_anon_versioning=yes ;;
9445     esac
9446
9447     # See if GNU ld supports shared libraries.
9448     case $host_os in
9449     aix3* | aix4* | aix5*)
9450       # On AIX/PPC, the GNU linker is very broken
9451       if test "$host_cpu" != ia64; then
9452         ld_shlibs=no
9453         cat <<EOF 1>&2
9454
9455 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9456 *** to be unable to reliably create shared libraries on AIX.
9457 *** Therefore, libtool is disabling shared libraries support.  If you
9458 *** really care for shared libraries, you may want to modify your PATH
9459 *** so that a non-GNU linker is found, and then restart.
9460
9461 EOF
9462       fi
9463       ;;
9464
9465     amigaos*)
9466       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)'
9467       hardcode_libdir_flag_spec='-L$libdir'
9468       hardcode_minus_L=yes
9469
9470       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9471       # that the semantics of dynamic libraries on AmigaOS, at least up
9472       # to version 4, is to share data among multiple programs linked
9473       # with the same dynamic library.  Since this doesn't match the
9474       # behavior of shared libraries on other platforms, we can't use
9475       # them.
9476       ld_shlibs=no
9477       ;;
9478
9479     beos*)
9480       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9481         allow_undefined_flag=unsupported
9482         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9483         # support --undefined.  This deserves some investigation.  FIXME
9484         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9485       else
9486         ld_shlibs=no
9487       fi
9488       ;;
9489
9490     cygwin* | mingw* | pw32*)
9491       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9492       # as there is no search path for DLLs.
9493       hardcode_libdir_flag_spec='-L$libdir'
9494       allow_undefined_flag=unsupported
9495       always_export_symbols=no
9496       enable_shared_with_static_runtimes=yes
9497       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9498
9499       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9500         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9501         # If the export-symbols file already is a .def file (1st line
9502         # is EXPORTS), use it as is; otherwise, prepend...
9503         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9504           cp $export_symbols $output_objdir/$soname.def;
9505         else
9506           echo EXPORTS > $output_objdir/$soname.def;
9507           cat $export_symbols >> $output_objdir/$soname.def;
9508         fi~
9509         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9510       else
9511         ld_shlibs=no
9512       fi
9513       ;;
9514
9515     interix3*)
9516       hardcode_direct=no
9517       hardcode_shlibpath_var=no
9518       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9519       export_dynamic_flag_spec='${wl}-E'
9520       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9521       # Instead, shared libraries are loaded at an image base (0x10000000 by
9522       # default) and relocated if they conflict, which is a slow very memory
9523       # consuming and fragmenting process.  To avoid this, we pick a random,
9524       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9525       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9526       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9527       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'
9528       ;;
9529
9530     linux* | k*bsd*-gnu)
9531       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9532         tmp_addflag=
9533         case $cc_basename,$host_cpu in
9534         pgcc*)                          # Portland Group C compiler
9535           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'
9536           tmp_addflag=' $pic_flag'
9537           ;;
9538         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9539           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'
9540           tmp_addflag=' $pic_flag -Mnomain' ;;
9541         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9542           tmp_addflag=' -i_dynamic' ;;
9543         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9544           tmp_addflag=' -i_dynamic -nofor_main' ;;
9545         ifc* | ifort*)                  # Intel Fortran compiler
9546           tmp_addflag=' -nofor_main' ;;
9547         esac
9548         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9549
9550         if test $supports_anon_versioning = yes; then
9551           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9552   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9553   $echo "local: *; };" >> $output_objdir/$libname.ver~
9554           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9555         fi
9556         link_all_deplibs=no
9557       else
9558         ld_shlibs=no
9559       fi
9560       ;;
9561
9562     netbsd* | netbsdelf*-gnu)
9563       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9564         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9565         wlarc=
9566       else
9567         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9569       fi
9570       ;;
9571
9572     solaris*)
9573       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9574         ld_shlibs=no
9575         cat <<EOF 1>&2
9576
9577 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9578 *** create shared libraries on Solaris systems.  Therefore, libtool
9579 *** is disabling shared libraries support.  We urge you to upgrade GNU
9580 *** binutils to release 2.9.1 or newer.  Another option is to modify
9581 *** your PATH or compiler configuration so that the native linker is
9582 *** used, and then restart.
9583
9584 EOF
9585       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9586         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9587         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9588       else
9589         ld_shlibs=no
9590       fi
9591       ;;
9592
9593     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9594       case `$LD -v 2>&1` in
9595         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9596         ld_shlibs=no
9597         cat <<_LT_EOF 1>&2
9598
9599 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9600 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9601 *** is disabling shared libraries support.  We urge you to upgrade GNU
9602 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9603 *** your PATH or compiler configuration so that the native linker is
9604 *** used, and then restart.
9605
9606 _LT_EOF
9607         ;;
9608         *)
9609           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9610             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9611             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9612             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9613           else
9614             ld_shlibs=no
9615           fi
9616         ;;
9617       esac
9618       ;;
9619
9620     sunos4*)
9621       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9622       wlarc=
9623       hardcode_direct=yes
9624       hardcode_shlibpath_var=no
9625       ;;
9626
9627     *)
9628       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9629         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9630         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9631       else
9632         ld_shlibs=no
9633       fi
9634       ;;
9635     esac
9636
9637     if test "$ld_shlibs" = no; then
9638       runpath_var=
9639       hardcode_libdir_flag_spec=
9640       export_dynamic_flag_spec=
9641       whole_archive_flag_spec=
9642     fi
9643   else
9644     # PORTME fill in a description of your system's linker (not GNU ld)
9645     case $host_os in
9646     aix3*)
9647       allow_undefined_flag=unsupported
9648       always_export_symbols=yes
9649       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'
9650       # Note: this linker hardcodes the directories in LIBPATH if there
9651       # are no directories specified by -L.
9652       hardcode_minus_L=yes
9653       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9654         # Neither direct hardcoding nor static linking is supported with a
9655         # broken collect2.
9656         hardcode_direct=unsupported
9657       fi
9658       ;;
9659
9660     aix4* | aix5*)
9661       if test "$host_cpu" = ia64; then
9662         # On IA64, the linker does run time linking by default, so we don't
9663         # have to do anything special.
9664         aix_use_runtimelinking=no
9665         exp_sym_flag='-Bexport'
9666         no_entry_flag=""
9667       else
9668         # If we're using GNU nm, then we don't want the "-C" option.
9669         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9670         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9671           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'
9672         else
9673           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'
9674         fi
9675         aix_use_runtimelinking=no
9676
9677         # Test if we are trying to use run time linking or normal
9678         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9679         # need to do runtime linking.
9680         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9681           for ld_flag in $LDFLAGS; do
9682           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9683             aix_use_runtimelinking=yes
9684             break
9685           fi
9686           done
9687           ;;
9688         esac
9689
9690         exp_sym_flag='-bexport'
9691         no_entry_flag='-bnoentry'
9692       fi
9693
9694       # When large executables or shared objects are built, AIX ld can
9695       # have problems creating the table of contents.  If linking a library
9696       # or program results in "error TOC overflow" add -mminimal-toc to
9697       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9698       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9699
9700       archive_cmds=''
9701       hardcode_direct=yes
9702       hardcode_libdir_separator=':'
9703       link_all_deplibs=yes
9704
9705       if test "$GCC" = yes; then
9706         case $host_os in aix4.[012]|aix4.[012].*)
9707         # We only want to do this on AIX 4.2 and lower, the check
9708         # below for broken collect2 doesn't work under 4.3+
9709           collect2name=`${CC} -print-prog-name=collect2`
9710           if test -f "$collect2name" && \
9711            strings "$collect2name" | grep resolve_lib_name >/dev/null
9712           then
9713           # We have reworked collect2
9714           hardcode_direct=yes
9715           else
9716           # We have old collect2
9717           hardcode_direct=unsupported
9718           # It fails to find uninstalled libraries when the uninstalled
9719           # path is not listed in the libpath.  Setting hardcode_minus_L
9720           # to unsupported forces relinking
9721           hardcode_minus_L=yes
9722           hardcode_libdir_flag_spec='-L$libdir'
9723           hardcode_libdir_separator=
9724           fi
9725           ;;
9726         esac
9727         shared_flag='-shared'
9728         if test "$aix_use_runtimelinking" = yes; then
9729           shared_flag="$shared_flag "'${wl}-G'
9730         fi
9731       else
9732         # not using gcc
9733         if test "$host_cpu" = ia64; then
9734         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9735         # chokes on -Wl,-G. The following line is correct:
9736           shared_flag='-G'
9737         else
9738           if test "$aix_use_runtimelinking" = yes; then
9739             shared_flag='${wl}-G'
9740           else
9741             shared_flag='${wl}-bM:SRE'
9742           fi
9743         fi
9744       fi
9745
9746       # It seems that -bexpall does not export symbols beginning with
9747       # underscore (_), so it is better to generate a list of symbols to export.
9748       always_export_symbols=yes
9749       if test "$aix_use_runtimelinking" = yes; then
9750         # Warning - without using the other runtime loading flags (-brtl),
9751         # -berok will link without error, but may produce a broken library.
9752         allow_undefined_flag='-berok'
9753        # Determine the default libpath from the value encoded in an empty executable.
9754        cat >conftest.$ac_ext <<_ACEOF
9755 /* confdefs.h.  */
9756 _ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h.  */
9760
9761 int
9762 main ()
9763 {
9764
9765   ;
9766   return 0;
9767 }
9768 _ACEOF
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (ac_try="$ac_link"
9771 case "(($ac_try" in
9772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773   *) ac_try_echo=$ac_try;;
9774 esac
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776   (eval "$ac_link") 2>conftest.er1
9777   ac_status=$?
9778   grep -v '^ *+' conftest.er1 >conftest.err
9779   rm -f conftest.er1
9780   cat conftest.err >&5
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); } &&
9783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9784   { (case "(($ac_try" in
9785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786   *) ac_try_echo=$ac_try;;
9787 esac
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789   (eval "$ac_try") 2>&5
9790   ac_status=$?
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); }; } &&
9793          { ac_try='test -s conftest$ac_exeext'
9794   { (case "(($ac_try" in
9795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796   *) ac_try_echo=$ac_try;;
9797 esac
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799   (eval "$ac_try") 2>&5
9800   ac_status=$?
9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802   (exit $ac_status); }; }; then
9803
9804 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9805 }'`
9806 # Check for a 64-bit object if we didn't find anything.
9807 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9808 }'`; fi
9809 else
9810   echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9812
9813
9814 fi
9815
9816 rm -f core conftest.err conftest.$ac_objext \
9817       conftest$ac_exeext conftest.$ac_ext
9818 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9819
9820        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9821         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"
9822        else
9823         if test "$host_cpu" = ia64; then
9824           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9825           allow_undefined_flag="-z nodefs"
9826           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"
9827         else
9828          # Determine the default libpath from the value encoded in an empty executable.
9829          cat >conftest.$ac_ext <<_ACEOF
9830 /* confdefs.h.  */
9831 _ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h.  */
9835
9836 int
9837 main ()
9838 {
9839
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9846 case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851   (eval "$ac_link") 2>conftest.er1
9852   ac_status=$?
9853   grep -v '^ *+' conftest.er1 >conftest.err
9854   rm -f conftest.er1
9855   cat conftest.err >&5
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); } &&
9858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859   { (case "(($ac_try" in
9860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861   *) ac_try_echo=$ac_try;;
9862 esac
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864   (eval "$ac_try") 2>&5
9865   ac_status=$?
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); }; } &&
9868          { ac_try='test -s conftest$ac_exeext'
9869   { (case "(($ac_try" in
9870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871   *) ac_try_echo=$ac_try;;
9872 esac
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874   (eval "$ac_try") 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); }; }; then
9878
9879 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9880 }'`
9881 # Check for a 64-bit object if we didn't find anything.
9882 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9883 }'`; fi
9884 else
9885   echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9887
9888
9889 fi
9890
9891 rm -f core conftest.err conftest.$ac_objext \
9892       conftest$ac_exeext conftest.$ac_ext
9893 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9894
9895          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9896           # Warning - without using the other run time loading flags,
9897           # -berok will link without error, but may produce a broken library.
9898           no_undefined_flag=' ${wl}-bernotok'
9899           allow_undefined_flag=' ${wl}-berok'
9900           # Exported symbols can be pulled into shared objects from archives
9901           whole_archive_flag_spec='$convenience'
9902           archive_cmds_need_lc=yes
9903           # This is similar to how AIX traditionally builds its shared libraries.
9904           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'
9905         fi
9906       fi
9907       ;;
9908
9909     amigaos*)
9910       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)'
9911       hardcode_libdir_flag_spec='-L$libdir'
9912       hardcode_minus_L=yes
9913       # see comment about different semantics on the GNU ld section
9914       ld_shlibs=no
9915       ;;
9916
9917     bsdi[45]*)
9918       export_dynamic_flag_spec=-rdynamic
9919       ;;
9920
9921     cygwin* | mingw* | pw32*)
9922       # When not using gcc, we currently assume that we are using
9923       # Microsoft Visual C++.
9924       # hardcode_libdir_flag_spec is actually meaningless, as there is
9925       # no search path for DLLs.
9926       hardcode_libdir_flag_spec=' '
9927       allow_undefined_flag=unsupported
9928       # Tell ltmain to make .lib files, not .a files.
9929       libext=lib
9930       # Tell ltmain to make .dll files, not .so files.
9931       shrext_cmds=".dll"
9932       # FIXME: Setting linknames here is a bad hack.
9933       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9934       # The linker will automatically build a .lib file if we build a DLL.
9935       old_archive_From_new_cmds='true'
9936       # FIXME: Should let the user specify the lib program.
9937       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9938       fix_srcfile_path='`cygpath -w "$srcfile"`'
9939       enable_shared_with_static_runtimes=yes
9940       ;;
9941
9942     darwin* | rhapsody*)
9943       case $host_os in
9944         rhapsody* | darwin1.[012])
9945          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9946          ;;
9947        *) # Darwin 1.3 on
9948          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9949            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9950          else
9951            case ${MACOSX_DEPLOYMENT_TARGET} in
9952              10.[012])
9953                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9954                ;;
9955              10.*)
9956                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9957                ;;
9958            esac
9959          fi
9960          ;;
9961       esac
9962       archive_cmds_need_lc=no
9963       hardcode_direct=no
9964       hardcode_automatic=yes
9965       hardcode_shlibpath_var=unsupported
9966       whole_archive_flag_spec=''
9967       link_all_deplibs=yes
9968     if test "$GCC" = yes ; then
9969         output_verbose_link_cmd='echo'
9970         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9971       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9972       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9973       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9974       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}'
9975     else
9976       case $cc_basename in
9977         xlc*)
9978          output_verbose_link_cmd='echo'
9979          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9980          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9981           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9982          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9983           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}'
9984           ;;
9985        *)
9986          ld_shlibs=no
9987           ;;
9988       esac
9989     fi
9990       ;;
9991
9992     dgux*)
9993       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9994       hardcode_libdir_flag_spec='-L$libdir'
9995       hardcode_shlibpath_var=no
9996       ;;
9997
9998     freebsd1*)
9999       ld_shlibs=no
10000       ;;
10001
10002     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10003     # support.  Future versions do this automatically, but an explicit c++rt0.o
10004     # does not break anything, and helps significantly (at the cost of a little
10005     # extra space).
10006     freebsd2.2*)
10007       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10008       hardcode_libdir_flag_spec='-R$libdir'
10009       hardcode_direct=yes
10010       hardcode_shlibpath_var=no
10011       ;;
10012
10013     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10014     freebsd2*)
10015       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10016       hardcode_direct=yes
10017       hardcode_minus_L=yes
10018       hardcode_shlibpath_var=no
10019       ;;
10020
10021     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10022     freebsd* | dragonfly*)
10023       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10024       hardcode_libdir_flag_spec='-R$libdir'
10025       hardcode_direct=yes
10026       hardcode_shlibpath_var=no
10027       ;;
10028
10029     hpux9*)
10030       if test "$GCC" = yes; then
10031         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'
10032       else
10033         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'
10034       fi
10035       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10036       hardcode_libdir_separator=:
10037       hardcode_direct=yes
10038
10039       # hardcode_minus_L: Not really in the search PATH,
10040       # but as the default location of the library.
10041       hardcode_minus_L=yes
10042       export_dynamic_flag_spec='${wl}-E'
10043       ;;
10044
10045     hpux10*)
10046       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10047         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10048       else
10049         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10050       fi
10051       if test "$with_gnu_ld" = no; then
10052         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10053         hardcode_libdir_separator=:
10054
10055         hardcode_direct=yes
10056         export_dynamic_flag_spec='${wl}-E'
10057
10058         # hardcode_minus_L: Not really in the search PATH,
10059         # but as the default location of the library.
10060         hardcode_minus_L=yes
10061       fi
10062       ;;
10063
10064     hpux11*)
10065       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10066         case $host_cpu in
10067         hppa*64*)
10068           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10069           ;;
10070         ia64*)
10071           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10072           ;;
10073         *)
10074           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10075           ;;
10076         esac
10077       else
10078         case $host_cpu in
10079         hppa*64*)
10080           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10081           ;;
10082         ia64*)
10083           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10084           ;;
10085         *)
10086           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10087           ;;
10088         esac
10089       fi
10090       if test "$with_gnu_ld" = no; then
10091         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10092         hardcode_libdir_separator=:
10093
10094         case $host_cpu in
10095         hppa*64*|ia64*)
10096           hardcode_libdir_flag_spec_ld='+b $libdir'
10097           hardcode_direct=no
10098           hardcode_shlibpath_var=no
10099           ;;
10100         *)
10101           hardcode_direct=yes
10102           export_dynamic_flag_spec='${wl}-E'
10103
10104           # hardcode_minus_L: Not really in the search PATH,
10105           # but as the default location of the library.
10106           hardcode_minus_L=yes
10107           ;;
10108         esac
10109       fi
10110       ;;
10111
10112     irix5* | irix6* | nonstopux*)
10113       if test "$GCC" = yes; then
10114         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'
10115       else
10116         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'
10117         hardcode_libdir_flag_spec_ld='-rpath $libdir'
10118       fi
10119       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10120       hardcode_libdir_separator=:
10121       link_all_deplibs=yes
10122       ;;
10123
10124     netbsd* | netbsdelf*-gnu)
10125       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10126         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10127       else
10128         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10129       fi
10130       hardcode_libdir_flag_spec='-R$libdir'
10131       hardcode_direct=yes
10132       hardcode_shlibpath_var=no
10133       ;;
10134
10135     newsos6)
10136       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10137       hardcode_direct=yes
10138       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10139       hardcode_libdir_separator=:
10140       hardcode_shlibpath_var=no
10141       ;;
10142
10143     openbsd*)
10144       hardcode_direct=yes
10145       hardcode_shlibpath_var=no
10146       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10147         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10148         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10149         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10150         export_dynamic_flag_spec='${wl}-E'
10151       else
10152        case $host_os in
10153          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10154            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10155            hardcode_libdir_flag_spec='-R$libdir'
10156            ;;
10157          *)
10158            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10159            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10160            ;;
10161        esac
10162       fi
10163       ;;
10164
10165     os2*)
10166       hardcode_libdir_flag_spec='-L$libdir'
10167       hardcode_minus_L=yes
10168       allow_undefined_flag=unsupported
10169       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'
10170       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10171       ;;
10172
10173     osf3*)
10174       if test "$GCC" = yes; then
10175         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10176         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'
10177       else
10178         allow_undefined_flag=' -expect_unresolved \*'
10179         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'
10180       fi
10181       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10182       hardcode_libdir_separator=:
10183       ;;
10184
10185     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10186       if test "$GCC" = yes; then
10187         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10188         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'
10189         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10190       else
10191         allow_undefined_flag=' -expect_unresolved \*'
10192         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'
10193         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10194         $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'
10195
10196         # Both c and cxx compiler support -rpath directly
10197         hardcode_libdir_flag_spec='-rpath $libdir'
10198       fi
10199       hardcode_libdir_separator=:
10200       ;;
10201
10202     solaris*)
10203       no_undefined_flag=' -z text'
10204       if test "$GCC" = yes; then
10205         wlarc='${wl}'
10206         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10207         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10208           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10209       else
10210         wlarc=''
10211         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10212         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10213         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10214       fi
10215       hardcode_libdir_flag_spec='-R$libdir'
10216       hardcode_shlibpath_var=no
10217       case $host_os in
10218       solaris2.[0-5] | solaris2.[0-5].*) ;;
10219       *)
10220         # The compiler driver will combine linker options so we
10221         # cannot just pass the convience library names through
10222         # without $wl, iff we do not link with $LD.
10223         # Luckily, gcc supports the same syntax we need for Sun Studio.
10224         # Supported since Solaris 2.6 (maybe 2.5.1?)
10225         case $wlarc in
10226         '')
10227           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10228         *)
10229           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
10230         esac ;;
10231       esac
10232       link_all_deplibs=yes
10233       ;;
10234
10235     sunos4*)
10236       if test "x$host_vendor" = xsequent; then
10237         # Use $CC to link under sequent, because it throws in some extra .o
10238         # files that make .init and .fini sections work.
10239         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10240       else
10241         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10242       fi
10243       hardcode_libdir_flag_spec='-L$libdir'
10244       hardcode_direct=yes
10245       hardcode_minus_L=yes
10246       hardcode_shlibpath_var=no
10247       ;;
10248
10249     sysv4)
10250       case $host_vendor in
10251         sni)
10252           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10253           hardcode_direct=yes # is this really true???
10254         ;;
10255         siemens)
10256           ## LD is ld it makes a PLAMLIB
10257           ## CC just makes a GrossModule.
10258           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10259           reload_cmds='$CC -r -o $output$reload_objs'
10260           hardcode_direct=no
10261         ;;
10262         motorola)
10263           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10264           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10265         ;;
10266       esac
10267       runpath_var='LD_RUN_PATH'
10268       hardcode_shlibpath_var=no
10269       ;;
10270
10271     sysv4.3*)
10272       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10273       hardcode_shlibpath_var=no
10274       export_dynamic_flag_spec='-Bexport'
10275       ;;
10276
10277     sysv4*MP*)
10278       if test -d /usr/nec; then
10279         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10280         hardcode_shlibpath_var=no
10281         runpath_var=LD_RUN_PATH
10282         hardcode_runpath_var=yes
10283         ld_shlibs=yes
10284       fi
10285       ;;
10286
10287     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10288       no_undefined_flag='${wl}-z,text'
10289       archive_cmds_need_lc=no
10290       hardcode_shlibpath_var=no
10291       runpath_var='LD_RUN_PATH'
10292
10293       if test "$GCC" = yes; then
10294         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10295         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10296       else
10297         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10298         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10299       fi
10300       ;;
10301
10302     sysv5* | sco3.2v5* | sco5v6*)
10303       # Note: We can NOT use -z defs as we might desire, because we do not
10304       # link with -lc, and that would cause any symbols used from libc to
10305       # always be unresolved, which means just about no library would
10306       # ever link correctly.  If we're not using GNU ld we use -z text
10307       # though, which does catch some bad symbols but isn't as heavy-handed
10308       # as -z defs.
10309       no_undefined_flag='${wl}-z,text'
10310       allow_undefined_flag='${wl}-z,nodefs'
10311       archive_cmds_need_lc=no
10312       hardcode_shlibpath_var=no
10313       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10314       hardcode_libdir_separator=':'
10315       link_all_deplibs=yes
10316       export_dynamic_flag_spec='${wl}-Bexport'
10317       runpath_var='LD_RUN_PATH'
10318
10319       if test "$GCC" = yes; then
10320         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10321         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10322       else
10323         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10324         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10325       fi
10326       ;;
10327
10328     uts4*)
10329       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10330       hardcode_libdir_flag_spec='-L$libdir'
10331       hardcode_shlibpath_var=no
10332       ;;
10333
10334     *)
10335       ld_shlibs=no
10336       ;;
10337     esac
10338   fi
10339
10340 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10341 echo "${ECHO_T}$ld_shlibs" >&6; }
10342 test "$ld_shlibs" = no && can_build_shared=no
10343
10344 #
10345 # Do we need to explicitly link libc?
10346 #
10347 case "x$archive_cmds_need_lc" in
10348 x|xyes)
10349   # Assume -lc should be added
10350   archive_cmds_need_lc=yes
10351
10352   if test "$enable_shared" = yes && test "$GCC" = yes; then
10353     case $archive_cmds in
10354     *'~'*)
10355       # FIXME: we may have to deal with multi-command sequences.
10356       ;;
10357     '$CC '*)
10358       # Test whether the compiler implicitly links with -lc since on some
10359       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10360       # to ld, don't add -lc before -lgcc.
10361       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10362 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10363       $rm conftest*
10364       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10365
10366       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10367   (eval $ac_compile) 2>&5
10368   ac_status=$?
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); } 2>conftest.err; then
10371         soname=conftest
10372         lib=conftest
10373         libobjs=conftest.$ac_objext
10374         deplibs=
10375         wl=$lt_prog_compiler_wl
10376         pic_flag=$lt_prog_compiler_pic
10377         compiler_flags=-v
10378         linker_flags=-v
10379         verstring=
10380         output_objdir=.
10381         libname=conftest
10382         lt_save_allow_undefined_flag=$allow_undefined_flag
10383         allow_undefined_flag=
10384         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10385   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10386   ac_status=$?
10387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388   (exit $ac_status); }
10389         then
10390           archive_cmds_need_lc=no
10391         else
10392           archive_cmds_need_lc=yes
10393         fi
10394         allow_undefined_flag=$lt_save_allow_undefined_flag
10395       else
10396         cat conftest.err 1>&5
10397       fi
10398       $rm conftest*
10399       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10400 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10401       ;;
10402     esac
10403   fi
10404   ;;
10405 esac
10406
10407 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10408 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10409 library_names_spec=
10410 libname_spec='lib$name'
10411 soname_spec=
10412 shrext_cmds=".so"
10413 postinstall_cmds=
10414 postuninstall_cmds=
10415 finish_cmds=
10416 finish_eval=
10417 shlibpath_var=
10418 shlibpath_overrides_runpath=unknown
10419 version_type=none
10420 dynamic_linker="$host_os ld.so"
10421 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10422 if test "$GCC" = yes; then
10423   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10424   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10425     # if the path contains ";" then we assume it to be the separator
10426     # otherwise default to the standard path separator (i.e. ":") - it is
10427     # assumed that no part of a normal pathname contains ";" but that should
10428     # okay in the real world where ";" in dirpaths is itself problematic.
10429     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10430   else
10431     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10432   fi
10433 else
10434   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10435 fi
10436 need_lib_prefix=unknown
10437 hardcode_into_libs=no
10438
10439 # when you set need_version to no, make sure it does not cause -set_version
10440 # flags to be left without arguments
10441 need_version=unknown
10442
10443 case $host_os in
10444 aix3*)
10445   version_type=linux
10446   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10447   shlibpath_var=LIBPATH
10448
10449   # AIX 3 has no versioning support, so we append a major version to the name.
10450   soname_spec='${libname}${release}${shared_ext}$major'
10451   ;;
10452
10453 aix4* | aix5*)
10454   version_type=linux
10455   need_lib_prefix=no
10456   need_version=no
10457   hardcode_into_libs=yes
10458   if test "$host_cpu" = ia64; then
10459     # AIX 5 supports IA64
10460     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10461     shlibpath_var=LD_LIBRARY_PATH
10462   else
10463     # With GCC up to 2.95.x, collect2 would create an import file
10464     # for dependence libraries.  The import file would start with
10465     # the line `#! .'.  This would cause the generated library to
10466     # depend on `.', always an invalid library.  This was fixed in
10467     # development snapshots of GCC prior to 3.0.
10468     case $host_os in
10469       aix4 | aix4.[01] | aix4.[01].*)
10470       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10471            echo ' yes '
10472            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10473         :
10474       else
10475         can_build_shared=no
10476       fi
10477       ;;
10478     esac
10479     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10480     # soname into executable. Probably we can add versioning support to
10481     # collect2, so additional links can be useful in future.
10482     if test "$aix_use_runtimelinking" = yes; then
10483       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10484       # instead of lib<name>.a to let people know that these are not
10485       # typical AIX shared libraries.
10486       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10487     else
10488       # We preserve .a as extension for shared libraries through AIX4.2
10489       # and later when we are not doing run time linking.
10490       library_names_spec='${libname}${release}.a $libname.a'
10491       soname_spec='${libname}${release}${shared_ext}$major'
10492     fi
10493     shlibpath_var=LIBPATH
10494   fi
10495   ;;
10496
10497 amigaos*)
10498   library_names_spec='$libname.ixlibrary $libname.a'
10499   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10500   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'
10501   ;;
10502
10503 beos*)
10504   library_names_spec='${libname}${shared_ext}'
10505   dynamic_linker="$host_os ld.so"
10506   shlibpath_var=LIBRARY_PATH
10507   ;;
10508
10509 bsdi[45]*)
10510   version_type=linux
10511   need_version=no
10512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10513   soname_spec='${libname}${release}${shared_ext}$major'
10514   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10515   shlibpath_var=LD_LIBRARY_PATH
10516   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10517   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10518   # the default ld.so.conf also contains /usr/contrib/lib and
10519   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10520   # libtool to hard-code these into programs
10521   ;;
10522
10523 cygwin* | mingw* | pw32*)
10524   version_type=windows
10525   shrext_cmds=".dll"
10526   need_version=no
10527   need_lib_prefix=no
10528
10529   case $GCC,$host_os in
10530   yes,cygwin* | yes,mingw* | yes,pw32*)
10531     library_names_spec='$libname.dll.a'
10532     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10533     postinstall_cmds='base_file=`basename \${file}`~
10534       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10535       dldir=$destdir/`dirname \$dlpath`~
10536       test -d \$dldir || mkdir -p \$dldir~
10537       $install_prog $dir/$dlname \$dldir/$dlname~
10538       chmod a+x \$dldir/$dlname'
10539     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10540       dlpath=$dir/\$dldll~
10541        $rm \$dlpath'
10542     shlibpath_overrides_runpath=yes
10543
10544     case $host_os in
10545     cygwin*)
10546       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10547       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10548       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10549       ;;
10550     mingw*)
10551       # MinGW DLLs use traditional 'lib' prefix
10552       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10553       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10554       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10555         # It is most probably a Windows format PATH printed by
10556         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10557         # path with ; separators, and with drive letters. We can handle the
10558         # drive letters (cygwin fileutils understands them), so leave them,
10559         # especially as we might pass files found there to a mingw objdump,
10560         # which wouldn't understand a cygwinified path. Ahh.
10561         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10562       else
10563         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10564       fi
10565       ;;
10566     pw32*)
10567       # pw32 DLLs use 'pw' prefix rather than 'lib'
10568       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10569       ;;
10570     esac
10571     ;;
10572
10573   *)
10574     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10575     ;;
10576   esac
10577   dynamic_linker='Win32 ld.exe'
10578   # FIXME: first we should search . and the directory the executable is in
10579   shlibpath_var=PATH
10580   ;;
10581
10582 darwin* | rhapsody*)
10583   dynamic_linker="$host_os dyld"
10584   version_type=darwin
10585   need_lib_prefix=no
10586   need_version=no
10587   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10588   soname_spec='${libname}${release}${major}$shared_ext'
10589   shlibpath_overrides_runpath=yes
10590   shlibpath_var=DYLD_LIBRARY_PATH
10591   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10592   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10593   if test "$GCC" = yes; then
10594     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10595   else
10596     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10597   fi
10598   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10599   ;;
10600
10601 dgux*)
10602   version_type=linux
10603   need_lib_prefix=no
10604   need_version=no
10605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10606   soname_spec='${libname}${release}${shared_ext}$major'
10607   shlibpath_var=LD_LIBRARY_PATH
10608   ;;
10609
10610 freebsd1*)
10611   dynamic_linker=no
10612   ;;
10613
10614 freebsd* | dragonfly*)
10615   # DragonFly does not have aout.  When/if they implement a new
10616   # versioning mechanism, adjust this.
10617   if test -x /usr/bin/objformat; then
10618     objformat=`/usr/bin/objformat`
10619   else
10620     case $host_os in
10621     freebsd[123]*) objformat=aout ;;
10622     *) objformat=elf ;;
10623     esac
10624   fi
10625   version_type=freebsd-$objformat
10626   case $version_type in
10627     freebsd-elf*)
10628       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10629       need_version=no
10630       need_lib_prefix=no
10631       ;;
10632     freebsd-*)
10633       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10634       need_version=yes
10635       ;;
10636   esac
10637   shlibpath_var=LD_LIBRARY_PATH
10638   case $host_os in
10639   freebsd2*)
10640     shlibpath_overrides_runpath=yes
10641     ;;
10642   freebsd3.[01]* | freebsdelf3.[01]*)
10643     shlibpath_overrides_runpath=yes
10644     hardcode_into_libs=yes
10645     ;;
10646   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10647   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10648     shlibpath_overrides_runpath=no
10649     hardcode_into_libs=yes
10650     ;;
10651   freebsd*) # from 4.6 on
10652     shlibpath_overrides_runpath=yes
10653     hardcode_into_libs=yes
10654     ;;
10655   esac
10656   ;;
10657
10658 gnu*)
10659   version_type=linux
10660   need_lib_prefix=no
10661   need_version=no
10662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10663   soname_spec='${libname}${release}${shared_ext}$major'
10664   shlibpath_var=LD_LIBRARY_PATH
10665   hardcode_into_libs=yes
10666   ;;
10667
10668 hpux9* | hpux10* | hpux11*)
10669   # Give a soname corresponding to the major version so that dld.sl refuses to
10670   # link against other versions.
10671   version_type=sunos
10672   need_lib_prefix=no
10673   need_version=no
10674   case $host_cpu in
10675   ia64*)
10676     shrext_cmds='.so'
10677     hardcode_into_libs=yes
10678     dynamic_linker="$host_os dld.so"
10679     shlibpath_var=LD_LIBRARY_PATH
10680     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10681     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682     soname_spec='${libname}${release}${shared_ext}$major'
10683     if test "X$HPUX_IA64_MODE" = X32; then
10684       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10685     else
10686       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10687     fi
10688     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10689     ;;
10690    hppa*64*)
10691      shrext_cmds='.sl'
10692      hardcode_into_libs=yes
10693      dynamic_linker="$host_os dld.sl"
10694      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10695      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10696      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697      soname_spec='${libname}${release}${shared_ext}$major'
10698      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10699      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10700      ;;
10701    *)
10702     shrext_cmds='.sl'
10703     dynamic_linker="$host_os dld.sl"
10704     shlibpath_var=SHLIB_PATH
10705     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10706     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707     soname_spec='${libname}${release}${shared_ext}$major'
10708     ;;
10709   esac
10710   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10711   postinstall_cmds='chmod 555 $lib'
10712   ;;
10713
10714 interix3*)
10715   version_type=linux
10716   need_lib_prefix=no
10717   need_version=no
10718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10719   soname_spec='${libname}${release}${shared_ext}$major'
10720   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10721   shlibpath_var=LD_LIBRARY_PATH
10722   shlibpath_overrides_runpath=no
10723   hardcode_into_libs=yes
10724   ;;
10725
10726 irix5* | irix6* | nonstopux*)
10727   case $host_os in
10728     nonstopux*) version_type=nonstopux ;;
10729     *)
10730         if test "$lt_cv_prog_gnu_ld" = yes; then
10731                 version_type=linux
10732         else
10733                 version_type=irix
10734         fi ;;
10735   esac
10736   need_lib_prefix=no
10737   need_version=no
10738   soname_spec='${libname}${release}${shared_ext}$major'
10739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10740   case $host_os in
10741   irix5* | nonstopux*)
10742     libsuff= shlibsuff=
10743     ;;
10744   *)
10745     case $LD in # libtool.m4 will add one of these switches to LD
10746     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10747       libsuff= shlibsuff= libmagic=32-bit;;
10748     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10749       libsuff=32 shlibsuff=N32 libmagic=N32;;
10750     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10751       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10752     *) libsuff= shlibsuff= libmagic=never-match;;
10753     esac
10754     ;;
10755   esac
10756   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10757   shlibpath_overrides_runpath=no
10758   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10759   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10760   hardcode_into_libs=yes
10761   ;;
10762
10763 # No shared lib support for Linux oldld, aout, or coff.
10764 linux*oldld* | linux*aout* | linux*coff*)
10765   dynamic_linker=no
10766   ;;
10767
10768 # This must be Linux ELF.
10769 linux* | k*bsd*-gnu)
10770   version_type=linux
10771   need_lib_prefix=no
10772   need_version=no
10773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774   soname_spec='${libname}${release}${shared_ext}$major'
10775   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10776   shlibpath_var=LD_LIBRARY_PATH
10777   shlibpath_overrides_runpath=no
10778   # This implies no fast_install, which is unacceptable.
10779   # Some rework will be needed to allow for fast_install
10780   # before this can be enabled.
10781   hardcode_into_libs=yes
10782
10783   # Append ld.so.conf contents to the search path
10784   if test -f /etc/ld.so.conf; then
10785     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10786     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10787   fi
10788
10789   # We used to test for /lib/ld.so.1 and disable shared libraries on
10790   # powerpc, because MkLinux only supported shared libraries with the
10791   # GNU dynamic linker.  Since this was broken with cross compilers,
10792   # most powerpc-linux boxes support dynamic linking these days and
10793   # people can always --disable-shared, the test was removed, and we
10794   # assume the GNU/Linux dynamic linker is in use.
10795   dynamic_linker='GNU/Linux ld.so'
10796   ;;
10797
10798 netbsdelf*-gnu)
10799   version_type=linux
10800   need_lib_prefix=no
10801   need_version=no
10802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10803   soname_spec='${libname}${release}${shared_ext}$major'
10804   shlibpath_var=LD_LIBRARY_PATH
10805   shlibpath_overrides_runpath=no
10806   hardcode_into_libs=yes
10807   dynamic_linker='NetBSD ld.elf_so'
10808   ;;
10809
10810 netbsd*)
10811   version_type=sunos
10812   need_lib_prefix=no
10813   need_version=no
10814   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10815     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10816     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10817     dynamic_linker='NetBSD (a.out) ld.so'
10818   else
10819     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10820     soname_spec='${libname}${release}${shared_ext}$major'
10821     dynamic_linker='NetBSD ld.elf_so'
10822   fi
10823   shlibpath_var=LD_LIBRARY_PATH
10824   shlibpath_overrides_runpath=yes
10825   hardcode_into_libs=yes
10826   ;;
10827
10828 newsos6)
10829   version_type=linux
10830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831   shlibpath_var=LD_LIBRARY_PATH
10832   shlibpath_overrides_runpath=yes
10833   ;;
10834
10835 nto-qnx*)
10836   version_type=linux
10837   need_lib_prefix=no
10838   need_version=no
10839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10840   soname_spec='${libname}${release}${shared_ext}$major'
10841   shlibpath_var=LD_LIBRARY_PATH
10842   shlibpath_overrides_runpath=yes
10843   ;;
10844
10845 openbsd*)
10846   version_type=sunos
10847   sys_lib_dlsearch_path_spec="/usr/lib"
10848   need_lib_prefix=no
10849   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10850   case $host_os in
10851     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10852     *)                         need_version=no  ;;
10853   esac
10854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10855   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10856   shlibpath_var=LD_LIBRARY_PATH
10857   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10858     case $host_os in
10859       openbsd2.[89] | openbsd2.[89].*)
10860         shlibpath_overrides_runpath=no
10861         ;;
10862       *)
10863         shlibpath_overrides_runpath=yes
10864         ;;
10865       esac
10866   else
10867     shlibpath_overrides_runpath=yes
10868   fi
10869   ;;
10870
10871 os2*)
10872   libname_spec='$name'
10873   shrext_cmds=".dll"
10874   need_lib_prefix=no
10875   library_names_spec='$libname${shared_ext} $libname.a'
10876   dynamic_linker='OS/2 ld.exe'
10877   shlibpath_var=LIBPATH
10878   ;;
10879
10880 osf3* | osf4* | osf5*)
10881   version_type=osf
10882   need_lib_prefix=no
10883   need_version=no
10884   soname_spec='${libname}${release}${shared_ext}$major'
10885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10886   shlibpath_var=LD_LIBRARY_PATH
10887   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10888   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10889   ;;
10890
10891 solaris*)
10892   version_type=linux
10893   need_lib_prefix=no
10894   need_version=no
10895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10896   soname_spec='${libname}${release}${shared_ext}$major'
10897   shlibpath_var=LD_LIBRARY_PATH
10898   shlibpath_overrides_runpath=yes
10899   hardcode_into_libs=yes
10900   # ldd complains unless libraries are executable
10901   postinstall_cmds='chmod +x $lib'
10902   ;;
10903
10904 sunos4*)
10905   version_type=sunos
10906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10907   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10908   shlibpath_var=LD_LIBRARY_PATH
10909   shlibpath_overrides_runpath=yes
10910   if test "$with_gnu_ld" = yes; then
10911     need_lib_prefix=no
10912   fi
10913   need_version=yes
10914   ;;
10915
10916 sysv4 | sysv4.3*)
10917   version_type=linux
10918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10919   soname_spec='${libname}${release}${shared_ext}$major'
10920   shlibpath_var=LD_LIBRARY_PATH
10921   case $host_vendor in
10922     sni)
10923       shlibpath_overrides_runpath=no
10924       need_lib_prefix=no
10925       export_dynamic_flag_spec='${wl}-Blargedynsym'
10926       runpath_var=LD_RUN_PATH
10927       ;;
10928     siemens)
10929       need_lib_prefix=no
10930       ;;
10931     motorola)
10932       need_lib_prefix=no
10933       need_version=no
10934       shlibpath_overrides_runpath=no
10935       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10936       ;;
10937   esac
10938   ;;
10939
10940 sysv4*MP*)
10941   if test -d /usr/nec ;then
10942     version_type=linux
10943     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10944     soname_spec='$libname${shared_ext}.$major'
10945     shlibpath_var=LD_LIBRARY_PATH
10946   fi
10947   ;;
10948
10949 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10950   version_type=freebsd-elf
10951   need_lib_prefix=no
10952   need_version=no
10953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10954   soname_spec='${libname}${release}${shared_ext}$major'
10955   shlibpath_var=LD_LIBRARY_PATH
10956   hardcode_into_libs=yes
10957   if test "$with_gnu_ld" = yes; then
10958     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10959     shlibpath_overrides_runpath=no
10960   else
10961     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10962     shlibpath_overrides_runpath=yes
10963     case $host_os in
10964       sco3.2v5*)
10965         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10966         ;;
10967     esac
10968   fi
10969   sys_lib_dlsearch_path_spec='/usr/lib'
10970   ;;
10971
10972 uts4*)
10973   version_type=linux
10974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975   soname_spec='${libname}${release}${shared_ext}$major'
10976   shlibpath_var=LD_LIBRARY_PATH
10977   ;;
10978
10979 *)
10980   dynamic_linker=no
10981   ;;
10982 esac
10983 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10984 echo "${ECHO_T}$dynamic_linker" >&6; }
10985 test "$dynamic_linker" = no && can_build_shared=no
10986
10987 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10988 if test "$GCC" = yes; then
10989   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10990 fi
10991
10992 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10993 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10994 hardcode_action=
10995 if test -n "$hardcode_libdir_flag_spec" || \
10996    test -n "$runpath_var" || \
10997    test "X$hardcode_automatic" = "Xyes" ; then
10998
10999   # We can hardcode non-existant directories.
11000   if test "$hardcode_direct" != no &&
11001      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11002      # have to relink, otherwise we might link with an installed library
11003      # when we should be linking with a yet-to-be-installed one
11004      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11005      test "$hardcode_minus_L" != no; then
11006     # Linking always hardcodes the temporary library directory.
11007     hardcode_action=relink
11008   else
11009     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11010     hardcode_action=immediate
11011   fi
11012 else
11013   # We cannot hardcode anything, or else we can only hardcode existing
11014   # directories.
11015   hardcode_action=unsupported
11016 fi
11017 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11018 echo "${ECHO_T}$hardcode_action" >&6; }
11019
11020 if test "$hardcode_action" = relink; then
11021   # Fast installation is not supported
11022   enable_fast_install=no
11023 elif test "$shlibpath_overrides_runpath" = yes ||
11024      test "$enable_shared" = no; then
11025   # Fast installation is not necessary
11026   enable_fast_install=needless
11027 fi
11028
11029 striplib=
11030 old_striplib=
11031 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11032 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11033 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11034   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11035   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11036   { echo "$as_me:$LINENO: result: yes" >&5
11037 echo "${ECHO_T}yes" >&6; }
11038 else
11039 # FIXME - insert some real tests, host_os isn't really good enough
11040   case $host_os in
11041    darwin*)
11042        if test -n "$STRIP" ; then
11043          striplib="$STRIP -x"
11044          { echo "$as_me:$LINENO: result: yes" >&5
11045 echo "${ECHO_T}yes" >&6; }
11046        else
11047   { echo "$as_me:$LINENO: result: no" >&5
11048 echo "${ECHO_T}no" >&6; }
11049 fi
11050        ;;
11051    *)
11052   { echo "$as_me:$LINENO: result: no" >&5
11053 echo "${ECHO_T}no" >&6; }
11054     ;;
11055   esac
11056 fi
11057
11058 if test "x$enable_dlopen" != xyes; then
11059   enable_dlopen=unknown
11060   enable_dlopen_self=unknown
11061   enable_dlopen_self_static=unknown
11062 else
11063   lt_cv_dlopen=no
11064   lt_cv_dlopen_libs=
11065
11066   case $host_os in
11067   beos*)
11068     lt_cv_dlopen="load_add_on"
11069     lt_cv_dlopen_libs=
11070     lt_cv_dlopen_self=yes
11071     ;;
11072
11073   mingw* | pw32*)
11074     lt_cv_dlopen="LoadLibrary"
11075     lt_cv_dlopen_libs=
11076    ;;
11077
11078   cygwin*)
11079     lt_cv_dlopen="dlopen"
11080     lt_cv_dlopen_libs=
11081    ;;
11082
11083   darwin*)
11084   # if libdl is installed we need to link against it
11085     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11086 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11087 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11088   echo $ECHO_N "(cached) $ECHO_C" >&6
11089 else
11090   ac_check_lib_save_LIBS=$LIBS
11091 LIBS="-ldl  $LIBS"
11092 cat >conftest.$ac_ext <<_ACEOF
11093 /* confdefs.h.  */
11094 _ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h.  */
11098
11099 /* Override any GCC internal prototype to avoid an error.
11100    Use char because int might match the return type of a GCC
11101    builtin and then its argument prototype would still apply.  */
11102 #ifdef __cplusplus
11103 extern "C"
11104 #endif
11105 char dlopen ();
11106 int
11107 main ()
11108 {
11109 return dlopen ();
11110   ;
11111   return 0;
11112 }
11113 _ACEOF
11114 rm -f conftest.$ac_objext conftest$ac_exeext
11115 if { (ac_try="$ac_link"
11116 case "(($ac_try" in
11117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118   *) ac_try_echo=$ac_try;;
11119 esac
11120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121   (eval "$ac_link") 2>conftest.er1
11122   ac_status=$?
11123   grep -v '^ *+' conftest.er1 >conftest.err
11124   rm -f conftest.er1
11125   cat conftest.err >&5
11126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127   (exit $ac_status); } &&
11128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11129   { (case "(($ac_try" in
11130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131   *) ac_try_echo=$ac_try;;
11132 esac
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134   (eval "$ac_try") 2>&5
11135   ac_status=$?
11136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137   (exit $ac_status); }; } &&
11138          { ac_try='test -s conftest$ac_exeext'
11139   { (case "(($ac_try" in
11140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141   *) ac_try_echo=$ac_try;;
11142 esac
11143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144   (eval "$ac_try") 2>&5
11145   ac_status=$?
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); }; }; then
11148   ac_cv_lib_dl_dlopen=yes
11149 else
11150   echo "$as_me: failed program was:" >&5
11151 sed 's/^/| /' conftest.$ac_ext >&5
11152
11153         ac_cv_lib_dl_dlopen=no
11154 fi
11155
11156 rm -f core conftest.err conftest.$ac_objext \
11157       conftest$ac_exeext conftest.$ac_ext
11158 LIBS=$ac_check_lib_save_LIBS
11159 fi
11160 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11161 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11162 if test $ac_cv_lib_dl_dlopen = yes; then
11163   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11164 else
11165
11166     lt_cv_dlopen="dyld"
11167     lt_cv_dlopen_libs=
11168     lt_cv_dlopen_self=yes
11169
11170 fi
11171
11172    ;;
11173
11174   *)
11175     { echo "$as_me:$LINENO: checking for shl_load" >&5
11176 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11177 if test "${ac_cv_func_shl_load+set}" = set; then
11178   echo $ECHO_N "(cached) $ECHO_C" >&6
11179 else
11180   cat >conftest.$ac_ext <<_ACEOF
11181 /* confdefs.h.  */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h.  */
11186 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11188 #define shl_load innocuous_shl_load
11189
11190 /* System header to define __stub macros and hopefully few prototypes,
11191     which can conflict with char shl_load (); below.
11192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11193     <limits.h> exists even on freestanding compilers.  */
11194
11195 #ifdef __STDC__
11196 # include <limits.h>
11197 #else
11198 # include <assert.h>
11199 #endif
11200
11201 #undef shl_load
11202
11203 /* Override any GCC internal prototype to avoid an error.
11204    Use char because int might match the return type of a GCC
11205    builtin and then its argument prototype would still apply.  */
11206 #ifdef __cplusplus
11207 extern "C"
11208 #endif
11209 char shl_load ();
11210 /* The GNU C library defines this for functions which it implements
11211     to always fail with ENOSYS.  Some functions are actually named
11212     something starting with __ and the normal name is an alias.  */
11213 #if defined __stub_shl_load || defined __stub___shl_load
11214 choke me
11215 #endif
11216
11217 int
11218 main ()
11219 {
11220 return shl_load ();
11221   ;
11222   return 0;
11223 }
11224 _ACEOF
11225 rm -f conftest.$ac_objext conftest$ac_exeext
11226 if { (ac_try="$ac_link"
11227 case "(($ac_try" in
11228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11229   *) ac_try_echo=$ac_try;;
11230 esac
11231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11232   (eval "$ac_link") 2>conftest.er1
11233   ac_status=$?
11234   grep -v '^ *+' conftest.er1 >conftest.err
11235   rm -f conftest.er1
11236   cat conftest.err >&5
11237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238   (exit $ac_status); } &&
11239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11240   { (case "(($ac_try" in
11241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11242   *) ac_try_echo=$ac_try;;
11243 esac
11244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11245   (eval "$ac_try") 2>&5
11246   ac_status=$?
11247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248   (exit $ac_status); }; } &&
11249          { ac_try='test -s conftest$ac_exeext'
11250   { (case "(($ac_try" in
11251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252   *) ac_try_echo=$ac_try;;
11253 esac
11254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11255   (eval "$ac_try") 2>&5
11256   ac_status=$?
11257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258   (exit $ac_status); }; }; then
11259   ac_cv_func_shl_load=yes
11260 else
11261   echo "$as_me: failed program was:" >&5
11262 sed 's/^/| /' conftest.$ac_ext >&5
11263
11264         ac_cv_func_shl_load=no
11265 fi
11266
11267 rm -f core conftest.err conftest.$ac_objext \
11268       conftest$ac_exeext conftest.$ac_ext
11269 fi
11270 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11271 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11272 if test $ac_cv_func_shl_load = yes; then
11273   lt_cv_dlopen="shl_load"
11274 else
11275   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11276 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11277 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11278   echo $ECHO_N "(cached) $ECHO_C" >&6
11279 else
11280   ac_check_lib_save_LIBS=$LIBS
11281 LIBS="-ldld  $LIBS"
11282 cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h.  */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h.  */
11288
11289 /* Override any GCC internal prototype to avoid an error.
11290    Use char because int might match the return type of a GCC
11291    builtin and then its argument prototype would still apply.  */
11292 #ifdef __cplusplus
11293 extern "C"
11294 #endif
11295 char shl_load ();
11296 int
11297 main ()
11298 {
11299 return shl_load ();
11300   ;
11301   return 0;
11302 }
11303 _ACEOF
11304 rm -f conftest.$ac_objext conftest$ac_exeext
11305 if { (ac_try="$ac_link"
11306 case "(($ac_try" in
11307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308   *) ac_try_echo=$ac_try;;
11309 esac
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311   (eval "$ac_link") 2>conftest.er1
11312   ac_status=$?
11313   grep -v '^ *+' conftest.er1 >conftest.err
11314   rm -f conftest.er1
11315   cat conftest.err >&5
11316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317   (exit $ac_status); } &&
11318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11319   { (case "(($ac_try" in
11320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321   *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324   (eval "$ac_try") 2>&5
11325   ac_status=$?
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); }; } &&
11328          { ac_try='test -s conftest$ac_exeext'
11329   { (case "(($ac_try" in
11330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331   *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334   (eval "$ac_try") 2>&5
11335   ac_status=$?
11336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337   (exit $ac_status); }; }; then
11338   ac_cv_lib_dld_shl_load=yes
11339 else
11340   echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11342
11343         ac_cv_lib_dld_shl_load=no
11344 fi
11345
11346 rm -f core conftest.err conftest.$ac_objext \
11347       conftest$ac_exeext conftest.$ac_ext
11348 LIBS=$ac_check_lib_save_LIBS
11349 fi
11350 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11351 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11352 if test $ac_cv_lib_dld_shl_load = yes; then
11353   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11354 else
11355   { echo "$as_me:$LINENO: checking for dlopen" >&5
11356 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11357 if test "${ac_cv_func_dlopen+set}" = set; then
11358   echo $ECHO_N "(cached) $ECHO_C" >&6
11359 else
11360   cat >conftest.$ac_ext <<_ACEOF
11361 /* confdefs.h.  */
11362 _ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h.  */
11366 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11368 #define dlopen innocuous_dlopen
11369
11370 /* System header to define __stub macros and hopefully few prototypes,
11371     which can conflict with char dlopen (); below.
11372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11373     <limits.h> exists even on freestanding compilers.  */
11374
11375 #ifdef __STDC__
11376 # include <limits.h>
11377 #else
11378 # include <assert.h>
11379 #endif
11380
11381 #undef dlopen
11382
11383 /* Override any GCC internal prototype to avoid an error.
11384    Use char because int might match the return type of a GCC
11385    builtin and then its argument prototype would still apply.  */
11386 #ifdef __cplusplus
11387 extern "C"
11388 #endif
11389 char dlopen ();
11390 /* The GNU C library defines this for functions which it implements
11391     to always fail with ENOSYS.  Some functions are actually named
11392     something starting with __ and the normal name is an alias.  */
11393 #if defined __stub_dlopen || defined __stub___dlopen
11394 choke me
11395 #endif
11396
11397 int
11398 main ()
11399 {
11400 return dlopen ();
11401   ;
11402   return 0;
11403 }
11404 _ACEOF
11405 rm -f conftest.$ac_objext conftest$ac_exeext
11406 if { (ac_try="$ac_link"
11407 case "(($ac_try" in
11408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409   *) ac_try_echo=$ac_try;;
11410 esac
11411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412   (eval "$ac_link") 2>conftest.er1
11413   ac_status=$?
11414   grep -v '^ *+' conftest.er1 >conftest.err
11415   rm -f conftest.er1
11416   cat conftest.err >&5
11417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418   (exit $ac_status); } &&
11419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11420   { (case "(($ac_try" in
11421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422   *) ac_try_echo=$ac_try;;
11423 esac
11424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425   (eval "$ac_try") 2>&5
11426   ac_status=$?
11427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428   (exit $ac_status); }; } &&
11429          { ac_try='test -s conftest$ac_exeext'
11430   { (case "(($ac_try" in
11431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432   *) ac_try_echo=$ac_try;;
11433 esac
11434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435   (eval "$ac_try") 2>&5
11436   ac_status=$?
11437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438   (exit $ac_status); }; }; then
11439   ac_cv_func_dlopen=yes
11440 else
11441   echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.$ac_ext >&5
11443
11444         ac_cv_func_dlopen=no
11445 fi
11446
11447 rm -f core conftest.err conftest.$ac_objext \
11448       conftest$ac_exeext conftest.$ac_ext
11449 fi
11450 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11451 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11452 if test $ac_cv_func_dlopen = yes; then
11453   lt_cv_dlopen="dlopen"
11454 else
11455   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11456 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11457 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11458   echo $ECHO_N "(cached) $ECHO_C" >&6
11459 else
11460   ac_check_lib_save_LIBS=$LIBS
11461 LIBS="-ldl  $LIBS"
11462 cat >conftest.$ac_ext <<_ACEOF
11463 /* confdefs.h.  */
11464 _ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h.  */
11468
11469 /* Override any GCC internal prototype to avoid an error.
11470    Use char because int might match the return type of a GCC
11471    builtin and then its argument prototype would still apply.  */
11472 #ifdef __cplusplus
11473 extern "C"
11474 #endif
11475 char dlopen ();
11476 int
11477 main ()
11478 {
11479 return dlopen ();
11480   ;
11481   return 0;
11482 }
11483 _ACEOF
11484 rm -f conftest.$ac_objext conftest$ac_exeext
11485 if { (ac_try="$ac_link"
11486 case "(($ac_try" in
11487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488   *) ac_try_echo=$ac_try;;
11489 esac
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491   (eval "$ac_link") 2>conftest.er1
11492   ac_status=$?
11493   grep -v '^ *+' conftest.er1 >conftest.err
11494   rm -f conftest.er1
11495   cat conftest.err >&5
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); } &&
11498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11499   { (case "(($ac_try" in
11500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501   *) ac_try_echo=$ac_try;;
11502 esac
11503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504   (eval "$ac_try") 2>&5
11505   ac_status=$?
11506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507   (exit $ac_status); }; } &&
11508          { ac_try='test -s conftest$ac_exeext'
11509   { (case "(($ac_try" in
11510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511   *) ac_try_echo=$ac_try;;
11512 esac
11513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514   (eval "$ac_try") 2>&5
11515   ac_status=$?
11516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517   (exit $ac_status); }; }; then
11518   ac_cv_lib_dl_dlopen=yes
11519 else
11520   echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11522
11523         ac_cv_lib_dl_dlopen=no
11524 fi
11525
11526 rm -f core conftest.err conftest.$ac_objext \
11527       conftest$ac_exeext conftest.$ac_ext
11528 LIBS=$ac_check_lib_save_LIBS
11529 fi
11530 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11531 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11532 if test $ac_cv_lib_dl_dlopen = yes; then
11533   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11534 else
11535   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11536 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11537 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11538   echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540   ac_check_lib_save_LIBS=$LIBS
11541 LIBS="-lsvld  $LIBS"
11542 cat >conftest.$ac_ext <<_ACEOF
11543 /* confdefs.h.  */
11544 _ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h.  */
11548
11549 /* Override any GCC internal prototype to avoid an error.
11550    Use char because int might match the return type of a GCC
11551    builtin and then its argument prototype would still apply.  */
11552 #ifdef __cplusplus
11553 extern "C"
11554 #endif
11555 char dlopen ();
11556 int
11557 main ()
11558 {
11559 return dlopen ();
11560   ;
11561   return 0;
11562 }
11563 _ACEOF
11564 rm -f conftest.$ac_objext conftest$ac_exeext
11565 if { (ac_try="$ac_link"
11566 case "(($ac_try" in
11567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568   *) ac_try_echo=$ac_try;;
11569 esac
11570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571   (eval "$ac_link") 2>conftest.er1
11572   ac_status=$?
11573   grep -v '^ *+' conftest.er1 >conftest.err
11574   rm -f conftest.er1
11575   cat conftest.err >&5
11576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577   (exit $ac_status); } &&
11578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11579   { (case "(($ac_try" in
11580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581   *) ac_try_echo=$ac_try;;
11582 esac
11583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11584   (eval "$ac_try") 2>&5
11585   ac_status=$?
11586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587   (exit $ac_status); }; } &&
11588          { ac_try='test -s conftest$ac_exeext'
11589   { (case "(($ac_try" in
11590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591   *) ac_try_echo=$ac_try;;
11592 esac
11593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11594   (eval "$ac_try") 2>&5
11595   ac_status=$?
11596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597   (exit $ac_status); }; }; then
11598   ac_cv_lib_svld_dlopen=yes
11599 else
11600   echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11602
11603         ac_cv_lib_svld_dlopen=no
11604 fi
11605
11606 rm -f core conftest.err conftest.$ac_objext \
11607       conftest$ac_exeext conftest.$ac_ext
11608 LIBS=$ac_check_lib_save_LIBS
11609 fi
11610 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11611 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11612 if test $ac_cv_lib_svld_dlopen = yes; then
11613   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11614 else
11615   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11616 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11617 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11618   echo $ECHO_N "(cached) $ECHO_C" >&6
11619 else
11620   ac_check_lib_save_LIBS=$LIBS
11621 LIBS="-ldld  $LIBS"
11622 cat >conftest.$ac_ext <<_ACEOF
11623 /* confdefs.h.  */
11624 _ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h.  */
11628
11629 /* Override any GCC internal prototype to avoid an error.
11630    Use char because int might match the return type of a GCC
11631    builtin and then its argument prototype would still apply.  */
11632 #ifdef __cplusplus
11633 extern "C"
11634 #endif
11635 char dld_link ();
11636 int
11637 main ()
11638 {
11639 return dld_link ();
11640   ;
11641   return 0;
11642 }
11643 _ACEOF
11644 rm -f conftest.$ac_objext conftest$ac_exeext
11645 if { (ac_try="$ac_link"
11646 case "(($ac_try" in
11647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11648   *) ac_try_echo=$ac_try;;
11649 esac
11650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11651   (eval "$ac_link") 2>conftest.er1
11652   ac_status=$?
11653   grep -v '^ *+' conftest.er1 >conftest.err
11654   rm -f conftest.er1
11655   cat conftest.err >&5
11656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657   (exit $ac_status); } &&
11658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11659   { (case "(($ac_try" in
11660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661   *) ac_try_echo=$ac_try;;
11662 esac
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664   (eval "$ac_try") 2>&5
11665   ac_status=$?
11666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667   (exit $ac_status); }; } &&
11668          { ac_try='test -s conftest$ac_exeext'
11669   { (case "(($ac_try" in
11670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671   *) ac_try_echo=$ac_try;;
11672 esac
11673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11674   (eval "$ac_try") 2>&5
11675   ac_status=$?
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); }; }; then
11678   ac_cv_lib_dld_dld_link=yes
11679 else
11680   echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11682
11683         ac_cv_lib_dld_dld_link=no
11684 fi
11685
11686 rm -f core conftest.err conftest.$ac_objext \
11687       conftest$ac_exeext conftest.$ac_ext
11688 LIBS=$ac_check_lib_save_LIBS
11689 fi
11690 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11691 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11692 if test $ac_cv_lib_dld_dld_link = yes; then
11693   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11694 fi
11695
11696
11697 fi
11698
11699
11700 fi
11701
11702
11703 fi
11704
11705
11706 fi
11707
11708
11709 fi
11710
11711     ;;
11712   esac
11713
11714   if test "x$lt_cv_dlopen" != xno; then
11715     enable_dlopen=yes
11716   else
11717     enable_dlopen=no
11718   fi
11719
11720   case $lt_cv_dlopen in
11721   dlopen)
11722     save_CPPFLAGS="$CPPFLAGS"
11723     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11724
11725     save_LDFLAGS="$LDFLAGS"
11726     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11727
11728     save_LIBS="$LIBS"
11729     LIBS="$lt_cv_dlopen_libs $LIBS"
11730
11731     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11732 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11733 if test "${lt_cv_dlopen_self+set}" = set; then
11734   echo $ECHO_N "(cached) $ECHO_C" >&6
11735 else
11736           if test "$cross_compiling" = yes; then :
11737   lt_cv_dlopen_self=cross
11738 else
11739   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11740   lt_status=$lt_dlunknown
11741   cat > conftest.$ac_ext <<EOF
11742 #line 11742 "configure"
11743 #include "confdefs.h"
11744
11745 #if HAVE_DLFCN_H
11746 #include <dlfcn.h>
11747 #endif
11748
11749 #include <stdio.h>
11750
11751 #ifdef RTLD_GLOBAL
11752 #  define LT_DLGLOBAL           RTLD_GLOBAL
11753 #else
11754 #  ifdef DL_GLOBAL
11755 #    define LT_DLGLOBAL         DL_GLOBAL
11756 #  else
11757 #    define LT_DLGLOBAL         0
11758 #  endif
11759 #endif
11760
11761 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11762    find out it does not work in some platform. */
11763 #ifndef LT_DLLAZY_OR_NOW
11764 #  ifdef RTLD_LAZY
11765 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11766 #  else
11767 #    ifdef DL_LAZY
11768 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11769 #    else
11770 #      ifdef RTLD_NOW
11771 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11772 #      else
11773 #        ifdef DL_NOW
11774 #          define LT_DLLAZY_OR_NOW      DL_NOW
11775 #        else
11776 #          define LT_DLLAZY_OR_NOW      0
11777 #        endif
11778 #      endif
11779 #    endif
11780 #  endif
11781 #endif
11782
11783 #ifdef __cplusplus
11784 extern "C" void exit (int);
11785 #endif
11786
11787 void fnord() { int i=42;}
11788 int main ()
11789 {
11790   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11791   int status = $lt_dlunknown;
11792
11793   if (self)
11794     {
11795       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11796       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11797       /* dlclose (self); */
11798     }
11799   else
11800     puts (dlerror ());
11801
11802     exit (status);
11803 }
11804 EOF
11805   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11806   (eval $ac_link) 2>&5
11807   ac_status=$?
11808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11810     (./conftest; exit; ) >&5 2>/dev/null
11811     lt_status=$?
11812     case x$lt_status in
11813       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11814       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11815       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11816     esac
11817   else :
11818     # compilation failed
11819     lt_cv_dlopen_self=no
11820   fi
11821 fi
11822 rm -fr conftest*
11823
11824
11825 fi
11826 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11827 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11828
11829     if test "x$lt_cv_dlopen_self" = xyes; then
11830       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11831       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11832 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11833 if test "${lt_cv_dlopen_self_static+set}" = set; then
11834   echo $ECHO_N "(cached) $ECHO_C" >&6
11835 else
11836           if test "$cross_compiling" = yes; then :
11837   lt_cv_dlopen_self_static=cross
11838 else
11839   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11840   lt_status=$lt_dlunknown
11841   cat > conftest.$ac_ext <<EOF
11842 #line 11842 "configure"
11843 #include "confdefs.h"
11844
11845 #if HAVE_DLFCN_H
11846 #include <dlfcn.h>
11847 #endif
11848
11849 #include <stdio.h>
11850
11851 #ifdef RTLD_GLOBAL
11852 #  define LT_DLGLOBAL           RTLD_GLOBAL
11853 #else
11854 #  ifdef DL_GLOBAL
11855 #    define LT_DLGLOBAL         DL_GLOBAL
11856 #  else
11857 #    define LT_DLGLOBAL         0
11858 #  endif
11859 #endif
11860
11861 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11862    find out it does not work in some platform. */
11863 #ifndef LT_DLLAZY_OR_NOW
11864 #  ifdef RTLD_LAZY
11865 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11866 #  else
11867 #    ifdef DL_LAZY
11868 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11869 #    else
11870 #      ifdef RTLD_NOW
11871 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11872 #      else
11873 #        ifdef DL_NOW
11874 #          define LT_DLLAZY_OR_NOW      DL_NOW
11875 #        else
11876 #          define LT_DLLAZY_OR_NOW      0
11877 #        endif
11878 #      endif
11879 #    endif
11880 #  endif
11881 #endif
11882
11883 #ifdef __cplusplus
11884 extern "C" void exit (int);
11885 #endif
11886
11887 void fnord() { int i=42;}
11888 int main ()
11889 {
11890   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11891   int status = $lt_dlunknown;
11892
11893   if (self)
11894     {
11895       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11896       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11897       /* dlclose (self); */
11898     }
11899   else
11900     puts (dlerror ());
11901
11902     exit (status);
11903 }
11904 EOF
11905   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11906   (eval $ac_link) 2>&5
11907   ac_status=$?
11908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11910     (./conftest; exit; ) >&5 2>/dev/null
11911     lt_status=$?
11912     case x$lt_status in
11913       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11914       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11915       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11916     esac
11917   else :
11918     # compilation failed
11919     lt_cv_dlopen_self_static=no
11920   fi
11921 fi
11922 rm -fr conftest*
11923
11924
11925 fi
11926 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11927 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11928     fi
11929
11930     CPPFLAGS="$save_CPPFLAGS"
11931     LDFLAGS="$save_LDFLAGS"
11932     LIBS="$save_LIBS"
11933     ;;
11934   esac
11935
11936   case $lt_cv_dlopen_self in
11937   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11938   *) enable_dlopen_self=unknown ;;
11939   esac
11940
11941   case $lt_cv_dlopen_self_static in
11942   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11943   *) enable_dlopen_self_static=unknown ;;
11944   esac
11945 fi
11946
11947
11948 # Report which library types will actually be built
11949 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11950 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11951 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11952 echo "${ECHO_T}$can_build_shared" >&6; }
11953
11954 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11955 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11956 test "$can_build_shared" = "no" && enable_shared=no
11957
11958 # On AIX, shared libraries and static libraries use the same namespace, and
11959 # are all built from PIC.
11960 case $host_os in
11961 aix3*)
11962   test "$enable_shared" = yes && enable_static=no
11963   if test -n "$RANLIB"; then
11964     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11965     postinstall_cmds='$RANLIB $lib'
11966   fi
11967   ;;
11968
11969 aix4* | aix5*)
11970   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11971     test "$enable_shared" = yes && enable_static=no
11972   fi
11973     ;;
11974 esac
11975 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11976 echo "${ECHO_T}$enable_shared" >&6; }
11977
11978 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11979 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11980 # Make sure either enable_shared or enable_static is yes.
11981 test "$enable_shared" = yes || enable_static=yes
11982 { echo "$as_me:$LINENO: result: $enable_static" >&5
11983 echo "${ECHO_T}$enable_static" >&6; }
11984
11985 # The else clause should only fire when bootstrapping the
11986 # libtool distribution, otherwise you forgot to ship ltmain.sh
11987 # with your package, and you will get complaints that there are
11988 # no rules to generate ltmain.sh.
11989 if test -f "$ltmain"; then
11990   # See if we are running on zsh, and set the options which allow our commands through
11991   # without removal of \ escapes.
11992   if test -n "${ZSH_VERSION+set}" ; then
11993     setopt NO_GLOB_SUBST
11994   fi
11995   # Now quote all the things that may contain metacharacters while being
11996   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11997   # variables and quote the copies for generation of the libtool script.
11998   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11999     SED SHELL STRIP \
12000     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12001     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12002     deplibs_check_method reload_flag reload_cmds need_locks \
12003     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12004     lt_cv_sys_global_symbol_to_c_name_address \
12005     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12006     old_postinstall_cmds old_postuninstall_cmds \
12007     compiler \
12008     CC \
12009     LD \
12010     lt_prog_compiler_wl \
12011     lt_prog_compiler_pic \
12012     lt_prog_compiler_static \
12013     lt_prog_compiler_no_builtin_flag \
12014     export_dynamic_flag_spec \
12015     thread_safe_flag_spec \
12016     whole_archive_flag_spec \
12017     enable_shared_with_static_runtimes \
12018     old_archive_cmds \
12019     old_archive_from_new_cmds \
12020     predep_objects \
12021     postdep_objects \
12022     predeps \
12023     postdeps \
12024     compiler_lib_search_path \
12025     archive_cmds \
12026     archive_expsym_cmds \
12027     postinstall_cmds \
12028     postuninstall_cmds \
12029     old_archive_from_expsyms_cmds \
12030     allow_undefined_flag \
12031     no_undefined_flag \
12032     export_symbols_cmds \
12033     hardcode_libdir_flag_spec \
12034     hardcode_libdir_flag_spec_ld \
12035     hardcode_libdir_separator \
12036     hardcode_automatic \
12037     module_cmds \
12038     module_expsym_cmds \
12039     lt_cv_prog_compiler_c_o \
12040     exclude_expsyms \
12041     include_expsyms; do
12042
12043     case $var in
12044     old_archive_cmds | \
12045     old_archive_from_new_cmds | \
12046     archive_cmds | \
12047     archive_expsym_cmds | \
12048     module_cmds | \
12049     module_expsym_cmds | \
12050     old_archive_from_expsyms_cmds | \
12051     export_symbols_cmds | \
12052     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12053     postinstall_cmds | postuninstall_cmds | \
12054     old_postinstall_cmds | old_postuninstall_cmds | \
12055     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12056       # Double-quote double-evaled strings.
12057       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12058       ;;
12059     *)
12060       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12061       ;;
12062     esac
12063   done
12064
12065   case $lt_echo in
12066   *'\$0 --fallback-echo"')
12067     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12068     ;;
12069   esac
12070
12071 cfgfile="${ofile}T"
12072   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12073   $rm -f "$cfgfile"
12074   { echo "$as_me:$LINENO: creating $ofile" >&5
12075 echo "$as_me: creating $ofile" >&6;}
12076
12077   cat <<__EOF__ >> "$cfgfile"
12078 #! $SHELL
12079
12080 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12081 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12082 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12083 #
12084 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12085 # Free Software Foundation, Inc.
12086 #
12087 # This file is part of GNU Libtool:
12088 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12089 #
12090 # This program is free software; you can redistribute it and/or modify
12091 # it under the terms of the GNU General Public License as published by
12092 # the Free Software Foundation; either version 2 of the License, or
12093 # (at your option) any later version.
12094 #
12095 # This program is distributed in the hope that it will be useful, but
12096 # WITHOUT ANY WARRANTY; without even the implied warranty of
12097 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12098 # General Public License for more details.
12099 #
12100 # You should have received a copy of the GNU General Public License
12101 # along with this program; if not, write to the Free Software
12102 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12103 #
12104 # As a special exception to the GNU General Public License, if you
12105 # distribute this file as part of a program that contains a
12106 # configuration script generated by Autoconf, you may include it under
12107 # the same distribution terms that you use for the rest of that program.
12108
12109 # A sed program that does not truncate output.
12110 SED=$lt_SED
12111
12112 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12113 Xsed="$SED -e 1s/^X//"
12114
12115 # The HP-UX ksh and POSIX shell print the target directory to stdout
12116 # if CDPATH is set.
12117 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12118
12119 # The names of the tagged configurations supported by this script.
12120 available_tags=
12121
12122 # ### BEGIN LIBTOOL CONFIG
12123
12124 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12125
12126 # Shell to use when invoking shell scripts.
12127 SHELL=$lt_SHELL
12128
12129 # Whether or not to build shared libraries.
12130 build_libtool_libs=$enable_shared
12131
12132 # Whether or not to build static libraries.
12133 build_old_libs=$enable_static
12134
12135 # Whether or not to add -lc for building shared libraries.
12136 build_libtool_need_lc=$archive_cmds_need_lc
12137
12138 # Whether or not to disallow shared libs when runtime libs are static
12139 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12140
12141 # Whether or not to optimize for fast installation.
12142 fast_install=$enable_fast_install
12143
12144 # The host system.
12145 host_alias=$host_alias
12146 host=$host
12147 host_os=$host_os
12148
12149 # The build system.
12150 build_alias=$build_alias
12151 build=$build
12152 build_os=$build_os
12153
12154 # An echo program that does not interpret backslashes.
12155 echo=$lt_echo
12156
12157 # The archiver.
12158 AR=$lt_AR
12159 AR_FLAGS=$lt_AR_FLAGS
12160
12161 # A C compiler.
12162 LTCC=$lt_LTCC
12163
12164 # LTCC compiler flags.
12165 LTCFLAGS=$lt_LTCFLAGS
12166
12167 # A language-specific compiler.
12168 CC=$lt_compiler
12169
12170 # Is the compiler the GNU C compiler?
12171 with_gcc=$GCC
12172
12173 # An ERE matcher.
12174 EGREP=$lt_EGREP
12175
12176 # The linker used to build libraries.
12177 LD=$lt_LD
12178
12179 # Whether we need hard or soft links.
12180 LN_S=$lt_LN_S
12181
12182 # A BSD-compatible nm program.
12183 NM=$lt_NM
12184
12185 # A symbol stripping program
12186 STRIP=$lt_STRIP
12187
12188 # Used to examine libraries when file_magic_cmd begins "file"
12189 MAGIC_CMD=$MAGIC_CMD
12190
12191 # Used on cygwin: DLL creation program.
12192 DLLTOOL="$DLLTOOL"
12193
12194 # Used on cygwin: object dumper.
12195 OBJDUMP="$OBJDUMP"
12196
12197 # Used on cygwin: assembler.
12198 AS="$AS"
12199
12200 # The name of the directory that contains temporary libtool files.
12201 objdir=$objdir
12202
12203 # How to create reloadable object files.
12204 reload_flag=$lt_reload_flag
12205 reload_cmds=$lt_reload_cmds
12206
12207 # How to pass a linker flag through the compiler.
12208 wl=$lt_lt_prog_compiler_wl
12209
12210 # Object file suffix (normally "o").
12211 objext="$ac_objext"
12212
12213 # Old archive suffix (normally "a").
12214 libext="$libext"
12215
12216 # Shared library suffix (normally ".so").
12217 shrext_cmds='$shrext_cmds'
12218
12219 # Executable file suffix (normally "").
12220 exeext="$exeext"
12221
12222 # Additional compiler flags for building library objects.
12223 pic_flag=$lt_lt_prog_compiler_pic
12224 pic_mode=$pic_mode
12225
12226 # What is the maximum length of a command?
12227 max_cmd_len=$lt_cv_sys_max_cmd_len
12228
12229 # Does compiler simultaneously support -c and -o options?
12230 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12231
12232 # Must we lock files when doing compilation?
12233 need_locks=$lt_need_locks
12234
12235 # Do we need the lib prefix for modules?
12236 need_lib_prefix=$need_lib_prefix
12237
12238 # Do we need a version for libraries?
12239 need_version=$need_version
12240
12241 # Whether dlopen is supported.
12242 dlopen_support=$enable_dlopen
12243
12244 # Whether dlopen of programs is supported.
12245 dlopen_self=$enable_dlopen_self
12246
12247 # Whether dlopen of statically linked programs is supported.
12248 dlopen_self_static=$enable_dlopen_self_static
12249
12250 # Compiler flag to prevent dynamic linking.
12251 link_static_flag=$lt_lt_prog_compiler_static
12252
12253 # Compiler flag to turn off builtin functions.
12254 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12255
12256 # Compiler flag to allow reflexive dlopens.
12257 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12258
12259 # Compiler flag to generate shared objects directly from archives.
12260 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12261
12262 # Compiler flag to generate thread-safe objects.
12263 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12264
12265 # Library versioning type.
12266 version_type=$version_type
12267
12268 # Format of library name prefix.
12269 libname_spec=$lt_libname_spec
12270
12271 # List of archive names.  First name is the real one, the rest are links.
12272 # The last name is the one that the linker finds with -lNAME.
12273 library_names_spec=$lt_library_names_spec
12274
12275 # The coded name of the library, if different from the real name.
12276 soname_spec=$lt_soname_spec
12277
12278 # Commands used to build and install an old-style archive.
12279 RANLIB=$lt_RANLIB
12280 old_archive_cmds=$lt_old_archive_cmds
12281 old_postinstall_cmds=$lt_old_postinstall_cmds
12282 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12283
12284 # Create an old-style archive from a shared archive.
12285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12286
12287 # Create a temporary old-style archive to link instead of a shared archive.
12288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12289
12290 # Commands used to build and install a shared archive.
12291 archive_cmds=$lt_archive_cmds
12292 archive_expsym_cmds=$lt_archive_expsym_cmds
12293 postinstall_cmds=$lt_postinstall_cmds
12294 postuninstall_cmds=$lt_postuninstall_cmds
12295
12296 # Commands used to build a loadable module (assumed same as above if empty)
12297 module_cmds=$lt_module_cmds
12298 module_expsym_cmds=$lt_module_expsym_cmds
12299
12300 # Commands to strip libraries.
12301 old_striplib=$lt_old_striplib
12302 striplib=$lt_striplib
12303
12304 # Dependencies to place before the objects being linked to create a
12305 # shared library.
12306 predep_objects=$lt_predep_objects
12307
12308 # Dependencies to place after the objects being linked to create a
12309 # shared library.
12310 postdep_objects=$lt_postdep_objects
12311
12312 # Dependencies to place before the objects being linked to create a
12313 # shared library.
12314 predeps=$lt_predeps
12315
12316 # Dependencies to place after the objects being linked to create a
12317 # shared library.
12318 postdeps=$lt_postdeps
12319
12320 # The library search path used internally by the compiler when linking
12321 # a shared library.
12322 compiler_lib_search_path=$lt_compiler_lib_search_path
12323
12324 # Method to check whether dependent libraries are shared objects.
12325 deplibs_check_method=$lt_deplibs_check_method
12326
12327 # Command to use when deplibs_check_method == file_magic.
12328 file_magic_cmd=$lt_file_magic_cmd
12329
12330 # Flag that allows shared libraries with undefined symbols to be built.
12331 allow_undefined_flag=$lt_allow_undefined_flag
12332
12333 # Flag that forces no undefined symbols.
12334 no_undefined_flag=$lt_no_undefined_flag
12335
12336 # Commands used to finish a libtool library installation in a directory.
12337 finish_cmds=$lt_finish_cmds
12338
12339 # Same as above, but a single script fragment to be evaled but not shown.
12340 finish_eval=$lt_finish_eval
12341
12342 # Take the output of nm and produce a listing of raw symbols and C names.
12343 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12344
12345 # Transform the output of nm in a proper C declaration
12346 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12347
12348 # Transform the output of nm in a C name address pair
12349 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12350
12351 # This is the shared library runtime path variable.
12352 runpath_var=$runpath_var
12353
12354 # This is the shared library path variable.
12355 shlibpath_var=$shlibpath_var
12356
12357 # Is shlibpath searched before the hard-coded library search path?
12358 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12359
12360 # How to hardcode a shared library path into an executable.
12361 hardcode_action=$hardcode_action
12362
12363 # Whether we should hardcode library paths into libraries.
12364 hardcode_into_libs=$hardcode_into_libs
12365
12366 # Flag to hardcode \$libdir into a binary during linking.
12367 # This must work even if \$libdir does not exist.
12368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12369
12370 # If ld is used when linking, flag to hardcode \$libdir into
12371 # a binary during linking. This must work even if \$libdir does
12372 # not exist.
12373 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12374
12375 # Whether we need a single -rpath flag with a separated argument.
12376 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12377
12378 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12379 # resulting binary.
12380 hardcode_direct=$hardcode_direct
12381
12382 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12383 # resulting binary.
12384 hardcode_minus_L=$hardcode_minus_L
12385
12386 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12387 # the resulting binary.
12388 hardcode_shlibpath_var=$hardcode_shlibpath_var
12389
12390 # Set to yes if building a shared library automatically hardcodes DIR into the library
12391 # and all subsequent libraries and executables linked against it.
12392 hardcode_automatic=$hardcode_automatic
12393
12394 # Variables whose values should be saved in libtool wrapper scripts and
12395 # restored at relink time.
12396 variables_saved_for_relink="$variables_saved_for_relink"
12397
12398 # Whether libtool must link a program against all its dependency libraries.
12399 link_all_deplibs=$link_all_deplibs
12400
12401 # Compile-time system search path for libraries
12402 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12403
12404 # Run-time system search path for libraries
12405 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12406
12407 # Fix the shell variable \$srcfile for the compiler.
12408 fix_srcfile_path="$fix_srcfile_path"
12409
12410 # Set to yes if exported symbols are required.
12411 always_export_symbols=$always_export_symbols
12412
12413 # The commands to list exported symbols.
12414 export_symbols_cmds=$lt_export_symbols_cmds
12415
12416 # The commands to extract the exported symbol list from a shared archive.
12417 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12418
12419 # Symbols that should not be listed in the preloaded symbols.
12420 exclude_expsyms=$lt_exclude_expsyms
12421
12422 # Symbols that must always be exported.
12423 include_expsyms=$lt_include_expsyms
12424
12425 # ### END LIBTOOL CONFIG
12426
12427 __EOF__
12428
12429
12430   case $host_os in
12431   aix3*)
12432     cat <<\EOF >> "$cfgfile"
12433
12434 # AIX sometimes has problems with the GCC collect2 program.  For some
12435 # reason, if we set the COLLECT_NAMES environment variable, the problems
12436 # vanish in a puff of smoke.
12437 if test "X${COLLECT_NAMES+set}" != Xset; then
12438   COLLECT_NAMES=
12439   export COLLECT_NAMES
12440 fi
12441 EOF
12442     ;;
12443   esac
12444
12445   # We use sed instead of cat because bash on DJGPP gets confused if
12446   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12447   # text mode, it properly converts lines to CR/LF.  This bash problem
12448   # is reportedly fixed, but why not run on old versions too?
12449   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12450
12451   mv -f "$cfgfile" "$ofile" || \
12452     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12453   chmod +x "$ofile"
12454
12455 else
12456   # If there is no Makefile yet, we rely on a make rule to execute
12457   # `config.status --recheck' to rerun these tests and create the
12458   # libtool script then.
12459   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12460   if test -f "$ltmain_in"; then
12461     test -f Makefile && make "$ltmain"
12462   fi
12463 fi
12464
12465
12466 ac_ext=c
12467 ac_cpp='$CPP $CPPFLAGS'
12468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12471
12472 CC="$lt_save_CC"
12473
12474
12475 # Check whether --with-tags was given.
12476 if test "${with_tags+set}" = set; then
12477   withval=$with_tags; tagnames="$withval"
12478 fi
12479
12480
12481 if test -f "$ltmain" && test -n "$tagnames"; then
12482   if test ! -f "${ofile}"; then
12483     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12484 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12485   fi
12486
12487   if test -z "$LTCC"; then
12488     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12489     if test -z "$LTCC"; then
12490       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12491 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12492     else
12493       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12494 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12495     fi
12496   fi
12497   if test -z "$LTCFLAGS"; then
12498     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12499   fi
12500
12501   # Extract list of available tagged configurations in $ofile.
12502   # Note that this assumes the entire list is on one line.
12503   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12504
12505   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12506   for tagname in $tagnames; do
12507     IFS="$lt_save_ifs"
12508     # Check whether tagname contains only valid characters
12509     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12510     "") ;;
12511     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12512 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12513    { (exit 1); exit 1; }; }
12514         ;;
12515     esac
12516
12517     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12518     then
12519       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12520 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12521    { (exit 1); exit 1; }; }
12522     fi
12523
12524     # Update the list of available tags.
12525     if test -n "$tagname"; then
12526       echo appending configuration tag \"$tagname\" to $ofile
12527
12528       case $tagname in
12529       CXX)
12530         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12531             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12532             (test "X$CXX" != "Xg++"))) ; then
12533           ac_ext=cpp
12534 ac_cpp='$CXXCPP $CPPFLAGS'
12535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12538
12539
12540
12541
12542 archive_cmds_need_lc_CXX=no
12543 allow_undefined_flag_CXX=
12544 always_export_symbols_CXX=no
12545 archive_expsym_cmds_CXX=
12546 export_dynamic_flag_spec_CXX=
12547 hardcode_direct_CXX=no
12548 hardcode_libdir_flag_spec_CXX=
12549 hardcode_libdir_flag_spec_ld_CXX=
12550 hardcode_libdir_separator_CXX=
12551 hardcode_minus_L_CXX=no
12552 hardcode_shlibpath_var_CXX=unsupported
12553 hardcode_automatic_CXX=no
12554 module_cmds_CXX=
12555 module_expsym_cmds_CXX=
12556 link_all_deplibs_CXX=unknown
12557 old_archive_cmds_CXX=$old_archive_cmds
12558 no_undefined_flag_CXX=
12559 whole_archive_flag_spec_CXX=
12560 enable_shared_with_static_runtimes_CXX=no
12561
12562 # Dependencies to place before and after the object being linked:
12563 predep_objects_CXX=
12564 postdep_objects_CXX=
12565 predeps_CXX=
12566 postdeps_CXX=
12567 compiler_lib_search_path_CXX=
12568
12569 # Source file extension for C++ test sources.
12570 ac_ext=cpp
12571
12572 # Object file extension for compiled C++ test sources.
12573 objext=o
12574 objext_CXX=$objext
12575
12576 # Code to be used in simple compile tests
12577 lt_simple_compile_test_code="int some_variable = 0;\n"
12578
12579 # Code to be used in simple link tests
12580 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12581
12582 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12583
12584 # If no C compiler was specified, use CC.
12585 LTCC=${LTCC-"$CC"}
12586
12587 # If no C compiler flags were specified, use CFLAGS.
12588 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12589
12590 # Allow CC to be a program name with arguments.
12591 compiler=$CC
12592
12593
12594 # save warnings/boilerplate of simple test code
12595 ac_outfile=conftest.$ac_objext
12596 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12597 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12598 _lt_compiler_boilerplate=`cat conftest.err`
12599 $rm conftest*
12600
12601 ac_outfile=conftest.$ac_objext
12602 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12603 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12604 _lt_linker_boilerplate=`cat conftest.err`
12605 $rm conftest*
12606
12607
12608 # Allow CC to be a program name with arguments.
12609 lt_save_CC=$CC
12610 lt_save_LD=$LD
12611 lt_save_GCC=$GCC
12612 GCC=$GXX
12613 lt_save_with_gnu_ld=$with_gnu_ld
12614 lt_save_path_LD=$lt_cv_path_LD
12615 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12616   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12617 else
12618   $as_unset lt_cv_prog_gnu_ld
12619 fi
12620 if test -n "${lt_cv_path_LDCXX+set}"; then
12621   lt_cv_path_LD=$lt_cv_path_LDCXX
12622 else
12623   $as_unset lt_cv_path_LD
12624 fi
12625 test -z "${LDCXX+set}" || LD=$LDCXX
12626 CC=${CXX-"c++"}
12627 compiler=$CC
12628 compiler_CXX=$CC
12629 for cc_temp in $compiler""; do
12630   case $cc_temp in
12631     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12632     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12633     \-*) ;;
12634     *) break;;
12635   esac
12636 done
12637 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12638
12639
12640 # We don't want -fno-exception wen compiling C++ code, so set the
12641 # no_builtin_flag separately
12642 if test "$GXX" = yes; then
12643   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12644 else
12645   lt_prog_compiler_no_builtin_flag_CXX=
12646 fi
12647
12648 if test "$GXX" = yes; then
12649   # Set up default GNU C++ configuration
12650
12651
12652 # Check whether --with-gnu-ld was given.
12653 if test "${with_gnu_ld+set}" = set; then
12654   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12655 else
12656   with_gnu_ld=no
12657 fi
12658
12659 ac_prog=ld
12660 if test "$GCC" = yes; then
12661   # Check if gcc -print-prog-name=ld gives a path.
12662   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12663 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12664   case $host in
12665   *-*-mingw*)
12666     # gcc leaves a trailing carriage return which upsets mingw
12667     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12668   *)
12669     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12670   esac
12671   case $ac_prog in
12672     # Accept absolute paths.
12673     [\\/]* | ?:[\\/]*)
12674       re_direlt='/[^/][^/]*/\.\./'
12675       # Canonicalize the pathname of ld
12676       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12677       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12678         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12679       done
12680       test -z "$LD" && LD="$ac_prog"
12681       ;;
12682   "")
12683     # If it fails, then pretend we aren't using GCC.
12684     ac_prog=ld
12685     ;;
12686   *)
12687     # If it is relative, then search for the first ld in PATH.
12688     with_gnu_ld=unknown
12689     ;;
12690   esac
12691 elif test "$with_gnu_ld" = yes; then
12692   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12693 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12694 else
12695   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12696 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12697 fi
12698 if test "${lt_cv_path_LD+set}" = set; then
12699   echo $ECHO_N "(cached) $ECHO_C" >&6
12700 else
12701   if test -z "$LD"; then
12702   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12703   for ac_dir in $PATH; do
12704     IFS="$lt_save_ifs"
12705     test -z "$ac_dir" && ac_dir=.
12706     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12707       lt_cv_path_LD="$ac_dir/$ac_prog"
12708       # Check to see if the program is GNU ld.  I'd rather use --version,
12709       # but apparently some variants of GNU ld only accept -v.
12710       # Break only if it was the GNU/non-GNU ld that we prefer.
12711       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12712       *GNU* | *'with BFD'*)
12713         test "$with_gnu_ld" != no && break
12714         ;;
12715       *)
12716         test "$with_gnu_ld" != yes && break
12717         ;;
12718       esac
12719     fi
12720   done
12721   IFS="$lt_save_ifs"
12722 else
12723   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12724 fi
12725 fi
12726
12727 LD="$lt_cv_path_LD"
12728 if test -n "$LD"; then
12729   { echo "$as_me:$LINENO: result: $LD" >&5
12730 echo "${ECHO_T}$LD" >&6; }
12731 else
12732   { echo "$as_me:$LINENO: result: no" >&5
12733 echo "${ECHO_T}no" >&6; }
12734 fi
12735 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12736 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12737    { (exit 1); exit 1; }; }
12738 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12739 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12740 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12741   echo $ECHO_N "(cached) $ECHO_C" >&6
12742 else
12743   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12744 case `$LD -v 2>&1 </dev/null` in
12745 *GNU* | *'with BFD'*)
12746   lt_cv_prog_gnu_ld=yes
12747   ;;
12748 *)
12749   lt_cv_prog_gnu_ld=no
12750   ;;
12751 esac
12752 fi
12753 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12754 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12755 with_gnu_ld=$lt_cv_prog_gnu_ld
12756
12757
12758
12759   # Check if GNU C++ uses GNU ld as the underlying linker, since the
12760   # archiving commands below assume that GNU ld is being used.
12761   if test "$with_gnu_ld" = yes; then
12762     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12763     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'
12764
12765     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12766     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12767
12768     # If archive_cmds runs LD, not CC, wlarc should be empty
12769     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12770     #     investigate it a little bit more. (MM)
12771     wlarc='${wl}'
12772
12773     # ancient GNU ld didn't support --whole-archive et. al.
12774     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12775         grep 'no-whole-archive' > /dev/null; then
12776       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12777     else
12778       whole_archive_flag_spec_CXX=
12779     fi
12780   else
12781     with_gnu_ld=no
12782     wlarc=
12783
12784     # A generic and very simple default shared library creation
12785     # command for GNU C++ for the case where it uses the native
12786     # linker, instead of GNU ld.  If possible, this setting should
12787     # overridden to take advantage of the native linker features on
12788     # the platform it is being used on.
12789     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12790   fi
12791
12792   # Commands to make compiler produce verbose output that lists
12793   # what "hidden" libraries, object files and flags are used when
12794   # linking a shared library.
12795   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12796
12797 else
12798   GXX=no
12799   with_gnu_ld=no
12800   wlarc=
12801 fi
12802
12803 # PORTME: fill in a description of your system's C++ link characteristics
12804 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12805 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12806 ld_shlibs_CXX=yes
12807 case $host_os in
12808   aix3*)
12809     # FIXME: insert proper C++ library support
12810     ld_shlibs_CXX=no
12811     ;;
12812   aix4* | aix5*)
12813     if test "$host_cpu" = ia64; then
12814       # On IA64, the linker does run time linking by default, so we don't
12815       # have to do anything special.
12816       aix_use_runtimelinking=no
12817       exp_sym_flag='-Bexport'
12818       no_entry_flag=""
12819     else
12820       aix_use_runtimelinking=no
12821
12822       # Test if we are trying to use run time linking or normal
12823       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12824       # need to do runtime linking.
12825       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12826         for ld_flag in $LDFLAGS; do
12827           case $ld_flag in
12828           *-brtl*)
12829             aix_use_runtimelinking=yes
12830             break
12831             ;;
12832           esac
12833         done
12834         ;;
12835       esac
12836
12837       exp_sym_flag='-bexport'
12838       no_entry_flag='-bnoentry'
12839     fi
12840
12841     # When large executables or shared objects are built, AIX ld can
12842     # have problems creating the table of contents.  If linking a library
12843     # or program results in "error TOC overflow" add -mminimal-toc to
12844     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12845     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12846
12847     archive_cmds_CXX=''
12848     hardcode_direct_CXX=yes
12849     hardcode_libdir_separator_CXX=':'
12850     link_all_deplibs_CXX=yes
12851
12852     if test "$GXX" = yes; then
12853       case $host_os in aix4.[012]|aix4.[012].*)
12854       # We only want to do this on AIX 4.2 and lower, the check
12855       # below for broken collect2 doesn't work under 4.3+
12856         collect2name=`${CC} -print-prog-name=collect2`
12857         if test -f "$collect2name" && \
12858            strings "$collect2name" | grep resolve_lib_name >/dev/null
12859         then
12860           # We have reworked collect2
12861           hardcode_direct_CXX=yes
12862         else
12863           # We have old collect2
12864           hardcode_direct_CXX=unsupported
12865           # It fails to find uninstalled libraries when the uninstalled
12866           # path is not listed in the libpath.  Setting hardcode_minus_L
12867           # to unsupported forces relinking
12868           hardcode_minus_L_CXX=yes
12869           hardcode_libdir_flag_spec_CXX='-L$libdir'
12870           hardcode_libdir_separator_CXX=
12871         fi
12872         ;;
12873       esac
12874       shared_flag='-shared'
12875       if test "$aix_use_runtimelinking" = yes; then
12876         shared_flag="$shared_flag "'${wl}-G'
12877       fi
12878     else
12879       # not using gcc
12880       if test "$host_cpu" = ia64; then
12881         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12882         # chokes on -Wl,-G. The following line is correct:
12883         shared_flag='-G'
12884       else
12885         if test "$aix_use_runtimelinking" = yes; then
12886           shared_flag='${wl}-G'
12887         else
12888           shared_flag='${wl}-bM:SRE'
12889         fi
12890       fi
12891     fi
12892
12893     # It seems that -bexpall does not export symbols beginning with
12894     # underscore (_), so it is better to generate a list of symbols to export.
12895     always_export_symbols_CXX=yes
12896     if test "$aix_use_runtimelinking" = yes; then
12897       # Warning - without using the other runtime loading flags (-brtl),
12898       # -berok will link without error, but may produce a broken library.
12899       allow_undefined_flag_CXX='-berok'
12900       # Determine the default libpath from the value encoded in an empty executable.
12901       cat >conftest.$ac_ext <<_ACEOF
12902 /* confdefs.h.  */
12903 _ACEOF
12904 cat confdefs.h >>conftest.$ac_ext
12905 cat >>conftest.$ac_ext <<_ACEOF
12906 /* end confdefs.h.  */
12907
12908 int
12909 main ()
12910 {
12911
12912   ;
12913   return 0;
12914 }
12915 _ACEOF
12916 rm -f conftest.$ac_objext conftest$ac_exeext
12917 if { (ac_try="$ac_link"
12918 case "(($ac_try" in
12919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920   *) ac_try_echo=$ac_try;;
12921 esac
12922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12923   (eval "$ac_link") 2>conftest.er1
12924   ac_status=$?
12925   grep -v '^ *+' conftest.er1 >conftest.err
12926   rm -f conftest.er1
12927   cat conftest.err >&5
12928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929   (exit $ac_status); } &&
12930          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12931   { (case "(($ac_try" in
12932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12933   *) ac_try_echo=$ac_try;;
12934 esac
12935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12936   (eval "$ac_try") 2>&5
12937   ac_status=$?
12938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939   (exit $ac_status); }; } &&
12940          { ac_try='test -s conftest$ac_exeext'
12941   { (case "(($ac_try" in
12942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943   *) ac_try_echo=$ac_try;;
12944 esac
12945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946   (eval "$ac_try") 2>&5
12947   ac_status=$?
12948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949   (exit $ac_status); }; }; then
12950
12951 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12952 }'`
12953 # Check for a 64-bit object if we didn't find anything.
12954 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12955 }'`; fi
12956 else
12957   echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12959
12960
12961 fi
12962
12963 rm -f core conftest.err conftest.$ac_objext \
12964       conftest$ac_exeext conftest.$ac_ext
12965 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12966
12967       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12968
12969       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"
12970      else
12971       if test "$host_cpu" = ia64; then
12972         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12973         allow_undefined_flag_CXX="-z nodefs"
12974         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"
12975       else
12976         # Determine the default libpath from the value encoded in an empty executable.
12977         cat >conftest.$ac_ext <<_ACEOF
12978 /* confdefs.h.  */
12979 _ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h.  */
12983
12984 int
12985 main ()
12986 {
12987
12988   ;
12989   return 0;
12990 }
12991 _ACEOF
12992 rm -f conftest.$ac_objext conftest$ac_exeext
12993 if { (ac_try="$ac_link"
12994 case "(($ac_try" in
12995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996   *) ac_try_echo=$ac_try;;
12997 esac
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999   (eval "$ac_link") 2>conftest.er1
13000   ac_status=$?
13001   grep -v '^ *+' conftest.er1 >conftest.err
13002   rm -f conftest.er1
13003   cat conftest.err >&5
13004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005   (exit $ac_status); } &&
13006          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13007   { (case "(($ac_try" in
13008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009   *) ac_try_echo=$ac_try;;
13010 esac
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012   (eval "$ac_try") 2>&5
13013   ac_status=$?
13014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015   (exit $ac_status); }; } &&
13016          { ac_try='test -s conftest$ac_exeext'
13017   { (case "(($ac_try" in
13018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019   *) ac_try_echo=$ac_try;;
13020 esac
13021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022   (eval "$ac_try") 2>&5
13023   ac_status=$?
13024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025   (exit $ac_status); }; }; then
13026
13027 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13028 }'`
13029 # Check for a 64-bit object if we didn't find anything.
13030 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13031 }'`; fi
13032 else
13033   echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13035
13036
13037 fi
13038
13039 rm -f core conftest.err conftest.$ac_objext \
13040       conftest$ac_exeext conftest.$ac_ext
13041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13042
13043         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13044         # Warning - without using the other run time loading flags,
13045         # -berok will link without error, but may produce a broken library.
13046         no_undefined_flag_CXX=' ${wl}-bernotok'
13047         allow_undefined_flag_CXX=' ${wl}-berok'
13048         # Exported symbols can be pulled into shared objects from archives
13049         whole_archive_flag_spec_CXX='$convenience'
13050         archive_cmds_need_lc_CXX=yes
13051         # This is similar to how AIX traditionally builds its shared libraries.
13052         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'
13053       fi
13054     fi
13055     ;;
13056
13057   beos*)
13058     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13059       allow_undefined_flag_CXX=unsupported
13060       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13061       # support --undefined.  This deserves some investigation.  FIXME
13062       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13063     else
13064       ld_shlibs_CXX=no
13065     fi
13066     ;;
13067
13068   chorus*)
13069     case $cc_basename in
13070       *)
13071         # FIXME: insert proper C++ library support
13072         ld_shlibs_CXX=no
13073         ;;
13074     esac
13075     ;;
13076
13077   cygwin* | mingw* | pw32*)
13078     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13079     # as there is no search path for DLLs.
13080     hardcode_libdir_flag_spec_CXX='-L$libdir'
13081     allow_undefined_flag_CXX=unsupported
13082     always_export_symbols_CXX=no
13083     enable_shared_with_static_runtimes_CXX=yes
13084
13085     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13086       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'
13087       # If the export-symbols file already is a .def file (1st line
13088       # is EXPORTS), use it as is; otherwise, prepend...
13089       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13090         cp $export_symbols $output_objdir/$soname.def;
13091       else
13092         echo EXPORTS > $output_objdir/$soname.def;
13093         cat $export_symbols >> $output_objdir/$soname.def;
13094       fi~
13095       $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'
13096     else
13097       ld_shlibs_CXX=no
13098     fi
13099   ;;
13100       darwin* | rhapsody*)
13101         case $host_os in
13102         rhapsody* | darwin1.[012])
13103          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13104          ;;
13105        *) # Darwin 1.3 on
13106          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13107            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13108          else
13109            case ${MACOSX_DEPLOYMENT_TARGET} in
13110              10.[012])
13111                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13112                ;;
13113              10.*)
13114                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13115                ;;
13116            esac
13117          fi
13118          ;;
13119         esac
13120       archive_cmds_need_lc_CXX=no
13121       hardcode_direct_CXX=no
13122       hardcode_automatic_CXX=yes
13123       hardcode_shlibpath_var_CXX=unsupported
13124       whole_archive_flag_spec_CXX=''
13125       link_all_deplibs_CXX=yes
13126
13127     if test "$GXX" = yes ; then
13128       lt_int_apple_cc_single_mod=no
13129       output_verbose_link_cmd='echo'
13130       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13131        lt_int_apple_cc_single_mod=yes
13132       fi
13133       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13134        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13135       else
13136           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'
13137         fi
13138         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13139         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13140           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13141             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13142           else
13143             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13144           fi
13145             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}'
13146       else
13147       case $cc_basename in
13148         xlc*)
13149          output_verbose_link_cmd='echo'
13150           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13151           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13152           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13153           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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13154           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}'
13155           ;;
13156        *)
13157          ld_shlibs_CXX=no
13158           ;;
13159       esac
13160       fi
13161         ;;
13162
13163   dgux*)
13164     case $cc_basename in
13165       ec++*)
13166         # FIXME: insert proper C++ library support
13167         ld_shlibs_CXX=no
13168         ;;
13169       ghcx*)
13170         # Green Hills C++ Compiler
13171         # FIXME: insert proper C++ library support
13172         ld_shlibs_CXX=no
13173         ;;
13174       *)
13175         # FIXME: insert proper C++ library support
13176         ld_shlibs_CXX=no
13177         ;;
13178     esac
13179     ;;
13180   freebsd[12]*)
13181     # C++ shared libraries reported to be fairly broken before switch to ELF
13182     ld_shlibs_CXX=no
13183     ;;
13184   freebsd-elf*)
13185     archive_cmds_need_lc_CXX=no
13186     ;;
13187   freebsd* | dragonfly*)
13188     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13189     # conventions
13190     ld_shlibs_CXX=yes
13191     ;;
13192   gnu*)
13193     ;;
13194   hpux9*)
13195     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13196     hardcode_libdir_separator_CXX=:
13197     export_dynamic_flag_spec_CXX='${wl}-E'
13198     hardcode_direct_CXX=yes
13199     hardcode_minus_L_CXX=yes # Not in the search PATH,
13200                                 # but as the default
13201                                 # location of the library.
13202
13203     case $cc_basename in
13204     CC*)
13205       # FIXME: insert proper C++ library support
13206       ld_shlibs_CXX=no
13207       ;;
13208     aCC*)
13209       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'
13210       # Commands to make compiler produce verbose output that lists
13211       # what "hidden" libraries, object files and flags are used when
13212       # linking a shared library.
13213       #
13214       # There doesn't appear to be a way to prevent this compiler from
13215       # explicitly linking system object files so we need to strip them
13216       # from the output so that they don't get included in the library
13217       # dependencies.
13218       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'
13219       ;;
13220     *)
13221       if test "$GXX" = yes; then
13222         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'
13223       else
13224         # FIXME: insert proper C++ library support
13225         ld_shlibs_CXX=no
13226       fi
13227       ;;
13228     esac
13229     ;;
13230   hpux10*|hpux11*)
13231     if test $with_gnu_ld = no; then
13232       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13233       hardcode_libdir_separator_CXX=:
13234
13235       case $host_cpu in
13236       hppa*64*|ia64*)
13237         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13238         ;;
13239       *)
13240         export_dynamic_flag_spec_CXX='${wl}-E'
13241         ;;
13242       esac
13243     fi
13244     case $host_cpu in
13245     hppa*64*|ia64*)
13246       hardcode_direct_CXX=no
13247       hardcode_shlibpath_var_CXX=no
13248       ;;
13249     *)
13250       hardcode_direct_CXX=yes
13251       hardcode_minus_L_CXX=yes # Not in the search PATH,
13252                                               # but as the default
13253                                               # location of the library.
13254       ;;
13255     esac
13256
13257     case $cc_basename in
13258       CC*)
13259         # FIXME: insert proper C++ library support
13260         ld_shlibs_CXX=no
13261         ;;
13262       aCC*)
13263         case $host_cpu in
13264         hppa*64*)
13265           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13266           ;;
13267         ia64*)
13268           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13269           ;;
13270         *)
13271           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13272           ;;
13273         esac
13274         # Commands to make compiler produce verbose output that lists
13275         # what "hidden" libraries, object files and flags are used when
13276         # linking a shared library.
13277         #
13278         # There doesn't appear to be a way to prevent this compiler from
13279         # explicitly linking system object files so we need to strip them
13280         # from the output so that they don't get included in the library
13281         # dependencies.
13282         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'
13283         ;;
13284       *)
13285         if test "$GXX" = yes; then
13286           if test $with_gnu_ld = no; then
13287             case $host_cpu in
13288             hppa*64*)
13289               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13290               ;;
13291             ia64*)
13292               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13293               ;;
13294             *)
13295               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'
13296               ;;
13297             esac
13298           fi
13299         else
13300           # FIXME: insert proper C++ library support
13301           ld_shlibs_CXX=no
13302         fi
13303         ;;
13304     esac
13305     ;;
13306   interix3*)
13307     hardcode_direct_CXX=no
13308     hardcode_shlibpath_var_CXX=no
13309     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13310     export_dynamic_flag_spec_CXX='${wl}-E'
13311     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13312     # Instead, shared libraries are loaded at an image base (0x10000000 by
13313     # default) and relocated if they conflict, which is a slow very memory
13314     # consuming and fragmenting process.  To avoid this, we pick a random,
13315     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13316     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13317     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'
13318     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'
13319     ;;
13320   irix5* | irix6*)
13321     case $cc_basename in
13322       CC*)
13323         # SGI C++
13324         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'
13325
13326         # Archives containing C++ object files must be created using
13327         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13328         # necessary to make sure instantiated templates are included
13329         # in the archive.
13330         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13331         ;;
13332       *)
13333         if test "$GXX" = yes; then
13334           if test "$with_gnu_ld" = no; then
13335             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'
13336           else
13337             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'
13338           fi
13339         fi
13340         link_all_deplibs_CXX=yes
13341         ;;
13342     esac
13343     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13344     hardcode_libdir_separator_CXX=:
13345     ;;
13346   linux* | k*bsd*-gnu)
13347     case $cc_basename in
13348       KCC*)
13349         # Kuck and Associates, Inc. (KAI) C++ Compiler
13350
13351         # KCC will only create a shared library if the output file
13352         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13353         # to its proper name (with version) after linking.
13354         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'
13355         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'
13356         # Commands to make compiler produce verbose output that lists
13357         # what "hidden" libraries, object files and flags are used when
13358         # linking a shared library.
13359         #
13360         # There doesn't appear to be a way to prevent this compiler from
13361         # explicitly linking system object files so we need to strip them
13362         # from the output so that they don't get included in the library
13363         # dependencies.
13364         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'
13365
13366         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13367         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13368
13369         # Archives containing C++ object files must be created using
13370         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13371         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13372         ;;
13373       icpc*)
13374         # Intel C++
13375         with_gnu_ld=yes
13376         # version 8.0 and above of icpc choke on multiply defined symbols
13377         # if we add $predep_objects and $postdep_objects, however 7.1 and
13378         # earlier do not add the objects themselves.
13379         case `$CC -V 2>&1` in
13380         *"Version 7."*)
13381           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13382           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'
13383           ;;
13384         *)  # Version 8.0 or newer
13385           tmp_idyn=
13386           case $host_cpu in
13387             ia64*) tmp_idyn=' -i_dynamic';;
13388           esac
13389           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13390           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'
13391           ;;
13392         esac
13393         archive_cmds_need_lc_CXX=no
13394         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13395         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13396         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13397         ;;
13398       pgCC*)
13399         # Portland Group C++ compiler
13400         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13401         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'
13402
13403         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13404         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13405         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'
13406         ;;
13407       cxx*)
13408         # Compaq C++
13409         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13410         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'
13411
13412         runpath_var=LD_RUN_PATH
13413         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13414         hardcode_libdir_separator_CXX=:
13415
13416         # Commands to make compiler produce verbose output that lists
13417         # what "hidden" libraries, object files and flags are used when
13418         # linking a shared library.
13419         #
13420         # There doesn't appear to be a way to prevent this compiler from
13421         # explicitly linking system object files so we need to strip them
13422         # from the output so that they don't get included in the library
13423         # dependencies.
13424         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'
13425         ;;
13426     esac
13427     ;;
13428   lynxos*)
13429     # FIXME: insert proper C++ library support
13430     ld_shlibs_CXX=no
13431     ;;
13432   m88k*)
13433     # FIXME: insert proper C++ library support
13434     ld_shlibs_CXX=no
13435     ;;
13436   mvs*)
13437     case $cc_basename in
13438       cxx*)
13439         # FIXME: insert proper C++ library support
13440         ld_shlibs_CXX=no
13441         ;;
13442       *)
13443         # FIXME: insert proper C++ library support
13444         ld_shlibs_CXX=no
13445         ;;
13446     esac
13447     ;;
13448   netbsd* | netbsdelf*-gnu)
13449     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13450       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13451       wlarc=
13452       hardcode_libdir_flag_spec_CXX='-R$libdir'
13453       hardcode_direct_CXX=yes
13454       hardcode_shlibpath_var_CXX=no
13455     fi
13456     # Workaround some broken pre-1.5 toolchains
13457     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13458     ;;
13459   openbsd2*)
13460     # C++ shared libraries are fairly broken
13461     ld_shlibs_CXX=no
13462     ;;
13463   openbsd*)
13464     hardcode_direct_CXX=yes
13465     hardcode_shlibpath_var_CXX=no
13466     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13467     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13468     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13469       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13470       export_dynamic_flag_spec_CXX='${wl}-E'
13471       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13472     fi
13473     output_verbose_link_cmd='echo'
13474     ;;
13475   osf3*)
13476     case $cc_basename in
13477       KCC*)
13478         # Kuck and Associates, Inc. (KAI) C++ Compiler
13479
13480         # KCC will only create a shared library if the output file
13481         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13482         # to its proper name (with version) after linking.
13483         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'
13484
13485         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13486         hardcode_libdir_separator_CXX=:
13487
13488         # Archives containing C++ object files must be created using
13489         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13490         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13491
13492         ;;
13493       RCC*)
13494         # Rational C++ 2.4.1
13495         # FIXME: insert proper C++ library support
13496         ld_shlibs_CXX=no
13497         ;;
13498       cxx*)
13499         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13500         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'
13501
13502         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13503         hardcode_libdir_separator_CXX=:
13504
13505         # Commands to make compiler produce verbose output that lists
13506         # what "hidden" libraries, object files and flags are used when
13507         # linking a shared library.
13508         #
13509         # There doesn't appear to be a way to prevent this compiler from
13510         # explicitly linking system object files so we need to strip them
13511         # from the output so that they don't get included in the library
13512         # dependencies.
13513         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'
13514         ;;
13515       *)
13516         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13517           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13518           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'
13519
13520           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13521           hardcode_libdir_separator_CXX=:
13522
13523           # Commands to make compiler produce verbose output that lists
13524           # what "hidden" libraries, object files and flags are used when
13525           # linking a shared library.
13526           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13527
13528         else
13529           # FIXME: insert proper C++ library support
13530           ld_shlibs_CXX=no
13531         fi
13532         ;;
13533     esac
13534     ;;
13535   osf4* | osf5*)
13536     case $cc_basename in
13537       KCC*)
13538         # Kuck and Associates, Inc. (KAI) C++ Compiler
13539
13540         # KCC will only create a shared library if the output file
13541         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13542         # to its proper name (with version) after linking.
13543         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'
13544
13545         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13546         hardcode_libdir_separator_CXX=:
13547
13548         # Archives containing C++ object files must be created using
13549         # the KAI C++ compiler.
13550         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13551         ;;
13552       RCC*)
13553         # Rational C++ 2.4.1
13554         # FIXME: insert proper C++ library support
13555         ld_shlibs_CXX=no
13556         ;;
13557       cxx*)
13558         allow_undefined_flag_CXX=' -expect_unresolved \*'
13559         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'
13560         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13561           echo "-hidden">> $lib.exp~
13562           $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~
13563           $rm $lib.exp'
13564
13565         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13566         hardcode_libdir_separator_CXX=:
13567
13568         # Commands to make compiler produce verbose output that lists
13569         # what "hidden" libraries, object files and flags are used when
13570         # linking a shared library.
13571         #
13572         # There doesn't appear to be a way to prevent this compiler from
13573         # explicitly linking system object files so we need to strip them
13574         # from the output so that they don't get included in the library
13575         # dependencies.
13576         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'
13577         ;;
13578       *)
13579         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13580           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13581          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'
13582
13583           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13584           hardcode_libdir_separator_CXX=:
13585
13586           # Commands to make compiler produce verbose output that lists
13587           # what "hidden" libraries, object files and flags are used when
13588           # linking a shared library.
13589           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13590
13591         else
13592           # FIXME: insert proper C++ library support
13593           ld_shlibs_CXX=no
13594         fi
13595         ;;
13596     esac
13597     ;;
13598   psos*)
13599     # FIXME: insert proper C++ library support
13600     ld_shlibs_CXX=no
13601     ;;
13602   sunos4*)
13603     case $cc_basename in
13604       CC*)
13605         # Sun C++ 4.x
13606         # FIXME: insert proper C++ library support
13607         ld_shlibs_CXX=no
13608         ;;
13609       lcc*)
13610         # Lucid
13611         # FIXME: insert proper C++ library support
13612         ld_shlibs_CXX=no
13613         ;;
13614       *)
13615         # FIXME: insert proper C++ library support
13616         ld_shlibs_CXX=no
13617         ;;
13618     esac
13619     ;;
13620   solaris*)
13621     case $cc_basename in
13622       CC*)
13623         # Sun C++ 4.2, 5.x and Centerline C++
13624         archive_cmds_need_lc_CXX=yes
13625         no_undefined_flag_CXX=' -zdefs'
13626         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13627         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13628         $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'
13629
13630         hardcode_libdir_flag_spec_CXX='-R$libdir'
13631         hardcode_shlibpath_var_CXX=no
13632         case $host_os in
13633           solaris2.[0-5] | solaris2.[0-5].*) ;;
13634           *)
13635             # The C++ compiler is used as linker so we must use $wl
13636             # flag to pass the commands to the underlying system
13637             # linker. We must also pass each convience library through
13638             # to the system linker between allextract/defaultextract.
13639             # The C++ compiler will combine linker options so we
13640             # cannot just pass the convience library names through
13641             # without $wl.
13642             # Supported since Solaris 2.6 (maybe 2.5.1?)
13643             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13644             ;;
13645         esac
13646         link_all_deplibs_CXX=yes
13647
13648         output_verbose_link_cmd='echo'
13649
13650         # Archives containing C++ object files must be created using
13651         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13652         # necessary to make sure instantiated templates are included
13653         # in the archive.
13654         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13655         ;;
13656       gcx*)
13657         # Green Hills C++ Compiler
13658         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13659
13660         # The C++ compiler must be used to create the archive.
13661         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13662         ;;
13663       *)
13664         # GNU C++ compiler with Solaris linker
13665         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13666           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13667           if $CC --version | grep -v '^2\.7' > /dev/null; then
13668             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13669             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13670                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13671
13672             # Commands to make compiler produce verbose output that lists
13673             # what "hidden" libraries, object files and flags are used when
13674             # linking a shared library.
13675             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13676           else
13677             # g++ 2.7 appears to require `-G' NOT `-shared' on this
13678             # platform.
13679             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13680             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13681                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13682
13683             # Commands to make compiler produce verbose output that lists
13684             # what "hidden" libraries, object files and flags are used when
13685             # linking a shared library.
13686             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13687           fi
13688
13689           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13690         fi
13691         ;;
13692     esac
13693     ;;
13694   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13695     no_undefined_flag_CXX='${wl}-z,text'
13696     archive_cmds_need_lc_CXX=no
13697     hardcode_shlibpath_var_CXX=no
13698     runpath_var='LD_RUN_PATH'
13699
13700     case $cc_basename in
13701       CC*)
13702         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13703         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13704         ;;
13705       *)
13706         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13707         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13708         ;;
13709     esac
13710     ;;
13711   sysv5* | sco3.2v5* | sco5v6*)
13712     # Note: We can NOT use -z defs as we might desire, because we do not
13713     # link with -lc, and that would cause any symbols used from libc to
13714     # always be unresolved, which means just about no library would
13715     # ever link correctly.  If we're not using GNU ld we use -z text
13716     # though, which does catch some bad symbols but isn't as heavy-handed
13717     # as -z defs.
13718     # For security reasons, it is highly recommended that you always
13719     # use absolute paths for naming shared libraries, and exclude the
13720     # DT_RUNPATH tag from executables and libraries.  But doing so
13721     # requires that you compile everything twice, which is a pain.
13722     # So that behaviour is only enabled if SCOABSPATH is set to a
13723     # non-empty value in the environment.  Most likely only useful for
13724     # creating official distributions of packages.
13725     # This is a hack until libtool officially supports absolute path
13726     # names for shared libraries.
13727     no_undefined_flag_CXX='${wl}-z,text'
13728     allow_undefined_flag_CXX='${wl}-z,nodefs'
13729     archive_cmds_need_lc_CXX=no
13730     hardcode_shlibpath_var_CXX=no
13731     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13732     hardcode_libdir_separator_CXX=':'
13733     link_all_deplibs_CXX=yes
13734     export_dynamic_flag_spec_CXX='${wl}-Bexport'
13735     runpath_var='LD_RUN_PATH'
13736
13737     case $cc_basename in
13738       CC*)
13739         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13740         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13741         ;;
13742       *)
13743         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13744         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13745         ;;
13746     esac
13747     ;;
13748   tandem*)
13749     case $cc_basename in
13750       NCC*)
13751         # NonStop-UX NCC 3.20
13752         # FIXME: insert proper C++ library support
13753         ld_shlibs_CXX=no
13754         ;;
13755       *)
13756         # FIXME: insert proper C++ library support
13757         ld_shlibs_CXX=no
13758         ;;
13759     esac
13760     ;;
13761   vxworks*)
13762     # FIXME: insert proper C++ library support
13763     ld_shlibs_CXX=no
13764     ;;
13765   *)
13766     # FIXME: insert proper C++ library support
13767     ld_shlibs_CXX=no
13768     ;;
13769 esac
13770 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13771 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13772 test "$ld_shlibs_CXX" = no && can_build_shared=no
13773
13774 GCC_CXX="$GXX"
13775 LD_CXX="$LD"
13776
13777
13778 cat > conftest.$ac_ext <<EOF
13779 class Foo
13780 {
13781 public:
13782   Foo (void) { a = 0; }
13783 private:
13784   int a;
13785 };
13786 EOF
13787
13788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13789   (eval $ac_compile) 2>&5
13790   ac_status=$?
13791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792   (exit $ac_status); }; then
13793   # Parse the compiler output and extract the necessary
13794   # objects, libraries and library flags.
13795
13796   # Sentinel used to keep track of whether or not we are before
13797   # the conftest object file.
13798   pre_test_object_deps_done=no
13799
13800   # The `*' in the case matches for architectures that use `case' in
13801   # $output_verbose_cmd can trigger glob expansion during the loop
13802   # eval without this substitution.
13803   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13804
13805   for p in `eval $output_verbose_link_cmd`; do
13806     case $p in
13807
13808     -L* | -R* | -l*)
13809        # Some compilers place space between "-{L,R}" and the path.
13810        # Remove the space.
13811        if test $p = "-L" \
13812           || test $p = "-R"; then
13813          prev=$p
13814          continue
13815        else
13816          prev=
13817        fi
13818
13819        if test "$pre_test_object_deps_done" = no; then
13820          case $p in
13821          -L* | -R*)
13822            # Internal compiler library paths should come after those
13823            # provided the user.  The postdeps already come after the
13824            # user supplied libs so there is no need to process them.
13825            if test -z "$compiler_lib_search_path_CXX"; then
13826              compiler_lib_search_path_CXX="${prev}${p}"
13827            else
13828              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13829            fi
13830            ;;
13831          # The "-l" case would never come before the object being
13832          # linked, so don't bother handling this case.
13833          esac
13834        else
13835          if test -z "$postdeps_CXX"; then
13836            postdeps_CXX="${prev}${p}"
13837          else
13838            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13839          fi
13840        fi
13841        ;;
13842
13843     *.$objext)
13844        # This assumes that the test object file only shows up
13845        # once in the compiler output.
13846        if test "$p" = "conftest.$objext"; then
13847          pre_test_object_deps_done=yes
13848          continue
13849        fi
13850
13851        if test "$pre_test_object_deps_done" = no; then
13852          if test -z "$predep_objects_CXX"; then
13853            predep_objects_CXX="$p"
13854          else
13855            predep_objects_CXX="$predep_objects_CXX $p"
13856          fi
13857        else
13858          if test -z "$postdep_objects_CXX"; then
13859            postdep_objects_CXX="$p"
13860          else
13861            postdep_objects_CXX="$postdep_objects_CXX $p"
13862          fi
13863        fi
13864        ;;
13865
13866     *) ;; # Ignore the rest.
13867
13868     esac
13869   done
13870
13871   # Clean up.
13872   rm -f a.out a.exe
13873 else
13874   echo "libtool.m4: error: problem compiling CXX test program"
13875 fi
13876
13877 $rm -f confest.$objext
13878
13879 # PORTME: override above test on systems where it is broken
13880 case $host_os in
13881 interix3*)
13882   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13883   # hack all around it, let's just trust "g++" to DTRT.
13884   predep_objects_CXX=
13885   postdep_objects_CXX=
13886   postdeps_CXX=
13887   ;;
13888
13889 solaris*)
13890   case $cc_basename in
13891   CC*)
13892     # Adding this requires a known-good setup of shared libraries for
13893     # Sun compiler versions before 5.6, else PIC objects from an old
13894     # archive will be linked into the output, leading to subtle bugs.
13895     postdeps_CXX='-lCstd -lCrun'
13896     ;;
13897   esac
13898   ;;
13899 esac
13900
13901
13902 case " $postdeps_CXX " in
13903 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13904 esac
13905
13906 lt_prog_compiler_wl_CXX=
13907 lt_prog_compiler_pic_CXX=
13908 lt_prog_compiler_static_CXX=
13909
13910 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13911 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13912
13913   # C++ specific cases for pic, static, wl, etc.
13914   if test "$GXX" = yes; then
13915     lt_prog_compiler_wl_CXX='-Wl,'
13916     lt_prog_compiler_static_CXX='-static'
13917
13918     case $host_os in
13919     aix*)
13920       # All AIX code is PIC.
13921       if test "$host_cpu" = ia64; then
13922         # AIX 5 now supports IA64 processor
13923         lt_prog_compiler_static_CXX='-Bstatic'
13924       fi
13925       ;;
13926     amigaos*)
13927       # FIXME: we need at least 68020 code to build shared libraries, but
13928       # adding the `-m68020' flag to GCC prevents building anything better,
13929       # like `-m68040'.
13930       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13931       ;;
13932     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13933       # PIC is the default for these OSes.
13934       ;;
13935     mingw* | os2* | pw32*)
13936       # This hack is so that the source file can tell whether it is being
13937       # built for inclusion in a dll (and should export symbols for example).
13938       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13939       ;;
13940     darwin* | rhapsody*)
13941       # PIC is the default on this platform
13942       # Common symbols not allowed in MH_DYLIB files
13943       lt_prog_compiler_pic_CXX='-fno-common'
13944       ;;
13945     *djgpp*)
13946       # DJGPP does not support shared libraries at all
13947       lt_prog_compiler_pic_CXX=
13948       ;;
13949     interix3*)
13950       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13951       # Instead, we relocate shared libraries at runtime.
13952       ;;
13953     sysv4*MP*)
13954       if test -d /usr/nec; then
13955         lt_prog_compiler_pic_CXX=-Kconform_pic
13956       fi
13957       ;;
13958     hpux*)
13959       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13960       # not for PA HP-UX.
13961       case $host_cpu in
13962       hppa*64*|ia64*)
13963         ;;
13964       *)
13965         lt_prog_compiler_pic_CXX='-fPIC'
13966         ;;
13967       esac
13968       ;;
13969     *)
13970       lt_prog_compiler_pic_CXX='-fPIC'
13971       ;;
13972     esac
13973   else
13974     case $host_os in
13975       aix4* | aix5*)
13976         # All AIX code is PIC.
13977         if test "$host_cpu" = ia64; then
13978           # AIX 5 now supports IA64 processor
13979           lt_prog_compiler_static_CXX='-Bstatic'
13980         else
13981           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13982         fi
13983         ;;
13984       chorus*)
13985         case $cc_basename in
13986         cxch68*)
13987           # Green Hills C++ Compiler
13988           # _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"
13989           ;;
13990         esac
13991         ;;
13992        darwin*)
13993          # PIC is the default on this platform
13994          # Common symbols not allowed in MH_DYLIB files
13995          case $cc_basename in
13996            xlc*)
13997            lt_prog_compiler_pic_CXX='-qnocommon'
13998            lt_prog_compiler_wl_CXX='-Wl,'
13999            ;;
14000          esac
14001        ;;
14002       dgux*)
14003         case $cc_basename in
14004           ec++*)
14005             lt_prog_compiler_pic_CXX='-KPIC'
14006             ;;
14007           ghcx*)
14008             # Green Hills C++ Compiler
14009             lt_prog_compiler_pic_CXX='-pic'
14010             ;;
14011           *)
14012             ;;
14013         esac
14014         ;;
14015       freebsd* | dragonfly*)
14016         # FreeBSD uses GNU C++
14017         ;;
14018       hpux9* | hpux10* | hpux11*)
14019         case $cc_basename in
14020           CC*)
14021             lt_prog_compiler_wl_CXX='-Wl,'
14022             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14023             if test "$host_cpu" != ia64; then
14024               lt_prog_compiler_pic_CXX='+Z'
14025             fi
14026             ;;
14027           aCC*)
14028             lt_prog_compiler_wl_CXX='-Wl,'
14029             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14030             case $host_cpu in
14031             hppa*64*|ia64*)
14032               # +Z the default
14033               ;;
14034             *)
14035               lt_prog_compiler_pic_CXX='+Z'
14036               ;;
14037             esac
14038             ;;
14039           *)
14040             ;;
14041         esac
14042         ;;
14043       interix*)
14044         # This is c89, which is MS Visual C++ (no shared libs)
14045         # Anyone wants to do a port?
14046         ;;
14047       irix5* | irix6* | nonstopux*)
14048         case $cc_basename in
14049           CC*)
14050             lt_prog_compiler_wl_CXX='-Wl,'
14051             lt_prog_compiler_static_CXX='-non_shared'
14052             # CC pic flag -KPIC is the default.
14053             ;;
14054           *)
14055             ;;
14056         esac
14057         ;;
14058       linux* | k*bsd*-gnu)
14059         case $cc_basename in
14060           KCC*)
14061             # KAI C++ Compiler
14062             lt_prog_compiler_wl_CXX='--backend -Wl,'
14063             lt_prog_compiler_pic_CXX='-fPIC'
14064             ;;
14065           icpc* | ecpc*)
14066             # Intel C++
14067             lt_prog_compiler_wl_CXX='-Wl,'
14068             lt_prog_compiler_pic_CXX='-KPIC'
14069             lt_prog_compiler_static_CXX='-static'
14070             ;;
14071           pgCC*)
14072             # Portland Group C++ compiler.
14073             lt_prog_compiler_wl_CXX='-Wl,'
14074             lt_prog_compiler_pic_CXX='-fpic'
14075             lt_prog_compiler_static_CXX='-Bstatic'
14076             ;;
14077           cxx*)
14078             # Compaq C++
14079             # Make sure the PIC flag is empty.  It appears that all Alpha
14080             # Linux and Compaq Tru64 Unix objects are PIC.
14081             lt_prog_compiler_pic_CXX=
14082             lt_prog_compiler_static_CXX='-non_shared'
14083             ;;
14084           *)
14085             ;;
14086         esac
14087         ;;
14088       lynxos*)
14089         ;;
14090       m88k*)
14091         ;;
14092       mvs*)
14093         case $cc_basename in
14094           cxx*)
14095             lt_prog_compiler_pic_CXX='-W c,exportall'
14096             ;;
14097           *)
14098             ;;
14099         esac
14100         ;;
14101       netbsd* | netbsdelf*-gnu)
14102         ;;
14103       osf3* | osf4* | osf5*)
14104         case $cc_basename in
14105           KCC*)
14106             lt_prog_compiler_wl_CXX='--backend -Wl,'
14107             ;;
14108           RCC*)
14109             # Rational C++ 2.4.1
14110             lt_prog_compiler_pic_CXX='-pic'
14111             ;;
14112           cxx*)
14113             # Digital/Compaq C++
14114             lt_prog_compiler_wl_CXX='-Wl,'
14115             # Make sure the PIC flag is empty.  It appears that all Alpha
14116             # Linux and Compaq Tru64 Unix objects are PIC.
14117             lt_prog_compiler_pic_CXX=
14118             lt_prog_compiler_static_CXX='-non_shared'
14119             ;;
14120           *)
14121             ;;
14122         esac
14123         ;;
14124       psos*)
14125         ;;
14126       solaris*)
14127         case $cc_basename in
14128           CC*)
14129             # Sun C++ 4.2, 5.x and Centerline C++
14130             lt_prog_compiler_pic_CXX='-KPIC'
14131             lt_prog_compiler_static_CXX='-Bstatic'
14132             lt_prog_compiler_wl_CXX='-Qoption ld '
14133             ;;
14134           gcx*)
14135             # Green Hills C++ Compiler
14136             lt_prog_compiler_pic_CXX='-PIC'
14137             ;;
14138           *)
14139             ;;
14140         esac
14141         ;;
14142       sunos4*)
14143         case $cc_basename in
14144           CC*)
14145             # Sun C++ 4.x
14146             lt_prog_compiler_pic_CXX='-pic'
14147             lt_prog_compiler_static_CXX='-Bstatic'
14148             ;;
14149           lcc*)
14150             # Lucid
14151             lt_prog_compiler_pic_CXX='-pic'
14152             ;;
14153           *)
14154             ;;
14155         esac
14156         ;;
14157       tandem*)
14158         case $cc_basename in
14159           NCC*)
14160             # NonStop-UX NCC 3.20
14161             lt_prog_compiler_pic_CXX='-KPIC'
14162             ;;
14163           *)
14164             ;;
14165         esac
14166         ;;
14167       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14168         case $cc_basename in
14169           CC*)
14170             lt_prog_compiler_wl_CXX='-Wl,'
14171             lt_prog_compiler_pic_CXX='-KPIC'
14172             lt_prog_compiler_static_CXX='-Bstatic'
14173             ;;
14174         esac
14175         ;;
14176       vxworks*)
14177         ;;
14178       *)
14179         lt_prog_compiler_can_build_shared_CXX=no
14180         ;;
14181     esac
14182   fi
14183
14184 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14185 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14186
14187 #
14188 # Check to make sure the PIC flag actually works.
14189 #
14190 if test -n "$lt_prog_compiler_pic_CXX"; then
14191
14192 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14193 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14194 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14195   echo $ECHO_N "(cached) $ECHO_C" >&6
14196 else
14197   lt_prog_compiler_pic_works_CXX=no
14198   ac_outfile=conftest.$ac_objext
14199    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14200    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14201    # Insert the option either (1) after the last *FLAGS variable, or
14202    # (2) before a word containing "conftest.", or (3) at the end.
14203    # Note that $ac_compile itself does not contain backslashes and begins
14204    # with a dollar sign (not a hyphen), so the echo should work correctly.
14205    # The option is referenced via a variable to avoid confusing sed.
14206    lt_compile=`echo "$ac_compile" | $SED \
14207    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14208    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14209    -e 's:$: $lt_compiler_flag:'`
14210    (eval echo "\"\$as_me:14210: $lt_compile\"" >&5)
14211    (eval "$lt_compile" 2>conftest.err)
14212    ac_status=$?
14213    cat conftest.err >&5
14214    echo "$as_me:14214: \$? = $ac_status" >&5
14215    if (exit $ac_status) && test -s "$ac_outfile"; then
14216      # The compiler can only warn and ignore the option if not recognized
14217      # So say no if there are warnings other than the usual output.
14218      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14219      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14220      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14221        lt_prog_compiler_pic_works_CXX=yes
14222      fi
14223    fi
14224    $rm conftest*
14225
14226 fi
14227 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14228 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14229
14230 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14231     case $lt_prog_compiler_pic_CXX in
14232      "" | " "*) ;;
14233      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14234      esac
14235 else
14236     lt_prog_compiler_pic_CXX=
14237      lt_prog_compiler_can_build_shared_CXX=no
14238 fi
14239
14240 fi
14241 case $host_os in
14242   # For platforms which do not support PIC, -DPIC is meaningless:
14243   *djgpp*)
14244     lt_prog_compiler_pic_CXX=
14245     ;;
14246   *)
14247     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14248     ;;
14249 esac
14250
14251 #
14252 # Check to make sure the static flag actually works.
14253 #
14254 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14255 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14256 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14257 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14258   echo $ECHO_N "(cached) $ECHO_C" >&6
14259 else
14260   lt_prog_compiler_static_works_CXX=no
14261    save_LDFLAGS="$LDFLAGS"
14262    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14263    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14264    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14265      # The linker can only warn and ignore the option if not recognized
14266      # So say no if there are warnings
14267      if test -s conftest.err; then
14268        # Append any errors to the config.log.
14269        cat conftest.err 1>&5
14270        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14271        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14272        if diff conftest.exp conftest.er2 >/dev/null; then
14273          lt_prog_compiler_static_works_CXX=yes
14274        fi
14275      else
14276        lt_prog_compiler_static_works_CXX=yes
14277      fi
14278    fi
14279    $rm conftest*
14280    LDFLAGS="$save_LDFLAGS"
14281
14282 fi
14283 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14284 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14285
14286 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14287     :
14288 else
14289     lt_prog_compiler_static_CXX=
14290 fi
14291
14292
14293 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14294 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14295 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14296   echo $ECHO_N "(cached) $ECHO_C" >&6
14297 else
14298   lt_cv_prog_compiler_c_o_CXX=no
14299    $rm -r conftest 2>/dev/null
14300    mkdir conftest
14301    cd conftest
14302    mkdir out
14303    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14304
14305    lt_compiler_flag="-o out/conftest2.$ac_objext"
14306    # Insert the option either (1) after the last *FLAGS variable, or
14307    # (2) before a word containing "conftest.", or (3) at the end.
14308    # Note that $ac_compile itself does not contain backslashes and begins
14309    # with a dollar sign (not a hyphen), so the echo should work correctly.
14310    lt_compile=`echo "$ac_compile" | $SED \
14311    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14312    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14313    -e 's:$: $lt_compiler_flag:'`
14314    (eval echo "\"\$as_me:14314: $lt_compile\"" >&5)
14315    (eval "$lt_compile" 2>out/conftest.err)
14316    ac_status=$?
14317    cat out/conftest.err >&5
14318    echo "$as_me:14318: \$? = $ac_status" >&5
14319    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14320    then
14321      # The compiler can only warn and ignore the option if not recognized
14322      # So say no if there are warnings
14323      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14324      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14325      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14326        lt_cv_prog_compiler_c_o_CXX=yes
14327      fi
14328    fi
14329    chmod u+w . 2>&5
14330    $rm conftest*
14331    # SGI C++ compiler will create directory out/ii_files/ for
14332    # template instantiation
14333    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14334    $rm out/* && rmdir out
14335    cd ..
14336    rmdir conftest
14337    $rm conftest*
14338
14339 fi
14340 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14341 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14342
14343
14344 hard_links="nottested"
14345 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14346   # do not overwrite the value of need_locks provided by the user
14347   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14348 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14349   hard_links=yes
14350   $rm conftest*
14351   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14352   touch conftest.a
14353   ln conftest.a conftest.b 2>&5 || hard_links=no
14354   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14355   { echo "$as_me:$LINENO: result: $hard_links" >&5
14356 echo "${ECHO_T}$hard_links" >&6; }
14357   if test "$hard_links" = no; then
14358     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14359 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14360     need_locks=warn
14361   fi
14362 else
14363   need_locks=no
14364 fi
14365
14366 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14367 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14368
14369   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14370   case $host_os in
14371   aix4* | aix5*)
14372     # If we're using GNU nm, then we don't want the "-C" option.
14373     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14374     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14375       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'
14376     else
14377       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'
14378     fi
14379     ;;
14380   pw32*)
14381     export_symbols_cmds_CXX="$ltdll_cmds"
14382   ;;
14383   cygwin* | mingw*)
14384     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'
14385   ;;
14386   linux* | k*bsd*-gnu)
14387     link_all_deplibs_CXX=no
14388   ;;
14389   *)
14390     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14391   ;;
14392   esac
14393
14394 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14395 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14396 test "$ld_shlibs_CXX" = no && can_build_shared=no
14397
14398 #
14399 # Do we need to explicitly link libc?
14400 #
14401 case "x$archive_cmds_need_lc_CXX" in
14402 x|xyes)
14403   # Assume -lc should be added
14404   archive_cmds_need_lc_CXX=yes
14405
14406   if test "$enable_shared" = yes && test "$GCC" = yes; then
14407     case $archive_cmds_CXX in
14408     *'~'*)
14409       # FIXME: we may have to deal with multi-command sequences.
14410       ;;
14411     '$CC '*)
14412       # Test whether the compiler implicitly links with -lc since on some
14413       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14414       # to ld, don't add -lc before -lgcc.
14415       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14416 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14417       $rm conftest*
14418       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14419
14420       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14421   (eval $ac_compile) 2>&5
14422   ac_status=$?
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); } 2>conftest.err; then
14425         soname=conftest
14426         lib=conftest
14427         libobjs=conftest.$ac_objext
14428         deplibs=
14429         wl=$lt_prog_compiler_wl_CXX
14430         pic_flag=$lt_prog_compiler_pic_CXX
14431         compiler_flags=-v
14432         linker_flags=-v
14433         verstring=
14434         output_objdir=.
14435         libname=conftest
14436         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14437         allow_undefined_flag_CXX=
14438         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14439   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14440   ac_status=$?
14441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442   (exit $ac_status); }
14443         then
14444           archive_cmds_need_lc_CXX=no
14445         else
14446           archive_cmds_need_lc_CXX=yes
14447         fi
14448         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14449       else
14450         cat conftest.err 1>&5
14451       fi
14452       $rm conftest*
14453       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14454 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14455       ;;
14456     esac
14457   fi
14458   ;;
14459 esac
14460
14461 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14462 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14463 library_names_spec=
14464 libname_spec='lib$name'
14465 soname_spec=
14466 shrext_cmds=".so"
14467 postinstall_cmds=
14468 postuninstall_cmds=
14469 finish_cmds=
14470 finish_eval=
14471 shlibpath_var=
14472 shlibpath_overrides_runpath=unknown
14473 version_type=none
14474 dynamic_linker="$host_os ld.so"
14475 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14476 if test "$GCC" = yes; then
14477   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14478   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14479     # if the path contains ";" then we assume it to be the separator
14480     # otherwise default to the standard path separator (i.e. ":") - it is
14481     # assumed that no part of a normal pathname contains ";" but that should
14482     # okay in the real world where ";" in dirpaths is itself problematic.
14483     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14484   else
14485     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14486   fi
14487 else
14488   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14489 fi
14490 need_lib_prefix=unknown
14491 hardcode_into_libs=no
14492
14493 # when you set need_version to no, make sure it does not cause -set_version
14494 # flags to be left without arguments
14495 need_version=unknown
14496
14497 case $host_os in
14498 aix3*)
14499   version_type=linux
14500   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14501   shlibpath_var=LIBPATH
14502
14503   # AIX 3 has no versioning support, so we append a major version to the name.
14504   soname_spec='${libname}${release}${shared_ext}$major'
14505   ;;
14506
14507 aix4* | aix5*)
14508   version_type=linux
14509   need_lib_prefix=no
14510   need_version=no
14511   hardcode_into_libs=yes
14512   if test "$host_cpu" = ia64; then
14513     # AIX 5 supports IA64
14514     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14515     shlibpath_var=LD_LIBRARY_PATH
14516   else
14517     # With GCC up to 2.95.x, collect2 would create an import file
14518     # for dependence libraries.  The import file would start with
14519     # the line `#! .'.  This would cause the generated library to
14520     # depend on `.', always an invalid library.  This was fixed in
14521     # development snapshots of GCC prior to 3.0.
14522     case $host_os in
14523       aix4 | aix4.[01] | aix4.[01].*)
14524       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14525            echo ' yes '
14526            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14527         :
14528       else
14529         can_build_shared=no
14530       fi
14531       ;;
14532     esac
14533     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14534     # soname into executable. Probably we can add versioning support to
14535     # collect2, so additional links can be useful in future.
14536     if test "$aix_use_runtimelinking" = yes; then
14537       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14538       # instead of lib<name>.a to let people know that these are not
14539       # typical AIX shared libraries.
14540       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14541     else
14542       # We preserve .a as extension for shared libraries through AIX4.2
14543       # and later when we are not doing run time linking.
14544       library_names_spec='${libname}${release}.a $libname.a'
14545       soname_spec='${libname}${release}${shared_ext}$major'
14546     fi
14547     shlibpath_var=LIBPATH
14548   fi
14549   ;;
14550
14551 amigaos*)
14552   library_names_spec='$libname.ixlibrary $libname.a'
14553   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14554   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'
14555   ;;
14556
14557 beos*)
14558   library_names_spec='${libname}${shared_ext}'
14559   dynamic_linker="$host_os ld.so"
14560   shlibpath_var=LIBRARY_PATH
14561   ;;
14562
14563 bsdi[45]*)
14564   version_type=linux
14565   need_version=no
14566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14567   soname_spec='${libname}${release}${shared_ext}$major'
14568   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14569   shlibpath_var=LD_LIBRARY_PATH
14570   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14571   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14572   # the default ld.so.conf also contains /usr/contrib/lib and
14573   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14574   # libtool to hard-code these into programs
14575   ;;
14576
14577 cygwin* | mingw* | pw32*)
14578   version_type=windows
14579   shrext_cmds=".dll"
14580   need_version=no
14581   need_lib_prefix=no
14582
14583   case $GCC,$host_os in
14584   yes,cygwin* | yes,mingw* | yes,pw32*)
14585     library_names_spec='$libname.dll.a'
14586     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14587     postinstall_cmds='base_file=`basename \${file}`~
14588       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14589       dldir=$destdir/`dirname \$dlpath`~
14590       test -d \$dldir || mkdir -p \$dldir~
14591       $install_prog $dir/$dlname \$dldir/$dlname~
14592       chmod a+x \$dldir/$dlname'
14593     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14594       dlpath=$dir/\$dldll~
14595        $rm \$dlpath'
14596     shlibpath_overrides_runpath=yes
14597
14598     case $host_os in
14599     cygwin*)
14600       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14601       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14602       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14603       ;;
14604     mingw*)
14605       # MinGW DLLs use traditional 'lib' prefix
14606       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14607       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14608       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14609         # It is most probably a Windows format PATH printed by
14610         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14611         # path with ; separators, and with drive letters. We can handle the
14612         # drive letters (cygwin fileutils understands them), so leave them,
14613         # especially as we might pass files found there to a mingw objdump,
14614         # which wouldn't understand a cygwinified path. Ahh.
14615         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14616       else
14617         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14618       fi
14619       ;;
14620     pw32*)
14621       # pw32 DLLs use 'pw' prefix rather than 'lib'
14622       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14623       ;;
14624     esac
14625     ;;
14626
14627   *)
14628     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14629     ;;
14630   esac
14631   dynamic_linker='Win32 ld.exe'
14632   # FIXME: first we should search . and the directory the executable is in
14633   shlibpath_var=PATH
14634   ;;
14635
14636 darwin* | rhapsody*)
14637   dynamic_linker="$host_os dyld"
14638   version_type=darwin
14639   need_lib_prefix=no
14640   need_version=no
14641   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14642   soname_spec='${libname}${release}${major}$shared_ext'
14643   shlibpath_overrides_runpath=yes
14644   shlibpath_var=DYLD_LIBRARY_PATH
14645   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14646   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14647   if test "$GCC" = yes; then
14648     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14649   else
14650     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14651   fi
14652   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14653   ;;
14654
14655 dgux*)
14656   version_type=linux
14657   need_lib_prefix=no
14658   need_version=no
14659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14660   soname_spec='${libname}${release}${shared_ext}$major'
14661   shlibpath_var=LD_LIBRARY_PATH
14662   ;;
14663
14664 freebsd1*)
14665   dynamic_linker=no
14666   ;;
14667
14668 freebsd* | dragonfly*)
14669   # DragonFly does not have aout.  When/if they implement a new
14670   # versioning mechanism, adjust this.
14671   if test -x /usr/bin/objformat; then
14672     objformat=`/usr/bin/objformat`
14673   else
14674     case $host_os in
14675     freebsd[123]*) objformat=aout ;;
14676     *) objformat=elf ;;
14677     esac
14678   fi
14679   version_type=freebsd-$objformat
14680   case $version_type in
14681     freebsd-elf*)
14682       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14683       need_version=no
14684       need_lib_prefix=no
14685       ;;
14686     freebsd-*)
14687       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14688       need_version=yes
14689       ;;
14690   esac
14691   shlibpath_var=LD_LIBRARY_PATH
14692   case $host_os in
14693   freebsd2*)
14694     shlibpath_overrides_runpath=yes
14695     ;;
14696   freebsd3.[01]* | freebsdelf3.[01]*)
14697     shlibpath_overrides_runpath=yes
14698     hardcode_into_libs=yes
14699     ;;
14700   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14701   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14702     shlibpath_overrides_runpath=no
14703     hardcode_into_libs=yes
14704     ;;
14705   freebsd*) # from 4.6 on
14706     shlibpath_overrides_runpath=yes
14707     hardcode_into_libs=yes
14708     ;;
14709   esac
14710   ;;
14711
14712 gnu*)
14713   version_type=linux
14714   need_lib_prefix=no
14715   need_version=no
14716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14717   soname_spec='${libname}${release}${shared_ext}$major'
14718   shlibpath_var=LD_LIBRARY_PATH
14719   hardcode_into_libs=yes
14720   ;;
14721
14722 hpux9* | hpux10* | hpux11*)
14723   # Give a soname corresponding to the major version so that dld.sl refuses to
14724   # link against other versions.
14725   version_type=sunos
14726   need_lib_prefix=no
14727   need_version=no
14728   case $host_cpu in
14729   ia64*)
14730     shrext_cmds='.so'
14731     hardcode_into_libs=yes
14732     dynamic_linker="$host_os dld.so"
14733     shlibpath_var=LD_LIBRARY_PATH
14734     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14735     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14736     soname_spec='${libname}${release}${shared_ext}$major'
14737     if test "X$HPUX_IA64_MODE" = X32; then
14738       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14739     else
14740       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14741     fi
14742     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14743     ;;
14744    hppa*64*)
14745      shrext_cmds='.sl'
14746      hardcode_into_libs=yes
14747      dynamic_linker="$host_os dld.sl"
14748      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14749      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14750      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14751      soname_spec='${libname}${release}${shared_ext}$major'
14752      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14753      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14754      ;;
14755    *)
14756     shrext_cmds='.sl'
14757     dynamic_linker="$host_os dld.sl"
14758     shlibpath_var=SHLIB_PATH
14759     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14760     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14761     soname_spec='${libname}${release}${shared_ext}$major'
14762     ;;
14763   esac
14764   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14765   postinstall_cmds='chmod 555 $lib'
14766   ;;
14767
14768 interix3*)
14769   version_type=linux
14770   need_lib_prefix=no
14771   need_version=no
14772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14773   soname_spec='${libname}${release}${shared_ext}$major'
14774   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14775   shlibpath_var=LD_LIBRARY_PATH
14776   shlibpath_overrides_runpath=no
14777   hardcode_into_libs=yes
14778   ;;
14779
14780 irix5* | irix6* | nonstopux*)
14781   case $host_os in
14782     nonstopux*) version_type=nonstopux ;;
14783     *)
14784         if test "$lt_cv_prog_gnu_ld" = yes; then
14785                 version_type=linux
14786         else
14787                 version_type=irix
14788         fi ;;
14789   esac
14790   need_lib_prefix=no
14791   need_version=no
14792   soname_spec='${libname}${release}${shared_ext}$major'
14793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14794   case $host_os in
14795   irix5* | nonstopux*)
14796     libsuff= shlibsuff=
14797     ;;
14798   *)
14799     case $LD in # libtool.m4 will add one of these switches to LD
14800     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14801       libsuff= shlibsuff= libmagic=32-bit;;
14802     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14803       libsuff=32 shlibsuff=N32 libmagic=N32;;
14804     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14805       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14806     *) libsuff= shlibsuff= libmagic=never-match;;
14807     esac
14808     ;;
14809   esac
14810   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14811   shlibpath_overrides_runpath=no
14812   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14813   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14814   hardcode_into_libs=yes
14815   ;;
14816
14817 # No shared lib support for Linux oldld, aout, or coff.
14818 linux*oldld* | linux*aout* | linux*coff*)
14819   dynamic_linker=no
14820   ;;
14821
14822 # This must be Linux ELF.
14823 linux* | k*bsd*-gnu)
14824   version_type=linux
14825   need_lib_prefix=no
14826   need_version=no
14827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14828   soname_spec='${libname}${release}${shared_ext}$major'
14829   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14830   shlibpath_var=LD_LIBRARY_PATH
14831   shlibpath_overrides_runpath=no
14832   # This implies no fast_install, which is unacceptable.
14833   # Some rework will be needed to allow for fast_install
14834   # before this can be enabled.
14835   hardcode_into_libs=yes
14836
14837   # Append ld.so.conf contents to the search path
14838   if test -f /etc/ld.so.conf; then
14839     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14840     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14841   fi
14842
14843   # We used to test for /lib/ld.so.1 and disable shared libraries on
14844   # powerpc, because MkLinux only supported shared libraries with the
14845   # GNU dynamic linker.  Since this was broken with cross compilers,
14846   # most powerpc-linux boxes support dynamic linking these days and
14847   # people can always --disable-shared, the test was removed, and we
14848   # assume the GNU/Linux dynamic linker is in use.
14849   dynamic_linker='GNU/Linux ld.so'
14850   ;;
14851
14852 netbsdelf*-gnu)
14853   version_type=linux
14854   need_lib_prefix=no
14855   need_version=no
14856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14857   soname_spec='${libname}${release}${shared_ext}$major'
14858   shlibpath_var=LD_LIBRARY_PATH
14859   shlibpath_overrides_runpath=no
14860   hardcode_into_libs=yes
14861   dynamic_linker='NetBSD ld.elf_so'
14862   ;;
14863
14864 netbsd*)
14865   version_type=sunos
14866   need_lib_prefix=no
14867   need_version=no
14868   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14869     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14870     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14871     dynamic_linker='NetBSD (a.out) ld.so'
14872   else
14873     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14874     soname_spec='${libname}${release}${shared_ext}$major'
14875     dynamic_linker='NetBSD ld.elf_so'
14876   fi
14877   shlibpath_var=LD_LIBRARY_PATH
14878   shlibpath_overrides_runpath=yes
14879   hardcode_into_libs=yes
14880   ;;
14881
14882 newsos6)
14883   version_type=linux
14884   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885   shlibpath_var=LD_LIBRARY_PATH
14886   shlibpath_overrides_runpath=yes
14887   ;;
14888
14889 nto-qnx*)
14890   version_type=linux
14891   need_lib_prefix=no
14892   need_version=no
14893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14894   soname_spec='${libname}${release}${shared_ext}$major'
14895   shlibpath_var=LD_LIBRARY_PATH
14896   shlibpath_overrides_runpath=yes
14897   ;;
14898
14899 openbsd*)
14900   version_type=sunos
14901   sys_lib_dlsearch_path_spec="/usr/lib"
14902   need_lib_prefix=no
14903   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14904   case $host_os in
14905     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14906     *)                         need_version=no  ;;
14907   esac
14908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14909   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14910   shlibpath_var=LD_LIBRARY_PATH
14911   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14912     case $host_os in
14913       openbsd2.[89] | openbsd2.[89].*)
14914         shlibpath_overrides_runpath=no
14915         ;;
14916       *)
14917         shlibpath_overrides_runpath=yes
14918         ;;
14919       esac
14920   else
14921     shlibpath_overrides_runpath=yes
14922   fi
14923   ;;
14924
14925 os2*)
14926   libname_spec='$name'
14927   shrext_cmds=".dll"
14928   need_lib_prefix=no
14929   library_names_spec='$libname${shared_ext} $libname.a'
14930   dynamic_linker='OS/2 ld.exe'
14931   shlibpath_var=LIBPATH
14932   ;;
14933
14934 osf3* | osf4* | osf5*)
14935   version_type=osf
14936   need_lib_prefix=no
14937   need_version=no
14938   soname_spec='${libname}${release}${shared_ext}$major'
14939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14940   shlibpath_var=LD_LIBRARY_PATH
14941   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14942   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14943   ;;
14944
14945 solaris*)
14946   version_type=linux
14947   need_lib_prefix=no
14948   need_version=no
14949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14950   soname_spec='${libname}${release}${shared_ext}$major'
14951   shlibpath_var=LD_LIBRARY_PATH
14952   shlibpath_overrides_runpath=yes
14953   hardcode_into_libs=yes
14954   # ldd complains unless libraries are executable
14955   postinstall_cmds='chmod +x $lib'
14956   ;;
14957
14958 sunos4*)
14959   version_type=sunos
14960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14961   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14962   shlibpath_var=LD_LIBRARY_PATH
14963   shlibpath_overrides_runpath=yes
14964   if test "$with_gnu_ld" = yes; then
14965     need_lib_prefix=no
14966   fi
14967   need_version=yes
14968   ;;
14969
14970 sysv4 | sysv4.3*)
14971   version_type=linux
14972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14973   soname_spec='${libname}${release}${shared_ext}$major'
14974   shlibpath_var=LD_LIBRARY_PATH
14975   case $host_vendor in
14976     sni)
14977       shlibpath_overrides_runpath=no
14978       need_lib_prefix=no
14979       export_dynamic_flag_spec='${wl}-Blargedynsym'
14980       runpath_var=LD_RUN_PATH
14981       ;;
14982     siemens)
14983       need_lib_prefix=no
14984       ;;
14985     motorola)
14986       need_lib_prefix=no
14987       need_version=no
14988       shlibpath_overrides_runpath=no
14989       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14990       ;;
14991   esac
14992   ;;
14993
14994 sysv4*MP*)
14995   if test -d /usr/nec ;then
14996     version_type=linux
14997     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14998     soname_spec='$libname${shared_ext}.$major'
14999     shlibpath_var=LD_LIBRARY_PATH
15000   fi
15001   ;;
15002
15003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15004   version_type=freebsd-elf
15005   need_lib_prefix=no
15006   need_version=no
15007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15008   soname_spec='${libname}${release}${shared_ext}$major'
15009   shlibpath_var=LD_LIBRARY_PATH
15010   hardcode_into_libs=yes
15011   if test "$with_gnu_ld" = yes; then
15012     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15013     shlibpath_overrides_runpath=no
15014   else
15015     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15016     shlibpath_overrides_runpath=yes
15017     case $host_os in
15018       sco3.2v5*)
15019         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15020         ;;
15021     esac
15022   fi
15023   sys_lib_dlsearch_path_spec='/usr/lib'
15024   ;;
15025
15026 uts4*)
15027   version_type=linux
15028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15029   soname_spec='${libname}${release}${shared_ext}$major'
15030   shlibpath_var=LD_LIBRARY_PATH
15031   ;;
15032
15033 *)
15034   dynamic_linker=no
15035   ;;
15036 esac
15037 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15038 echo "${ECHO_T}$dynamic_linker" >&6; }
15039 test "$dynamic_linker" = no && can_build_shared=no
15040
15041 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15042 if test "$GCC" = yes; then
15043   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15044 fi
15045
15046 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15047 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15048 hardcode_action_CXX=
15049 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15050    test -n "$runpath_var_CXX" || \
15051    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15052
15053   # We can hardcode non-existant directories.
15054   if test "$hardcode_direct_CXX" != no &&
15055      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15056      # have to relink, otherwise we might link with an installed library
15057      # when we should be linking with a yet-to-be-installed one
15058      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15059      test "$hardcode_minus_L_CXX" != no; then
15060     # Linking always hardcodes the temporary library directory.
15061     hardcode_action_CXX=relink
15062   else
15063     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15064     hardcode_action_CXX=immediate
15065   fi
15066 else
15067   # We cannot hardcode anything, or else we can only hardcode existing
15068   # directories.
15069   hardcode_action_CXX=unsupported
15070 fi
15071 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15072 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15073
15074 if test "$hardcode_action_CXX" = relink; then
15075   # Fast installation is not supported
15076   enable_fast_install=no
15077 elif test "$shlibpath_overrides_runpath" = yes ||
15078      test "$enable_shared" = no; then
15079   # Fast installation is not necessary
15080   enable_fast_install=needless
15081 fi
15082
15083
15084 # The else clause should only fire when bootstrapping the
15085 # libtool distribution, otherwise you forgot to ship ltmain.sh
15086 # with your package, and you will get complaints that there are
15087 # no rules to generate ltmain.sh.
15088 if test -f "$ltmain"; then
15089   # See if we are running on zsh, and set the options which allow our commands through
15090   # without removal of \ escapes.
15091   if test -n "${ZSH_VERSION+set}" ; then
15092     setopt NO_GLOB_SUBST
15093   fi
15094   # Now quote all the things that may contain metacharacters while being
15095   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15096   # variables and quote the copies for generation of the libtool script.
15097   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15098     SED SHELL STRIP \
15099     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15100     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15101     deplibs_check_method reload_flag reload_cmds need_locks \
15102     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15103     lt_cv_sys_global_symbol_to_c_name_address \
15104     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15105     old_postinstall_cmds old_postuninstall_cmds \
15106     compiler_CXX \
15107     CC_CXX \
15108     LD_CXX \
15109     lt_prog_compiler_wl_CXX \
15110     lt_prog_compiler_pic_CXX \
15111     lt_prog_compiler_static_CXX \
15112     lt_prog_compiler_no_builtin_flag_CXX \
15113     export_dynamic_flag_spec_CXX \
15114     thread_safe_flag_spec_CXX \
15115     whole_archive_flag_spec_CXX \
15116     enable_shared_with_static_runtimes_CXX \
15117     old_archive_cmds_CXX \
15118     old_archive_from_new_cmds_CXX \
15119     predep_objects_CXX \
15120     postdep_objects_CXX \
15121     predeps_CXX \
15122     postdeps_CXX \
15123     compiler_lib_search_path_CXX \
15124     archive_cmds_CXX \
15125     archive_expsym_cmds_CXX \
15126     postinstall_cmds_CXX \
15127     postuninstall_cmds_CXX \
15128     old_archive_from_expsyms_cmds_CXX \
15129     allow_undefined_flag_CXX \
15130     no_undefined_flag_CXX \
15131     export_symbols_cmds_CXX \
15132     hardcode_libdir_flag_spec_CXX \
15133     hardcode_libdir_flag_spec_ld_CXX \
15134     hardcode_libdir_separator_CXX \
15135     hardcode_automatic_CXX \
15136     module_cmds_CXX \
15137     module_expsym_cmds_CXX \
15138     lt_cv_prog_compiler_c_o_CXX \
15139     exclude_expsyms_CXX \
15140     include_expsyms_CXX; do
15141
15142     case $var in
15143     old_archive_cmds_CXX | \
15144     old_archive_from_new_cmds_CXX | \
15145     archive_cmds_CXX | \
15146     archive_expsym_cmds_CXX | \
15147     module_cmds_CXX | \
15148     module_expsym_cmds_CXX | \
15149     old_archive_from_expsyms_cmds_CXX | \
15150     export_symbols_cmds_CXX | \
15151     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15152     postinstall_cmds | postuninstall_cmds | \
15153     old_postinstall_cmds | old_postuninstall_cmds | \
15154     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15155       # Double-quote double-evaled strings.
15156       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15157       ;;
15158     *)
15159       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15160       ;;
15161     esac
15162   done
15163
15164   case $lt_echo in
15165   *'\$0 --fallback-echo"')
15166     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15167     ;;
15168   esac
15169
15170 cfgfile="$ofile"
15171
15172   cat <<__EOF__ >> "$cfgfile"
15173 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15174
15175 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15176
15177 # Shell to use when invoking shell scripts.
15178 SHELL=$lt_SHELL
15179
15180 # Whether or not to build shared libraries.
15181 build_libtool_libs=$enable_shared
15182
15183 # Whether or not to build static libraries.
15184 build_old_libs=$enable_static
15185
15186 # Whether or not to add -lc for building shared libraries.
15187 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15188
15189 # Whether or not to disallow shared libs when runtime libs are static
15190 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15191
15192 # Whether or not to optimize for fast installation.
15193 fast_install=$enable_fast_install
15194
15195 # The host system.
15196 host_alias=$host_alias
15197 host=$host
15198 host_os=$host_os
15199
15200 # The build system.
15201 build_alias=$build_alias
15202 build=$build
15203 build_os=$build_os
15204
15205 # An echo program that does not interpret backslashes.
15206 echo=$lt_echo
15207
15208 # The archiver.
15209 AR=$lt_AR
15210 AR_FLAGS=$lt_AR_FLAGS
15211
15212 # A C compiler.
15213 LTCC=$lt_LTCC
15214
15215 # LTCC compiler flags.
15216 LTCFLAGS=$lt_LTCFLAGS
15217
15218 # A language-specific compiler.
15219 CC=$lt_compiler_CXX
15220
15221 # Is the compiler the GNU C compiler?
15222 with_gcc=$GCC_CXX
15223
15224 # An ERE matcher.
15225 EGREP=$lt_EGREP
15226
15227 # The linker used to build libraries.
15228 LD=$lt_LD_CXX
15229
15230 # Whether we need hard or soft links.
15231 LN_S=$lt_LN_S
15232
15233 # A BSD-compatible nm program.
15234 NM=$lt_NM
15235
15236 # A symbol stripping program
15237 STRIP=$lt_STRIP
15238
15239 # Used to examine libraries when file_magic_cmd begins "file"
15240 MAGIC_CMD=$MAGIC_CMD
15241
15242 # Used on cygwin: DLL creation program.
15243 DLLTOOL="$DLLTOOL"
15244
15245 # Used on cygwin: object dumper.
15246 OBJDUMP="$OBJDUMP"
15247
15248 # Used on cygwin: assembler.
15249 AS="$AS"
15250
15251 # The name of the directory that contains temporary libtool files.
15252 objdir=$objdir
15253
15254 # How to create reloadable object files.
15255 reload_flag=$lt_reload_flag
15256 reload_cmds=$lt_reload_cmds
15257
15258 # How to pass a linker flag through the compiler.
15259 wl=$lt_lt_prog_compiler_wl_CXX
15260
15261 # Object file suffix (normally "o").
15262 objext="$ac_objext"
15263
15264 # Old archive suffix (normally "a").
15265 libext="$libext"
15266
15267 # Shared library suffix (normally ".so").
15268 shrext_cmds='$shrext_cmds'
15269
15270 # Executable file suffix (normally "").
15271 exeext="$exeext"
15272
15273 # Additional compiler flags for building library objects.
15274 pic_flag=$lt_lt_prog_compiler_pic_CXX
15275 pic_mode=$pic_mode
15276
15277 # What is the maximum length of a command?
15278 max_cmd_len=$lt_cv_sys_max_cmd_len
15279
15280 # Does compiler simultaneously support -c and -o options?
15281 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15282
15283 # Must we lock files when doing compilation?
15284 need_locks=$lt_need_locks
15285
15286 # Do we need the lib prefix for modules?
15287 need_lib_prefix=$need_lib_prefix
15288
15289 # Do we need a version for libraries?
15290 need_version=$need_version
15291
15292 # Whether dlopen is supported.
15293 dlopen_support=$enable_dlopen
15294
15295 # Whether dlopen of programs is supported.
15296 dlopen_self=$enable_dlopen_self
15297
15298 # Whether dlopen of statically linked programs is supported.
15299 dlopen_self_static=$enable_dlopen_self_static
15300
15301 # Compiler flag to prevent dynamic linking.
15302 link_static_flag=$lt_lt_prog_compiler_static_CXX
15303
15304 # Compiler flag to turn off builtin functions.
15305 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15306
15307 # Compiler flag to allow reflexive dlopens.
15308 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15309
15310 # Compiler flag to generate shared objects directly from archives.
15311 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15312
15313 # Compiler flag to generate thread-safe objects.
15314 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15315
15316 # Library versioning type.
15317 version_type=$version_type
15318
15319 # Format of library name prefix.
15320 libname_spec=$lt_libname_spec
15321
15322 # List of archive names.  First name is the real one, the rest are links.
15323 # The last name is the one that the linker finds with -lNAME.
15324 library_names_spec=$lt_library_names_spec
15325
15326 # The coded name of the library, if different from the real name.
15327 soname_spec=$lt_soname_spec
15328
15329 # Commands used to build and install an old-style archive.
15330 RANLIB=$lt_RANLIB
15331 old_archive_cmds=$lt_old_archive_cmds_CXX
15332 old_postinstall_cmds=$lt_old_postinstall_cmds
15333 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15334
15335 # Create an old-style archive from a shared archive.
15336 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15337
15338 # Create a temporary old-style archive to link instead of a shared archive.
15339 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15340
15341 # Commands used to build and install a shared archive.
15342 archive_cmds=$lt_archive_cmds_CXX
15343 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15344 postinstall_cmds=$lt_postinstall_cmds
15345 postuninstall_cmds=$lt_postuninstall_cmds
15346
15347 # Commands used to build a loadable module (assumed same as above if empty)
15348 module_cmds=$lt_module_cmds_CXX
15349 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15350
15351 # Commands to strip libraries.
15352 old_striplib=$lt_old_striplib
15353 striplib=$lt_striplib
15354
15355 # Dependencies to place before the objects being linked to create a
15356 # shared library.
15357 predep_objects=$lt_predep_objects_CXX
15358
15359 # Dependencies to place after the objects being linked to create a
15360 # shared library.
15361 postdep_objects=$lt_postdep_objects_CXX
15362
15363 # Dependencies to place before the objects being linked to create a
15364 # shared library.
15365 predeps=$lt_predeps_CXX
15366
15367 # Dependencies to place after the objects being linked to create a
15368 # shared library.
15369 postdeps=$lt_postdeps_CXX
15370
15371 # The library search path used internally by the compiler when linking
15372 # a shared library.
15373 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15374
15375 # Method to check whether dependent libraries are shared objects.
15376 deplibs_check_method=$lt_deplibs_check_method
15377
15378 # Command to use when deplibs_check_method == file_magic.
15379 file_magic_cmd=$lt_file_magic_cmd
15380
15381 # Flag that allows shared libraries with undefined symbols to be built.
15382 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15383
15384 # Flag that forces no undefined symbols.
15385 no_undefined_flag=$lt_no_undefined_flag_CXX
15386
15387 # Commands used to finish a libtool library installation in a directory.
15388 finish_cmds=$lt_finish_cmds
15389
15390 # Same as above, but a single script fragment to be evaled but not shown.
15391 finish_eval=$lt_finish_eval
15392
15393 # Take the output of nm and produce a listing of raw symbols and C names.
15394 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15395
15396 # Transform the output of nm in a proper C declaration
15397 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15398
15399 # Transform the output of nm in a C name address pair
15400 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15401
15402 # This is the shared library runtime path variable.
15403 runpath_var=$runpath_var
15404
15405 # This is the shared library path variable.
15406 shlibpath_var=$shlibpath_var
15407
15408 # Is shlibpath searched before the hard-coded library search path?
15409 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15410
15411 # How to hardcode a shared library path into an executable.
15412 hardcode_action=$hardcode_action_CXX
15413
15414 # Whether we should hardcode library paths into libraries.
15415 hardcode_into_libs=$hardcode_into_libs
15416
15417 # Flag to hardcode \$libdir into a binary during linking.
15418 # This must work even if \$libdir does not exist.
15419 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15420
15421 # If ld is used when linking, flag to hardcode \$libdir into
15422 # a binary during linking. This must work even if \$libdir does
15423 # not exist.
15424 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15425
15426 # Whether we need a single -rpath flag with a separated argument.
15427 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15428
15429 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15430 # resulting binary.
15431 hardcode_direct=$hardcode_direct_CXX
15432
15433 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15434 # resulting binary.
15435 hardcode_minus_L=$hardcode_minus_L_CXX
15436
15437 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15438 # the resulting binary.
15439 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15440
15441 # Set to yes if building a shared library automatically hardcodes DIR into the library
15442 # and all subsequent libraries and executables linked against it.
15443 hardcode_automatic=$hardcode_automatic_CXX
15444
15445 # Variables whose values should be saved in libtool wrapper scripts and
15446 # restored at relink time.
15447 variables_saved_for_relink="$variables_saved_for_relink"
15448
15449 # Whether libtool must link a program against all its dependency libraries.
15450 link_all_deplibs=$link_all_deplibs_CXX
15451
15452 # Compile-time system search path for libraries
15453 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15454
15455 # Run-time system search path for libraries
15456 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15457
15458 # Fix the shell variable \$srcfile for the compiler.
15459 fix_srcfile_path="$fix_srcfile_path_CXX"
15460
15461 # Set to yes if exported symbols are required.
15462 always_export_symbols=$always_export_symbols_CXX
15463
15464 # The commands to list exported symbols.
15465 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15466
15467 # The commands to extract the exported symbol list from a shared archive.
15468 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15469
15470 # Symbols that should not be listed in the preloaded symbols.
15471 exclude_expsyms=$lt_exclude_expsyms_CXX
15472
15473 # Symbols that must always be exported.
15474 include_expsyms=$lt_include_expsyms_CXX
15475
15476 # ### END LIBTOOL TAG CONFIG: $tagname
15477
15478 __EOF__
15479
15480
15481 else
15482   # If there is no Makefile yet, we rely on a make rule to execute
15483   # `config.status --recheck' to rerun these tests and create the
15484   # libtool script then.
15485   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15486   if test -f "$ltmain_in"; then
15487     test -f Makefile && make "$ltmain"
15488   fi
15489 fi
15490
15491
15492 ac_ext=c
15493 ac_cpp='$CPP $CPPFLAGS'
15494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15497
15498 CC=$lt_save_CC
15499 LDCXX=$LD
15500 LD=$lt_save_LD
15501 GCC=$lt_save_GCC
15502 with_gnu_ldcxx=$with_gnu_ld
15503 with_gnu_ld=$lt_save_with_gnu_ld
15504 lt_cv_path_LDCXX=$lt_cv_path_LD
15505 lt_cv_path_LD=$lt_save_path_LD
15506 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15507 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15508
15509         else
15510           tagname=""
15511         fi
15512         ;;
15513
15514       F77)
15515         if test -n "$F77" && test "X$F77" != "Xno"; then
15516
15517 ac_ext=f
15518 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15519 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15520 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15521
15522
15523 archive_cmds_need_lc_F77=no
15524 allow_undefined_flag_F77=
15525 always_export_symbols_F77=no
15526 archive_expsym_cmds_F77=
15527 export_dynamic_flag_spec_F77=
15528 hardcode_direct_F77=no
15529 hardcode_libdir_flag_spec_F77=
15530 hardcode_libdir_flag_spec_ld_F77=
15531 hardcode_libdir_separator_F77=
15532 hardcode_minus_L_F77=no
15533 hardcode_automatic_F77=no
15534 module_cmds_F77=
15535 module_expsym_cmds_F77=
15536 link_all_deplibs_F77=unknown
15537 old_archive_cmds_F77=$old_archive_cmds
15538 no_undefined_flag_F77=
15539 whole_archive_flag_spec_F77=
15540 enable_shared_with_static_runtimes_F77=no
15541
15542 # Source file extension for f77 test sources.
15543 ac_ext=f
15544
15545 # Object file extension for compiled f77 test sources.
15546 objext=o
15547 objext_F77=$objext
15548
15549 # Code to be used in simple compile tests
15550 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
15551
15552 # Code to be used in simple link tests
15553 lt_simple_link_test_code="      program t\n      end\n"
15554
15555 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15556
15557 # If no C compiler was specified, use CC.
15558 LTCC=${LTCC-"$CC"}
15559
15560 # If no C compiler flags were specified, use CFLAGS.
15561 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15562
15563 # Allow CC to be a program name with arguments.
15564 compiler=$CC
15565
15566
15567 # save warnings/boilerplate of simple test code
15568 ac_outfile=conftest.$ac_objext
15569 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15570 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15571 _lt_compiler_boilerplate=`cat conftest.err`
15572 $rm conftest*
15573
15574 ac_outfile=conftest.$ac_objext
15575 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15576 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15577 _lt_linker_boilerplate=`cat conftest.err`
15578 $rm conftest*
15579
15580
15581 # Allow CC to be a program name with arguments.
15582 lt_save_CC="$CC"
15583 CC=${F77-"f77"}
15584 compiler=$CC
15585 compiler_F77=$CC
15586 for cc_temp in $compiler""; do
15587   case $cc_temp in
15588     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15589     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15590     \-*) ;;
15591     *) break;;
15592   esac
15593 done
15594 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15595
15596
15597 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15598 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15599 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15600 echo "${ECHO_T}$can_build_shared" >&6; }
15601
15602 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15603 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15604 test "$can_build_shared" = "no" && enable_shared=no
15605
15606 # On AIX, shared libraries and static libraries use the same namespace, and
15607 # are all built from PIC.
15608 case $host_os in
15609 aix3*)
15610   test "$enable_shared" = yes && enable_static=no
15611   if test -n "$RANLIB"; then
15612     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15613     postinstall_cmds='$RANLIB $lib'
15614   fi
15615   ;;
15616 aix4* | aix5*)
15617   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15618     test "$enable_shared" = yes && enable_static=no
15619   fi
15620   ;;
15621 esac
15622 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15623 echo "${ECHO_T}$enable_shared" >&6; }
15624
15625 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15626 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15627 # Make sure either enable_shared or enable_static is yes.
15628 test "$enable_shared" = yes || enable_static=yes
15629 { echo "$as_me:$LINENO: result: $enable_static" >&5
15630 echo "${ECHO_T}$enable_static" >&6; }
15631
15632 GCC_F77="$G77"
15633 LD_F77="$LD"
15634
15635 lt_prog_compiler_wl_F77=
15636 lt_prog_compiler_pic_F77=
15637 lt_prog_compiler_static_F77=
15638
15639 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15640 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15641
15642   if test "$GCC" = yes; then
15643     lt_prog_compiler_wl_F77='-Wl,'
15644     lt_prog_compiler_static_F77='-static'
15645
15646     case $host_os in
15647       aix*)
15648       # All AIX code is PIC.
15649       if test "$host_cpu" = ia64; then
15650         # AIX 5 now supports IA64 processor
15651         lt_prog_compiler_static_F77='-Bstatic'
15652       fi
15653       ;;
15654
15655     amigaos*)
15656       # FIXME: we need at least 68020 code to build shared libraries, but
15657       # adding the `-m68020' flag to GCC prevents building anything better,
15658       # like `-m68040'.
15659       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15660       ;;
15661
15662     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15663       # PIC is the default for these OSes.
15664       ;;
15665
15666     mingw* | pw32* | os2*)
15667       # This hack is so that the source file can tell whether it is being
15668       # built for inclusion in a dll (and should export symbols for example).
15669       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15670       ;;
15671
15672     darwin* | rhapsody*)
15673       # PIC is the default on this platform
15674       # Common symbols not allowed in MH_DYLIB files
15675       lt_prog_compiler_pic_F77='-fno-common'
15676       ;;
15677
15678     interix3*)
15679       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15680       # Instead, we relocate shared libraries at runtime.
15681       ;;
15682
15683     msdosdjgpp*)
15684       # Just because we use GCC doesn't mean we suddenly get shared libraries
15685       # on systems that don't support them.
15686       lt_prog_compiler_can_build_shared_F77=no
15687       enable_shared=no
15688       ;;
15689
15690     sysv4*MP*)
15691       if test -d /usr/nec; then
15692         lt_prog_compiler_pic_F77=-Kconform_pic
15693       fi
15694       ;;
15695
15696     hpux*)
15697       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15698       # not for PA HP-UX.
15699       case $host_cpu in
15700       hppa*64*|ia64*)
15701         # +Z the default
15702         ;;
15703       *)
15704         lt_prog_compiler_pic_F77='-fPIC'
15705         ;;
15706       esac
15707       ;;
15708
15709     *)
15710       lt_prog_compiler_pic_F77='-fPIC'
15711       ;;
15712     esac
15713   else
15714     # PORTME Check for flag to pass linker flags through the system compiler.
15715     case $host_os in
15716     aix*)
15717       lt_prog_compiler_wl_F77='-Wl,'
15718       if test "$host_cpu" = ia64; then
15719         # AIX 5 now supports IA64 processor
15720         lt_prog_compiler_static_F77='-Bstatic'
15721       else
15722         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15723       fi
15724       ;;
15725       darwin*)
15726         # PIC is the default on this platform
15727         # Common symbols not allowed in MH_DYLIB files
15728        case $cc_basename in
15729          xlc*)
15730          lt_prog_compiler_pic_F77='-qnocommon'
15731          lt_prog_compiler_wl_F77='-Wl,'
15732          ;;
15733        esac
15734        ;;
15735
15736     mingw* | pw32* | os2*)
15737       # This hack is so that the source file can tell whether it is being
15738       # built for inclusion in a dll (and should export symbols for example).
15739       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15740       ;;
15741
15742     hpux9* | hpux10* | hpux11*)
15743       lt_prog_compiler_wl_F77='-Wl,'
15744       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15745       # not for PA HP-UX.
15746       case $host_cpu in
15747       hppa*64*|ia64*)
15748         # +Z the default
15749         ;;
15750       *)
15751         lt_prog_compiler_pic_F77='+Z'
15752         ;;
15753       esac
15754       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15755       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15756       ;;
15757
15758     irix5* | irix6* | nonstopux*)
15759       lt_prog_compiler_wl_F77='-Wl,'
15760       # PIC (with -KPIC) is the default.
15761       lt_prog_compiler_static_F77='-non_shared'
15762       ;;
15763
15764     newsos6)
15765       lt_prog_compiler_pic_F77='-KPIC'
15766       lt_prog_compiler_static_F77='-Bstatic'
15767       ;;
15768
15769     linux* | k*bsd*-gnu)
15770       case $cc_basename in
15771       icc* | ecc*)
15772         lt_prog_compiler_wl_F77='-Wl,'
15773         lt_prog_compiler_pic_F77='-KPIC'
15774         lt_prog_compiler_static_F77='-static'
15775         ;;
15776       pgcc* | pgf77* | pgf90* | pgf95*)
15777         # Portland Group compilers (*not* the Pentium gcc compiler,
15778         # which looks to be a dead project)
15779         lt_prog_compiler_wl_F77='-Wl,'
15780         lt_prog_compiler_pic_F77='-fpic'
15781         lt_prog_compiler_static_F77='-Bstatic'
15782         ;;
15783       ccc*)
15784         lt_prog_compiler_wl_F77='-Wl,'
15785         # All Alpha code is PIC.
15786         lt_prog_compiler_static_F77='-non_shared'
15787         ;;
15788       esac
15789       ;;
15790
15791     osf3* | osf4* | osf5*)
15792       lt_prog_compiler_wl_F77='-Wl,'
15793       # All OSF/1 code is PIC.
15794       lt_prog_compiler_static_F77='-non_shared'
15795       ;;
15796
15797     solaris*)
15798       lt_prog_compiler_pic_F77='-KPIC'
15799       lt_prog_compiler_static_F77='-Bstatic'
15800       case $cc_basename in
15801       f77* | f90* | f95*)
15802         lt_prog_compiler_wl_F77='-Qoption ld ';;
15803       *)
15804         lt_prog_compiler_wl_F77='-Wl,';;
15805       esac
15806       ;;
15807
15808     sunos4*)
15809       lt_prog_compiler_wl_F77='-Qoption ld '
15810       lt_prog_compiler_pic_F77='-PIC'
15811       lt_prog_compiler_static_F77='-Bstatic'
15812       ;;
15813
15814     sysv4 | sysv4.2uw2* | sysv4.3*)
15815       lt_prog_compiler_wl_F77='-Wl,'
15816       lt_prog_compiler_pic_F77='-KPIC'
15817       lt_prog_compiler_static_F77='-Bstatic'
15818       ;;
15819
15820     sysv4*MP*)
15821       if test -d /usr/nec ;then
15822         lt_prog_compiler_pic_F77='-Kconform_pic'
15823         lt_prog_compiler_static_F77='-Bstatic'
15824       fi
15825       ;;
15826
15827     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15828       lt_prog_compiler_wl_F77='-Wl,'
15829       lt_prog_compiler_pic_F77='-KPIC'
15830       lt_prog_compiler_static_F77='-Bstatic'
15831       ;;
15832
15833     unicos*)
15834       lt_prog_compiler_wl_F77='-Wl,'
15835       lt_prog_compiler_can_build_shared_F77=no
15836       ;;
15837
15838     uts4*)
15839       lt_prog_compiler_pic_F77='-pic'
15840       lt_prog_compiler_static_F77='-Bstatic'
15841       ;;
15842
15843     *)
15844       lt_prog_compiler_can_build_shared_F77=no
15845       ;;
15846     esac
15847   fi
15848
15849 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15850 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15851
15852 #
15853 # Check to make sure the PIC flag actually works.
15854 #
15855 if test -n "$lt_prog_compiler_pic_F77"; then
15856
15857 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15858 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15859 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15860   echo $ECHO_N "(cached) $ECHO_C" >&6
15861 else
15862   lt_prog_compiler_pic_works_F77=no
15863   ac_outfile=conftest.$ac_objext
15864    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15865    lt_compiler_flag="$lt_prog_compiler_pic_F77"
15866    # Insert the option either (1) after the last *FLAGS variable, or
15867    # (2) before a word containing "conftest.", or (3) at the end.
15868    # Note that $ac_compile itself does not contain backslashes and begins
15869    # with a dollar sign (not a hyphen), so the echo should work correctly.
15870    # The option is referenced via a variable to avoid confusing sed.
15871    lt_compile=`echo "$ac_compile" | $SED \
15872    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15873    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15874    -e 's:$: $lt_compiler_flag:'`
15875    (eval echo "\"\$as_me:15875: $lt_compile\"" >&5)
15876    (eval "$lt_compile" 2>conftest.err)
15877    ac_status=$?
15878    cat conftest.err >&5
15879    echo "$as_me:15879: \$? = $ac_status" >&5
15880    if (exit $ac_status) && test -s "$ac_outfile"; then
15881      # The compiler can only warn and ignore the option if not recognized
15882      # So say no if there are warnings other than the usual output.
15883      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15884      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15885      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15886        lt_prog_compiler_pic_works_F77=yes
15887      fi
15888    fi
15889    $rm conftest*
15890
15891 fi
15892 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15893 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15894
15895 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15896     case $lt_prog_compiler_pic_F77 in
15897      "" | " "*) ;;
15898      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15899      esac
15900 else
15901     lt_prog_compiler_pic_F77=
15902      lt_prog_compiler_can_build_shared_F77=no
15903 fi
15904
15905 fi
15906 case $host_os in
15907   # For platforms which do not support PIC, -DPIC is meaningless:
15908   *djgpp*)
15909     lt_prog_compiler_pic_F77=
15910     ;;
15911   *)
15912     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15913     ;;
15914 esac
15915
15916 #
15917 # Check to make sure the static flag actually works.
15918 #
15919 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15920 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15921 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15922 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15923   echo $ECHO_N "(cached) $ECHO_C" >&6
15924 else
15925   lt_prog_compiler_static_works_F77=no
15926    save_LDFLAGS="$LDFLAGS"
15927    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15928    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15929    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15930      # The linker can only warn and ignore the option if not recognized
15931      # So say no if there are warnings
15932      if test -s conftest.err; then
15933        # Append any errors to the config.log.
15934        cat conftest.err 1>&5
15935        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15936        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15937        if diff conftest.exp conftest.er2 >/dev/null; then
15938          lt_prog_compiler_static_works_F77=yes
15939        fi
15940      else
15941        lt_prog_compiler_static_works_F77=yes
15942      fi
15943    fi
15944    $rm conftest*
15945    LDFLAGS="$save_LDFLAGS"
15946
15947 fi
15948 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15949 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15950
15951 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15952     :
15953 else
15954     lt_prog_compiler_static_F77=
15955 fi
15956
15957
15958 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15959 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15960 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15961   echo $ECHO_N "(cached) $ECHO_C" >&6
15962 else
15963   lt_cv_prog_compiler_c_o_F77=no
15964    $rm -r conftest 2>/dev/null
15965    mkdir conftest
15966    cd conftest
15967    mkdir out
15968    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15969
15970    lt_compiler_flag="-o out/conftest2.$ac_objext"
15971    # Insert the option either (1) after the last *FLAGS variable, or
15972    # (2) before a word containing "conftest.", or (3) at the end.
15973    # Note that $ac_compile itself does not contain backslashes and begins
15974    # with a dollar sign (not a hyphen), so the echo should work correctly.
15975    lt_compile=`echo "$ac_compile" | $SED \
15976    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15977    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15978    -e 's:$: $lt_compiler_flag:'`
15979    (eval echo "\"\$as_me:15979: $lt_compile\"" >&5)
15980    (eval "$lt_compile" 2>out/conftest.err)
15981    ac_status=$?
15982    cat out/conftest.err >&5
15983    echo "$as_me:15983: \$? = $ac_status" >&5
15984    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15985    then
15986      # The compiler can only warn and ignore the option if not recognized
15987      # So say no if there are warnings
15988      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15989      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15990      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15991        lt_cv_prog_compiler_c_o_F77=yes
15992      fi
15993    fi
15994    chmod u+w . 2>&5
15995    $rm conftest*
15996    # SGI C++ compiler will create directory out/ii_files/ for
15997    # template instantiation
15998    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15999    $rm out/* && rmdir out
16000    cd ..
16001    rmdir conftest
16002    $rm conftest*
16003
16004 fi
16005 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16006 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16007
16008
16009 hard_links="nottested"
16010 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16011   # do not overwrite the value of need_locks provided by the user
16012   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16013 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16014   hard_links=yes
16015   $rm conftest*
16016   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16017   touch conftest.a
16018   ln conftest.a conftest.b 2>&5 || hard_links=no
16019   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16020   { echo "$as_me:$LINENO: result: $hard_links" >&5
16021 echo "${ECHO_T}$hard_links" >&6; }
16022   if test "$hard_links" = no; then
16023     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16024 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16025     need_locks=warn
16026   fi
16027 else
16028   need_locks=no
16029 fi
16030
16031 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16032 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16033
16034   runpath_var=
16035   allow_undefined_flag_F77=
16036   enable_shared_with_static_runtimes_F77=no
16037   archive_cmds_F77=
16038   archive_expsym_cmds_F77=
16039   old_archive_From_new_cmds_F77=
16040   old_archive_from_expsyms_cmds_F77=
16041   export_dynamic_flag_spec_F77=
16042   whole_archive_flag_spec_F77=
16043   thread_safe_flag_spec_F77=
16044   hardcode_libdir_flag_spec_F77=
16045   hardcode_libdir_flag_spec_ld_F77=
16046   hardcode_libdir_separator_F77=
16047   hardcode_direct_F77=no
16048   hardcode_minus_L_F77=no
16049   hardcode_shlibpath_var_F77=unsupported
16050   link_all_deplibs_F77=unknown
16051   hardcode_automatic_F77=no
16052   module_cmds_F77=
16053   module_expsym_cmds_F77=
16054   always_export_symbols_F77=no
16055   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16056   # include_expsyms should be a list of space-separated symbols to be *always*
16057   # included in the symbol list
16058   include_expsyms_F77=
16059   # exclude_expsyms can be an extended regexp of symbols to exclude
16060   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16061   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16062   # as well as any symbol that contains `d'.
16063   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16064   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16065   # platforms (ab)use it in PIC code, but their linkers get confused if
16066   # the symbol is explicitly referenced.  Since portable code cannot
16067   # rely on this symbol name, it's probably fine to never include it in
16068   # preloaded symbol tables.
16069   extract_expsyms_cmds=
16070   # Just being paranoid about ensuring that cc_basename is set.
16071   for cc_temp in $compiler""; do
16072   case $cc_temp in
16073     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16074     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16075     \-*) ;;
16076     *) break;;
16077   esac
16078 done
16079 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16080
16081   case $host_os in
16082   cygwin* | mingw* | pw32*)
16083     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16084     # When not using gcc, we currently assume that we are using
16085     # Microsoft Visual C++.
16086     if test "$GCC" != yes; then
16087       with_gnu_ld=no
16088     fi
16089     ;;
16090   interix*)
16091     # we just hope/assume this is gcc and not c89 (= MSVC++)
16092     with_gnu_ld=yes
16093     ;;
16094   openbsd*)
16095     with_gnu_ld=no
16096     ;;
16097   esac
16098
16099   ld_shlibs_F77=yes
16100   if test "$with_gnu_ld" = yes; then
16101     # If archive_cmds runs LD, not CC, wlarc should be empty
16102     wlarc='${wl}'
16103
16104     # Set some defaults for GNU ld with shared library support. These
16105     # are reset later if shared libraries are not supported. Putting them
16106     # here allows them to be overridden if necessary.
16107     runpath_var=LD_RUN_PATH
16108     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16109     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16110     # ancient GNU ld didn't support --whole-archive et. al.
16111     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16112         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16113       else
16114         whole_archive_flag_spec_F77=
16115     fi
16116     supports_anon_versioning=no
16117     case `$LD -v 2>/dev/null` in
16118       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16119       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16120       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16121       *\ 2.11.*) ;; # other 2.11 versions
16122       *) supports_anon_versioning=yes ;;
16123     esac
16124
16125     # See if GNU ld supports shared libraries.
16126     case $host_os in
16127     aix3* | aix4* | aix5*)
16128       # On AIX/PPC, the GNU linker is very broken
16129       if test "$host_cpu" != ia64; then
16130         ld_shlibs_F77=no
16131         cat <<EOF 1>&2
16132
16133 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16134 *** to be unable to reliably create shared libraries on AIX.
16135 *** Therefore, libtool is disabling shared libraries support.  If you
16136 *** really care for shared libraries, you may want to modify your PATH
16137 *** so that a non-GNU linker is found, and then restart.
16138
16139 EOF
16140       fi
16141       ;;
16142
16143     amigaos*)
16144       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)'
16145       hardcode_libdir_flag_spec_F77='-L$libdir'
16146       hardcode_minus_L_F77=yes
16147
16148       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16149       # that the semantics of dynamic libraries on AmigaOS, at least up
16150       # to version 4, is to share data among multiple programs linked
16151       # with the same dynamic library.  Since this doesn't match the
16152       # behavior of shared libraries on other platforms, we can't use
16153       # them.
16154       ld_shlibs_F77=no
16155       ;;
16156
16157     beos*)
16158       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16159         allow_undefined_flag_F77=unsupported
16160         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16161         # support --undefined.  This deserves some investigation.  FIXME
16162         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16163       else
16164         ld_shlibs_F77=no
16165       fi
16166       ;;
16167
16168     cygwin* | mingw* | pw32*)
16169       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16170       # as there is no search path for DLLs.
16171       hardcode_libdir_flag_spec_F77='-L$libdir'
16172       allow_undefined_flag_F77=unsupported
16173       always_export_symbols_F77=no
16174       enable_shared_with_static_runtimes_F77=yes
16175       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16176
16177       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16178         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16179         # If the export-symbols file already is a .def file (1st line
16180         # is EXPORTS), use it as is; otherwise, prepend...
16181         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16182           cp $export_symbols $output_objdir/$soname.def;
16183         else
16184           echo EXPORTS > $output_objdir/$soname.def;
16185           cat $export_symbols >> $output_objdir/$soname.def;
16186         fi~
16187         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16188       else
16189         ld_shlibs_F77=no
16190       fi
16191       ;;
16192
16193     interix3*)
16194       hardcode_direct_F77=no
16195       hardcode_shlibpath_var_F77=no
16196       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16197       export_dynamic_flag_spec_F77='${wl}-E'
16198       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16199       # Instead, shared libraries are loaded at an image base (0x10000000 by
16200       # default) and relocated if they conflict, which is a slow very memory
16201       # consuming and fragmenting process.  To avoid this, we pick a random,
16202       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16203       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16204       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'
16205       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'
16206       ;;
16207
16208     linux* | k*bsd*-gnu)
16209       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16210         tmp_addflag=
16211         case $cc_basename,$host_cpu in
16212         pgcc*)                          # Portland Group C compiler
16213           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'
16214           tmp_addflag=' $pic_flag'
16215           ;;
16216         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16217           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'
16218           tmp_addflag=' $pic_flag -Mnomain' ;;
16219         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16220           tmp_addflag=' -i_dynamic' ;;
16221         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16222           tmp_addflag=' -i_dynamic -nofor_main' ;;
16223         ifc* | ifort*)                  # Intel Fortran compiler
16224           tmp_addflag=' -nofor_main' ;;
16225         esac
16226         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16227
16228         if test $supports_anon_versioning = yes; then
16229           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16230   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16231   $echo "local: *; };" >> $output_objdir/$libname.ver~
16232           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16233         fi
16234         link_all_deplibs_F77=no
16235       else
16236         ld_shlibs_F77=no
16237       fi
16238       ;;
16239
16240     netbsd* | netbsdelf*-gnu)
16241       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16242         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16243         wlarc=
16244       else
16245         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16246         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16247       fi
16248       ;;
16249
16250     solaris*)
16251       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16252         ld_shlibs_F77=no
16253         cat <<EOF 1>&2
16254
16255 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16256 *** create shared libraries on Solaris systems.  Therefore, libtool
16257 *** is disabling shared libraries support.  We urge you to upgrade GNU
16258 *** binutils to release 2.9.1 or newer.  Another option is to modify
16259 *** your PATH or compiler configuration so that the native linker is
16260 *** used, and then restart.
16261
16262 EOF
16263       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16264         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16265         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16266       else
16267         ld_shlibs_F77=no
16268       fi
16269       ;;
16270
16271     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16272       case `$LD -v 2>&1` in
16273         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16274         ld_shlibs_F77=no
16275         cat <<_LT_EOF 1>&2
16276
16277 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16278 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16279 *** is disabling shared libraries support.  We urge you to upgrade GNU
16280 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16281 *** your PATH or compiler configuration so that the native linker is
16282 *** used, and then restart.
16283
16284 _LT_EOF
16285         ;;
16286         *)
16287           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16288             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16289             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16290             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16291           else
16292             ld_shlibs_F77=no
16293           fi
16294         ;;
16295       esac
16296       ;;
16297
16298     sunos4*)
16299       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16300       wlarc=
16301       hardcode_direct_F77=yes
16302       hardcode_shlibpath_var_F77=no
16303       ;;
16304
16305     *)
16306       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16307         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16308         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16309       else
16310         ld_shlibs_F77=no
16311       fi
16312       ;;
16313     esac
16314
16315     if test "$ld_shlibs_F77" = no; then
16316       runpath_var=
16317       hardcode_libdir_flag_spec_F77=
16318       export_dynamic_flag_spec_F77=
16319       whole_archive_flag_spec_F77=
16320     fi
16321   else
16322     # PORTME fill in a description of your system's linker (not GNU ld)
16323     case $host_os in
16324     aix3*)
16325       allow_undefined_flag_F77=unsupported
16326       always_export_symbols_F77=yes
16327       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'
16328       # Note: this linker hardcodes the directories in LIBPATH if there
16329       # are no directories specified by -L.
16330       hardcode_minus_L_F77=yes
16331       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16332         # Neither direct hardcoding nor static linking is supported with a
16333         # broken collect2.
16334         hardcode_direct_F77=unsupported
16335       fi
16336       ;;
16337
16338     aix4* | aix5*)
16339       if test "$host_cpu" = ia64; then
16340         # On IA64, the linker does run time linking by default, so we don't
16341         # have to do anything special.
16342         aix_use_runtimelinking=no
16343         exp_sym_flag='-Bexport'
16344         no_entry_flag=""
16345       else
16346         # If we're using GNU nm, then we don't want the "-C" option.
16347         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16348         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16349           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'
16350         else
16351           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'
16352         fi
16353         aix_use_runtimelinking=no
16354
16355         # Test if we are trying to use run time linking or normal
16356         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16357         # need to do runtime linking.
16358         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16359           for ld_flag in $LDFLAGS; do
16360           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16361             aix_use_runtimelinking=yes
16362             break
16363           fi
16364           done
16365           ;;
16366         esac
16367
16368         exp_sym_flag='-bexport'
16369         no_entry_flag='-bnoentry'
16370       fi
16371
16372       # When large executables or shared objects are built, AIX ld can
16373       # have problems creating the table of contents.  If linking a library
16374       # or program results in "error TOC overflow" add -mminimal-toc to
16375       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16376       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16377
16378       archive_cmds_F77=''
16379       hardcode_direct_F77=yes
16380       hardcode_libdir_separator_F77=':'
16381       link_all_deplibs_F77=yes
16382
16383       if test "$GCC" = yes; then
16384         case $host_os in aix4.[012]|aix4.[012].*)
16385         # We only want to do this on AIX 4.2 and lower, the check
16386         # below for broken collect2 doesn't work under 4.3+
16387           collect2name=`${CC} -print-prog-name=collect2`
16388           if test -f "$collect2name" && \
16389            strings "$collect2name" | grep resolve_lib_name >/dev/null
16390           then
16391           # We have reworked collect2
16392           hardcode_direct_F77=yes
16393           else
16394           # We have old collect2
16395           hardcode_direct_F77=unsupported
16396           # It fails to find uninstalled libraries when the uninstalled
16397           # path is not listed in the libpath.  Setting hardcode_minus_L
16398           # to unsupported forces relinking
16399           hardcode_minus_L_F77=yes
16400           hardcode_libdir_flag_spec_F77='-L$libdir'
16401           hardcode_libdir_separator_F77=
16402           fi
16403           ;;
16404         esac
16405         shared_flag='-shared'
16406         if test "$aix_use_runtimelinking" = yes; then
16407           shared_flag="$shared_flag "'${wl}-G'
16408         fi
16409       else
16410         # not using gcc
16411         if test "$host_cpu" = ia64; then
16412         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16413         # chokes on -Wl,-G. The following line is correct:
16414           shared_flag='-G'
16415         else
16416           if test "$aix_use_runtimelinking" = yes; then
16417             shared_flag='${wl}-G'
16418           else
16419             shared_flag='${wl}-bM:SRE'
16420           fi
16421         fi
16422       fi
16423
16424       # It seems that -bexpall does not export symbols beginning with
16425       # underscore (_), so it is better to generate a list of symbols to export.
16426       always_export_symbols_F77=yes
16427       if test "$aix_use_runtimelinking" = yes; then
16428         # Warning - without using the other runtime loading flags (-brtl),
16429         # -berok will link without error, but may produce a broken library.
16430         allow_undefined_flag_F77='-berok'
16431        # Determine the default libpath from the value encoded in an empty executable.
16432        cat >conftest.$ac_ext <<_ACEOF
16433       program main
16434
16435       end
16436 _ACEOF
16437 rm -f conftest.$ac_objext conftest$ac_exeext
16438 if { (ac_try="$ac_link"
16439 case "(($ac_try" in
16440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16441   *) ac_try_echo=$ac_try;;
16442 esac
16443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16444   (eval "$ac_link") 2>conftest.er1
16445   ac_status=$?
16446   grep -v '^ *+' conftest.er1 >conftest.err
16447   rm -f conftest.er1
16448   cat conftest.err >&5
16449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450   (exit $ac_status); } &&
16451          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16452   { (case "(($ac_try" in
16453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16454   *) ac_try_echo=$ac_try;;
16455 esac
16456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16457   (eval "$ac_try") 2>&5
16458   ac_status=$?
16459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460   (exit $ac_status); }; } &&
16461          { ac_try='test -s conftest$ac_exeext'
16462   { (case "(($ac_try" in
16463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16464   *) ac_try_echo=$ac_try;;
16465 esac
16466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16467   (eval "$ac_try") 2>&5
16468   ac_status=$?
16469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470   (exit $ac_status); }; }; then
16471
16472 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16473 }'`
16474 # Check for a 64-bit object if we didn't find anything.
16475 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16476 }'`; fi
16477 else
16478   echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16480
16481
16482 fi
16483
16484 rm -f core conftest.err conftest.$ac_objext \
16485       conftest$ac_exeext conftest.$ac_ext
16486 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16487
16488        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16489         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"
16490        else
16491         if test "$host_cpu" = ia64; then
16492           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16493           allow_undefined_flag_F77="-z nodefs"
16494           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"
16495         else
16496          # Determine the default libpath from the value encoded in an empty executable.
16497          cat >conftest.$ac_ext <<_ACEOF
16498       program main
16499
16500       end
16501 _ACEOF
16502 rm -f conftest.$ac_objext conftest$ac_exeext
16503 if { (ac_try="$ac_link"
16504 case "(($ac_try" in
16505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16506   *) ac_try_echo=$ac_try;;
16507 esac
16508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16509   (eval "$ac_link") 2>conftest.er1
16510   ac_status=$?
16511   grep -v '^ *+' conftest.er1 >conftest.err
16512   rm -f conftest.er1
16513   cat conftest.err >&5
16514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515   (exit $ac_status); } &&
16516          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16517   { (case "(($ac_try" in
16518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519   *) ac_try_echo=$ac_try;;
16520 esac
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522   (eval "$ac_try") 2>&5
16523   ac_status=$?
16524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525   (exit $ac_status); }; } &&
16526          { ac_try='test -s conftest$ac_exeext'
16527   { (case "(($ac_try" in
16528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529   *) ac_try_echo=$ac_try;;
16530 esac
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532   (eval "$ac_try") 2>&5
16533   ac_status=$?
16534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535   (exit $ac_status); }; }; then
16536
16537 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16538 }'`
16539 # Check for a 64-bit object if we didn't find anything.
16540 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16541 }'`; fi
16542 else
16543   echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16545
16546
16547 fi
16548
16549 rm -f core conftest.err conftest.$ac_objext \
16550       conftest$ac_exeext conftest.$ac_ext
16551 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16552
16553          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16554           # Warning - without using the other run time loading flags,
16555           # -berok will link without error, but may produce a broken library.
16556           no_undefined_flag_F77=' ${wl}-bernotok'
16557           allow_undefined_flag_F77=' ${wl}-berok'
16558           # Exported symbols can be pulled into shared objects from archives
16559           whole_archive_flag_spec_F77='$convenience'
16560           archive_cmds_need_lc_F77=yes
16561           # This is similar to how AIX traditionally builds its shared libraries.
16562           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'
16563         fi
16564       fi
16565       ;;
16566
16567     amigaos*)
16568       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)'
16569       hardcode_libdir_flag_spec_F77='-L$libdir'
16570       hardcode_minus_L_F77=yes
16571       # see comment about different semantics on the GNU ld section
16572       ld_shlibs_F77=no
16573       ;;
16574
16575     bsdi[45]*)
16576       export_dynamic_flag_spec_F77=-rdynamic
16577       ;;
16578
16579     cygwin* | mingw* | pw32*)
16580       # When not using gcc, we currently assume that we are using
16581       # Microsoft Visual C++.
16582       # hardcode_libdir_flag_spec is actually meaningless, as there is
16583       # no search path for DLLs.
16584       hardcode_libdir_flag_spec_F77=' '
16585       allow_undefined_flag_F77=unsupported
16586       # Tell ltmain to make .lib files, not .a files.
16587       libext=lib
16588       # Tell ltmain to make .dll files, not .so files.
16589       shrext_cmds=".dll"
16590       # FIXME: Setting linknames here is a bad hack.
16591       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16592       # The linker will automatically build a .lib file if we build a DLL.
16593       old_archive_From_new_cmds_F77='true'
16594       # FIXME: Should let the user specify the lib program.
16595       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16596       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16597       enable_shared_with_static_runtimes_F77=yes
16598       ;;
16599
16600     darwin* | rhapsody*)
16601       case $host_os in
16602         rhapsody* | darwin1.[012])
16603          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16604          ;;
16605        *) # Darwin 1.3 on
16606          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16607            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16608          else
16609            case ${MACOSX_DEPLOYMENT_TARGET} in
16610              10.[012])
16611                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16612                ;;
16613              10.*)
16614                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16615                ;;
16616            esac
16617          fi
16618          ;;
16619       esac
16620       archive_cmds_need_lc_F77=no
16621       hardcode_direct_F77=no
16622       hardcode_automatic_F77=yes
16623       hardcode_shlibpath_var_F77=unsupported
16624       whole_archive_flag_spec_F77=''
16625       link_all_deplibs_F77=yes
16626     if test "$GCC" = yes ; then
16627         output_verbose_link_cmd='echo'
16628         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16629       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16630       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16631       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16632       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}'
16633     else
16634       case $cc_basename in
16635         xlc*)
16636          output_verbose_link_cmd='echo'
16637          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16638          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16639           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16640          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16641           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}'
16642           ;;
16643        *)
16644          ld_shlibs_F77=no
16645           ;;
16646       esac
16647     fi
16648       ;;
16649
16650     dgux*)
16651       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16652       hardcode_libdir_flag_spec_F77='-L$libdir'
16653       hardcode_shlibpath_var_F77=no
16654       ;;
16655
16656     freebsd1*)
16657       ld_shlibs_F77=no
16658       ;;
16659
16660     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16661     # support.  Future versions do this automatically, but an explicit c++rt0.o
16662     # does not break anything, and helps significantly (at the cost of a little
16663     # extra space).
16664     freebsd2.2*)
16665       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16666       hardcode_libdir_flag_spec_F77='-R$libdir'
16667       hardcode_direct_F77=yes
16668       hardcode_shlibpath_var_F77=no
16669       ;;
16670
16671     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16672     freebsd2*)
16673       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16674       hardcode_direct_F77=yes
16675       hardcode_minus_L_F77=yes
16676       hardcode_shlibpath_var_F77=no
16677       ;;
16678
16679     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16680     freebsd* | dragonfly*)
16681       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16682       hardcode_libdir_flag_spec_F77='-R$libdir'
16683       hardcode_direct_F77=yes
16684       hardcode_shlibpath_var_F77=no
16685       ;;
16686
16687     hpux9*)
16688       if test "$GCC" = yes; then
16689         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'
16690       else
16691         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'
16692       fi
16693       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16694       hardcode_libdir_separator_F77=:
16695       hardcode_direct_F77=yes
16696
16697       # hardcode_minus_L: Not really in the search PATH,
16698       # but as the default location of the library.
16699       hardcode_minus_L_F77=yes
16700       export_dynamic_flag_spec_F77='${wl}-E'
16701       ;;
16702
16703     hpux10*)
16704       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16705         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16706       else
16707         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16708       fi
16709       if test "$with_gnu_ld" = no; then
16710         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16711         hardcode_libdir_separator_F77=:
16712
16713         hardcode_direct_F77=yes
16714         export_dynamic_flag_spec_F77='${wl}-E'
16715
16716         # hardcode_minus_L: Not really in the search PATH,
16717         # but as the default location of the library.
16718         hardcode_minus_L_F77=yes
16719       fi
16720       ;;
16721
16722     hpux11*)
16723       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16724         case $host_cpu in
16725         hppa*64*)
16726           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16727           ;;
16728         ia64*)
16729           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16730           ;;
16731         *)
16732           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16733           ;;
16734         esac
16735       else
16736         case $host_cpu in
16737         hppa*64*)
16738           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16739           ;;
16740         ia64*)
16741           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16742           ;;
16743         *)
16744           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16745           ;;
16746         esac
16747       fi
16748       if test "$with_gnu_ld" = no; then
16749         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16750         hardcode_libdir_separator_F77=:
16751
16752         case $host_cpu in
16753         hppa*64*|ia64*)
16754           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16755           hardcode_direct_F77=no
16756           hardcode_shlibpath_var_F77=no
16757           ;;
16758         *)
16759           hardcode_direct_F77=yes
16760           export_dynamic_flag_spec_F77='${wl}-E'
16761
16762           # hardcode_minus_L: Not really in the search PATH,
16763           # but as the default location of the library.
16764           hardcode_minus_L_F77=yes
16765           ;;
16766         esac
16767       fi
16768       ;;
16769
16770     irix5* | irix6* | nonstopux*)
16771       if test "$GCC" = yes; then
16772         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'
16773       else
16774         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'
16775         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16776       fi
16777       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16778       hardcode_libdir_separator_F77=:
16779       link_all_deplibs_F77=yes
16780       ;;
16781
16782     netbsd* | netbsdelf*-gnu)
16783       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16784         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16785       else
16786         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16787       fi
16788       hardcode_libdir_flag_spec_F77='-R$libdir'
16789       hardcode_direct_F77=yes
16790       hardcode_shlibpath_var_F77=no
16791       ;;
16792
16793     newsos6)
16794       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16795       hardcode_direct_F77=yes
16796       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16797       hardcode_libdir_separator_F77=:
16798       hardcode_shlibpath_var_F77=no
16799       ;;
16800
16801     openbsd*)
16802       hardcode_direct_F77=yes
16803       hardcode_shlibpath_var_F77=no
16804       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16805         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16806         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16807         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16808         export_dynamic_flag_spec_F77='${wl}-E'
16809       else
16810        case $host_os in
16811          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16812            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16813            hardcode_libdir_flag_spec_F77='-R$libdir'
16814            ;;
16815          *)
16816            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16817            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16818            ;;
16819        esac
16820       fi
16821       ;;
16822
16823     os2*)
16824       hardcode_libdir_flag_spec_F77='-L$libdir'
16825       hardcode_minus_L_F77=yes
16826       allow_undefined_flag_F77=unsupported
16827       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'
16828       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16829       ;;
16830
16831     osf3*)
16832       if test "$GCC" = yes; then
16833         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16834         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'
16835       else
16836         allow_undefined_flag_F77=' -expect_unresolved \*'
16837         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'
16838       fi
16839       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16840       hardcode_libdir_separator_F77=:
16841       ;;
16842
16843     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16844       if test "$GCC" = yes; then
16845         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16846         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'
16847         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16848       else
16849         allow_undefined_flag_F77=' -expect_unresolved \*'
16850         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'
16851         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~
16852         $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'
16853
16854         # Both c and cxx compiler support -rpath directly
16855         hardcode_libdir_flag_spec_F77='-rpath $libdir'
16856       fi
16857       hardcode_libdir_separator_F77=:
16858       ;;
16859
16860     solaris*)
16861       no_undefined_flag_F77=' -z text'
16862       if test "$GCC" = yes; then
16863         wlarc='${wl}'
16864         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16865         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16866           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16867       else
16868         wlarc=''
16869         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16870         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16871         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16872       fi
16873       hardcode_libdir_flag_spec_F77='-R$libdir'
16874       hardcode_shlibpath_var_F77=no
16875       case $host_os in
16876       solaris2.[0-5] | solaris2.[0-5].*) ;;
16877       *)
16878         # The compiler driver will combine linker options so we
16879         # cannot just pass the convience library names through
16880         # without $wl, iff we do not link with $LD.
16881         # Luckily, gcc supports the same syntax we need for Sun Studio.
16882         # Supported since Solaris 2.6 (maybe 2.5.1?)
16883         case $wlarc in
16884         '')
16885           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16886         *)
16887           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16888         esac ;;
16889       esac
16890       link_all_deplibs_F77=yes
16891       ;;
16892
16893     sunos4*)
16894       if test "x$host_vendor" = xsequent; then
16895         # Use $CC to link under sequent, because it throws in some extra .o
16896         # files that make .init and .fini sections work.
16897         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16898       else
16899         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16900       fi
16901       hardcode_libdir_flag_spec_F77='-L$libdir'
16902       hardcode_direct_F77=yes
16903       hardcode_minus_L_F77=yes
16904       hardcode_shlibpath_var_F77=no
16905       ;;
16906
16907     sysv4)
16908       case $host_vendor in
16909         sni)
16910           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16911           hardcode_direct_F77=yes # is this really true???
16912         ;;
16913         siemens)
16914           ## LD is ld it makes a PLAMLIB
16915           ## CC just makes a GrossModule.
16916           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16917           reload_cmds_F77='$CC -r -o $output$reload_objs'
16918           hardcode_direct_F77=no
16919         ;;
16920         motorola)
16921           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16922           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16923         ;;
16924       esac
16925       runpath_var='LD_RUN_PATH'
16926       hardcode_shlibpath_var_F77=no
16927       ;;
16928
16929     sysv4.3*)
16930       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16931       hardcode_shlibpath_var_F77=no
16932       export_dynamic_flag_spec_F77='-Bexport'
16933       ;;
16934
16935     sysv4*MP*)
16936       if test -d /usr/nec; then
16937         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16938         hardcode_shlibpath_var_F77=no
16939         runpath_var=LD_RUN_PATH
16940         hardcode_runpath_var=yes
16941         ld_shlibs_F77=yes
16942       fi
16943       ;;
16944
16945     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16946       no_undefined_flag_F77='${wl}-z,text'
16947       archive_cmds_need_lc_F77=no
16948       hardcode_shlibpath_var_F77=no
16949       runpath_var='LD_RUN_PATH'
16950
16951       if test "$GCC" = yes; then
16952         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16953         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16954       else
16955         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16956         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16957       fi
16958       ;;
16959
16960     sysv5* | sco3.2v5* | sco5v6*)
16961       # Note: We can NOT use -z defs as we might desire, because we do not
16962       # link with -lc, and that would cause any symbols used from libc to
16963       # always be unresolved, which means just about no library would
16964       # ever link correctly.  If we're not using GNU ld we use -z text
16965       # though, which does catch some bad symbols but isn't as heavy-handed
16966       # as -z defs.
16967       no_undefined_flag_F77='${wl}-z,text'
16968       allow_undefined_flag_F77='${wl}-z,nodefs'
16969       archive_cmds_need_lc_F77=no
16970       hardcode_shlibpath_var_F77=no
16971       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16972       hardcode_libdir_separator_F77=':'
16973       link_all_deplibs_F77=yes
16974       export_dynamic_flag_spec_F77='${wl}-Bexport'
16975       runpath_var='LD_RUN_PATH'
16976
16977       if test "$GCC" = yes; then
16978         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16979         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16980       else
16981         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16982         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16983       fi
16984       ;;
16985
16986     uts4*)
16987       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16988       hardcode_libdir_flag_spec_F77='-L$libdir'
16989       hardcode_shlibpath_var_F77=no
16990       ;;
16991
16992     *)
16993       ld_shlibs_F77=no
16994       ;;
16995     esac
16996   fi
16997
16998 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16999 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17000 test "$ld_shlibs_F77" = no && can_build_shared=no
17001
17002 #
17003 # Do we need to explicitly link libc?
17004 #
17005 case "x$archive_cmds_need_lc_F77" in
17006 x|xyes)
17007   # Assume -lc should be added
17008   archive_cmds_need_lc_F77=yes
17009
17010   if test "$enable_shared" = yes && test "$GCC" = yes; then
17011     case $archive_cmds_F77 in
17012     *'~'*)
17013       # FIXME: we may have to deal with multi-command sequences.
17014       ;;
17015     '$CC '*)
17016       # Test whether the compiler implicitly links with -lc since on some
17017       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17018       # to ld, don't add -lc before -lgcc.
17019       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17020 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17021       $rm conftest*
17022       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17023
17024       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17025   (eval $ac_compile) 2>&5
17026   ac_status=$?
17027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028   (exit $ac_status); } 2>conftest.err; then
17029         soname=conftest
17030         lib=conftest
17031         libobjs=conftest.$ac_objext
17032         deplibs=
17033         wl=$lt_prog_compiler_wl_F77
17034         pic_flag=$lt_prog_compiler_pic_F77
17035         compiler_flags=-v
17036         linker_flags=-v
17037         verstring=
17038         output_objdir=.
17039         libname=conftest
17040         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17041         allow_undefined_flag_F77=
17042         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17043   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17044   ac_status=$?
17045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); }
17047         then
17048           archive_cmds_need_lc_F77=no
17049         else
17050           archive_cmds_need_lc_F77=yes
17051         fi
17052         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17053       else
17054         cat conftest.err 1>&5
17055       fi
17056       $rm conftest*
17057       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17058 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17059       ;;
17060     esac
17061   fi
17062   ;;
17063 esac
17064
17065 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17066 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17067 library_names_spec=
17068 libname_spec='lib$name'
17069 soname_spec=
17070 shrext_cmds=".so"
17071 postinstall_cmds=
17072 postuninstall_cmds=
17073 finish_cmds=
17074 finish_eval=
17075 shlibpath_var=
17076 shlibpath_overrides_runpath=unknown
17077 version_type=none
17078 dynamic_linker="$host_os ld.so"
17079 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17080 if test "$GCC" = yes; then
17081   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17082   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17083     # if the path contains ";" then we assume it to be the separator
17084     # otherwise default to the standard path separator (i.e. ":") - it is
17085     # assumed that no part of a normal pathname contains ";" but that should
17086     # okay in the real world where ";" in dirpaths is itself problematic.
17087     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17088   else
17089     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17090   fi
17091 else
17092   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17093 fi
17094 need_lib_prefix=unknown
17095 hardcode_into_libs=no
17096
17097 # when you set need_version to no, make sure it does not cause -set_version
17098 # flags to be left without arguments
17099 need_version=unknown
17100
17101 case $host_os in
17102 aix3*)
17103   version_type=linux
17104   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17105   shlibpath_var=LIBPATH
17106
17107   # AIX 3 has no versioning support, so we append a major version to the name.
17108   soname_spec='${libname}${release}${shared_ext}$major'
17109   ;;
17110
17111 aix4* | aix5*)
17112   version_type=linux
17113   need_lib_prefix=no
17114   need_version=no
17115   hardcode_into_libs=yes
17116   if test "$host_cpu" = ia64; then
17117     # AIX 5 supports IA64
17118     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17119     shlibpath_var=LD_LIBRARY_PATH
17120   else
17121     # With GCC up to 2.95.x, collect2 would create an import file
17122     # for dependence libraries.  The import file would start with
17123     # the line `#! .'.  This would cause the generated library to
17124     # depend on `.', always an invalid library.  This was fixed in
17125     # development snapshots of GCC prior to 3.0.
17126     case $host_os in
17127       aix4 | aix4.[01] | aix4.[01].*)
17128       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17129            echo ' yes '
17130            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17131         :
17132       else
17133         can_build_shared=no
17134       fi
17135       ;;
17136     esac
17137     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17138     # soname into executable. Probably we can add versioning support to
17139     # collect2, so additional links can be useful in future.
17140     if test "$aix_use_runtimelinking" = yes; then
17141       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17142       # instead of lib<name>.a to let people know that these are not
17143       # typical AIX shared libraries.
17144       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17145     else
17146       # We preserve .a as extension for shared libraries through AIX4.2
17147       # and later when we are not doing run time linking.
17148       library_names_spec='${libname}${release}.a $libname.a'
17149       soname_spec='${libname}${release}${shared_ext}$major'
17150     fi
17151     shlibpath_var=LIBPATH
17152   fi
17153   ;;
17154
17155 amigaos*)
17156   library_names_spec='$libname.ixlibrary $libname.a'
17157   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17158   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'
17159   ;;
17160
17161 beos*)
17162   library_names_spec='${libname}${shared_ext}'
17163   dynamic_linker="$host_os ld.so"
17164   shlibpath_var=LIBRARY_PATH
17165   ;;
17166
17167 bsdi[45]*)
17168   version_type=linux
17169   need_version=no
17170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17171   soname_spec='${libname}${release}${shared_ext}$major'
17172   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17173   shlibpath_var=LD_LIBRARY_PATH
17174   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17175   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17176   # the default ld.so.conf also contains /usr/contrib/lib and
17177   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17178   # libtool to hard-code these into programs
17179   ;;
17180
17181 cygwin* | mingw* | pw32*)
17182   version_type=windows
17183   shrext_cmds=".dll"
17184   need_version=no
17185   need_lib_prefix=no
17186
17187   case $GCC,$host_os in
17188   yes,cygwin* | yes,mingw* | yes,pw32*)
17189     library_names_spec='$libname.dll.a'
17190     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17191     postinstall_cmds='base_file=`basename \${file}`~
17192       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17193       dldir=$destdir/`dirname \$dlpath`~
17194       test -d \$dldir || mkdir -p \$dldir~
17195       $install_prog $dir/$dlname \$dldir/$dlname~
17196       chmod a+x \$dldir/$dlname'
17197     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17198       dlpath=$dir/\$dldll~
17199        $rm \$dlpath'
17200     shlibpath_overrides_runpath=yes
17201
17202     case $host_os in
17203     cygwin*)
17204       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17205       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17206       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17207       ;;
17208     mingw*)
17209       # MinGW DLLs use traditional 'lib' prefix
17210       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17211       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17212       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17213         # It is most probably a Windows format PATH printed by
17214         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17215         # path with ; separators, and with drive letters. We can handle the
17216         # drive letters (cygwin fileutils understands them), so leave them,
17217         # especially as we might pass files found there to a mingw objdump,
17218         # which wouldn't understand a cygwinified path. Ahh.
17219         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17220       else
17221         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17222       fi
17223       ;;
17224     pw32*)
17225       # pw32 DLLs use 'pw' prefix rather than 'lib'
17226       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17227       ;;
17228     esac
17229     ;;
17230
17231   *)
17232     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17233     ;;
17234   esac
17235   dynamic_linker='Win32 ld.exe'
17236   # FIXME: first we should search . and the directory the executable is in
17237   shlibpath_var=PATH
17238   ;;
17239
17240 darwin* | rhapsody*)
17241   dynamic_linker="$host_os dyld"
17242   version_type=darwin
17243   need_lib_prefix=no
17244   need_version=no
17245   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17246   soname_spec='${libname}${release}${major}$shared_ext'
17247   shlibpath_overrides_runpath=yes
17248   shlibpath_var=DYLD_LIBRARY_PATH
17249   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17250   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17251   if test "$GCC" = yes; then
17252     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17253   else
17254     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17255   fi
17256   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17257   ;;
17258
17259 dgux*)
17260   version_type=linux
17261   need_lib_prefix=no
17262   need_version=no
17263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17264   soname_spec='${libname}${release}${shared_ext}$major'
17265   shlibpath_var=LD_LIBRARY_PATH
17266   ;;
17267
17268 freebsd1*)
17269   dynamic_linker=no
17270   ;;
17271
17272 freebsd* | dragonfly*)
17273   # DragonFly does not have aout.  When/if they implement a new
17274   # versioning mechanism, adjust this.
17275   if test -x /usr/bin/objformat; then
17276     objformat=`/usr/bin/objformat`
17277   else
17278     case $host_os in
17279     freebsd[123]*) objformat=aout ;;
17280     *) objformat=elf ;;
17281     esac
17282   fi
17283   version_type=freebsd-$objformat
17284   case $version_type in
17285     freebsd-elf*)
17286       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17287       need_version=no
17288       need_lib_prefix=no
17289       ;;
17290     freebsd-*)
17291       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17292       need_version=yes
17293       ;;
17294   esac
17295   shlibpath_var=LD_LIBRARY_PATH
17296   case $host_os in
17297   freebsd2*)
17298     shlibpath_overrides_runpath=yes
17299     ;;
17300   freebsd3.[01]* | freebsdelf3.[01]*)
17301     shlibpath_overrides_runpath=yes
17302     hardcode_into_libs=yes
17303     ;;
17304   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17305   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17306     shlibpath_overrides_runpath=no
17307     hardcode_into_libs=yes
17308     ;;
17309   freebsd*) # from 4.6 on
17310     shlibpath_overrides_runpath=yes
17311     hardcode_into_libs=yes
17312     ;;
17313   esac
17314   ;;
17315
17316 gnu*)
17317   version_type=linux
17318   need_lib_prefix=no
17319   need_version=no
17320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17321   soname_spec='${libname}${release}${shared_ext}$major'
17322   shlibpath_var=LD_LIBRARY_PATH
17323   hardcode_into_libs=yes
17324   ;;
17325
17326 hpux9* | hpux10* | hpux11*)
17327   # Give a soname corresponding to the major version so that dld.sl refuses to
17328   # link against other versions.
17329   version_type=sunos
17330   need_lib_prefix=no
17331   need_version=no
17332   case $host_cpu in
17333   ia64*)
17334     shrext_cmds='.so'
17335     hardcode_into_libs=yes
17336     dynamic_linker="$host_os dld.so"
17337     shlibpath_var=LD_LIBRARY_PATH
17338     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340     soname_spec='${libname}${release}${shared_ext}$major'
17341     if test "X$HPUX_IA64_MODE" = X32; then
17342       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17343     else
17344       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17345     fi
17346     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17347     ;;
17348    hppa*64*)
17349      shrext_cmds='.sl'
17350      hardcode_into_libs=yes
17351      dynamic_linker="$host_os dld.sl"
17352      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17353      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17354      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17355      soname_spec='${libname}${release}${shared_ext}$major'
17356      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17357      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17358      ;;
17359    *)
17360     shrext_cmds='.sl'
17361     dynamic_linker="$host_os dld.sl"
17362     shlibpath_var=SHLIB_PATH
17363     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17364     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17365     soname_spec='${libname}${release}${shared_ext}$major'
17366     ;;
17367   esac
17368   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17369   postinstall_cmds='chmod 555 $lib'
17370   ;;
17371
17372 interix3*)
17373   version_type=linux
17374   need_lib_prefix=no
17375   need_version=no
17376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17377   soname_spec='${libname}${release}${shared_ext}$major'
17378   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17379   shlibpath_var=LD_LIBRARY_PATH
17380   shlibpath_overrides_runpath=no
17381   hardcode_into_libs=yes
17382   ;;
17383
17384 irix5* | irix6* | nonstopux*)
17385   case $host_os in
17386     nonstopux*) version_type=nonstopux ;;
17387     *)
17388         if test "$lt_cv_prog_gnu_ld" = yes; then
17389                 version_type=linux
17390         else
17391                 version_type=irix
17392         fi ;;
17393   esac
17394   need_lib_prefix=no
17395   need_version=no
17396   soname_spec='${libname}${release}${shared_ext}$major'
17397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17398   case $host_os in
17399   irix5* | nonstopux*)
17400     libsuff= shlibsuff=
17401     ;;
17402   *)
17403     case $LD in # libtool.m4 will add one of these switches to LD
17404     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17405       libsuff= shlibsuff= libmagic=32-bit;;
17406     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17407       libsuff=32 shlibsuff=N32 libmagic=N32;;
17408     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17409       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17410     *) libsuff= shlibsuff= libmagic=never-match;;
17411     esac
17412     ;;
17413   esac
17414   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17415   shlibpath_overrides_runpath=no
17416   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17417   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17418   hardcode_into_libs=yes
17419   ;;
17420
17421 # No shared lib support for Linux oldld, aout, or coff.
17422 linux*oldld* | linux*aout* | linux*coff*)
17423   dynamic_linker=no
17424   ;;
17425
17426 # This must be Linux ELF.
17427 linux* | k*bsd*-gnu)
17428   version_type=linux
17429   need_lib_prefix=no
17430   need_version=no
17431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17432   soname_spec='${libname}${release}${shared_ext}$major'
17433   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17434   shlibpath_var=LD_LIBRARY_PATH
17435   shlibpath_overrides_runpath=no
17436   # This implies no fast_install, which is unacceptable.
17437   # Some rework will be needed to allow for fast_install
17438   # before this can be enabled.
17439   hardcode_into_libs=yes
17440
17441   # Append ld.so.conf contents to the search path
17442   if test -f /etc/ld.so.conf; then
17443     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17444     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17445   fi
17446
17447   # We used to test for /lib/ld.so.1 and disable shared libraries on
17448   # powerpc, because MkLinux only supported shared libraries with the
17449   # GNU dynamic linker.  Since this was broken with cross compilers,
17450   # most powerpc-linux boxes support dynamic linking these days and
17451   # people can always --disable-shared, the test was removed, and we
17452   # assume the GNU/Linux dynamic linker is in use.
17453   dynamic_linker='GNU/Linux ld.so'
17454   ;;
17455
17456 netbsdelf*-gnu)
17457   version_type=linux
17458   need_lib_prefix=no
17459   need_version=no
17460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17461   soname_spec='${libname}${release}${shared_ext}$major'
17462   shlibpath_var=LD_LIBRARY_PATH
17463   shlibpath_overrides_runpath=no
17464   hardcode_into_libs=yes
17465   dynamic_linker='NetBSD ld.elf_so'
17466   ;;
17467
17468 netbsd*)
17469   version_type=sunos
17470   need_lib_prefix=no
17471   need_version=no
17472   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17473     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17474     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17475     dynamic_linker='NetBSD (a.out) ld.so'
17476   else
17477     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17478     soname_spec='${libname}${release}${shared_ext}$major'
17479     dynamic_linker='NetBSD ld.elf_so'
17480   fi
17481   shlibpath_var=LD_LIBRARY_PATH
17482   shlibpath_overrides_runpath=yes
17483   hardcode_into_libs=yes
17484   ;;
17485
17486 newsos6)
17487   version_type=linux
17488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17489   shlibpath_var=LD_LIBRARY_PATH
17490   shlibpath_overrides_runpath=yes
17491   ;;
17492
17493 nto-qnx*)
17494   version_type=linux
17495   need_lib_prefix=no
17496   need_version=no
17497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17498   soname_spec='${libname}${release}${shared_ext}$major'
17499   shlibpath_var=LD_LIBRARY_PATH
17500   shlibpath_overrides_runpath=yes
17501   ;;
17502
17503 openbsd*)
17504   version_type=sunos
17505   sys_lib_dlsearch_path_spec="/usr/lib"
17506   need_lib_prefix=no
17507   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17508   case $host_os in
17509     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17510     *)                         need_version=no  ;;
17511   esac
17512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17513   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17514   shlibpath_var=LD_LIBRARY_PATH
17515   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17516     case $host_os in
17517       openbsd2.[89] | openbsd2.[89].*)
17518         shlibpath_overrides_runpath=no
17519         ;;
17520       *)
17521         shlibpath_overrides_runpath=yes
17522         ;;
17523       esac
17524   else
17525     shlibpath_overrides_runpath=yes
17526   fi
17527   ;;
17528
17529 os2*)
17530   libname_spec='$name'
17531   shrext_cmds=".dll"
17532   need_lib_prefix=no
17533   library_names_spec='$libname${shared_ext} $libname.a'
17534   dynamic_linker='OS/2 ld.exe'
17535   shlibpath_var=LIBPATH
17536   ;;
17537
17538 osf3* | osf4* | osf5*)
17539   version_type=osf
17540   need_lib_prefix=no
17541   need_version=no
17542   soname_spec='${libname}${release}${shared_ext}$major'
17543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17544   shlibpath_var=LD_LIBRARY_PATH
17545   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17546   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17547   ;;
17548
17549 solaris*)
17550   version_type=linux
17551   need_lib_prefix=no
17552   need_version=no
17553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17554   soname_spec='${libname}${release}${shared_ext}$major'
17555   shlibpath_var=LD_LIBRARY_PATH
17556   shlibpath_overrides_runpath=yes
17557   hardcode_into_libs=yes
17558   # ldd complains unless libraries are executable
17559   postinstall_cmds='chmod +x $lib'
17560   ;;
17561
17562 sunos4*)
17563   version_type=sunos
17564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17565   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17566   shlibpath_var=LD_LIBRARY_PATH
17567   shlibpath_overrides_runpath=yes
17568   if test "$with_gnu_ld" = yes; then
17569     need_lib_prefix=no
17570   fi
17571   need_version=yes
17572   ;;
17573
17574 sysv4 | sysv4.3*)
17575   version_type=linux
17576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17577   soname_spec='${libname}${release}${shared_ext}$major'
17578   shlibpath_var=LD_LIBRARY_PATH
17579   case $host_vendor in
17580     sni)
17581       shlibpath_overrides_runpath=no
17582       need_lib_prefix=no
17583       export_dynamic_flag_spec='${wl}-Blargedynsym'
17584       runpath_var=LD_RUN_PATH
17585       ;;
17586     siemens)
17587       need_lib_prefix=no
17588       ;;
17589     motorola)
17590       need_lib_prefix=no
17591       need_version=no
17592       shlibpath_overrides_runpath=no
17593       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17594       ;;
17595   esac
17596   ;;
17597
17598 sysv4*MP*)
17599   if test -d /usr/nec ;then
17600     version_type=linux
17601     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17602     soname_spec='$libname${shared_ext}.$major'
17603     shlibpath_var=LD_LIBRARY_PATH
17604   fi
17605   ;;
17606
17607 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17608   version_type=freebsd-elf
17609   need_lib_prefix=no
17610   need_version=no
17611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17612   soname_spec='${libname}${release}${shared_ext}$major'
17613   shlibpath_var=LD_LIBRARY_PATH
17614   hardcode_into_libs=yes
17615   if test "$with_gnu_ld" = yes; then
17616     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17617     shlibpath_overrides_runpath=no
17618   else
17619     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17620     shlibpath_overrides_runpath=yes
17621     case $host_os in
17622       sco3.2v5*)
17623         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17624         ;;
17625     esac
17626   fi
17627   sys_lib_dlsearch_path_spec='/usr/lib'
17628   ;;
17629
17630 uts4*)
17631   version_type=linux
17632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17633   soname_spec='${libname}${release}${shared_ext}$major'
17634   shlibpath_var=LD_LIBRARY_PATH
17635   ;;
17636
17637 *)
17638   dynamic_linker=no
17639   ;;
17640 esac
17641 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17642 echo "${ECHO_T}$dynamic_linker" >&6; }
17643 test "$dynamic_linker" = no && can_build_shared=no
17644
17645 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17646 if test "$GCC" = yes; then
17647   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17648 fi
17649
17650 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17651 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17652 hardcode_action_F77=
17653 if test -n "$hardcode_libdir_flag_spec_F77" || \
17654    test -n "$runpath_var_F77" || \
17655    test "X$hardcode_automatic_F77" = "Xyes" ; then
17656
17657   # We can hardcode non-existant directories.
17658   if test "$hardcode_direct_F77" != no &&
17659      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17660      # have to relink, otherwise we might link with an installed library
17661      # when we should be linking with a yet-to-be-installed one
17662      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17663      test "$hardcode_minus_L_F77" != no; then
17664     # Linking always hardcodes the temporary library directory.
17665     hardcode_action_F77=relink
17666   else
17667     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17668     hardcode_action_F77=immediate
17669   fi
17670 else
17671   # We cannot hardcode anything, or else we can only hardcode existing
17672   # directories.
17673   hardcode_action_F77=unsupported
17674 fi
17675 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17676 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17677
17678 if test "$hardcode_action_F77" = relink; then
17679   # Fast installation is not supported
17680   enable_fast_install=no
17681 elif test "$shlibpath_overrides_runpath" = yes ||
17682      test "$enable_shared" = no; then
17683   # Fast installation is not necessary
17684   enable_fast_install=needless
17685 fi
17686
17687
17688 # The else clause should only fire when bootstrapping the
17689 # libtool distribution, otherwise you forgot to ship ltmain.sh
17690 # with your package, and you will get complaints that there are
17691 # no rules to generate ltmain.sh.
17692 if test -f "$ltmain"; then
17693   # See if we are running on zsh, and set the options which allow our commands through
17694   # without removal of \ escapes.
17695   if test -n "${ZSH_VERSION+set}" ; then
17696     setopt NO_GLOB_SUBST
17697   fi
17698   # Now quote all the things that may contain metacharacters while being
17699   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17700   # variables and quote the copies for generation of the libtool script.
17701   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17702     SED SHELL STRIP \
17703     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17704     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17705     deplibs_check_method reload_flag reload_cmds need_locks \
17706     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17707     lt_cv_sys_global_symbol_to_c_name_address \
17708     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17709     old_postinstall_cmds old_postuninstall_cmds \
17710     compiler_F77 \
17711     CC_F77 \
17712     LD_F77 \
17713     lt_prog_compiler_wl_F77 \
17714     lt_prog_compiler_pic_F77 \
17715     lt_prog_compiler_static_F77 \
17716     lt_prog_compiler_no_builtin_flag_F77 \
17717     export_dynamic_flag_spec_F77 \
17718     thread_safe_flag_spec_F77 \
17719     whole_archive_flag_spec_F77 \
17720     enable_shared_with_static_runtimes_F77 \
17721     old_archive_cmds_F77 \
17722     old_archive_from_new_cmds_F77 \
17723     predep_objects_F77 \
17724     postdep_objects_F77 \
17725     predeps_F77 \
17726     postdeps_F77 \
17727     compiler_lib_search_path_F77 \
17728     archive_cmds_F77 \
17729     archive_expsym_cmds_F77 \
17730     postinstall_cmds_F77 \
17731     postuninstall_cmds_F77 \
17732     old_archive_from_expsyms_cmds_F77 \
17733     allow_undefined_flag_F77 \
17734     no_undefined_flag_F77 \
17735     export_symbols_cmds_F77 \
17736     hardcode_libdir_flag_spec_F77 \
17737     hardcode_libdir_flag_spec_ld_F77 \
17738     hardcode_libdir_separator_F77 \
17739     hardcode_automatic_F77 \
17740     module_cmds_F77 \
17741     module_expsym_cmds_F77 \
17742     lt_cv_prog_compiler_c_o_F77 \
17743     exclude_expsyms_F77 \
17744     include_expsyms_F77; do
17745
17746     case $var in
17747     old_archive_cmds_F77 | \
17748     old_archive_from_new_cmds_F77 | \
17749     archive_cmds_F77 | \
17750     archive_expsym_cmds_F77 | \
17751     module_cmds_F77 | \
17752     module_expsym_cmds_F77 | \
17753     old_archive_from_expsyms_cmds_F77 | \
17754     export_symbols_cmds_F77 | \
17755     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17756     postinstall_cmds | postuninstall_cmds | \
17757     old_postinstall_cmds | old_postuninstall_cmds | \
17758     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17759       # Double-quote double-evaled strings.
17760       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17761       ;;
17762     *)
17763       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17764       ;;
17765     esac
17766   done
17767
17768   case $lt_echo in
17769   *'\$0 --fallback-echo"')
17770     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17771     ;;
17772   esac
17773
17774 cfgfile="$ofile"
17775
17776   cat <<__EOF__ >> "$cfgfile"
17777 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17778
17779 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17780
17781 # Shell to use when invoking shell scripts.
17782 SHELL=$lt_SHELL
17783
17784 # Whether or not to build shared libraries.
17785 build_libtool_libs=$enable_shared
17786
17787 # Whether or not to build static libraries.
17788 build_old_libs=$enable_static
17789
17790 # Whether or not to add -lc for building shared libraries.
17791 build_libtool_need_lc=$archive_cmds_need_lc_F77
17792
17793 # Whether or not to disallow shared libs when runtime libs are static
17794 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17795
17796 # Whether or not to optimize for fast installation.
17797 fast_install=$enable_fast_install
17798
17799 # The host system.
17800 host_alias=$host_alias
17801 host=$host
17802 host_os=$host_os
17803
17804 # The build system.
17805 build_alias=$build_alias
17806 build=$build
17807 build_os=$build_os
17808
17809 # An echo program that does not interpret backslashes.
17810 echo=$lt_echo
17811
17812 # The archiver.
17813 AR=$lt_AR
17814 AR_FLAGS=$lt_AR_FLAGS
17815
17816 # A C compiler.
17817 LTCC=$lt_LTCC
17818
17819 # LTCC compiler flags.
17820 LTCFLAGS=$lt_LTCFLAGS
17821
17822 # A language-specific compiler.
17823 CC=$lt_compiler_F77
17824
17825 # Is the compiler the GNU C compiler?
17826 with_gcc=$GCC_F77
17827
17828 # An ERE matcher.
17829 EGREP=$lt_EGREP
17830
17831 # The linker used to build libraries.
17832 LD=$lt_LD_F77
17833
17834 # Whether we need hard or soft links.
17835 LN_S=$lt_LN_S
17836
17837 # A BSD-compatible nm program.
17838 NM=$lt_NM
17839
17840 # A symbol stripping program
17841 STRIP=$lt_STRIP
17842
17843 # Used to examine libraries when file_magic_cmd begins "file"
17844 MAGIC_CMD=$MAGIC_CMD
17845
17846 # Used on cygwin: DLL creation program.
17847 DLLTOOL="$DLLTOOL"
17848
17849 # Used on cygwin: object dumper.
17850 OBJDUMP="$OBJDUMP"
17851
17852 # Used on cygwin: assembler.
17853 AS="$AS"
17854
17855 # The name of the directory that contains temporary libtool files.
17856 objdir=$objdir
17857
17858 # How to create reloadable object files.
17859 reload_flag=$lt_reload_flag
17860 reload_cmds=$lt_reload_cmds
17861
17862 # How to pass a linker flag through the compiler.
17863 wl=$lt_lt_prog_compiler_wl_F77
17864
17865 # Object file suffix (normally "o").
17866 objext="$ac_objext"
17867
17868 # Old archive suffix (normally "a").
17869 libext="$libext"
17870
17871 # Shared library suffix (normally ".so").
17872 shrext_cmds='$shrext_cmds'
17873
17874 # Executable file suffix (normally "").
17875 exeext="$exeext"
17876
17877 # Additional compiler flags for building library objects.
17878 pic_flag=$lt_lt_prog_compiler_pic_F77
17879 pic_mode=$pic_mode
17880
17881 # What is the maximum length of a command?
17882 max_cmd_len=$lt_cv_sys_max_cmd_len
17883
17884 # Does compiler simultaneously support -c and -o options?
17885 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17886
17887 # Must we lock files when doing compilation?
17888 need_locks=$lt_need_locks
17889
17890 # Do we need the lib prefix for modules?
17891 need_lib_prefix=$need_lib_prefix
17892
17893 # Do we need a version for libraries?
17894 need_version=$need_version
17895
17896 # Whether dlopen is supported.
17897 dlopen_support=$enable_dlopen
17898
17899 # Whether dlopen of programs is supported.
17900 dlopen_self=$enable_dlopen_self
17901
17902 # Whether dlopen of statically linked programs is supported.
17903 dlopen_self_static=$enable_dlopen_self_static
17904
17905 # Compiler flag to prevent dynamic linking.
17906 link_static_flag=$lt_lt_prog_compiler_static_F77
17907
17908 # Compiler flag to turn off builtin functions.
17909 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17910
17911 # Compiler flag to allow reflexive dlopens.
17912 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17913
17914 # Compiler flag to generate shared objects directly from archives.
17915 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17916
17917 # Compiler flag to generate thread-safe objects.
17918 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17919
17920 # Library versioning type.
17921 version_type=$version_type
17922
17923 # Format of library name prefix.
17924 libname_spec=$lt_libname_spec
17925
17926 # List of archive names.  First name is the real one, the rest are links.
17927 # The last name is the one that the linker finds with -lNAME.
17928 library_names_spec=$lt_library_names_spec
17929
17930 # The coded name of the library, if different from the real name.
17931 soname_spec=$lt_soname_spec
17932
17933 # Commands used to build and install an old-style archive.
17934 RANLIB=$lt_RANLIB
17935 old_archive_cmds=$lt_old_archive_cmds_F77
17936 old_postinstall_cmds=$lt_old_postinstall_cmds
17937 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17938
17939 # Create an old-style archive from a shared archive.
17940 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17941
17942 # Create a temporary old-style archive to link instead of a shared archive.
17943 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17944
17945 # Commands used to build and install a shared archive.
17946 archive_cmds=$lt_archive_cmds_F77
17947 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17948 postinstall_cmds=$lt_postinstall_cmds
17949 postuninstall_cmds=$lt_postuninstall_cmds
17950
17951 # Commands used to build a loadable module (assumed same as above if empty)
17952 module_cmds=$lt_module_cmds_F77
17953 module_expsym_cmds=$lt_module_expsym_cmds_F77
17954
17955 # Commands to strip libraries.
17956 old_striplib=$lt_old_striplib
17957 striplib=$lt_striplib
17958
17959 # Dependencies to place before the objects being linked to create a
17960 # shared library.
17961 predep_objects=$lt_predep_objects_F77
17962
17963 # Dependencies to place after the objects being linked to create a
17964 # shared library.
17965 postdep_objects=$lt_postdep_objects_F77
17966
17967 # Dependencies to place before the objects being linked to create a
17968 # shared library.
17969 predeps=$lt_predeps_F77
17970
17971 # Dependencies to place after the objects being linked to create a
17972 # shared library.
17973 postdeps=$lt_postdeps_F77
17974
17975 # The library search path used internally by the compiler when linking
17976 # a shared library.
17977 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17978
17979 # Method to check whether dependent libraries are shared objects.
17980 deplibs_check_method=$lt_deplibs_check_method
17981
17982 # Command to use when deplibs_check_method == file_magic.
17983 file_magic_cmd=$lt_file_magic_cmd
17984
17985 # Flag that allows shared libraries with undefined symbols to be built.
17986 allow_undefined_flag=$lt_allow_undefined_flag_F77
17987
17988 # Flag that forces no undefined symbols.
17989 no_undefined_flag=$lt_no_undefined_flag_F77
17990
17991 # Commands used to finish a libtool library installation in a directory.
17992 finish_cmds=$lt_finish_cmds
17993
17994 # Same as above, but a single script fragment to be evaled but not shown.
17995 finish_eval=$lt_finish_eval
17996
17997 # Take the output of nm and produce a listing of raw symbols and C names.
17998 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17999
18000 # Transform the output of nm in a proper C declaration
18001 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18002
18003 # Transform the output of nm in a C name address pair
18004 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18005
18006 # This is the shared library runtime path variable.
18007 runpath_var=$runpath_var
18008
18009 # This is the shared library path variable.
18010 shlibpath_var=$shlibpath_var
18011
18012 # Is shlibpath searched before the hard-coded library search path?
18013 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18014
18015 # How to hardcode a shared library path into an executable.
18016 hardcode_action=$hardcode_action_F77
18017
18018 # Whether we should hardcode library paths into libraries.
18019 hardcode_into_libs=$hardcode_into_libs
18020
18021 # Flag to hardcode \$libdir into a binary during linking.
18022 # This must work even if \$libdir does not exist.
18023 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18024
18025 # If ld is used when linking, flag to hardcode \$libdir into
18026 # a binary during linking. This must work even if \$libdir does
18027 # not exist.
18028 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18029
18030 # Whether we need a single -rpath flag with a separated argument.
18031 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18032
18033 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18034 # resulting binary.
18035 hardcode_direct=$hardcode_direct_F77
18036
18037 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18038 # resulting binary.
18039 hardcode_minus_L=$hardcode_minus_L_F77
18040
18041 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18042 # the resulting binary.
18043 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18044
18045 # Set to yes if building a shared library automatically hardcodes DIR into the library
18046 # and all subsequent libraries and executables linked against it.
18047 hardcode_automatic=$hardcode_automatic_F77
18048
18049 # Variables whose values should be saved in libtool wrapper scripts and
18050 # restored at relink time.
18051 variables_saved_for_relink="$variables_saved_for_relink"
18052
18053 # Whether libtool must link a program against all its dependency libraries.
18054 link_all_deplibs=$link_all_deplibs_F77
18055
18056 # Compile-time system search path for libraries
18057 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18058
18059 # Run-time system search path for libraries
18060 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18061
18062 # Fix the shell variable \$srcfile for the compiler.
18063 fix_srcfile_path="$fix_srcfile_path_F77"
18064
18065 # Set to yes if exported symbols are required.
18066 always_export_symbols=$always_export_symbols_F77
18067
18068 # The commands to list exported symbols.
18069 export_symbols_cmds=$lt_export_symbols_cmds_F77
18070
18071 # The commands to extract the exported symbol list from a shared archive.
18072 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18073
18074 # Symbols that should not be listed in the preloaded symbols.
18075 exclude_expsyms=$lt_exclude_expsyms_F77
18076
18077 # Symbols that must always be exported.
18078 include_expsyms=$lt_include_expsyms_F77
18079
18080 # ### END LIBTOOL TAG CONFIG: $tagname
18081
18082 __EOF__
18083
18084
18085 else
18086   # If there is no Makefile yet, we rely on a make rule to execute
18087   # `config.status --recheck' to rerun these tests and create the
18088   # libtool script then.
18089   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18090   if test -f "$ltmain_in"; then
18091     test -f Makefile && make "$ltmain"
18092   fi
18093 fi
18094
18095
18096 ac_ext=c
18097 ac_cpp='$CPP $CPPFLAGS'
18098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18101
18102 CC="$lt_save_CC"
18103
18104         else
18105           tagname=""
18106         fi
18107         ;;
18108
18109       GCJ)
18110         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18111
18112
18113 # Source file extension for Java test sources.
18114 ac_ext=java
18115
18116 # Object file extension for compiled Java test sources.
18117 objext=o
18118 objext_GCJ=$objext
18119
18120 # Code to be used in simple compile tests
18121 lt_simple_compile_test_code="class foo {}\n"
18122
18123 # Code to be used in simple link tests
18124 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18125
18126 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18127
18128 # If no C compiler was specified, use CC.
18129 LTCC=${LTCC-"$CC"}
18130
18131 # If no C compiler flags were specified, use CFLAGS.
18132 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18133
18134 # Allow CC to be a program name with arguments.
18135 compiler=$CC
18136
18137
18138 # save warnings/boilerplate of simple test code
18139 ac_outfile=conftest.$ac_objext
18140 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18141 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18142 _lt_compiler_boilerplate=`cat conftest.err`
18143 $rm conftest*
18144
18145 ac_outfile=conftest.$ac_objext
18146 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18147 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18148 _lt_linker_boilerplate=`cat conftest.err`
18149 $rm conftest*
18150
18151
18152 # Allow CC to be a program name with arguments.
18153 lt_save_CC="$CC"
18154 CC=${GCJ-"gcj"}
18155 compiler=$CC
18156 compiler_GCJ=$CC
18157 for cc_temp in $compiler""; do
18158   case $cc_temp in
18159     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18160     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18161     \-*) ;;
18162     *) break;;
18163   esac
18164 done
18165 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18166
18167
18168 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18169 archive_cmds_need_lc_GCJ=no
18170
18171 old_archive_cmds_GCJ=$old_archive_cmds
18172
18173
18174 lt_prog_compiler_no_builtin_flag_GCJ=
18175
18176 if test "$GCC" = yes; then
18177   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18178
18179
18180 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18181 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18182 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18183   echo $ECHO_N "(cached) $ECHO_C" >&6
18184 else
18185   lt_cv_prog_compiler_rtti_exceptions=no
18186   ac_outfile=conftest.$ac_objext
18187    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18188    lt_compiler_flag="-fno-rtti -fno-exceptions"
18189    # Insert the option either (1) after the last *FLAGS variable, or
18190    # (2) before a word containing "conftest.", or (3) at the end.
18191    # Note that $ac_compile itself does not contain backslashes and begins
18192    # with a dollar sign (not a hyphen), so the echo should work correctly.
18193    # The option is referenced via a variable to avoid confusing sed.
18194    lt_compile=`echo "$ac_compile" | $SED \
18195    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18196    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18197    -e 's:$: $lt_compiler_flag:'`
18198    (eval echo "\"\$as_me:18198: $lt_compile\"" >&5)
18199    (eval "$lt_compile" 2>conftest.err)
18200    ac_status=$?
18201    cat conftest.err >&5
18202    echo "$as_me:18202: \$? = $ac_status" >&5
18203    if (exit $ac_status) && test -s "$ac_outfile"; then
18204      # The compiler can only warn and ignore the option if not recognized
18205      # So say no if there are warnings other than the usual output.
18206      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18207      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18208      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18209        lt_cv_prog_compiler_rtti_exceptions=yes
18210      fi
18211    fi
18212    $rm conftest*
18213
18214 fi
18215 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18216 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18217
18218 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18219     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18220 else
18221     :
18222 fi
18223
18224 fi
18225
18226 lt_prog_compiler_wl_GCJ=
18227 lt_prog_compiler_pic_GCJ=
18228 lt_prog_compiler_static_GCJ=
18229
18230 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18231 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18232
18233   if test "$GCC" = yes; then
18234     lt_prog_compiler_wl_GCJ='-Wl,'
18235     lt_prog_compiler_static_GCJ='-static'
18236
18237     case $host_os in
18238       aix*)
18239       # All AIX code is PIC.
18240       if test "$host_cpu" = ia64; then
18241         # AIX 5 now supports IA64 processor
18242         lt_prog_compiler_static_GCJ='-Bstatic'
18243       fi
18244       ;;
18245
18246     amigaos*)
18247       # FIXME: we need at least 68020 code to build shared libraries, but
18248       # adding the `-m68020' flag to GCC prevents building anything better,
18249       # like `-m68040'.
18250       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18251       ;;
18252
18253     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18254       # PIC is the default for these OSes.
18255       ;;
18256
18257     mingw* | pw32* | os2*)
18258       # This hack is so that the source file can tell whether it is being
18259       # built for inclusion in a dll (and should export symbols for example).
18260       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18261       ;;
18262
18263     darwin* | rhapsody*)
18264       # PIC is the default on this platform
18265       # Common symbols not allowed in MH_DYLIB files
18266       lt_prog_compiler_pic_GCJ='-fno-common'
18267       ;;
18268
18269     interix3*)
18270       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18271       # Instead, we relocate shared libraries at runtime.
18272       ;;
18273
18274     msdosdjgpp*)
18275       # Just because we use GCC doesn't mean we suddenly get shared libraries
18276       # on systems that don't support them.
18277       lt_prog_compiler_can_build_shared_GCJ=no
18278       enable_shared=no
18279       ;;
18280
18281     sysv4*MP*)
18282       if test -d /usr/nec; then
18283         lt_prog_compiler_pic_GCJ=-Kconform_pic
18284       fi
18285       ;;
18286
18287     hpux*)
18288       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18289       # not for PA HP-UX.
18290       case $host_cpu in
18291       hppa*64*|ia64*)
18292         # +Z the default
18293         ;;
18294       *)
18295         lt_prog_compiler_pic_GCJ='-fPIC'
18296         ;;
18297       esac
18298       ;;
18299
18300     *)
18301       lt_prog_compiler_pic_GCJ='-fPIC'
18302       ;;
18303     esac
18304   else
18305     # PORTME Check for flag to pass linker flags through the system compiler.
18306     case $host_os in
18307     aix*)
18308       lt_prog_compiler_wl_GCJ='-Wl,'
18309       if test "$host_cpu" = ia64; then
18310         # AIX 5 now supports IA64 processor
18311         lt_prog_compiler_static_GCJ='-Bstatic'
18312       else
18313         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18314       fi
18315       ;;
18316       darwin*)
18317         # PIC is the default on this platform
18318         # Common symbols not allowed in MH_DYLIB files
18319        case $cc_basename in
18320          xlc*)
18321          lt_prog_compiler_pic_GCJ='-qnocommon'
18322          lt_prog_compiler_wl_GCJ='-Wl,'
18323          ;;
18324        esac
18325        ;;
18326
18327     mingw* | pw32* | os2*)
18328       # This hack is so that the source file can tell whether it is being
18329       # built for inclusion in a dll (and should export symbols for example).
18330       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18331       ;;
18332
18333     hpux9* | hpux10* | hpux11*)
18334       lt_prog_compiler_wl_GCJ='-Wl,'
18335       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18336       # not for PA HP-UX.
18337       case $host_cpu in
18338       hppa*64*|ia64*)
18339         # +Z the default
18340         ;;
18341       *)
18342         lt_prog_compiler_pic_GCJ='+Z'
18343         ;;
18344       esac
18345       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18346       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18347       ;;
18348
18349     irix5* | irix6* | nonstopux*)
18350       lt_prog_compiler_wl_GCJ='-Wl,'
18351       # PIC (with -KPIC) is the default.
18352       lt_prog_compiler_static_GCJ='-non_shared'
18353       ;;
18354
18355     newsos6)
18356       lt_prog_compiler_pic_GCJ='-KPIC'
18357       lt_prog_compiler_static_GCJ='-Bstatic'
18358       ;;
18359
18360     linux* | k*bsd*-gnu)
18361       case $cc_basename in
18362       icc* | ecc*)
18363         lt_prog_compiler_wl_GCJ='-Wl,'
18364         lt_prog_compiler_pic_GCJ='-KPIC'
18365         lt_prog_compiler_static_GCJ='-static'
18366         ;;
18367       pgcc* | pgf77* | pgf90* | pgf95*)
18368         # Portland Group compilers (*not* the Pentium gcc compiler,
18369         # which looks to be a dead project)
18370         lt_prog_compiler_wl_GCJ='-Wl,'
18371         lt_prog_compiler_pic_GCJ='-fpic'
18372         lt_prog_compiler_static_GCJ='-Bstatic'
18373         ;;
18374       ccc*)
18375         lt_prog_compiler_wl_GCJ='-Wl,'
18376         # All Alpha code is PIC.
18377         lt_prog_compiler_static_GCJ='-non_shared'
18378         ;;
18379       esac
18380       ;;
18381
18382     osf3* | osf4* | osf5*)
18383       lt_prog_compiler_wl_GCJ='-Wl,'
18384       # All OSF/1 code is PIC.
18385       lt_prog_compiler_static_GCJ='-non_shared'
18386       ;;
18387
18388     solaris*)
18389       lt_prog_compiler_pic_GCJ='-KPIC'
18390       lt_prog_compiler_static_GCJ='-Bstatic'
18391       case $cc_basename in
18392       f77* | f90* | f95*)
18393         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18394       *)
18395         lt_prog_compiler_wl_GCJ='-Wl,';;
18396       esac
18397       ;;
18398
18399     sunos4*)
18400       lt_prog_compiler_wl_GCJ='-Qoption ld '
18401       lt_prog_compiler_pic_GCJ='-PIC'
18402       lt_prog_compiler_static_GCJ='-Bstatic'
18403       ;;
18404
18405     sysv4 | sysv4.2uw2* | sysv4.3*)
18406       lt_prog_compiler_wl_GCJ='-Wl,'
18407       lt_prog_compiler_pic_GCJ='-KPIC'
18408       lt_prog_compiler_static_GCJ='-Bstatic'
18409       ;;
18410
18411     sysv4*MP*)
18412       if test -d /usr/nec ;then
18413         lt_prog_compiler_pic_GCJ='-Kconform_pic'
18414         lt_prog_compiler_static_GCJ='-Bstatic'
18415       fi
18416       ;;
18417
18418     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18419       lt_prog_compiler_wl_GCJ='-Wl,'
18420       lt_prog_compiler_pic_GCJ='-KPIC'
18421       lt_prog_compiler_static_GCJ='-Bstatic'
18422       ;;
18423
18424     unicos*)
18425       lt_prog_compiler_wl_GCJ='-Wl,'
18426       lt_prog_compiler_can_build_shared_GCJ=no
18427       ;;
18428
18429     uts4*)
18430       lt_prog_compiler_pic_GCJ='-pic'
18431       lt_prog_compiler_static_GCJ='-Bstatic'
18432       ;;
18433
18434     *)
18435       lt_prog_compiler_can_build_shared_GCJ=no
18436       ;;
18437     esac
18438   fi
18439
18440 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18441 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18442
18443 #
18444 # Check to make sure the PIC flag actually works.
18445 #
18446 if test -n "$lt_prog_compiler_pic_GCJ"; then
18447
18448 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18449 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18450 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18451   echo $ECHO_N "(cached) $ECHO_C" >&6
18452 else
18453   lt_prog_compiler_pic_works_GCJ=no
18454   ac_outfile=conftest.$ac_objext
18455    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18456    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18457    # Insert the option either (1) after the last *FLAGS variable, or
18458    # (2) before a word containing "conftest.", or (3) at the end.
18459    # Note that $ac_compile itself does not contain backslashes and begins
18460    # with a dollar sign (not a hyphen), so the echo should work correctly.
18461    # The option is referenced via a variable to avoid confusing sed.
18462    lt_compile=`echo "$ac_compile" | $SED \
18463    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18464    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18465    -e 's:$: $lt_compiler_flag:'`
18466    (eval echo "\"\$as_me:18466: $lt_compile\"" >&5)
18467    (eval "$lt_compile" 2>conftest.err)
18468    ac_status=$?
18469    cat conftest.err >&5
18470    echo "$as_me:18470: \$? = $ac_status" >&5
18471    if (exit $ac_status) && test -s "$ac_outfile"; then
18472      # The compiler can only warn and ignore the option if not recognized
18473      # So say no if there are warnings other than the usual output.
18474      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18475      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18476      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18477        lt_prog_compiler_pic_works_GCJ=yes
18478      fi
18479    fi
18480    $rm conftest*
18481
18482 fi
18483 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18484 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18485
18486 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18487     case $lt_prog_compiler_pic_GCJ in
18488      "" | " "*) ;;
18489      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18490      esac
18491 else
18492     lt_prog_compiler_pic_GCJ=
18493      lt_prog_compiler_can_build_shared_GCJ=no
18494 fi
18495
18496 fi
18497 case $host_os in
18498   # For platforms which do not support PIC, -DPIC is meaningless:
18499   *djgpp*)
18500     lt_prog_compiler_pic_GCJ=
18501     ;;
18502   *)
18503     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18504     ;;
18505 esac
18506
18507 #
18508 # Check to make sure the static flag actually works.
18509 #
18510 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18511 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18512 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18513 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18514   echo $ECHO_N "(cached) $ECHO_C" >&6
18515 else
18516   lt_prog_compiler_static_works_GCJ=no
18517    save_LDFLAGS="$LDFLAGS"
18518    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18519    printf "$lt_simple_link_test_code" > conftest.$ac_ext
18520    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18521      # The linker can only warn and ignore the option if not recognized
18522      # So say no if there are warnings
18523      if test -s conftest.err; then
18524        # Append any errors to the config.log.
18525        cat conftest.err 1>&5
18526        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18527        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18528        if diff conftest.exp conftest.er2 >/dev/null; then
18529          lt_prog_compiler_static_works_GCJ=yes
18530        fi
18531      else
18532        lt_prog_compiler_static_works_GCJ=yes
18533      fi
18534    fi
18535    $rm conftest*
18536    LDFLAGS="$save_LDFLAGS"
18537
18538 fi
18539 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18540 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18541
18542 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18543     :
18544 else
18545     lt_prog_compiler_static_GCJ=
18546 fi
18547
18548
18549 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18550 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18551 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18552   echo $ECHO_N "(cached) $ECHO_C" >&6
18553 else
18554   lt_cv_prog_compiler_c_o_GCJ=no
18555    $rm -r conftest 2>/dev/null
18556    mkdir conftest
18557    cd conftest
18558    mkdir out
18559    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18560
18561    lt_compiler_flag="-o out/conftest2.$ac_objext"
18562    # Insert the option either (1) after the last *FLAGS variable, or
18563    # (2) before a word containing "conftest.", or (3) at the end.
18564    # Note that $ac_compile itself does not contain backslashes and begins
18565    # with a dollar sign (not a hyphen), so the echo should work correctly.
18566    lt_compile=`echo "$ac_compile" | $SED \
18567    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18568    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18569    -e 's:$: $lt_compiler_flag:'`
18570    (eval echo "\"\$as_me:18570: $lt_compile\"" >&5)
18571    (eval "$lt_compile" 2>out/conftest.err)
18572    ac_status=$?
18573    cat out/conftest.err >&5
18574    echo "$as_me:18574: \$? = $ac_status" >&5
18575    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18576    then
18577      # The compiler can only warn and ignore the option if not recognized
18578      # So say no if there are warnings
18579      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18580      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18581      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18582        lt_cv_prog_compiler_c_o_GCJ=yes
18583      fi
18584    fi
18585    chmod u+w . 2>&5
18586    $rm conftest*
18587    # SGI C++ compiler will create directory out/ii_files/ for
18588    # template instantiation
18589    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18590    $rm out/* && rmdir out
18591    cd ..
18592    rmdir conftest
18593    $rm conftest*
18594
18595 fi
18596 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18597 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18598
18599
18600 hard_links="nottested"
18601 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18602   # do not overwrite the value of need_locks provided by the user
18603   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18604 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18605   hard_links=yes
18606   $rm conftest*
18607   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18608   touch conftest.a
18609   ln conftest.a conftest.b 2>&5 || hard_links=no
18610   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18611   { echo "$as_me:$LINENO: result: $hard_links" >&5
18612 echo "${ECHO_T}$hard_links" >&6; }
18613   if test "$hard_links" = no; then
18614     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18615 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18616     need_locks=warn
18617   fi
18618 else
18619   need_locks=no
18620 fi
18621
18622 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18623 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18624
18625   runpath_var=
18626   allow_undefined_flag_GCJ=
18627   enable_shared_with_static_runtimes_GCJ=no
18628   archive_cmds_GCJ=
18629   archive_expsym_cmds_GCJ=
18630   old_archive_From_new_cmds_GCJ=
18631   old_archive_from_expsyms_cmds_GCJ=
18632   export_dynamic_flag_spec_GCJ=
18633   whole_archive_flag_spec_GCJ=
18634   thread_safe_flag_spec_GCJ=
18635   hardcode_libdir_flag_spec_GCJ=
18636   hardcode_libdir_flag_spec_ld_GCJ=
18637   hardcode_libdir_separator_GCJ=
18638   hardcode_direct_GCJ=no
18639   hardcode_minus_L_GCJ=no
18640   hardcode_shlibpath_var_GCJ=unsupported
18641   link_all_deplibs_GCJ=unknown
18642   hardcode_automatic_GCJ=no
18643   module_cmds_GCJ=
18644   module_expsym_cmds_GCJ=
18645   always_export_symbols_GCJ=no
18646   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18647   # include_expsyms should be a list of space-separated symbols to be *always*
18648   # included in the symbol list
18649   include_expsyms_GCJ=
18650   # exclude_expsyms can be an extended regexp of symbols to exclude
18651   # it will be wrapped by ` (' and `)$', so one must not match beginning or
18652   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18653   # as well as any symbol that contains `d'.
18654   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18655   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18656   # platforms (ab)use it in PIC code, but their linkers get confused if
18657   # the symbol is explicitly referenced.  Since portable code cannot
18658   # rely on this symbol name, it's probably fine to never include it in
18659   # preloaded symbol tables.
18660   extract_expsyms_cmds=
18661   # Just being paranoid about ensuring that cc_basename is set.
18662   for cc_temp in $compiler""; do
18663   case $cc_temp in
18664     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18665     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18666     \-*) ;;
18667     *) break;;
18668   esac
18669 done
18670 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18671
18672   case $host_os in
18673   cygwin* | mingw* | pw32*)
18674     # FIXME: the MSVC++ port hasn't been tested in a loooong time
18675     # When not using gcc, we currently assume that we are using
18676     # Microsoft Visual C++.
18677     if test "$GCC" != yes; then
18678       with_gnu_ld=no
18679     fi
18680     ;;
18681   interix*)
18682     # we just hope/assume this is gcc and not c89 (= MSVC++)
18683     with_gnu_ld=yes
18684     ;;
18685   openbsd*)
18686     with_gnu_ld=no
18687     ;;
18688   esac
18689
18690   ld_shlibs_GCJ=yes
18691   if test "$with_gnu_ld" = yes; then
18692     # If archive_cmds runs LD, not CC, wlarc should be empty
18693     wlarc='${wl}'
18694
18695     # Set some defaults for GNU ld with shared library support. These
18696     # are reset later if shared libraries are not supported. Putting them
18697     # here allows them to be overridden if necessary.
18698     runpath_var=LD_RUN_PATH
18699     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18700     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18701     # ancient GNU ld didn't support --whole-archive et. al.
18702     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18703         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18704       else
18705         whole_archive_flag_spec_GCJ=
18706     fi
18707     supports_anon_versioning=no
18708     case `$LD -v 2>/dev/null` in
18709       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18710       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18711       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18712       *\ 2.11.*) ;; # other 2.11 versions
18713       *) supports_anon_versioning=yes ;;
18714     esac
18715
18716     # See if GNU ld supports shared libraries.
18717     case $host_os in
18718     aix3* | aix4* | aix5*)
18719       # On AIX/PPC, the GNU linker is very broken
18720       if test "$host_cpu" != ia64; then
18721         ld_shlibs_GCJ=no
18722         cat <<EOF 1>&2
18723
18724 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18725 *** to be unable to reliably create shared libraries on AIX.
18726 *** Therefore, libtool is disabling shared libraries support.  If you
18727 *** really care for shared libraries, you may want to modify your PATH
18728 *** so that a non-GNU linker is found, and then restart.
18729
18730 EOF
18731       fi
18732       ;;
18733
18734     amigaos*)
18735       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)'
18736       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18737       hardcode_minus_L_GCJ=yes
18738
18739       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18740       # that the semantics of dynamic libraries on AmigaOS, at least up
18741       # to version 4, is to share data among multiple programs linked
18742       # with the same dynamic library.  Since this doesn't match the
18743       # behavior of shared libraries on other platforms, we can't use
18744       # them.
18745       ld_shlibs_GCJ=no
18746       ;;
18747
18748     beos*)
18749       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18750         allow_undefined_flag_GCJ=unsupported
18751         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18752         # support --undefined.  This deserves some investigation.  FIXME
18753         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18754       else
18755         ld_shlibs_GCJ=no
18756       fi
18757       ;;
18758
18759     cygwin* | mingw* | pw32*)
18760       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18761       # as there is no search path for DLLs.
18762       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18763       allow_undefined_flag_GCJ=unsupported
18764       always_export_symbols_GCJ=no
18765       enable_shared_with_static_runtimes_GCJ=yes
18766       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18767
18768       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18769         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18770         # If the export-symbols file already is a .def file (1st line
18771         # is EXPORTS), use it as is; otherwise, prepend...
18772         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18773           cp $export_symbols $output_objdir/$soname.def;
18774         else
18775           echo EXPORTS > $output_objdir/$soname.def;
18776           cat $export_symbols >> $output_objdir/$soname.def;
18777         fi~
18778         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18779       else
18780         ld_shlibs_GCJ=no
18781       fi
18782       ;;
18783
18784     interix3*)
18785       hardcode_direct_GCJ=no
18786       hardcode_shlibpath_var_GCJ=no
18787       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18788       export_dynamic_flag_spec_GCJ='${wl}-E'
18789       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18790       # Instead, shared libraries are loaded at an image base (0x10000000 by
18791       # default) and relocated if they conflict, which is a slow very memory
18792       # consuming and fragmenting process.  To avoid this, we pick a random,
18793       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18794       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18795       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'
18796       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'
18797       ;;
18798
18799     linux* | k*bsd*-gnu)
18800       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18801         tmp_addflag=
18802         case $cc_basename,$host_cpu in
18803         pgcc*)                          # Portland Group C compiler
18804           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'
18805           tmp_addflag=' $pic_flag'
18806           ;;
18807         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
18808           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'
18809           tmp_addflag=' $pic_flag -Mnomain' ;;
18810         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
18811           tmp_addflag=' -i_dynamic' ;;
18812         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18813           tmp_addflag=' -i_dynamic -nofor_main' ;;
18814         ifc* | ifort*)                  # Intel Fortran compiler
18815           tmp_addflag=' -nofor_main' ;;
18816         esac
18817         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18818
18819         if test $supports_anon_versioning = yes; then
18820           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18821   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18822   $echo "local: *; };" >> $output_objdir/$libname.ver~
18823           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18824         fi
18825         link_all_deplibs_GCJ=no
18826       else
18827         ld_shlibs_GCJ=no
18828       fi
18829       ;;
18830
18831     netbsd* | netbsdelf*-gnu)
18832       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18833         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18834         wlarc=
18835       else
18836         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18837         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18838       fi
18839       ;;
18840
18841     solaris*)
18842       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18843         ld_shlibs_GCJ=no
18844         cat <<EOF 1>&2
18845
18846 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18847 *** create shared libraries on Solaris systems.  Therefore, libtool
18848 *** is disabling shared libraries support.  We urge you to upgrade GNU
18849 *** binutils to release 2.9.1 or newer.  Another option is to modify
18850 *** your PATH or compiler configuration so that the native linker is
18851 *** used, and then restart.
18852
18853 EOF
18854       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18855         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18856         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18857       else
18858         ld_shlibs_GCJ=no
18859       fi
18860       ;;
18861
18862     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18863       case `$LD -v 2>&1` in
18864         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18865         ld_shlibs_GCJ=no
18866         cat <<_LT_EOF 1>&2
18867
18868 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18869 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18870 *** is disabling shared libraries support.  We urge you to upgrade GNU
18871 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18872 *** your PATH or compiler configuration so that the native linker is
18873 *** used, and then restart.
18874
18875 _LT_EOF
18876         ;;
18877         *)
18878           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18879             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18880             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18881             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18882           else
18883             ld_shlibs_GCJ=no
18884           fi
18885         ;;
18886       esac
18887       ;;
18888
18889     sunos4*)
18890       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18891       wlarc=
18892       hardcode_direct_GCJ=yes
18893       hardcode_shlibpath_var_GCJ=no
18894       ;;
18895
18896     *)
18897       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18898         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18899         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18900       else
18901         ld_shlibs_GCJ=no
18902       fi
18903       ;;
18904     esac
18905
18906     if test "$ld_shlibs_GCJ" = no; then
18907       runpath_var=
18908       hardcode_libdir_flag_spec_GCJ=
18909       export_dynamic_flag_spec_GCJ=
18910       whole_archive_flag_spec_GCJ=
18911     fi
18912   else
18913     # PORTME fill in a description of your system's linker (not GNU ld)
18914     case $host_os in
18915     aix3*)
18916       allow_undefined_flag_GCJ=unsupported
18917       always_export_symbols_GCJ=yes
18918       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'
18919       # Note: this linker hardcodes the directories in LIBPATH if there
18920       # are no directories specified by -L.
18921       hardcode_minus_L_GCJ=yes
18922       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18923         # Neither direct hardcoding nor static linking is supported with a
18924         # broken collect2.
18925         hardcode_direct_GCJ=unsupported
18926       fi
18927       ;;
18928
18929     aix4* | aix5*)
18930       if test "$host_cpu" = ia64; then
18931         # On IA64, the linker does run time linking by default, so we don't
18932         # have to do anything special.
18933         aix_use_runtimelinking=no
18934         exp_sym_flag='-Bexport'
18935         no_entry_flag=""
18936       else
18937         # If we're using GNU nm, then we don't want the "-C" option.
18938         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18939         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18940           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'
18941         else
18942           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'
18943         fi
18944         aix_use_runtimelinking=no
18945
18946         # Test if we are trying to use run time linking or normal
18947         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18948         # need to do runtime linking.
18949         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18950           for ld_flag in $LDFLAGS; do
18951           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18952             aix_use_runtimelinking=yes
18953             break
18954           fi
18955           done
18956           ;;
18957         esac
18958
18959         exp_sym_flag='-bexport'
18960         no_entry_flag='-bnoentry'
18961       fi
18962
18963       # When large executables or shared objects are built, AIX ld can
18964       # have problems creating the table of contents.  If linking a library
18965       # or program results in "error TOC overflow" add -mminimal-toc to
18966       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18967       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18968
18969       archive_cmds_GCJ=''
18970       hardcode_direct_GCJ=yes
18971       hardcode_libdir_separator_GCJ=':'
18972       link_all_deplibs_GCJ=yes
18973
18974       if test "$GCC" = yes; then
18975         case $host_os in aix4.[012]|aix4.[012].*)
18976         # We only want to do this on AIX 4.2 and lower, the check
18977         # below for broken collect2 doesn't work under 4.3+
18978           collect2name=`${CC} -print-prog-name=collect2`
18979           if test -f "$collect2name" && \
18980            strings "$collect2name" | grep resolve_lib_name >/dev/null
18981           then
18982           # We have reworked collect2
18983           hardcode_direct_GCJ=yes
18984           else
18985           # We have old collect2
18986           hardcode_direct_GCJ=unsupported
18987           # It fails to find uninstalled libraries when the uninstalled
18988           # path is not listed in the libpath.  Setting hardcode_minus_L
18989           # to unsupported forces relinking
18990           hardcode_minus_L_GCJ=yes
18991           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18992           hardcode_libdir_separator_GCJ=
18993           fi
18994           ;;
18995         esac
18996         shared_flag='-shared'
18997         if test "$aix_use_runtimelinking" = yes; then
18998           shared_flag="$shared_flag "'${wl}-G'
18999         fi
19000       else
19001         # not using gcc
19002         if test "$host_cpu" = ia64; then
19003         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19004         # chokes on -Wl,-G. The following line is correct:
19005           shared_flag='-G'
19006         else
19007           if test "$aix_use_runtimelinking" = yes; then
19008             shared_flag='${wl}-G'
19009           else
19010             shared_flag='${wl}-bM:SRE'
19011           fi
19012         fi
19013       fi
19014
19015       # It seems that -bexpall does not export symbols beginning with
19016       # underscore (_), so it is better to generate a list of symbols to export.
19017       always_export_symbols_GCJ=yes
19018       if test "$aix_use_runtimelinking" = yes; then
19019         # Warning - without using the other runtime loading flags (-brtl),
19020         # -berok will link without error, but may produce a broken library.
19021         allow_undefined_flag_GCJ='-berok'
19022        # Determine the default libpath from the value encoded in an empty executable.
19023        cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h.  */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h.  */
19029
19030 int
19031 main ()
19032 {
19033
19034   ;
19035   return 0;
19036 }
19037 _ACEOF
19038 rm -f conftest.$ac_objext conftest$ac_exeext
19039 if { (ac_try="$ac_link"
19040 case "(($ac_try" in
19041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042   *) ac_try_echo=$ac_try;;
19043 esac
19044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045   (eval "$ac_link") 2>conftest.er1
19046   ac_status=$?
19047   grep -v '^ *+' conftest.er1 >conftest.err
19048   rm -f conftest.er1
19049   cat conftest.err >&5
19050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051   (exit $ac_status); } &&
19052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19053   { (case "(($ac_try" in
19054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055   *) ac_try_echo=$ac_try;;
19056 esac
19057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058   (eval "$ac_try") 2>&5
19059   ac_status=$?
19060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061   (exit $ac_status); }; } &&
19062          { ac_try='test -s conftest$ac_exeext'
19063   { (case "(($ac_try" in
19064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065   *) ac_try_echo=$ac_try;;
19066 esac
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068   (eval "$ac_try") 2>&5
19069   ac_status=$?
19070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071   (exit $ac_status); }; }; then
19072
19073 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19074 }'`
19075 # Check for a 64-bit object if we didn't find anything.
19076 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19077 }'`; fi
19078 else
19079   echo "$as_me: failed program was:" >&5
19080 sed 's/^/| /' conftest.$ac_ext >&5
19081
19082
19083 fi
19084
19085 rm -f core conftest.err conftest.$ac_objext \
19086       conftest$ac_exeext conftest.$ac_ext
19087 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19088
19089        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19090         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"
19091        else
19092         if test "$host_cpu" = ia64; then
19093           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19094           allow_undefined_flag_GCJ="-z nodefs"
19095           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"
19096         else
19097          # Determine the default libpath from the value encoded in an empty executable.
19098          cat >conftest.$ac_ext <<_ACEOF
19099 /* confdefs.h.  */
19100 _ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h.  */
19104
19105 int
19106 main ()
19107 {
19108
19109   ;
19110   return 0;
19111 }
19112 _ACEOF
19113 rm -f conftest.$ac_objext conftest$ac_exeext
19114 if { (ac_try="$ac_link"
19115 case "(($ac_try" in
19116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117   *) ac_try_echo=$ac_try;;
19118 esac
19119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19120   (eval "$ac_link") 2>conftest.er1
19121   ac_status=$?
19122   grep -v '^ *+' conftest.er1 >conftest.err
19123   rm -f conftest.er1
19124   cat conftest.err >&5
19125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126   (exit $ac_status); } &&
19127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19128   { (case "(($ac_try" in
19129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130   *) ac_try_echo=$ac_try;;
19131 esac
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133   (eval "$ac_try") 2>&5
19134   ac_status=$?
19135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136   (exit $ac_status); }; } &&
19137          { ac_try='test -s conftest$ac_exeext'
19138   { (case "(($ac_try" in
19139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140   *) ac_try_echo=$ac_try;;
19141 esac
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143   (eval "$ac_try") 2>&5
19144   ac_status=$?
19145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146   (exit $ac_status); }; }; then
19147
19148 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19149 }'`
19150 # Check for a 64-bit object if we didn't find anything.
19151 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19152 }'`; fi
19153 else
19154   echo "$as_me: failed program was:" >&5
19155 sed 's/^/| /' conftest.$ac_ext >&5
19156
19157
19158 fi
19159
19160 rm -f core conftest.err conftest.$ac_objext \
19161       conftest$ac_exeext conftest.$ac_ext
19162 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19163
19164          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19165           # Warning - without using the other run time loading flags,
19166           # -berok will link without error, but may produce a broken library.
19167           no_undefined_flag_GCJ=' ${wl}-bernotok'
19168           allow_undefined_flag_GCJ=' ${wl}-berok'
19169           # Exported symbols can be pulled into shared objects from archives
19170           whole_archive_flag_spec_GCJ='$convenience'
19171           archive_cmds_need_lc_GCJ=yes
19172           # This is similar to how AIX traditionally builds its shared libraries.
19173           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'
19174         fi
19175       fi
19176       ;;
19177
19178     amigaos*)
19179       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)'
19180       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19181       hardcode_minus_L_GCJ=yes
19182       # see comment about different semantics on the GNU ld section
19183       ld_shlibs_GCJ=no
19184       ;;
19185
19186     bsdi[45]*)
19187       export_dynamic_flag_spec_GCJ=-rdynamic
19188       ;;
19189
19190     cygwin* | mingw* | pw32*)
19191       # When not using gcc, we currently assume that we are using
19192       # Microsoft Visual C++.
19193       # hardcode_libdir_flag_spec is actually meaningless, as there is
19194       # no search path for DLLs.
19195       hardcode_libdir_flag_spec_GCJ=' '
19196       allow_undefined_flag_GCJ=unsupported
19197       # Tell ltmain to make .lib files, not .a files.
19198       libext=lib
19199       # Tell ltmain to make .dll files, not .so files.
19200       shrext_cmds=".dll"
19201       # FIXME: Setting linknames here is a bad hack.
19202       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19203       # The linker will automatically build a .lib file if we build a DLL.
19204       old_archive_From_new_cmds_GCJ='true'
19205       # FIXME: Should let the user specify the lib program.
19206       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19207       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19208       enable_shared_with_static_runtimes_GCJ=yes
19209       ;;
19210
19211     darwin* | rhapsody*)
19212       case $host_os in
19213         rhapsody* | darwin1.[012])
19214          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19215          ;;
19216        *) # Darwin 1.3 on
19217          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19218            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19219          else
19220            case ${MACOSX_DEPLOYMENT_TARGET} in
19221              10.[012])
19222                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19223                ;;
19224              10.*)
19225                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19226                ;;
19227            esac
19228          fi
19229          ;;
19230       esac
19231       archive_cmds_need_lc_GCJ=no
19232       hardcode_direct_GCJ=no
19233       hardcode_automatic_GCJ=yes
19234       hardcode_shlibpath_var_GCJ=unsupported
19235       whole_archive_flag_spec_GCJ=''
19236       link_all_deplibs_GCJ=yes
19237     if test "$GCC" = yes ; then
19238         output_verbose_link_cmd='echo'
19239         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19240       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19241       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19242       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19243       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}'
19244     else
19245       case $cc_basename in
19246         xlc*)
19247          output_verbose_link_cmd='echo'
19248          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19249          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19250           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19251          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19252           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}'
19253           ;;
19254        *)
19255          ld_shlibs_GCJ=no
19256           ;;
19257       esac
19258     fi
19259       ;;
19260
19261     dgux*)
19262       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19263       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19264       hardcode_shlibpath_var_GCJ=no
19265       ;;
19266
19267     freebsd1*)
19268       ld_shlibs_GCJ=no
19269       ;;
19270
19271     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19272     # support.  Future versions do this automatically, but an explicit c++rt0.o
19273     # does not break anything, and helps significantly (at the cost of a little
19274     # extra space).
19275     freebsd2.2*)
19276       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19277       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19278       hardcode_direct_GCJ=yes
19279       hardcode_shlibpath_var_GCJ=no
19280       ;;
19281
19282     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19283     freebsd2*)
19284       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19285       hardcode_direct_GCJ=yes
19286       hardcode_minus_L_GCJ=yes
19287       hardcode_shlibpath_var_GCJ=no
19288       ;;
19289
19290     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19291     freebsd* | dragonfly*)
19292       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19293       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19294       hardcode_direct_GCJ=yes
19295       hardcode_shlibpath_var_GCJ=no
19296       ;;
19297
19298     hpux9*)
19299       if test "$GCC" = yes; then
19300         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'
19301       else
19302         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'
19303       fi
19304       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19305       hardcode_libdir_separator_GCJ=:
19306       hardcode_direct_GCJ=yes
19307
19308       # hardcode_minus_L: Not really in the search PATH,
19309       # but as the default location of the library.
19310       hardcode_minus_L_GCJ=yes
19311       export_dynamic_flag_spec_GCJ='${wl}-E'
19312       ;;
19313
19314     hpux10*)
19315       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19316         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19317       else
19318         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19319       fi
19320       if test "$with_gnu_ld" = no; then
19321         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19322         hardcode_libdir_separator_GCJ=:
19323
19324         hardcode_direct_GCJ=yes
19325         export_dynamic_flag_spec_GCJ='${wl}-E'
19326
19327         # hardcode_minus_L: Not really in the search PATH,
19328         # but as the default location of the library.
19329         hardcode_minus_L_GCJ=yes
19330       fi
19331       ;;
19332
19333     hpux11*)
19334       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19335         case $host_cpu in
19336         hppa*64*)
19337           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19338           ;;
19339         ia64*)
19340           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19341           ;;
19342         *)
19343           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19344           ;;
19345         esac
19346       else
19347         case $host_cpu in
19348         hppa*64*)
19349           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19350           ;;
19351         ia64*)
19352           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19353           ;;
19354         *)
19355           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19356           ;;
19357         esac
19358       fi
19359       if test "$with_gnu_ld" = no; then
19360         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19361         hardcode_libdir_separator_GCJ=:
19362
19363         case $host_cpu in
19364         hppa*64*|ia64*)
19365           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19366           hardcode_direct_GCJ=no
19367           hardcode_shlibpath_var_GCJ=no
19368           ;;
19369         *)
19370           hardcode_direct_GCJ=yes
19371           export_dynamic_flag_spec_GCJ='${wl}-E'
19372
19373           # hardcode_minus_L: Not really in the search PATH,
19374           # but as the default location of the library.
19375           hardcode_minus_L_GCJ=yes
19376           ;;
19377         esac
19378       fi
19379       ;;
19380
19381     irix5* | irix6* | nonstopux*)
19382       if test "$GCC" = yes; then
19383         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'
19384       else
19385         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'
19386         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19387       fi
19388       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19389       hardcode_libdir_separator_GCJ=:
19390       link_all_deplibs_GCJ=yes
19391       ;;
19392
19393     netbsd* | netbsdelf*-gnu)
19394       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19395         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19396       else
19397         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19398       fi
19399       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19400       hardcode_direct_GCJ=yes
19401       hardcode_shlibpath_var_GCJ=no
19402       ;;
19403
19404     newsos6)
19405       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19406       hardcode_direct_GCJ=yes
19407       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19408       hardcode_libdir_separator_GCJ=:
19409       hardcode_shlibpath_var_GCJ=no
19410       ;;
19411
19412     openbsd*)
19413       hardcode_direct_GCJ=yes
19414       hardcode_shlibpath_var_GCJ=no
19415       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19416         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19417         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19418         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19419         export_dynamic_flag_spec_GCJ='${wl}-E'
19420       else
19421        case $host_os in
19422          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19423            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19424            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19425            ;;
19426          *)
19427            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19428            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19429            ;;
19430        esac
19431       fi
19432       ;;
19433
19434     os2*)
19435       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19436       hardcode_minus_L_GCJ=yes
19437       allow_undefined_flag_GCJ=unsupported
19438       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'
19439       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19440       ;;
19441
19442     osf3*)
19443       if test "$GCC" = yes; then
19444         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19445         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'
19446       else
19447         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19448         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'
19449       fi
19450       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19451       hardcode_libdir_separator_GCJ=:
19452       ;;
19453
19454     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19455       if test "$GCC" = yes; then
19456         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19457         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'
19458         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19459       else
19460         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19461         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'
19462         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~
19463         $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'
19464
19465         # Both c and cxx compiler support -rpath directly
19466         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19467       fi
19468       hardcode_libdir_separator_GCJ=:
19469       ;;
19470
19471     solaris*)
19472       no_undefined_flag_GCJ=' -z text'
19473       if test "$GCC" = yes; then
19474         wlarc='${wl}'
19475         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19476         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19477           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19478       else
19479         wlarc=''
19480         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19481         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19482         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19483       fi
19484       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19485       hardcode_shlibpath_var_GCJ=no
19486       case $host_os in
19487       solaris2.[0-5] | solaris2.[0-5].*) ;;
19488       *)
19489         # The compiler driver will combine linker options so we
19490         # cannot just pass the convience library names through
19491         # without $wl, iff we do not link with $LD.
19492         # Luckily, gcc supports the same syntax we need for Sun Studio.
19493         # Supported since Solaris 2.6 (maybe 2.5.1?)
19494         case $wlarc in
19495         '')
19496           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19497         *)
19498           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19499         esac ;;
19500       esac
19501       link_all_deplibs_GCJ=yes
19502       ;;
19503
19504     sunos4*)
19505       if test "x$host_vendor" = xsequent; then
19506         # Use $CC to link under sequent, because it throws in some extra .o
19507         # files that make .init and .fini sections work.
19508         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19509       else
19510         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19511       fi
19512       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19513       hardcode_direct_GCJ=yes
19514       hardcode_minus_L_GCJ=yes
19515       hardcode_shlibpath_var_GCJ=no
19516       ;;
19517
19518     sysv4)
19519       case $host_vendor in
19520         sni)
19521           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19522           hardcode_direct_GCJ=yes # is this really true???
19523         ;;
19524         siemens)
19525           ## LD is ld it makes a PLAMLIB
19526           ## CC just makes a GrossModule.
19527           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19528           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19529           hardcode_direct_GCJ=no
19530         ;;
19531         motorola)
19532           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19533           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19534         ;;
19535       esac
19536       runpath_var='LD_RUN_PATH'
19537       hardcode_shlibpath_var_GCJ=no
19538       ;;
19539
19540     sysv4.3*)
19541       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19542       hardcode_shlibpath_var_GCJ=no
19543       export_dynamic_flag_spec_GCJ='-Bexport'
19544       ;;
19545
19546     sysv4*MP*)
19547       if test -d /usr/nec; then
19548         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19549         hardcode_shlibpath_var_GCJ=no
19550         runpath_var=LD_RUN_PATH
19551         hardcode_runpath_var=yes
19552         ld_shlibs_GCJ=yes
19553       fi
19554       ;;
19555
19556     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19557       no_undefined_flag_GCJ='${wl}-z,text'
19558       archive_cmds_need_lc_GCJ=no
19559       hardcode_shlibpath_var_GCJ=no
19560       runpath_var='LD_RUN_PATH'
19561
19562       if test "$GCC" = yes; then
19563         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19564         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19565       else
19566         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19567         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19568       fi
19569       ;;
19570
19571     sysv5* | sco3.2v5* | sco5v6*)
19572       # Note: We can NOT use -z defs as we might desire, because we do not
19573       # link with -lc, and that would cause any symbols used from libc to
19574       # always be unresolved, which means just about no library would
19575       # ever link correctly.  If we're not using GNU ld we use -z text
19576       # though, which does catch some bad symbols but isn't as heavy-handed
19577       # as -z defs.
19578       no_undefined_flag_GCJ='${wl}-z,text'
19579       allow_undefined_flag_GCJ='${wl}-z,nodefs'
19580       archive_cmds_need_lc_GCJ=no
19581       hardcode_shlibpath_var_GCJ=no
19582       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19583       hardcode_libdir_separator_GCJ=':'
19584       link_all_deplibs_GCJ=yes
19585       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19586       runpath_var='LD_RUN_PATH'
19587
19588       if test "$GCC" = yes; then
19589         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19590         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19591       else
19592         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19593         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19594       fi
19595       ;;
19596
19597     uts4*)
19598       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19599       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19600       hardcode_shlibpath_var_GCJ=no
19601       ;;
19602
19603     *)
19604       ld_shlibs_GCJ=no
19605       ;;
19606     esac
19607   fi
19608
19609 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19610 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19611 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19612
19613 #
19614 # Do we need to explicitly link libc?
19615 #
19616 case "x$archive_cmds_need_lc_GCJ" in
19617 x|xyes)
19618   # Assume -lc should be added
19619   archive_cmds_need_lc_GCJ=yes
19620
19621   if test "$enable_shared" = yes && test "$GCC" = yes; then
19622     case $archive_cmds_GCJ in
19623     *'~'*)
19624       # FIXME: we may have to deal with multi-command sequences.
19625       ;;
19626     '$CC '*)
19627       # Test whether the compiler implicitly links with -lc since on some
19628       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19629       # to ld, don't add -lc before -lgcc.
19630       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19631 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19632       $rm conftest*
19633       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19634
19635       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19636   (eval $ac_compile) 2>&5
19637   ac_status=$?
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); } 2>conftest.err; then
19640         soname=conftest
19641         lib=conftest
19642         libobjs=conftest.$ac_objext
19643         deplibs=
19644         wl=$lt_prog_compiler_wl_GCJ
19645         pic_flag=$lt_prog_compiler_pic_GCJ
19646         compiler_flags=-v
19647         linker_flags=-v
19648         verstring=
19649         output_objdir=.
19650         libname=conftest
19651         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19652         allow_undefined_flag_GCJ=
19653         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19654   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19655   ac_status=$?
19656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657   (exit $ac_status); }
19658         then
19659           archive_cmds_need_lc_GCJ=no
19660         else
19661           archive_cmds_need_lc_GCJ=yes
19662         fi
19663         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19664       else
19665         cat conftest.err 1>&5
19666       fi
19667       $rm conftest*
19668       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19669 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19670       ;;
19671     esac
19672   fi
19673   ;;
19674 esac
19675
19676 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19677 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19678 library_names_spec=
19679 libname_spec='lib$name'
19680 soname_spec=
19681 shrext_cmds=".so"
19682 postinstall_cmds=
19683 postuninstall_cmds=
19684 finish_cmds=
19685 finish_eval=
19686 shlibpath_var=
19687 shlibpath_overrides_runpath=unknown
19688 version_type=none
19689 dynamic_linker="$host_os ld.so"
19690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19691 if test "$GCC" = yes; then
19692   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19693   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19694     # if the path contains ";" then we assume it to be the separator
19695     # otherwise default to the standard path separator (i.e. ":") - it is
19696     # assumed that no part of a normal pathname contains ";" but that should
19697     # okay in the real world where ";" in dirpaths is itself problematic.
19698     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19699   else
19700     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19701   fi
19702 else
19703   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19704 fi
19705 need_lib_prefix=unknown
19706 hardcode_into_libs=no
19707
19708 # when you set need_version to no, make sure it does not cause -set_version
19709 # flags to be left without arguments
19710 need_version=unknown
19711
19712 case $host_os in
19713 aix3*)
19714   version_type=linux
19715   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19716   shlibpath_var=LIBPATH
19717
19718   # AIX 3 has no versioning support, so we append a major version to the name.
19719   soname_spec='${libname}${release}${shared_ext}$major'
19720   ;;
19721
19722 aix4* | aix5*)
19723   version_type=linux
19724   need_lib_prefix=no
19725   need_version=no
19726   hardcode_into_libs=yes
19727   if test "$host_cpu" = ia64; then
19728     # AIX 5 supports IA64
19729     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19730     shlibpath_var=LD_LIBRARY_PATH
19731   else
19732     # With GCC up to 2.95.x, collect2 would create an import file
19733     # for dependence libraries.  The import file would start with
19734     # the line `#! .'.  This would cause the generated library to
19735     # depend on `.', always an invalid library.  This was fixed in
19736     # development snapshots of GCC prior to 3.0.
19737     case $host_os in
19738       aix4 | aix4.[01] | aix4.[01].*)
19739       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19740            echo ' yes '
19741            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19742         :
19743       else
19744         can_build_shared=no
19745       fi
19746       ;;
19747     esac
19748     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19749     # soname into executable. Probably we can add versioning support to
19750     # collect2, so additional links can be useful in future.
19751     if test "$aix_use_runtimelinking" = yes; then
19752       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19753       # instead of lib<name>.a to let people know that these are not
19754       # typical AIX shared libraries.
19755       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19756     else
19757       # We preserve .a as extension for shared libraries through AIX4.2
19758       # and later when we are not doing run time linking.
19759       library_names_spec='${libname}${release}.a $libname.a'
19760       soname_spec='${libname}${release}${shared_ext}$major'
19761     fi
19762     shlibpath_var=LIBPATH
19763   fi
19764   ;;
19765
19766 amigaos*)
19767   library_names_spec='$libname.ixlibrary $libname.a'
19768   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19769   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'
19770   ;;
19771
19772 beos*)
19773   library_names_spec='${libname}${shared_ext}'
19774   dynamic_linker="$host_os ld.so"
19775   shlibpath_var=LIBRARY_PATH
19776   ;;
19777
19778 bsdi[45]*)
19779   version_type=linux
19780   need_version=no
19781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19782   soname_spec='${libname}${release}${shared_ext}$major'
19783   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19784   shlibpath_var=LD_LIBRARY_PATH
19785   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19786   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19787   # the default ld.so.conf also contains /usr/contrib/lib and
19788   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19789   # libtool to hard-code these into programs
19790   ;;
19791
19792 cygwin* | mingw* | pw32*)
19793   version_type=windows
19794   shrext_cmds=".dll"
19795   need_version=no
19796   need_lib_prefix=no
19797
19798   case $GCC,$host_os in
19799   yes,cygwin* | yes,mingw* | yes,pw32*)
19800     library_names_spec='$libname.dll.a'
19801     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19802     postinstall_cmds='base_file=`basename \${file}`~
19803       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19804       dldir=$destdir/`dirname \$dlpath`~
19805       test -d \$dldir || mkdir -p \$dldir~
19806       $install_prog $dir/$dlname \$dldir/$dlname~
19807       chmod a+x \$dldir/$dlname'
19808     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19809       dlpath=$dir/\$dldll~
19810        $rm \$dlpath'
19811     shlibpath_overrides_runpath=yes
19812
19813     case $host_os in
19814     cygwin*)
19815       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19816       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19817       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19818       ;;
19819     mingw*)
19820       # MinGW DLLs use traditional 'lib' prefix
19821       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19822       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19823       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19824         # It is most probably a Windows format PATH printed by
19825         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19826         # path with ; separators, and with drive letters. We can handle the
19827         # drive letters (cygwin fileutils understands them), so leave them,
19828         # especially as we might pass files found there to a mingw objdump,
19829         # which wouldn't understand a cygwinified path. Ahh.
19830         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19831       else
19832         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19833       fi
19834       ;;
19835     pw32*)
19836       # pw32 DLLs use 'pw' prefix rather than 'lib'
19837       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19838       ;;
19839     esac
19840     ;;
19841
19842   *)
19843     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19844     ;;
19845   esac
19846   dynamic_linker='Win32 ld.exe'
19847   # FIXME: first we should search . and the directory the executable is in
19848   shlibpath_var=PATH
19849   ;;
19850
19851 darwin* | rhapsody*)
19852   dynamic_linker="$host_os dyld"
19853   version_type=darwin
19854   need_lib_prefix=no
19855   need_version=no
19856   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19857   soname_spec='${libname}${release}${major}$shared_ext'
19858   shlibpath_overrides_runpath=yes
19859   shlibpath_var=DYLD_LIBRARY_PATH
19860   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19861   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19862   if test "$GCC" = yes; then
19863     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19864   else
19865     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19866   fi
19867   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19868   ;;
19869
19870 dgux*)
19871   version_type=linux
19872   need_lib_prefix=no
19873   need_version=no
19874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19875   soname_spec='${libname}${release}${shared_ext}$major'
19876   shlibpath_var=LD_LIBRARY_PATH
19877   ;;
19878
19879 freebsd1*)
19880   dynamic_linker=no
19881   ;;
19882
19883 freebsd* | dragonfly*)
19884   # DragonFly does not have aout.  When/if they implement a new
19885   # versioning mechanism, adjust this.
19886   if test -x /usr/bin/objformat; then
19887     objformat=`/usr/bin/objformat`
19888   else
19889     case $host_os in
19890     freebsd[123]*) objformat=aout ;;
19891     *) objformat=elf ;;
19892     esac
19893   fi
19894   version_type=freebsd-$objformat
19895   case $version_type in
19896     freebsd-elf*)
19897       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19898       need_version=no
19899       need_lib_prefix=no
19900       ;;
19901     freebsd-*)
19902       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19903       need_version=yes
19904       ;;
19905   esac
19906   shlibpath_var=LD_LIBRARY_PATH
19907   case $host_os in
19908   freebsd2*)
19909     shlibpath_overrides_runpath=yes
19910     ;;
19911   freebsd3.[01]* | freebsdelf3.[01]*)
19912     shlibpath_overrides_runpath=yes
19913     hardcode_into_libs=yes
19914     ;;
19915   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19916   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19917     shlibpath_overrides_runpath=no
19918     hardcode_into_libs=yes
19919     ;;
19920   freebsd*) # from 4.6 on
19921     shlibpath_overrides_runpath=yes
19922     hardcode_into_libs=yes
19923     ;;
19924   esac
19925   ;;
19926
19927 gnu*)
19928   version_type=linux
19929   need_lib_prefix=no
19930   need_version=no
19931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19932   soname_spec='${libname}${release}${shared_ext}$major'
19933   shlibpath_var=LD_LIBRARY_PATH
19934   hardcode_into_libs=yes
19935   ;;
19936
19937 hpux9* | hpux10* | hpux11*)
19938   # Give a soname corresponding to the major version so that dld.sl refuses to
19939   # link against other versions.
19940   version_type=sunos
19941   need_lib_prefix=no
19942   need_version=no
19943   case $host_cpu in
19944   ia64*)
19945     shrext_cmds='.so'
19946     hardcode_into_libs=yes
19947     dynamic_linker="$host_os dld.so"
19948     shlibpath_var=LD_LIBRARY_PATH
19949     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19950     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19951     soname_spec='${libname}${release}${shared_ext}$major'
19952     if test "X$HPUX_IA64_MODE" = X32; then
19953       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19954     else
19955       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19956     fi
19957     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19958     ;;
19959    hppa*64*)
19960      shrext_cmds='.sl'
19961      hardcode_into_libs=yes
19962      dynamic_linker="$host_os dld.sl"
19963      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19964      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19965      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19966      soname_spec='${libname}${release}${shared_ext}$major'
19967      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19968      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19969      ;;
19970    *)
19971     shrext_cmds='.sl'
19972     dynamic_linker="$host_os dld.sl"
19973     shlibpath_var=SHLIB_PATH
19974     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19975     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19976     soname_spec='${libname}${release}${shared_ext}$major'
19977     ;;
19978   esac
19979   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19980   postinstall_cmds='chmod 555 $lib'
19981   ;;
19982
19983 interix3*)
19984   version_type=linux
19985   need_lib_prefix=no
19986   need_version=no
19987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19988   soname_spec='${libname}${release}${shared_ext}$major'
19989   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19990   shlibpath_var=LD_LIBRARY_PATH
19991   shlibpath_overrides_runpath=no
19992   hardcode_into_libs=yes
19993   ;;
19994
19995 irix5* | irix6* | nonstopux*)
19996   case $host_os in
19997     nonstopux*) version_type=nonstopux ;;
19998     *)
19999         if test "$lt_cv_prog_gnu_ld" = yes; then
20000                 version_type=linux
20001         else
20002                 version_type=irix
20003         fi ;;
20004   esac
20005   need_lib_prefix=no
20006   need_version=no
20007   soname_spec='${libname}${release}${shared_ext}$major'
20008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20009   case $host_os in
20010   irix5* | nonstopux*)
20011     libsuff= shlibsuff=
20012     ;;
20013   *)
20014     case $LD in # libtool.m4 will add one of these switches to LD
20015     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20016       libsuff= shlibsuff= libmagic=32-bit;;
20017     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20018       libsuff=32 shlibsuff=N32 libmagic=N32;;
20019     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20020       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20021     *) libsuff= shlibsuff= libmagic=never-match;;
20022     esac
20023     ;;
20024   esac
20025   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20026   shlibpath_overrides_runpath=no
20027   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20028   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20029   hardcode_into_libs=yes
20030   ;;
20031
20032 # No shared lib support for Linux oldld, aout, or coff.
20033 linux*oldld* | linux*aout* | linux*coff*)
20034   dynamic_linker=no
20035   ;;
20036
20037 # This must be Linux ELF.
20038 linux* | k*bsd*-gnu)
20039   version_type=linux
20040   need_lib_prefix=no
20041   need_version=no
20042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20043   soname_spec='${libname}${release}${shared_ext}$major'
20044   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20045   shlibpath_var=LD_LIBRARY_PATH
20046   shlibpath_overrides_runpath=no
20047   # This implies no fast_install, which is unacceptable.
20048   # Some rework will be needed to allow for fast_install
20049   # before this can be enabled.
20050   hardcode_into_libs=yes
20051
20052   # Append ld.so.conf contents to the search path
20053   if test -f /etc/ld.so.conf; then
20054     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20055     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20056   fi
20057
20058   # We used to test for /lib/ld.so.1 and disable shared libraries on
20059   # powerpc, because MkLinux only supported shared libraries with the
20060   # GNU dynamic linker.  Since this was broken with cross compilers,
20061   # most powerpc-linux boxes support dynamic linking these days and
20062   # people can always --disable-shared, the test was removed, and we
20063   # assume the GNU/Linux dynamic linker is in use.
20064   dynamic_linker='GNU/Linux ld.so'
20065   ;;
20066
20067 netbsdelf*-gnu)
20068   version_type=linux
20069   need_lib_prefix=no
20070   need_version=no
20071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20072   soname_spec='${libname}${release}${shared_ext}$major'
20073   shlibpath_var=LD_LIBRARY_PATH
20074   shlibpath_overrides_runpath=no
20075   hardcode_into_libs=yes
20076   dynamic_linker='NetBSD ld.elf_so'
20077   ;;
20078
20079 netbsd*)
20080   version_type=sunos
20081   need_lib_prefix=no
20082   need_version=no
20083   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20084     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20085     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20086     dynamic_linker='NetBSD (a.out) ld.so'
20087   else
20088     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20089     soname_spec='${libname}${release}${shared_ext}$major'
20090     dynamic_linker='NetBSD ld.elf_so'
20091   fi
20092   shlibpath_var=LD_LIBRARY_PATH
20093   shlibpath_overrides_runpath=yes
20094   hardcode_into_libs=yes
20095   ;;
20096
20097 newsos6)
20098   version_type=linux
20099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20100   shlibpath_var=LD_LIBRARY_PATH
20101   shlibpath_overrides_runpath=yes
20102   ;;
20103
20104 nto-qnx*)
20105   version_type=linux
20106   need_lib_prefix=no
20107   need_version=no
20108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20109   soname_spec='${libname}${release}${shared_ext}$major'
20110   shlibpath_var=LD_LIBRARY_PATH
20111   shlibpath_overrides_runpath=yes
20112   ;;
20113
20114 openbsd*)
20115   version_type=sunos
20116   sys_lib_dlsearch_path_spec="/usr/lib"
20117   need_lib_prefix=no
20118   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20119   case $host_os in
20120     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20121     *)                         need_version=no  ;;
20122   esac
20123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20124   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20125   shlibpath_var=LD_LIBRARY_PATH
20126   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20127     case $host_os in
20128       openbsd2.[89] | openbsd2.[89].*)
20129         shlibpath_overrides_runpath=no
20130         ;;
20131       *)
20132         shlibpath_overrides_runpath=yes
20133         ;;
20134       esac
20135   else
20136     shlibpath_overrides_runpath=yes
20137   fi
20138   ;;
20139
20140 os2*)
20141   libname_spec='$name'
20142   shrext_cmds=".dll"
20143   need_lib_prefix=no
20144   library_names_spec='$libname${shared_ext} $libname.a'
20145   dynamic_linker='OS/2 ld.exe'
20146   shlibpath_var=LIBPATH
20147   ;;
20148
20149 osf3* | osf4* | osf5*)
20150   version_type=osf
20151   need_lib_prefix=no
20152   need_version=no
20153   soname_spec='${libname}${release}${shared_ext}$major'
20154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20155   shlibpath_var=LD_LIBRARY_PATH
20156   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20157   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20158   ;;
20159
20160 solaris*)
20161   version_type=linux
20162   need_lib_prefix=no
20163   need_version=no
20164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20165   soname_spec='${libname}${release}${shared_ext}$major'
20166   shlibpath_var=LD_LIBRARY_PATH
20167   shlibpath_overrides_runpath=yes
20168   hardcode_into_libs=yes
20169   # ldd complains unless libraries are executable
20170   postinstall_cmds='chmod +x $lib'
20171   ;;
20172
20173 sunos4*)
20174   version_type=sunos
20175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20176   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20177   shlibpath_var=LD_LIBRARY_PATH
20178   shlibpath_overrides_runpath=yes
20179   if test "$with_gnu_ld" = yes; then
20180     need_lib_prefix=no
20181   fi
20182   need_version=yes
20183   ;;
20184
20185 sysv4 | sysv4.3*)
20186   version_type=linux
20187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20188   soname_spec='${libname}${release}${shared_ext}$major'
20189   shlibpath_var=LD_LIBRARY_PATH
20190   case $host_vendor in
20191     sni)
20192       shlibpath_overrides_runpath=no
20193       need_lib_prefix=no
20194       export_dynamic_flag_spec='${wl}-Blargedynsym'
20195       runpath_var=LD_RUN_PATH
20196       ;;
20197     siemens)
20198       need_lib_prefix=no
20199       ;;
20200     motorola)
20201       need_lib_prefix=no
20202       need_version=no
20203       shlibpath_overrides_runpath=no
20204       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20205       ;;
20206   esac
20207   ;;
20208
20209 sysv4*MP*)
20210   if test -d /usr/nec ;then
20211     version_type=linux
20212     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20213     soname_spec='$libname${shared_ext}.$major'
20214     shlibpath_var=LD_LIBRARY_PATH
20215   fi
20216   ;;
20217
20218 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20219   version_type=freebsd-elf
20220   need_lib_prefix=no
20221   need_version=no
20222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20223   soname_spec='${libname}${release}${shared_ext}$major'
20224   shlibpath_var=LD_LIBRARY_PATH
20225   hardcode_into_libs=yes
20226   if test "$with_gnu_ld" = yes; then
20227     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20228     shlibpath_overrides_runpath=no
20229   else
20230     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20231     shlibpath_overrides_runpath=yes
20232     case $host_os in
20233       sco3.2v5*)
20234         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20235         ;;
20236     esac
20237   fi
20238   sys_lib_dlsearch_path_spec='/usr/lib'
20239   ;;
20240
20241 uts4*)
20242   version_type=linux
20243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20244   soname_spec='${libname}${release}${shared_ext}$major'
20245   shlibpath_var=LD_LIBRARY_PATH
20246   ;;
20247
20248 *)
20249   dynamic_linker=no
20250   ;;
20251 esac
20252 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20253 echo "${ECHO_T}$dynamic_linker" >&6; }
20254 test "$dynamic_linker" = no && can_build_shared=no
20255
20256 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20257 if test "$GCC" = yes; then
20258   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20259 fi
20260
20261 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20262 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20263 hardcode_action_GCJ=
20264 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20265    test -n "$runpath_var_GCJ" || \
20266    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20267
20268   # We can hardcode non-existant directories.
20269   if test "$hardcode_direct_GCJ" != no &&
20270      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20271      # have to relink, otherwise we might link with an installed library
20272      # when we should be linking with a yet-to-be-installed one
20273      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20274      test "$hardcode_minus_L_GCJ" != no; then
20275     # Linking always hardcodes the temporary library directory.
20276     hardcode_action_GCJ=relink
20277   else
20278     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20279     hardcode_action_GCJ=immediate
20280   fi
20281 else
20282   # We cannot hardcode anything, or else we can only hardcode existing
20283   # directories.
20284   hardcode_action_GCJ=unsupported
20285 fi
20286 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20287 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20288
20289 if test "$hardcode_action_GCJ" = relink; then
20290   # Fast installation is not supported
20291   enable_fast_install=no
20292 elif test "$shlibpath_overrides_runpath" = yes ||
20293      test "$enable_shared" = no; then
20294   # Fast installation is not necessary
20295   enable_fast_install=needless
20296 fi
20297
20298
20299 # The else clause should only fire when bootstrapping the
20300 # libtool distribution, otherwise you forgot to ship ltmain.sh
20301 # with your package, and you will get complaints that there are
20302 # no rules to generate ltmain.sh.
20303 if test -f "$ltmain"; then
20304   # See if we are running on zsh, and set the options which allow our commands through
20305   # without removal of \ escapes.
20306   if test -n "${ZSH_VERSION+set}" ; then
20307     setopt NO_GLOB_SUBST
20308   fi
20309   # Now quote all the things that may contain metacharacters while being
20310   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20311   # variables and quote the copies for generation of the libtool script.
20312   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20313     SED SHELL STRIP \
20314     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20315     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20316     deplibs_check_method reload_flag reload_cmds need_locks \
20317     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20318     lt_cv_sys_global_symbol_to_c_name_address \
20319     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20320     old_postinstall_cmds old_postuninstall_cmds \
20321     compiler_GCJ \
20322     CC_GCJ \
20323     LD_GCJ \
20324     lt_prog_compiler_wl_GCJ \
20325     lt_prog_compiler_pic_GCJ \
20326     lt_prog_compiler_static_GCJ \
20327     lt_prog_compiler_no_builtin_flag_GCJ \
20328     export_dynamic_flag_spec_GCJ \
20329     thread_safe_flag_spec_GCJ \
20330     whole_archive_flag_spec_GCJ \
20331     enable_shared_with_static_runtimes_GCJ \
20332     old_archive_cmds_GCJ \
20333     old_archive_from_new_cmds_GCJ \
20334     predep_objects_GCJ \
20335     postdep_objects_GCJ \
20336     predeps_GCJ \
20337     postdeps_GCJ \
20338     compiler_lib_search_path_GCJ \
20339     archive_cmds_GCJ \
20340     archive_expsym_cmds_GCJ \
20341     postinstall_cmds_GCJ \
20342     postuninstall_cmds_GCJ \
20343     old_archive_from_expsyms_cmds_GCJ \
20344     allow_undefined_flag_GCJ \
20345     no_undefined_flag_GCJ \
20346     export_symbols_cmds_GCJ \
20347     hardcode_libdir_flag_spec_GCJ \
20348     hardcode_libdir_flag_spec_ld_GCJ \
20349     hardcode_libdir_separator_GCJ \
20350     hardcode_automatic_GCJ \
20351     module_cmds_GCJ \
20352     module_expsym_cmds_GCJ \
20353     lt_cv_prog_compiler_c_o_GCJ \
20354     exclude_expsyms_GCJ \
20355     include_expsyms_GCJ; do
20356
20357     case $var in
20358     old_archive_cmds_GCJ | \
20359     old_archive_from_new_cmds_GCJ | \
20360     archive_cmds_GCJ | \
20361     archive_expsym_cmds_GCJ | \
20362     module_cmds_GCJ | \
20363     module_expsym_cmds_GCJ | \
20364     old_archive_from_expsyms_cmds_GCJ | \
20365     export_symbols_cmds_GCJ | \
20366     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20367     postinstall_cmds | postuninstall_cmds | \
20368     old_postinstall_cmds | old_postuninstall_cmds | \
20369     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20370       # Double-quote double-evaled strings.
20371       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20372       ;;
20373     *)
20374       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20375       ;;
20376     esac
20377   done
20378
20379   case $lt_echo in
20380   *'\$0 --fallback-echo"')
20381     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20382     ;;
20383   esac
20384
20385 cfgfile="$ofile"
20386
20387   cat <<__EOF__ >> "$cfgfile"
20388 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20389
20390 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20391
20392 # Shell to use when invoking shell scripts.
20393 SHELL=$lt_SHELL
20394
20395 # Whether or not to build shared libraries.
20396 build_libtool_libs=$enable_shared
20397
20398 # Whether or not to build static libraries.
20399 build_old_libs=$enable_static
20400
20401 # Whether or not to add -lc for building shared libraries.
20402 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20403
20404 # Whether or not to disallow shared libs when runtime libs are static
20405 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20406
20407 # Whether or not to optimize for fast installation.
20408 fast_install=$enable_fast_install
20409
20410 # The host system.
20411 host_alias=$host_alias
20412 host=$host
20413 host_os=$host_os
20414
20415 # The build system.
20416 build_alias=$build_alias
20417 build=$build
20418 build_os=$build_os
20419
20420 # An echo program that does not interpret backslashes.
20421 echo=$lt_echo
20422
20423 # The archiver.
20424 AR=$lt_AR
20425 AR_FLAGS=$lt_AR_FLAGS
20426
20427 # A C compiler.
20428 LTCC=$lt_LTCC
20429
20430 # LTCC compiler flags.
20431 LTCFLAGS=$lt_LTCFLAGS
20432
20433 # A language-specific compiler.
20434 CC=$lt_compiler_GCJ
20435
20436 # Is the compiler the GNU C compiler?
20437 with_gcc=$GCC_GCJ
20438
20439 # An ERE matcher.
20440 EGREP=$lt_EGREP
20441
20442 # The linker used to build libraries.
20443 LD=$lt_LD_GCJ
20444
20445 # Whether we need hard or soft links.
20446 LN_S=$lt_LN_S
20447
20448 # A BSD-compatible nm program.
20449 NM=$lt_NM
20450
20451 # A symbol stripping program
20452 STRIP=$lt_STRIP
20453
20454 # Used to examine libraries when file_magic_cmd begins "file"
20455 MAGIC_CMD=$MAGIC_CMD
20456
20457 # Used on cygwin: DLL creation program.
20458 DLLTOOL="$DLLTOOL"
20459
20460 # Used on cygwin: object dumper.
20461 OBJDUMP="$OBJDUMP"
20462
20463 # Used on cygwin: assembler.
20464 AS="$AS"
20465
20466 # The name of the directory that contains temporary libtool files.
20467 objdir=$objdir
20468
20469 # How to create reloadable object files.
20470 reload_flag=$lt_reload_flag
20471 reload_cmds=$lt_reload_cmds
20472
20473 # How to pass a linker flag through the compiler.
20474 wl=$lt_lt_prog_compiler_wl_GCJ
20475
20476 # Object file suffix (normally "o").
20477 objext="$ac_objext"
20478
20479 # Old archive suffix (normally "a").
20480 libext="$libext"
20481
20482 # Shared library suffix (normally ".so").
20483 shrext_cmds='$shrext_cmds'
20484
20485 # Executable file suffix (normally "").
20486 exeext="$exeext"
20487
20488 # Additional compiler flags for building library objects.
20489 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20490 pic_mode=$pic_mode
20491
20492 # What is the maximum length of a command?
20493 max_cmd_len=$lt_cv_sys_max_cmd_len
20494
20495 # Does compiler simultaneously support -c and -o options?
20496 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20497
20498 # Must we lock files when doing compilation?
20499 need_locks=$lt_need_locks
20500
20501 # Do we need the lib prefix for modules?
20502 need_lib_prefix=$need_lib_prefix
20503
20504 # Do we need a version for libraries?
20505 need_version=$need_version
20506
20507 # Whether dlopen is supported.
20508 dlopen_support=$enable_dlopen
20509
20510 # Whether dlopen of programs is supported.
20511 dlopen_self=$enable_dlopen_self
20512
20513 # Whether dlopen of statically linked programs is supported.
20514 dlopen_self_static=$enable_dlopen_self_static
20515
20516 # Compiler flag to prevent dynamic linking.
20517 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20518
20519 # Compiler flag to turn off builtin functions.
20520 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20521
20522 # Compiler flag to allow reflexive dlopens.
20523 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20524
20525 # Compiler flag to generate shared objects directly from archives.
20526 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20527
20528 # Compiler flag to generate thread-safe objects.
20529 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20530
20531 # Library versioning type.
20532 version_type=$version_type
20533
20534 # Format of library name prefix.
20535 libname_spec=$lt_libname_spec
20536
20537 # List of archive names.  First name is the real one, the rest are links.
20538 # The last name is the one that the linker finds with -lNAME.
20539 library_names_spec=$lt_library_names_spec
20540
20541 # The coded name of the library, if different from the real name.
20542 soname_spec=$lt_soname_spec
20543
20544 # Commands used to build and install an old-style archive.
20545 RANLIB=$lt_RANLIB
20546 old_archive_cmds=$lt_old_archive_cmds_GCJ
20547 old_postinstall_cmds=$lt_old_postinstall_cmds
20548 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20549
20550 # Create an old-style archive from a shared archive.
20551 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20552
20553 # Create a temporary old-style archive to link instead of a shared archive.
20554 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20555
20556 # Commands used to build and install a shared archive.
20557 archive_cmds=$lt_archive_cmds_GCJ
20558 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20559 postinstall_cmds=$lt_postinstall_cmds
20560 postuninstall_cmds=$lt_postuninstall_cmds
20561
20562 # Commands used to build a loadable module (assumed same as above if empty)
20563 module_cmds=$lt_module_cmds_GCJ
20564 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20565
20566 # Commands to strip libraries.
20567 old_striplib=$lt_old_striplib
20568 striplib=$lt_striplib
20569
20570 # Dependencies to place before the objects being linked to create a
20571 # shared library.
20572 predep_objects=$lt_predep_objects_GCJ
20573
20574 # Dependencies to place after the objects being linked to create a
20575 # shared library.
20576 postdep_objects=$lt_postdep_objects_GCJ
20577
20578 # Dependencies to place before the objects being linked to create a
20579 # shared library.
20580 predeps=$lt_predeps_GCJ
20581
20582 # Dependencies to place after the objects being linked to create a
20583 # shared library.
20584 postdeps=$lt_postdeps_GCJ
20585
20586 # The library search path used internally by the compiler when linking
20587 # a shared library.
20588 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20589
20590 # Method to check whether dependent libraries are shared objects.
20591 deplibs_check_method=$lt_deplibs_check_method
20592
20593 # Command to use when deplibs_check_method == file_magic.
20594 file_magic_cmd=$lt_file_magic_cmd
20595
20596 # Flag that allows shared libraries with undefined symbols to be built.
20597 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20598
20599 # Flag that forces no undefined symbols.
20600 no_undefined_flag=$lt_no_undefined_flag_GCJ
20601
20602 # Commands used to finish a libtool library installation in a directory.
20603 finish_cmds=$lt_finish_cmds
20604
20605 # Same as above, but a single script fragment to be evaled but not shown.
20606 finish_eval=$lt_finish_eval
20607
20608 # Take the output of nm and produce a listing of raw symbols and C names.
20609 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20610
20611 # Transform the output of nm in a proper C declaration
20612 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20613
20614 # Transform the output of nm in a C name address pair
20615 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20616
20617 # This is the shared library runtime path variable.
20618 runpath_var=$runpath_var
20619
20620 # This is the shared library path variable.
20621 shlibpath_var=$shlibpath_var
20622
20623 # Is shlibpath searched before the hard-coded library search path?
20624 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20625
20626 # How to hardcode a shared library path into an executable.
20627 hardcode_action=$hardcode_action_GCJ
20628
20629 # Whether we should hardcode library paths into libraries.
20630 hardcode_into_libs=$hardcode_into_libs
20631
20632 # Flag to hardcode \$libdir into a binary during linking.
20633 # This must work even if \$libdir does not exist.
20634 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20635
20636 # If ld is used when linking, flag to hardcode \$libdir into
20637 # a binary during linking. This must work even if \$libdir does
20638 # not exist.
20639 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20640
20641 # Whether we need a single -rpath flag with a separated argument.
20642 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20643
20644 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20645 # resulting binary.
20646 hardcode_direct=$hardcode_direct_GCJ
20647
20648 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20649 # resulting binary.
20650 hardcode_minus_L=$hardcode_minus_L_GCJ
20651
20652 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20653 # the resulting binary.
20654 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20655
20656 # Set to yes if building a shared library automatically hardcodes DIR into the library
20657 # and all subsequent libraries and executables linked against it.
20658 hardcode_automatic=$hardcode_automatic_GCJ
20659
20660 # Variables whose values should be saved in libtool wrapper scripts and
20661 # restored at relink time.
20662 variables_saved_for_relink="$variables_saved_for_relink"
20663
20664 # Whether libtool must link a program against all its dependency libraries.
20665 link_all_deplibs=$link_all_deplibs_GCJ
20666
20667 # Compile-time system search path for libraries
20668 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20669
20670 # Run-time system search path for libraries
20671 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20672
20673 # Fix the shell variable \$srcfile for the compiler.
20674 fix_srcfile_path="$fix_srcfile_path_GCJ"
20675
20676 # Set to yes if exported symbols are required.
20677 always_export_symbols=$always_export_symbols_GCJ
20678
20679 # The commands to list exported symbols.
20680 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20681
20682 # The commands to extract the exported symbol list from a shared archive.
20683 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20684
20685 # Symbols that should not be listed in the preloaded symbols.
20686 exclude_expsyms=$lt_exclude_expsyms_GCJ
20687
20688 # Symbols that must always be exported.
20689 include_expsyms=$lt_include_expsyms_GCJ
20690
20691 # ### END LIBTOOL TAG CONFIG: $tagname
20692
20693 __EOF__
20694
20695
20696 else
20697   # If there is no Makefile yet, we rely on a make rule to execute
20698   # `config.status --recheck' to rerun these tests and create the
20699   # libtool script then.
20700   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20701   if test -f "$ltmain_in"; then
20702     test -f Makefile && make "$ltmain"
20703   fi
20704 fi
20705
20706
20707 ac_ext=c
20708 ac_cpp='$CPP $CPPFLAGS'
20709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20712
20713 CC="$lt_save_CC"
20714
20715         else
20716           tagname=""
20717         fi
20718         ;;
20719
20720       RC)
20721
20722
20723 # Source file extension for RC test sources.
20724 ac_ext=rc
20725
20726 # Object file extension for compiled RC test sources.
20727 objext=o
20728 objext_RC=$objext
20729
20730 # Code to be used in simple compile tests
20731 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20732
20733 # Code to be used in simple link tests
20734 lt_simple_link_test_code="$lt_simple_compile_test_code"
20735
20736 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20737
20738 # If no C compiler was specified, use CC.
20739 LTCC=${LTCC-"$CC"}
20740
20741 # If no C compiler flags were specified, use CFLAGS.
20742 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20743
20744 # Allow CC to be a program name with arguments.
20745 compiler=$CC
20746
20747
20748 # save warnings/boilerplate of simple test code
20749 ac_outfile=conftest.$ac_objext
20750 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20751 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20752 _lt_compiler_boilerplate=`cat conftest.err`
20753 $rm conftest*
20754
20755 ac_outfile=conftest.$ac_objext
20756 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20757 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20758 _lt_linker_boilerplate=`cat conftest.err`
20759 $rm conftest*
20760
20761
20762 # Allow CC to be a program name with arguments.
20763 lt_save_CC="$CC"
20764 CC=${RC-"windres"}
20765 compiler=$CC
20766 compiler_RC=$CC
20767 for cc_temp in $compiler""; do
20768   case $cc_temp in
20769     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20770     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20771     \-*) ;;
20772     *) break;;
20773   esac
20774 done
20775 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20776
20777 lt_cv_prog_compiler_c_o_RC=yes
20778
20779 # The else clause should only fire when bootstrapping the
20780 # libtool distribution, otherwise you forgot to ship ltmain.sh
20781 # with your package, and you will get complaints that there are
20782 # no rules to generate ltmain.sh.
20783 if test -f "$ltmain"; then
20784   # See if we are running on zsh, and set the options which allow our commands through
20785   # without removal of \ escapes.
20786   if test -n "${ZSH_VERSION+set}" ; then
20787     setopt NO_GLOB_SUBST
20788   fi
20789   # Now quote all the things that may contain metacharacters while being
20790   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20791   # variables and quote the copies for generation of the libtool script.
20792   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20793     SED SHELL STRIP \
20794     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20795     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20796     deplibs_check_method reload_flag reload_cmds need_locks \
20797     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20798     lt_cv_sys_global_symbol_to_c_name_address \
20799     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20800     old_postinstall_cmds old_postuninstall_cmds \
20801     compiler_RC \
20802     CC_RC \
20803     LD_RC \
20804     lt_prog_compiler_wl_RC \
20805     lt_prog_compiler_pic_RC \
20806     lt_prog_compiler_static_RC \
20807     lt_prog_compiler_no_builtin_flag_RC \
20808     export_dynamic_flag_spec_RC \
20809     thread_safe_flag_spec_RC \
20810     whole_archive_flag_spec_RC \
20811     enable_shared_with_static_runtimes_RC \
20812     old_archive_cmds_RC \
20813     old_archive_from_new_cmds_RC \
20814     predep_objects_RC \
20815     postdep_objects_RC \
20816     predeps_RC \
20817     postdeps_RC \
20818     compiler_lib_search_path_RC \
20819     archive_cmds_RC \
20820     archive_expsym_cmds_RC \
20821     postinstall_cmds_RC \
20822     postuninstall_cmds_RC \
20823     old_archive_from_expsyms_cmds_RC \
20824     allow_undefined_flag_RC \
20825     no_undefined_flag_RC \
20826     export_symbols_cmds_RC \
20827     hardcode_libdir_flag_spec_RC \
20828     hardcode_libdir_flag_spec_ld_RC \
20829     hardcode_libdir_separator_RC \
20830     hardcode_automatic_RC \
20831     module_cmds_RC \
20832     module_expsym_cmds_RC \
20833     lt_cv_prog_compiler_c_o_RC \
20834     exclude_expsyms_RC \
20835     include_expsyms_RC; do
20836
20837     case $var in
20838     old_archive_cmds_RC | \
20839     old_archive_from_new_cmds_RC | \
20840     archive_cmds_RC | \
20841     archive_expsym_cmds_RC | \
20842     module_cmds_RC | \
20843     module_expsym_cmds_RC | \
20844     old_archive_from_expsyms_cmds_RC | \
20845     export_symbols_cmds_RC | \
20846     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20847     postinstall_cmds | postuninstall_cmds | \
20848     old_postinstall_cmds | old_postuninstall_cmds | \
20849     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20850       # Double-quote double-evaled strings.
20851       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20852       ;;
20853     *)
20854       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20855       ;;
20856     esac
20857   done
20858
20859   case $lt_echo in
20860   *'\$0 --fallback-echo"')
20861     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20862     ;;
20863   esac
20864
20865 cfgfile="$ofile"
20866
20867   cat <<__EOF__ >> "$cfgfile"
20868 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20869
20870 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20871
20872 # Shell to use when invoking shell scripts.
20873 SHELL=$lt_SHELL
20874
20875 # Whether or not to build shared libraries.
20876 build_libtool_libs=$enable_shared
20877
20878 # Whether or not to build static libraries.
20879 build_old_libs=$enable_static
20880
20881 # Whether or not to add -lc for building shared libraries.
20882 build_libtool_need_lc=$archive_cmds_need_lc_RC
20883
20884 # Whether or not to disallow shared libs when runtime libs are static
20885 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20886
20887 # Whether or not to optimize for fast installation.
20888 fast_install=$enable_fast_install
20889
20890 # The host system.
20891 host_alias=$host_alias
20892 host=$host
20893 host_os=$host_os
20894
20895 # The build system.
20896 build_alias=$build_alias
20897 build=$build
20898 build_os=$build_os
20899
20900 # An echo program that does not interpret backslashes.
20901 echo=$lt_echo
20902
20903 # The archiver.
20904 AR=$lt_AR
20905 AR_FLAGS=$lt_AR_FLAGS
20906
20907 # A C compiler.
20908 LTCC=$lt_LTCC
20909
20910 # LTCC compiler flags.
20911 LTCFLAGS=$lt_LTCFLAGS
20912
20913 # A language-specific compiler.
20914 CC=$lt_compiler_RC
20915
20916 # Is the compiler the GNU C compiler?
20917 with_gcc=$GCC_RC
20918
20919 # An ERE matcher.
20920 EGREP=$lt_EGREP
20921
20922 # The linker used to build libraries.
20923 LD=$lt_LD_RC
20924
20925 # Whether we need hard or soft links.
20926 LN_S=$lt_LN_S
20927
20928 # A BSD-compatible nm program.
20929 NM=$lt_NM
20930
20931 # A symbol stripping program
20932 STRIP=$lt_STRIP
20933
20934 # Used to examine libraries when file_magic_cmd begins "file"
20935 MAGIC_CMD=$MAGIC_CMD
20936
20937 # Used on cygwin: DLL creation program.
20938 DLLTOOL="$DLLTOOL"
20939
20940 # Used on cygwin: object dumper.
20941 OBJDUMP="$OBJDUMP"
20942
20943 # Used on cygwin: assembler.
20944 AS="$AS"
20945
20946 # The name of the directory that contains temporary libtool files.
20947 objdir=$objdir
20948
20949 # How to create reloadable object files.
20950 reload_flag=$lt_reload_flag
20951 reload_cmds=$lt_reload_cmds
20952
20953 # How to pass a linker flag through the compiler.
20954 wl=$lt_lt_prog_compiler_wl_RC
20955
20956 # Object file suffix (normally "o").
20957 objext="$ac_objext"
20958
20959 # Old archive suffix (normally "a").
20960 libext="$libext"
20961
20962 # Shared library suffix (normally ".so").
20963 shrext_cmds='$shrext_cmds'
20964
20965 # Executable file suffix (normally "").
20966 exeext="$exeext"
20967
20968 # Additional compiler flags for building library objects.
20969 pic_flag=$lt_lt_prog_compiler_pic_RC
20970 pic_mode=$pic_mode
20971
20972 # What is the maximum length of a command?
20973 max_cmd_len=$lt_cv_sys_max_cmd_len
20974
20975 # Does compiler simultaneously support -c and -o options?
20976 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20977
20978 # Must we lock files when doing compilation?
20979 need_locks=$lt_need_locks
20980
20981 # Do we need the lib prefix for modules?
20982 need_lib_prefix=$need_lib_prefix
20983
20984 # Do we need a version for libraries?
20985 need_version=$need_version
20986
20987 # Whether dlopen is supported.
20988 dlopen_support=$enable_dlopen
20989
20990 # Whether dlopen of programs is supported.
20991 dlopen_self=$enable_dlopen_self
20992
20993 # Whether dlopen of statically linked programs is supported.
20994 dlopen_self_static=$enable_dlopen_self_static
20995
20996 # Compiler flag to prevent dynamic linking.
20997 link_static_flag=$lt_lt_prog_compiler_static_RC
20998
20999 # Compiler flag to turn off builtin functions.
21000 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21001
21002 # Compiler flag to allow reflexive dlopens.
21003 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21004
21005 # Compiler flag to generate shared objects directly from archives.
21006 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21007
21008 # Compiler flag to generate thread-safe objects.
21009 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21010
21011 # Library versioning type.
21012 version_type=$version_type
21013
21014 # Format of library name prefix.
21015 libname_spec=$lt_libname_spec
21016
21017 # List of archive names.  First name is the real one, the rest are links.
21018 # The last name is the one that the linker finds with -lNAME.
21019 library_names_spec=$lt_library_names_spec
21020
21021 # The coded name of the library, if different from the real name.
21022 soname_spec=$lt_soname_spec
21023
21024 # Commands used to build and install an old-style archive.
21025 RANLIB=$lt_RANLIB
21026 old_archive_cmds=$lt_old_archive_cmds_RC
21027 old_postinstall_cmds=$lt_old_postinstall_cmds
21028 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21029
21030 # Create an old-style archive from a shared archive.
21031 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21032
21033 # Create a temporary old-style archive to link instead of a shared archive.
21034 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21035
21036 # Commands used to build and install a shared archive.
21037 archive_cmds=$lt_archive_cmds_RC
21038 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21039 postinstall_cmds=$lt_postinstall_cmds
21040 postuninstall_cmds=$lt_postuninstall_cmds
21041
21042 # Commands used to build a loadable module (assumed same as above if empty)
21043 module_cmds=$lt_module_cmds_RC
21044 module_expsym_cmds=$lt_module_expsym_cmds_RC
21045
21046 # Commands to strip libraries.
21047 old_striplib=$lt_old_striplib
21048 striplib=$lt_striplib
21049
21050 # Dependencies to place before the objects being linked to create a
21051 # shared library.
21052 predep_objects=$lt_predep_objects_RC
21053
21054 # Dependencies to place after the objects being linked to create a
21055 # shared library.
21056 postdep_objects=$lt_postdep_objects_RC
21057
21058 # Dependencies to place before the objects being linked to create a
21059 # shared library.
21060 predeps=$lt_predeps_RC
21061
21062 # Dependencies to place after the objects being linked to create a
21063 # shared library.
21064 postdeps=$lt_postdeps_RC
21065
21066 # The library search path used internally by the compiler when linking
21067 # a shared library.
21068 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21069
21070 # Method to check whether dependent libraries are shared objects.
21071 deplibs_check_method=$lt_deplibs_check_method
21072
21073 # Command to use when deplibs_check_method == file_magic.
21074 file_magic_cmd=$lt_file_magic_cmd
21075
21076 # Flag that allows shared libraries with undefined symbols to be built.
21077 allow_undefined_flag=$lt_allow_undefined_flag_RC
21078
21079 # Flag that forces no undefined symbols.
21080 no_undefined_flag=$lt_no_undefined_flag_RC
21081
21082 # Commands used to finish a libtool library installation in a directory.
21083 finish_cmds=$lt_finish_cmds
21084
21085 # Same as above, but a single script fragment to be evaled but not shown.
21086 finish_eval=$lt_finish_eval
21087
21088 # Take the output of nm and produce a listing of raw symbols and C names.
21089 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21090
21091 # Transform the output of nm in a proper C declaration
21092 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21093
21094 # Transform the output of nm in a C name address pair
21095 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21096
21097 # This is the shared library runtime path variable.
21098 runpath_var=$runpath_var
21099
21100 # This is the shared library path variable.
21101 shlibpath_var=$shlibpath_var
21102
21103 # Is shlibpath searched before the hard-coded library search path?
21104 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21105
21106 # How to hardcode a shared library path into an executable.
21107 hardcode_action=$hardcode_action_RC
21108
21109 # Whether we should hardcode library paths into libraries.
21110 hardcode_into_libs=$hardcode_into_libs
21111
21112 # Flag to hardcode \$libdir into a binary during linking.
21113 # This must work even if \$libdir does not exist.
21114 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21115
21116 # If ld is used when linking, flag to hardcode \$libdir into
21117 # a binary during linking. This must work even if \$libdir does
21118 # not exist.
21119 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21120
21121 # Whether we need a single -rpath flag with a separated argument.
21122 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21123
21124 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21125 # resulting binary.
21126 hardcode_direct=$hardcode_direct_RC
21127
21128 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21129 # resulting binary.
21130 hardcode_minus_L=$hardcode_minus_L_RC
21131
21132 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21133 # the resulting binary.
21134 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21135
21136 # Set to yes if building a shared library automatically hardcodes DIR into the library
21137 # and all subsequent libraries and executables linked against it.
21138 hardcode_automatic=$hardcode_automatic_RC
21139
21140 # Variables whose values should be saved in libtool wrapper scripts and
21141 # restored at relink time.
21142 variables_saved_for_relink="$variables_saved_for_relink"
21143
21144 # Whether libtool must link a program against all its dependency libraries.
21145 link_all_deplibs=$link_all_deplibs_RC
21146
21147 # Compile-time system search path for libraries
21148 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21149
21150 # Run-time system search path for libraries
21151 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21152
21153 # Fix the shell variable \$srcfile for the compiler.
21154 fix_srcfile_path="$fix_srcfile_path_RC"
21155
21156 # Set to yes if exported symbols are required.
21157 always_export_symbols=$always_export_symbols_RC
21158
21159 # The commands to list exported symbols.
21160 export_symbols_cmds=$lt_export_symbols_cmds_RC
21161
21162 # The commands to extract the exported symbol list from a shared archive.
21163 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21164
21165 # Symbols that should not be listed in the preloaded symbols.
21166 exclude_expsyms=$lt_exclude_expsyms_RC
21167
21168 # Symbols that must always be exported.
21169 include_expsyms=$lt_include_expsyms_RC
21170
21171 # ### END LIBTOOL TAG CONFIG: $tagname
21172
21173 __EOF__
21174
21175
21176 else
21177   # If there is no Makefile yet, we rely on a make rule to execute
21178   # `config.status --recheck' to rerun these tests and create the
21179   # libtool script then.
21180   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21181   if test -f "$ltmain_in"; then
21182     test -f Makefile && make "$ltmain"
21183   fi
21184 fi
21185
21186
21187 ac_ext=c
21188 ac_cpp='$CPP $CPPFLAGS'
21189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21192
21193 CC="$lt_save_CC"
21194
21195         ;;
21196
21197       *)
21198         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21199 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21200    { (exit 1); exit 1; }; }
21201         ;;
21202       esac
21203
21204       # Append the new tag name to the list of available tags.
21205       if test -n "$tagname" ; then
21206       available_tags="$available_tags $tagname"
21207     fi
21208     fi
21209   done
21210   IFS="$lt_save_ifs"
21211
21212   # Now substitute the updated list of available tags.
21213   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21214     mv "${ofile}T" "$ofile"
21215     chmod +x "$ofile"
21216   else
21217     rm -f "${ofile}T"
21218     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21219 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21220    { (exit 1); exit 1; }; }
21221   fi
21222 fi
21223
21224
21225
21226 # This can be used to rebuild libtool when needed
21227 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21228
21229 # Always use our own libtool.
21230 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21231
21232 # Prevent multiple expansion
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254             # Check whether --enable-fortran was given.
21255 if test "${enable_fortran+set}" = set; then
21256   enableval=$enable_fortran;
21257 else
21258   enable_fortran=no
21259 fi
21260
21261
21262
21263 if test "x$enable_fortran" = xyes; then
21264   ENABLE_FORTRAN_TRUE=
21265   ENABLE_FORTRAN_FALSE='#'
21266 else
21267   ENABLE_FORTRAN_TRUE='#'
21268   ENABLE_FORTRAN_FALSE=
21269 fi
21270
21271
21272     if test "x$enable_fortran" = xyes
21273     then
21274         ac_ext=f
21275 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21276 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21277 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21278 if test -n "$ac_tool_prefix"; then
21279   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
21280   do
21281     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21285 if test "${ac_cv_prog_F77+set}" = set; then
21286   echo $ECHO_N "(cached) $ECHO_C" >&6
21287 else
21288   if test -n "$F77"; then
21289   ac_cv_prog_F77="$F77" # Let the user override the test.
21290 else
21291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21292 for as_dir in $PATH
21293 do
21294   IFS=$as_save_IFS
21295   test -z "$as_dir" && as_dir=.
21296   for ac_exec_ext in '' $ac_executable_extensions; do
21297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21298     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
21299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21300     break 2
21301   fi
21302 done
21303 done
21304 IFS=$as_save_IFS
21305
21306 fi
21307 fi
21308 F77=$ac_cv_prog_F77
21309 if test -n "$F77"; then
21310   { echo "$as_me:$LINENO: result: $F77" >&5
21311 echo "${ECHO_T}$F77" >&6; }
21312 else
21313   { echo "$as_me:$LINENO: result: no" >&5
21314 echo "${ECHO_T}no" >&6; }
21315 fi
21316
21317
21318     test -n "$F77" && break
21319   done
21320 fi
21321 if test -z "$F77"; then
21322   ac_ct_F77=$F77
21323   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
21324 do
21325   # Extract the first word of "$ac_prog", so it can be a program name with args.
21326 set dummy $ac_prog; ac_word=$2
21327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21329 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
21330   echo $ECHO_N "(cached) $ECHO_C" >&6
21331 else
21332   if test -n "$ac_ct_F77"; then
21333   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
21334 else
21335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21336 for as_dir in $PATH
21337 do
21338   IFS=$as_save_IFS
21339   test -z "$as_dir" && as_dir=.
21340   for ac_exec_ext in '' $ac_executable_extensions; do
21341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21342     ac_cv_prog_ac_ct_F77="$ac_prog"
21343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21344     break 2
21345   fi
21346 done
21347 done
21348 IFS=$as_save_IFS
21349
21350 fi
21351 fi
21352 ac_ct_F77=$ac_cv_prog_ac_ct_F77
21353 if test -n "$ac_ct_F77"; then
21354   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
21355 echo "${ECHO_T}$ac_ct_F77" >&6; }
21356 else
21357   { echo "$as_me:$LINENO: result: no" >&5
21358 echo "${ECHO_T}no" >&6; }
21359 fi
21360
21361
21362   test -n "$ac_ct_F77" && break
21363 done
21364
21365   if test "x$ac_ct_F77" = x; then
21366     F77=""
21367   else
21368     case $cross_compiling:$ac_tool_warned in
21369 yes:)
21370 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21371 whose name does not start with the host triplet.  If you think this
21372 configuration is useful to you, please write to autoconf@gnu.org." >&5
21373 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21374 whose name does not start with the host triplet.  If you think this
21375 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21376 ac_tool_warned=yes ;;
21377 esac
21378     F77=$ac_ct_F77
21379   fi
21380 fi
21381
21382
21383 # Provide some information about the compiler.
21384 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
21385 ac_compiler=`set X $ac_compile; echo $2`
21386 { (ac_try="$ac_compiler --version >&5"
21387 case "(($ac_try" in
21388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389   *) ac_try_echo=$ac_try;;
21390 esac
21391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392   (eval "$ac_compiler --version >&5") 2>&5
21393   ac_status=$?
21394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395   (exit $ac_status); }
21396 { (ac_try="$ac_compiler -v >&5"
21397 case "(($ac_try" in
21398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399   *) ac_try_echo=$ac_try;;
21400 esac
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402   (eval "$ac_compiler -v >&5") 2>&5
21403   ac_status=$?
21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405   (exit $ac_status); }
21406 { (ac_try="$ac_compiler -V >&5"
21407 case "(($ac_try" in
21408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409   *) ac_try_echo=$ac_try;;
21410 esac
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412   (eval "$ac_compiler -V >&5") 2>&5
21413   ac_status=$?
21414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415   (exit $ac_status); }
21416 rm -f a.out
21417
21418 # If we don't use `.F' as extension, the preprocessor is not run on the
21419 # input file.  (Note that this only needs to work for GNU compilers.)
21420 ac_save_ext=$ac_ext
21421 ac_ext=F
21422 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
21423 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
21424 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
21425   echo $ECHO_N "(cached) $ECHO_C" >&6
21426 else
21427   cat >conftest.$ac_ext <<_ACEOF
21428       program main
21429 #ifndef __GNUC__
21430        choke me
21431 #endif
21432
21433       end
21434 _ACEOF
21435 rm -f conftest.$ac_objext
21436 if { (ac_try="$ac_compile"
21437 case "(($ac_try" in
21438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439   *) ac_try_echo=$ac_try;;
21440 esac
21441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21442   (eval "$ac_compile") 2>conftest.er1
21443   ac_status=$?
21444   grep -v '^ *+' conftest.er1 >conftest.err
21445   rm -f conftest.er1
21446   cat conftest.err >&5
21447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448   (exit $ac_status); } &&
21449          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21450   { (case "(($ac_try" in
21451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452   *) ac_try_echo=$ac_try;;
21453 esac
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455   (eval "$ac_try") 2>&5
21456   ac_status=$?
21457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458   (exit $ac_status); }; } &&
21459          { ac_try='test -s conftest.$ac_objext'
21460   { (case "(($ac_try" in
21461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462   *) ac_try_echo=$ac_try;;
21463 esac
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465   (eval "$ac_try") 2>&5
21466   ac_status=$?
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); }; }; then
21469   ac_compiler_gnu=yes
21470 else
21471   echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21473
21474         ac_compiler_gnu=no
21475 fi
21476
21477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21478 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
21479
21480 fi
21481 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
21482 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
21483 ac_ext=$ac_save_ext
21484 ac_test_FFLAGS=${FFLAGS+set}
21485 ac_save_FFLAGS=$FFLAGS
21486 FFLAGS=
21487 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
21488 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
21489 if test "${ac_cv_prog_f77_g+set}" = set; then
21490   echo $ECHO_N "(cached) $ECHO_C" >&6
21491 else
21492   FFLAGS=-g
21493 cat >conftest.$ac_ext <<_ACEOF
21494       program main
21495
21496       end
21497 _ACEOF
21498 rm -f conftest.$ac_objext
21499 if { (ac_try="$ac_compile"
21500 case "(($ac_try" in
21501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502   *) ac_try_echo=$ac_try;;
21503 esac
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505   (eval "$ac_compile") 2>conftest.er1
21506   ac_status=$?
21507   grep -v '^ *+' conftest.er1 >conftest.err
21508   rm -f conftest.er1
21509   cat conftest.err >&5
21510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511   (exit $ac_status); } &&
21512          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21513   { (case "(($ac_try" in
21514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515   *) ac_try_echo=$ac_try;;
21516 esac
21517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518   (eval "$ac_try") 2>&5
21519   ac_status=$?
21520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521   (exit $ac_status); }; } &&
21522          { ac_try='test -s conftest.$ac_objext'
21523   { (case "(($ac_try" in
21524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525   *) ac_try_echo=$ac_try;;
21526 esac
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528   (eval "$ac_try") 2>&5
21529   ac_status=$?
21530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531   (exit $ac_status); }; }; then
21532   ac_cv_prog_f77_g=yes
21533 else
21534   echo "$as_me: failed program was:" >&5
21535 sed 's/^/| /' conftest.$ac_ext >&5
21536
21537         ac_cv_prog_f77_g=no
21538 fi
21539
21540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21541
21542 fi
21543 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
21544 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
21545 if test "$ac_test_FFLAGS" = set; then
21546   FFLAGS=$ac_save_FFLAGS
21547 elif test $ac_cv_prog_f77_g = yes; then
21548   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
21549     FFLAGS="-g -O2"
21550   else
21551     FFLAGS="-g"
21552   fi
21553 else
21554   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
21555     FFLAGS="-O2"
21556   else
21557     FFLAGS=
21558   fi
21559 fi
21560
21561 G77=`test $ac_compiler_gnu = yes && echo yes`
21562 ac_ext=c
21563 ac_cpp='$CPP $CPPFLAGS'
21564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21567
21568         ac_ext=f
21569 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21570 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21571 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21572 { echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
21573 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6; }
21574 if test "${ac_cv_prog_f77_v+set}" = set; then
21575   echo $ECHO_N "(cached) $ECHO_C" >&6
21576 else
21577   cat >conftest.$ac_ext <<_ACEOF
21578       program main
21579
21580       end
21581 _ACEOF
21582 rm -f conftest.$ac_objext
21583 if { (ac_try="$ac_compile"
21584 case "(($ac_try" in
21585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586   *) ac_try_echo=$ac_try;;
21587 esac
21588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21589   (eval "$ac_compile") 2>conftest.er1
21590   ac_status=$?
21591   grep -v '^ *+' conftest.er1 >conftest.err
21592   rm -f conftest.er1
21593   cat conftest.err >&5
21594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595   (exit $ac_status); } &&
21596          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21597   { (case "(($ac_try" in
21598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599   *) ac_try_echo=$ac_try;;
21600 esac
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602   (eval "$ac_try") 2>&5
21603   ac_status=$?
21604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605   (exit $ac_status); }; } &&
21606          { ac_try='test -s conftest.$ac_objext'
21607   { (case "(($ac_try" in
21608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609   *) ac_try_echo=$ac_try;;
21610 esac
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612   (eval "$ac_try") 2>&5
21613   ac_status=$?
21614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615   (exit $ac_status); }; }; then
21616   ac_cv_prog_f77_v=
21617 # Try some options frequently used verbose output
21618 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
21619   cat >conftest.$ac_ext <<_ACEOF
21620       program main
21621
21622       end
21623 _ACEOF
21624
21625 # Compile and link our simple test program by passing a flag (argument
21626 # 1 to this macro) to the Fortran compiler in order to get
21627 # "verbose" output that we can then parse for the Fortran linker
21628 # flags.
21629 ac_save_FFLAGS=$FFLAGS
21630 FFLAGS="$FFLAGS $ac_verb"
21631 eval "set x $ac_link"
21632 shift
21633 echo "$as_me:$LINENO: $*" >&5
21634 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
21635 echo "$ac_f77_v_output" >&5
21636 FFLAGS=$ac_save_FFLAGS
21637
21638 rm -f conftest*
21639
21640 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
21641 # /foo, /bar, and /baz are search directories for the Fortran linker.
21642 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
21643 ac_f77_v_output="`echo $ac_f77_v_output |
21644         grep 'LPATH is:' |
21645         sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
21646
21647 # FIXME: we keep getting bitten by quoted arguments; a more general fix
21648 #        that detects unbalanced quotes in FLIBS should be implemented
21649 #        and (ugh) tested at some point.
21650 case $ac_f77_v_output in
21651   # If we are using xlf then replace all the commas with spaces.
21652   *xlfentry*)
21653     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
21654
21655   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
21656   # $LIBS confuse us, and the libraries appear later in the output anyway).
21657   *mGLOB_options_string*)
21658     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
21659
21660   # Portland Group compiler has singly- or doubly-quoted -cmdline argument
21661   # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
21662   # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
21663   *-cmdline\ * | *-ignore\ * | *-def\ *)
21664     ac_f77_v_output=`echo $ac_f77_v_output | sed "\
21665         s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
21666         s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
21667         s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
21668
21669   # If we are using Cray Fortran then delete quotes.
21670   *cft90*)
21671     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
21672 esac
21673
21674
21675   # look for -l* and *.a constructs in the output
21676   for ac_arg in $ac_f77_v_output; do
21677      case $ac_arg in
21678         [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
21679           ac_cv_prog_f77_v=$ac_verb
21680           break 2 ;;
21681      esac
21682   done
21683 done
21684 if test -z "$ac_cv_prog_f77_v"; then
21685    { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
21686 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
21687 fi
21688 else
21689   echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21691
21692         { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
21693 echo "$as_me: WARNING: compilation failed" >&2;}
21694 fi
21695
21696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21697
21698 fi
21699 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
21700 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6; }
21701 { echo "$as_me:$LINENO: checking for Fortran 77 libraries of $F77" >&5
21702 echo $ECHO_N "checking for Fortran 77 libraries of $F77... $ECHO_C" >&6; }
21703 if test "${ac_cv_f77_libs+set}" = set; then
21704   echo $ECHO_N "(cached) $ECHO_C" >&6
21705 else
21706   if test "x$FLIBS" != "x"; then
21707   ac_cv_f77_libs="$FLIBS" # Let the user override the test.
21708 else
21709
21710 cat >conftest.$ac_ext <<_ACEOF
21711       program main
21712
21713       end
21714 _ACEOF
21715
21716 # Compile and link our simple test program by passing a flag (argument
21717 # 1 to this macro) to the Fortran compiler in order to get
21718 # "verbose" output that we can then parse for the Fortran linker
21719 # flags.
21720 ac_save_FFLAGS=$FFLAGS
21721 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
21722 eval "set x $ac_link"
21723 shift
21724 echo "$as_me:$LINENO: $*" >&5
21725 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
21726 echo "$ac_f77_v_output" >&5
21727 FFLAGS=$ac_save_FFLAGS
21728
21729 rm -f conftest*
21730
21731 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
21732 # /foo, /bar, and /baz are search directories for the Fortran linker.
21733 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
21734 ac_f77_v_output="`echo $ac_f77_v_output |
21735         grep 'LPATH is:' |
21736         sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
21737
21738 # FIXME: we keep getting bitten by quoted arguments; a more general fix
21739 #        that detects unbalanced quotes in FLIBS should be implemented
21740 #        and (ugh) tested at some point.
21741 case $ac_f77_v_output in
21742   # If we are using xlf then replace all the commas with spaces.
21743   *xlfentry*)
21744     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
21745
21746   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
21747   # $LIBS confuse us, and the libraries appear later in the output anyway).
21748   *mGLOB_options_string*)
21749     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
21750
21751   # Portland Group compiler has singly- or doubly-quoted -cmdline argument
21752   # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
21753   # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
21754   *-cmdline\ * | *-ignore\ * | *-def\ *)
21755     ac_f77_v_output=`echo $ac_f77_v_output | sed "\
21756         s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
21757         s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
21758         s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
21759
21760   # If we are using Cray Fortran then delete quotes.
21761   *cft90*)
21762     ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
21763 esac
21764
21765
21766
21767 ac_cv_f77_libs=
21768
21769 # Save positional arguments (if any)
21770 ac_save_positional="$@"
21771
21772 set X $ac_f77_v_output
21773 while test $# != 1; do
21774   shift
21775   ac_arg=$1
21776   case $ac_arg in
21777         [\\/]*.a | ?:[\\/]*.a)
21778             ac_exists=false
21779   for ac_i in $ac_cv_f77_libs; do
21780     if test x"$ac_arg" = x"$ac_i"; then
21781       ac_exists=true
21782       break
21783     fi
21784   done
21785
21786   if test x"$ac_exists" = xtrue; then
21787   :
21788 else
21789   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21790 fi
21791
21792           ;;
21793         -bI:*)
21794             ac_exists=false
21795   for ac_i in $ac_cv_f77_libs; do
21796     if test x"$ac_arg" = x"$ac_i"; then
21797       ac_exists=true
21798       break
21799     fi
21800   done
21801
21802   if test x"$ac_exists" = xtrue; then
21803   :
21804 else
21805   if test "$ac_compiler_gnu" = yes; then
21806   for ac_link_opt in $ac_arg; do
21807     ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
21808   done
21809 else
21810   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21811 fi
21812 fi
21813
21814           ;;
21815           # Ignore these flags.
21816         -lang* | -lcrt*.o | -lc | -lgcc | -libmil | -LANG:=* | -LIST:* | -LNO:*)
21817           ;;
21818         -lkernel32)
21819           test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21820           ;;
21821         -[LRuYz])
21822           # These flags, when seen by themselves, take an argument.
21823           # We remove the space between option and argument and re-iterate
21824           # unless we find an empty arg or a new option (starting with -)
21825           case $2 in
21826              "" | -*);;
21827              *)
21828                 ac_arg="$ac_arg$2"
21829                 shift; shift
21830                 set X $ac_arg "$@"
21831                 ;;
21832           esac
21833           ;;
21834         -YP,*)
21835           for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
21836               ac_exists=false
21837   for ac_i in $ac_cv_f77_libs; do
21838     if test x"$ac_j" = x"$ac_i"; then
21839       ac_exists=true
21840       break
21841     fi
21842   done
21843
21844   if test x"$ac_exists" = xtrue; then
21845   :
21846 else
21847   ac_arg="$ac_arg $ac_j"
21848                                ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
21849 fi
21850
21851           done
21852           ;;
21853         -[lLR]*)
21854             ac_exists=false
21855   for ac_i in $ac_cv_f77_libs; do
21856     if test x"$ac_arg" = x"$ac_i"; then
21857       ac_exists=true
21858       break
21859     fi
21860   done
21861
21862   if test x"$ac_exists" = xtrue; then
21863   :
21864 else
21865   ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21866 fi
21867
21868           ;;
21869         -zallextract*| -zdefaultextract)
21870           ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21871           ;;
21872           # Ignore everything else.
21873   esac
21874 done
21875 # restore positional arguments
21876 set X $ac_save_positional; shift
21877
21878 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
21879 # then we insist that the "run path" must be an absolute path (i.e. it
21880 # must begin with a "/").
21881 case `(uname -sr) 2>/dev/null` in
21882    "SunOS 5"*)
21883       ac_ld_run_path=`echo $ac_f77_v_output |
21884                         sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
21885       test "x$ac_ld_run_path" != x &&
21886         if test "$ac_compiler_gnu" = yes; then
21887   for ac_link_opt in $ac_ld_run_path; do
21888     ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
21889   done
21890 else
21891   ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
21892 fi
21893       ;;
21894 esac
21895 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
21896
21897 fi
21898 { echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
21899 echo "${ECHO_T}$ac_cv_f77_libs" >&6; }
21900 FLIBS="$ac_cv_f77_libs"
21901
21902
21903 ac_ext=c
21904 ac_cpp='$CPP $CPPFLAGS'
21905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21908
21909     fi
21910
21911
21912
21913
21914         no_undefined=""
21915         case "${host_os}" in
21916                 *mingw* | *cygwin*)
21917
21918                 # on MinGW/Cygwin extra LDFLAGS are required
21919                 no_undefined="-no-undefined"
21920                 ;;
21921         esac
21922         NO_UNDEFINED=$no_undefined
21923
21924
21925
21926
21927
21928         # Find any Python interpreter.
21929     if test -z "$PYTHON"; then
21930       for ac_prog in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
21931 do
21932   # Extract the first word of "$ac_prog", so it can be a program name with args.
21933 set dummy $ac_prog; ac_word=$2
21934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21936 if test "${ac_cv_path_PYTHON+set}" = set; then
21937   echo $ECHO_N "(cached) $ECHO_C" >&6
21938 else
21939   case $PYTHON in
21940   [\\/]* | ?:[\\/]*)
21941   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21942   ;;
21943   *)
21944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21945 for as_dir in $PATH
21946 do
21947   IFS=$as_save_IFS
21948   test -z "$as_dir" && as_dir=.
21949   for ac_exec_ext in '' $ac_executable_extensions; do
21950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21951     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21953     break 2
21954   fi
21955 done
21956 done
21957 IFS=$as_save_IFS
21958
21959   ;;
21960 esac
21961 fi
21962 PYTHON=$ac_cv_path_PYTHON
21963 if test -n "$PYTHON"; then
21964   { echo "$as_me:$LINENO: result: $PYTHON" >&5
21965 echo "${ECHO_T}$PYTHON" >&6; }
21966 else
21967   { echo "$as_me:$LINENO: result: no" >&5
21968 echo "${ECHO_T}no" >&6; }
21969 fi
21970
21971
21972   test -n "$PYTHON" && break
21973 done
21974 test -n "$PYTHON" || PYTHON=":"
21975
21976     fi
21977     am_display_PYTHON=python
21978
21979
21980   if test "$PYTHON" = :; then
21981       { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
21982 echo "$as_me: error: no suitable Python interpreter found" >&2;}
21983    { (exit 1); exit 1; }; }
21984   else
21985
21986
21987   { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
21988 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
21989 if test "${am_cv_python_version+set}" = set; then
21990   echo $ECHO_N "(cached) $ECHO_C" >&6
21991 else
21992   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
21993 fi
21994 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
21995 echo "${ECHO_T}$am_cv_python_version" >&6; }
21996   PYTHON_VERSION=$am_cv_python_version
21997
21998
21999
22000   PYTHON_PREFIX='${prefix}'
22001
22002   PYTHON_EXEC_PREFIX='${exec_prefix}'
22003
22004
22005
22006   { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
22007 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
22008 if test "${am_cv_python_platform+set}" = set; then
22009   echo $ECHO_N "(cached) $ECHO_C" >&6
22010 else
22011   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
22012 fi
22013 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
22014 echo "${ECHO_T}$am_cv_python_platform" >&6; }
22015   PYTHON_PLATFORM=$am_cv_python_platform
22016
22017
22018
22019
22020                 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
22021 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
22022 if test "${am_cv_python_pythondir+set}" = set; then
22023   echo $ECHO_N "(cached) $ECHO_C" >&6
22024 else
22025   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
22026      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
22027 fi
22028 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
22029 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
22030   pythondir=$am_cv_python_pythondir
22031
22032
22033
22034   pkgpythondir=\${pythondir}/$PACKAGE
22035
22036
22037             { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
22038 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
22039 if test "${am_cv_python_pyexecdir+set}" = set; then
22040   echo $ECHO_N "(cached) $ECHO_C" >&6
22041 else
22042   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
22043      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
22044 fi
22045 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
22046 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
22047   pyexecdir=$am_cv_python_pyexecdir
22048
22049
22050
22051   pkgpyexecdir=\${pyexecdir}/$PACKAGE
22052
22053
22054
22055   fi
22056
22057
22058
22059
22060
22061
22062         # For Fedora Core 5 and 6, see ticket:39 in Trac
22063         if test -f '/etc/redhat-release'; then
22064                 if  (echo $pyexecdir | grep -q lib64); then
22065                         pythondir="$pyexecdir"
22066                 fi
22067         fi
22068
22069         # Check for Python include path
22070         { echo "$as_me:$LINENO: checking for Python include path" >&5
22071 echo $ECHO_N "checking for Python include path... $ECHO_C" >&6; }
22072         if test -z "$PYTHON" ; then
22073                 { { echo "$as_me:$LINENO: error: cannot find Python path" >&5
22074 echo "$as_me: error: cannot find Python path" >&2;}
22075    { (exit 1); exit 1; }; }
22076         fi
22077
22078         # ask distutils which include path we should use
22079         python_cmd='
22080 import distutils.sysconfig
22081 import os
22082 path = distutils.sysconfig.get_python_inc(plat_specific=False)
22083 if os.sep == "\\":
22084   path = path.replace("\\", "/")
22085 print path
22086 '
22087         python_path=`$PYTHON -c "$python_cmd"`
22088         { echo "$as_me:$LINENO: result: $python_path" >&5
22089 echo "${ECHO_T}$python_path" >&6; }
22090         if test -z "$python_path" ; then
22091                 { { echo "$as_me:$LINENO: error: cannot find Python include path" >&5
22092 echo "$as_me: error: cannot find Python include path" >&2;}
22093    { (exit 1); exit 1; }; }
22094         fi
22095
22096         PYTHON_CPPFLAGS=-I$python_path
22097
22098
22099         # Check for Python headers usability
22100         python_save_CPPFLAGS=$CPPFLAGS
22101         CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
22102
22103 for ac_header in Python.h
22104 do
22105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22107   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22110   echo $ECHO_N "(cached) $ECHO_C" >&6
22111 fi
22112 ac_res=`eval echo '${'$as_ac_Header'}'`
22113                { echo "$as_me:$LINENO: result: $ac_res" >&5
22114 echo "${ECHO_T}$ac_res" >&6; }
22115 else
22116   # Is the header compilable?
22117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22119 cat >conftest.$ac_ext <<_ACEOF
22120 /* confdefs.h.  */
22121 _ACEOF
22122 cat confdefs.h >>conftest.$ac_ext
22123 cat >>conftest.$ac_ext <<_ACEOF
22124 /* end confdefs.h.  */
22125 $ac_includes_default
22126 #include <$ac_header>
22127 _ACEOF
22128 rm -f conftest.$ac_objext
22129 if { (ac_try="$ac_compile"
22130 case "(($ac_try" in
22131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132   *) ac_try_echo=$ac_try;;
22133 esac
22134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22135   (eval "$ac_compile") 2>conftest.er1
22136   ac_status=$?
22137   grep -v '^ *+' conftest.er1 >conftest.err
22138   rm -f conftest.er1
22139   cat conftest.err >&5
22140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141   (exit $ac_status); } &&
22142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22143   { (case "(($ac_try" in
22144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145   *) ac_try_echo=$ac_try;;
22146 esac
22147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148   (eval "$ac_try") 2>&5
22149   ac_status=$?
22150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151   (exit $ac_status); }; } &&
22152          { ac_try='test -s conftest.$ac_objext'
22153   { (case "(($ac_try" in
22154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155   *) ac_try_echo=$ac_try;;
22156 esac
22157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22158   (eval "$ac_try") 2>&5
22159   ac_status=$?
22160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161   (exit $ac_status); }; }; then
22162   ac_header_compiler=yes
22163 else
22164   echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22166
22167         ac_header_compiler=no
22168 fi
22169
22170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22172 echo "${ECHO_T}$ac_header_compiler" >&6; }
22173
22174 # Is the header present?
22175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22177 cat >conftest.$ac_ext <<_ACEOF
22178 /* confdefs.h.  */
22179 _ACEOF
22180 cat confdefs.h >>conftest.$ac_ext
22181 cat >>conftest.$ac_ext <<_ACEOF
22182 /* end confdefs.h.  */
22183 #include <$ac_header>
22184 _ACEOF
22185 if { (ac_try="$ac_cpp conftest.$ac_ext"
22186 case "(($ac_try" in
22187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22188   *) ac_try_echo=$ac_try;;
22189 esac
22190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22191   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22192   ac_status=$?
22193   grep -v '^ *+' conftest.er1 >conftest.err
22194   rm -f conftest.er1
22195   cat conftest.err >&5
22196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197   (exit $ac_status); } >/dev/null; then
22198   if test -s conftest.err; then
22199     ac_cpp_err=$ac_c_preproc_warn_flag
22200     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22201   else
22202     ac_cpp_err=
22203   fi
22204 else
22205   ac_cpp_err=yes
22206 fi
22207 if test -z "$ac_cpp_err"; then
22208   ac_header_preproc=yes
22209 else
22210   echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22212
22213   ac_header_preproc=no
22214 fi
22215
22216 rm -f conftest.err conftest.$ac_ext
22217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22218 echo "${ECHO_T}$ac_header_preproc" >&6; }
22219
22220 # So?  What about this header?
22221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22222   yes:no: )
22223     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22225     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22227     ac_header_preproc=yes
22228     ;;
22229   no:yes:* )
22230     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22232     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22233 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22234     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22236     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22237 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22238     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22240     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22242
22243     ;;
22244 esac
22245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22248   echo $ECHO_N "(cached) $ECHO_C" >&6
22249 else
22250   eval "$as_ac_Header=\$ac_header_preproc"
22251 fi
22252 ac_res=`eval echo '${'$as_ac_Header'}'`
22253                { echo "$as_me:$LINENO: result: $ac_res" >&5
22254 echo "${ECHO_T}$ac_res" >&6; }
22255
22256 fi
22257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22258   cat >>confdefs.h <<_ACEOF
22259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22260 _ACEOF
22261
22262 else
22263   { { echo "$as_me:$LINENO: error: cannot find usable Python headers" >&5
22264 echo "$as_me: error: cannot find usable Python headers" >&2;}
22265    { (exit 1); exit 1; }; }
22266 fi
22267
22268 done
22269
22270         CPPFLAGS="$python_save_CPPFLAGS"
22271
22272         # Only set this on mingw and cygwin hosts, (only implemented
22273         # for mingw host, for crosscompiling you need to trick this)
22274
22275         PYTHON_LDFLAGS=""
22276         case $host_os in
22277              *mingw* | *cygwin* )
22278           { echo "$as_me:$LINENO: checking for Python LDFLAGS" >&5
22279 echo $ECHO_N "checking for Python LDFLAGS... $ECHO_C" >&6; }
22280
22281         python_cmd='
22282 import distutils.sysconfig
22283 import os
22284 path = distutils.sysconfig.get_config_var("LIBPL")
22285 if path == None:
22286   path = distutils.sysconfig.PREFIX + "/libs"
22287 if os.sep == "\\":
22288   path = path.replace("\\", "/")
22289 print path
22290 '
22291           python_stdlib_path=`$PYTHON -c "$python_cmd"`
22292
22293           python_version_nodot=`echo $PYTHON_VERSION | sed "s,\.,,"`
22294           libpython_name="python$PYTHON_VERSION"
22295
22296           # Standard install of python for win32 has libpython24.a
22297           # instead of libpython2.4.a so we check for the library
22298           # without the dot in the version number.
22299
22300           python_stdlib_filename=`find $python_stdlib_path -type f -name libpython$python_version_nodot.* -print | sed "1q"`
22301           if test -n "$python_stdlib_filename" ; then
22302                 libpython_name="python$python_version_nodot"
22303           fi
22304
22305           PYTHON_LDFLAGS="-L$python_stdlib_path -l$libpython_name"
22306           { echo "$as_me:$LINENO: result: $PYTHON_LDFLAGS" >&5
22307 echo "${ECHO_T}$PYTHON_LDFLAGS" >&6; }
22308           # Replace all backslashes in PYTHON Paths with forward slashes
22309           pythondir=`echo $pythondir |sed 's,\\\\,/,g'`
22310           pkgpythondir=`echo $pkgpythondir |sed 's,\\\\,/,g'`
22311           pyexecdir=`echo $pyexecdir |sed 's,\\\\,/,g'`
22312           pkgpyexecdir=`echo $pkgpyexecdir |sed 's,\\\\,/,g'`
22313           ;;
22314         esac
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325         # Extract the first word of "swig", so it can be a program name with args.
22326 set dummy swig; ac_word=$2
22327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22329 if test "${ac_cv_prog_SWIG+set}" = set; then
22330   echo $ECHO_N "(cached) $ECHO_C" >&6
22331 else
22332   if test -n "$SWIG"; then
22333   ac_cv_prog_SWIG="$SWIG" # Let the user override the test.
22334 else
22335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22336 for as_dir in $PATH
22337 do
22338   IFS=$as_save_IFS
22339   test -z "$as_dir" && as_dir=.
22340   for ac_exec_ext in '' $ac_executable_extensions; do
22341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22342     ac_cv_prog_SWIG="`which swig`"
22343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22344     break 2
22345   fi
22346 done
22347 done
22348 IFS=$as_save_IFS
22349
22350 fi
22351 fi
22352 SWIG=$ac_cv_prog_SWIG
22353 if test -n "$SWIG"; then
22354   { echo "$as_me:$LINENO: result: $SWIG" >&5
22355 echo "${ECHO_T}$SWIG" >&6; }
22356 else
22357   { echo "$as_me:$LINENO: result: no" >&5
22358 echo "${ECHO_T}no" >&6; }
22359 fi
22360
22361
22362         if test -z "$SWIG" ; then
22363                 { { echo "$as_me:$LINENO: error: Cannot find 'swig' program.  SWIG version >= 1.3.23 required" >&5
22364 echo "$as_me: error: Cannot find 'swig' program.  SWIG version >= 1.3.23 required" >&2;}
22365    { (exit 1); exit 1; }; }
22366                 SWIG=false
22367         elif test -n "1.3.23" ; then
22368                 { echo "$as_me:$LINENO: checking for SWIG version" >&5
22369 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
22370                 swig_version=`$SWIG -version 2>&1 | \
22371                         awk '/^SWIG Version [0-9]+\.[0-9]+\.[0-9]+.*$/ { split($3,a,"[^.0-9]"); print a[1] }'`
22372                 { echo "$as_me:$LINENO: result: $swig_version" >&5
22373 echo "${ECHO_T}$swig_version" >&6; }
22374                 if test -n "$swig_version" ; then
22375                         swig_version=`echo $swig_version | \
22376                                 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
22377                         swig_required_version=`echo 1.3.23 | \
22378                                 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
22379                         if test $swig_required_version -gt $swig_version ; then
22380                                 { { echo "$as_me:$LINENO: error: SWIG version >= 1.3.23 required" >&5
22381 echo "$as_me: error: SWIG version >= 1.3.23 required" >&2;}
22382    { (exit 1); exit 1; }; }
22383                         fi
22384                 else
22385                         { { echo "$as_me:$LINENO: error: cannot determine SWIG version" >&5
22386 echo "$as_me: error: cannot determine SWIG version" >&2;}
22387    { (exit 1); exit 1; }; }
22388                 fi
22389         fi
22390
22391
22392
22393
22394         if test "$SWIG" != "false" ; then
22395                 SWIG="$SWIG -c++"
22396         fi
22397
22398
22399
22400
22401         if test "$SWIG" != "false" ; then
22402                 SWIG_PYTHON_LIB=-lswigpy
22403
22404                 SWIG_PYTHON_OPT=-python
22405
22406         fi
22407         SWIG_PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
22408
22409
22410
22411
22412 # Extract the first word of "xmlto", so it can be a program name with args.
22413 set dummy xmlto; ac_word=$2
22414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22416 if test "${ac_cv_prog_XMLTO+set}" = set; then
22417   echo $ECHO_N "(cached) $ECHO_C" >&6
22418 else
22419   if test -n "$XMLTO"; then
22420   ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
22421 else
22422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22423 for as_dir in $PATH
22424 do
22425   IFS=$as_save_IFS
22426   test -z "$as_dir" && as_dir=.
22427   for ac_exec_ext in '' $ac_executable_extensions; do
22428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22429     ac_cv_prog_XMLTO="yes"
22430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22431     break 2
22432   fi
22433 done
22434 done
22435 IFS=$as_save_IFS
22436
22437 fi
22438 fi
22439 XMLTO=$ac_cv_prog_XMLTO
22440 if test -n "$XMLTO"; then
22441   { echo "$as_me:$LINENO: result: $XMLTO" >&5
22442 echo "${ECHO_T}$XMLTO" >&6; }
22443 else
22444   { echo "$as_me:$LINENO: result: no" >&5
22445 echo "${ECHO_T}no" >&6; }
22446 fi
22447
22448
22449
22450
22451 if test x$XMLTO = xyes; then
22452   HAS_XMLTO_TRUE=
22453   HAS_XMLTO_FALSE='#'
22454 else
22455   HAS_XMLTO_TRUE='#'
22456   HAS_XMLTO_FALSE=
22457 fi
22458
22459
22460
22461 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
22462 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
22463 if test "${ac_cv_lib_socket_socket+set}" = set; then
22464   echo $ECHO_N "(cached) $ECHO_C" >&6
22465 else
22466   ac_check_lib_save_LIBS=$LIBS
22467 LIBS="-lsocket  $LIBS"
22468 cat >conftest.$ac_ext <<_ACEOF
22469 /* confdefs.h.  */
22470 _ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h.  */
22474
22475 /* Override any GCC internal prototype to avoid an error.
22476    Use char because int might match the return type of a GCC
22477    builtin and then its argument prototype would still apply.  */
22478 #ifdef __cplusplus
22479 extern "C"
22480 #endif
22481 char socket ();
22482 int
22483 main ()
22484 {
22485 return socket ();
22486   ;
22487   return 0;
22488 }
22489 _ACEOF
22490 rm -f conftest.$ac_objext conftest$ac_exeext
22491 if { (ac_try="$ac_link"
22492 case "(($ac_try" in
22493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22494   *) ac_try_echo=$ac_try;;
22495 esac
22496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22497   (eval "$ac_link") 2>conftest.er1
22498   ac_status=$?
22499   grep -v '^ *+' conftest.er1 >conftest.err
22500   rm -f conftest.er1
22501   cat conftest.err >&5
22502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503   (exit $ac_status); } &&
22504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22505   { (case "(($ac_try" in
22506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22507   *) ac_try_echo=$ac_try;;
22508 esac
22509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22510   (eval "$ac_try") 2>&5
22511   ac_status=$?
22512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513   (exit $ac_status); }; } &&
22514          { ac_try='test -s conftest$ac_exeext'
22515   { (case "(($ac_try" in
22516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22517   *) ac_try_echo=$ac_try;;
22518 esac
22519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22520   (eval "$ac_try") 2>&5
22521   ac_status=$?
22522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523   (exit $ac_status); }; }; then
22524   ac_cv_lib_socket_socket=yes
22525 else
22526   echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22528
22529         ac_cv_lib_socket_socket=no
22530 fi
22531
22532 rm -f core conftest.err conftest.$ac_objext \
22533       conftest$ac_exeext conftest.$ac_ext
22534 LIBS=$ac_check_lib_save_LIBS
22535 fi
22536 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
22537 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
22538 if test $ac_cv_lib_socket_socket = yes; then
22539   cat >>confdefs.h <<_ACEOF
22540 #define HAVE_LIBSOCKET 1
22541 _ACEOF
22542
22543   LIBS="-lsocket $LIBS"
22544
22545 fi
22546
22547
22548
22549   # Check first for POSIX
22550
22551
22552
22553 ac_ext=c
22554 ac_cpp='$CPP $CPPFLAGS'
22555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22558
22559 acx_pthread_ok=no
22560
22561 # We used to check for pthread.h first, but this fails if pthread.h
22562 # requires special compiler flags (e.g. on True64 or Sequent).
22563 # It gets checked for in the link test anyway.
22564
22565 # First of all, check if the user has set any of the PTHREAD_LIBS,
22566 # etcetera environment variables, and if threads linking works using
22567 # them:
22568 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22569         save_CFLAGS="$CFLAGS"
22570         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22571         save_LIBS="$LIBS"
22572         LIBS="$PTHREAD_LIBS $LIBS"
22573         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22574 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
22575         cat >conftest.$ac_ext <<_ACEOF
22576 /* confdefs.h.  */
22577 _ACEOF
22578 cat confdefs.h >>conftest.$ac_ext
22579 cat >>conftest.$ac_ext <<_ACEOF
22580 /* end confdefs.h.  */
22581
22582 /* Override any GCC internal prototype to avoid an error.
22583    Use char because int might match the return type of a GCC
22584    builtin and then its argument prototype would still apply.  */
22585 #ifdef __cplusplus
22586 extern "C"
22587 #endif
22588 char pthread_join ();
22589 int
22590 main ()
22591 {
22592 return pthread_join ();
22593   ;
22594   return 0;
22595 }
22596 _ACEOF
22597 rm -f conftest.$ac_objext conftest$ac_exeext
22598 if { (ac_try="$ac_link"
22599 case "(($ac_try" in
22600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601   *) ac_try_echo=$ac_try;;
22602 esac
22603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22604   (eval "$ac_link") 2>conftest.er1
22605   ac_status=$?
22606   grep -v '^ *+' conftest.er1 >conftest.err
22607   rm -f conftest.er1
22608   cat conftest.err >&5
22609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); } &&
22611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22612   { (case "(($ac_try" in
22613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614   *) ac_try_echo=$ac_try;;
22615 esac
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617   (eval "$ac_try") 2>&5
22618   ac_status=$?
22619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620   (exit $ac_status); }; } &&
22621          { ac_try='test -s conftest$ac_exeext'
22622   { (case "(($ac_try" in
22623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22624   *) ac_try_echo=$ac_try;;
22625 esac
22626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22627   (eval "$ac_try") 2>&5
22628   ac_status=$?
22629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630   (exit $ac_status); }; }; then
22631   acx_pthread_ok=yes
22632 else
22633   echo "$as_me: failed program was:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22635
22636
22637 fi
22638
22639 rm -f core conftest.err conftest.$ac_objext \
22640       conftest$ac_exeext conftest.$ac_ext
22641         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22642 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22643         if test x"$acx_pthread_ok" = xno; then
22644                 PTHREAD_LIBS=""
22645                 PTHREAD_CFLAGS=""
22646         fi
22647         LIBS="$save_LIBS"
22648         CFLAGS="$save_CFLAGS"
22649 fi
22650
22651 # We must check for the threads library under a number of different
22652 # names; the ordering is very important because some systems
22653 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22654 # libraries is broken (non-POSIX).
22655
22656 # Create a list of thread flags to try.  Items starting with a "-" are
22657 # C compiler flags, and other items are library names, except for "none"
22658 # which indicates that we try without any flags at all.
22659
22660 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
22661
22662 # The ordering *is* (sometimes) important.  Some notes on the
22663 # individual items follow:
22664
22665 # pthreads: AIX (must check this before -lpthread)
22666 # none: in case threads are in libc; should be tried before -Kthread and
22667 #       other compiler flags to prevent continual compiler warnings
22668 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22669 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22670 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22671 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22672 # -pthreads: Solaris/gcc
22673 # -mthreads: Mingw32/gcc, Lynx/gcc
22674 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22675 #      doesn't hurt to check since this sometimes defines pthreads too;
22676 #      also defines -D_REENTRANT)
22677 # pthread: Linux, etcetera
22678 # --thread-safe: KAI C++
22679
22680 case "${host_cpu}-${host_os}" in
22681         *solaris*)
22682
22683         # On Solaris (at least, for some versions), libc contains stubbed
22684         # (non-functional) versions of the pthreads routines, so link-based
22685         # tests will erroneously succeed.  (We need to link with -pthread or
22686         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22687         # a function called by this macro, so we could check for that, but
22688         # who knows whether they'll stub that too in a future libc.)  So,
22689         # we'll just look for -pthreads and -lpthread first:
22690
22691         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22692         ;;
22693 esac
22694
22695 if test x"$acx_pthread_ok" = xno; then
22696 for flag in $acx_pthread_flags; do
22697
22698         case $flag in
22699                 none)
22700                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22701 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
22702                 ;;
22703
22704                 -*)
22705                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22706 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
22707                 PTHREAD_CFLAGS="$flag"
22708                 ;;
22709
22710                 *)
22711                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22712 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
22713                 PTHREAD_LIBS="-l$flag"
22714                 ;;
22715         esac
22716
22717         save_LIBS="$LIBS"
22718         save_CFLAGS="$CFLAGS"
22719         LIBS="$PTHREAD_LIBS $LIBS"
22720         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22721
22722         # Check for various functions.  We must include pthread.h,
22723         # since some functions may be macros.  (On the Sequent, we
22724         # need a special flag -Kthread to make this header compile.)
22725         # We check for pthread_join because it is in -lpthread on IRIX
22726         # while pthread_create is in libc.  We check for pthread_attr_init
22727         # due to DEC craziness with -lpthreads.  We check for
22728         # pthread_cleanup_push because it is one of the few pthread
22729         # functions on Solaris that doesn't have a non-functional libc stub.
22730         # We try pthread_create on general principles.
22731         cat >conftest.$ac_ext <<_ACEOF
22732 /* confdefs.h.  */
22733 _ACEOF
22734 cat confdefs.h >>conftest.$ac_ext
22735 cat >>conftest.$ac_ext <<_ACEOF
22736 /* end confdefs.h.  */
22737 #include <pthread.h>
22738 int
22739 main ()
22740 {
22741 pthread_t th; pthread_join(th, 0);
22742                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22743                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22744   ;
22745   return 0;
22746 }
22747 _ACEOF
22748 rm -f conftest.$ac_objext conftest$ac_exeext
22749 if { (ac_try="$ac_link"
22750 case "(($ac_try" in
22751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22752   *) ac_try_echo=$ac_try;;
22753 esac
22754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22755   (eval "$ac_link") 2>conftest.er1
22756   ac_status=$?
22757   grep -v '^ *+' conftest.er1 >conftest.err
22758   rm -f conftest.er1
22759   cat conftest.err >&5
22760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761   (exit $ac_status); } &&
22762          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22763   { (case "(($ac_try" in
22764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22765   *) ac_try_echo=$ac_try;;
22766 esac
22767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22768   (eval "$ac_try") 2>&5
22769   ac_status=$?
22770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771   (exit $ac_status); }; } &&
22772          { ac_try='test -s conftest$ac_exeext'
22773   { (case "(($ac_try" in
22774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22775   *) ac_try_echo=$ac_try;;
22776 esac
22777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22778   (eval "$ac_try") 2>&5
22779   ac_status=$?
22780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781   (exit $ac_status); }; }; then
22782   acx_pthread_ok=yes
22783 else
22784   echo "$as_me: failed program was:" >&5
22785 sed 's/^/| /' conftest.$ac_ext >&5
22786
22787
22788 fi
22789
22790 rm -f core conftest.err conftest.$ac_objext \
22791       conftest$ac_exeext conftest.$ac_ext
22792
22793         LIBS="$save_LIBS"
22794         CFLAGS="$save_CFLAGS"
22795
22796         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22797 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22798         if test "x$acx_pthread_ok" = xyes; then
22799                 break;
22800         fi
22801
22802         PTHREAD_LIBS=""
22803         PTHREAD_CFLAGS=""
22804 done
22805 fi
22806
22807 # Various other checks:
22808 if test "x$acx_pthread_ok" = xyes; then
22809         save_LIBS="$LIBS"
22810         LIBS="$PTHREAD_LIBS $LIBS"
22811         save_CFLAGS="$CFLAGS"
22812         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22813
22814         # Detect AIX lossage: threads are created detached by default
22815         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22816         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22817 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
22818         cat >conftest.$ac_ext <<_ACEOF
22819 /* confdefs.h.  */
22820 _ACEOF
22821 cat confdefs.h >>conftest.$ac_ext
22822 cat >>conftest.$ac_ext <<_ACEOF
22823 /* end confdefs.h.  */
22824 #include <pthread.h>
22825 int
22826 main ()
22827 {
22828 int attr=PTHREAD_CREATE_JOINABLE;
22829   ;
22830   return 0;
22831 }
22832 _ACEOF
22833 rm -f conftest.$ac_objext conftest$ac_exeext
22834 if { (ac_try="$ac_link"
22835 case "(($ac_try" in
22836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22837   *) ac_try_echo=$ac_try;;
22838 esac
22839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22840   (eval "$ac_link") 2>conftest.er1
22841   ac_status=$?
22842   grep -v '^ *+' conftest.er1 >conftest.err
22843   rm -f conftest.er1
22844   cat conftest.err >&5
22845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846   (exit $ac_status); } &&
22847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22848   { (case "(($ac_try" in
22849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850   *) ac_try_echo=$ac_try;;
22851 esac
22852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22853   (eval "$ac_try") 2>&5
22854   ac_status=$?
22855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856   (exit $ac_status); }; } &&
22857          { ac_try='test -s conftest$ac_exeext'
22858   { (case "(($ac_try" in
22859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860   *) ac_try_echo=$ac_try;;
22861 esac
22862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863   (eval "$ac_try") 2>&5
22864   ac_status=$?
22865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866   (exit $ac_status); }; }; then
22867   ok=PTHREAD_CREATE_JOINABLE
22868 else
22869   echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22871
22872         ok=unknown
22873 fi
22874
22875 rm -f core conftest.err conftest.$ac_objext \
22876       conftest$ac_exeext conftest.$ac_ext
22877         if test x"$ok" = xunknown; then
22878                 cat >conftest.$ac_ext <<_ACEOF
22879 /* confdefs.h.  */
22880 _ACEOF
22881 cat confdefs.h >>conftest.$ac_ext
22882 cat >>conftest.$ac_ext <<_ACEOF
22883 /* end confdefs.h.  */
22884 #include <pthread.h>
22885 int
22886 main ()
22887 {
22888 int attr=PTHREAD_CREATE_UNDETACHED;
22889   ;
22890   return 0;
22891 }
22892 _ACEOF
22893 rm -f conftest.$ac_objext conftest$ac_exeext
22894 if { (ac_try="$ac_link"
22895 case "(($ac_try" in
22896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22897   *) ac_try_echo=$ac_try;;
22898 esac
22899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22900   (eval "$ac_link") 2>conftest.er1
22901   ac_status=$?
22902   grep -v '^ *+' conftest.er1 >conftest.err
22903   rm -f conftest.er1
22904   cat conftest.err >&5
22905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906   (exit $ac_status); } &&
22907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22908   { (case "(($ac_try" in
22909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22910   *) ac_try_echo=$ac_try;;
22911 esac
22912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22913   (eval "$ac_try") 2>&5
22914   ac_status=$?
22915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916   (exit $ac_status); }; } &&
22917          { ac_try='test -s conftest$ac_exeext'
22918   { (case "(($ac_try" in
22919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920   *) ac_try_echo=$ac_try;;
22921 esac
22922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923   (eval "$ac_try") 2>&5
22924   ac_status=$?
22925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926   (exit $ac_status); }; }; then
22927   ok=PTHREAD_CREATE_UNDETACHED
22928 else
22929   echo "$as_me: failed program was:" >&5
22930 sed 's/^/| /' conftest.$ac_ext >&5
22931
22932         ok=unknown
22933 fi
22934
22935 rm -f core conftest.err conftest.$ac_objext \
22936       conftest$ac_exeext conftest.$ac_ext
22937         fi
22938         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22939
22940 cat >>confdefs.h <<\_ACEOF
22941 #define PTHREAD_CREATE_JOINABLE $ok
22942 _ACEOF
22943
22944         fi
22945         { echo "$as_me:$LINENO: result: ${ok}" >&5
22946 echo "${ECHO_T}${ok}" >&6; }
22947         if test x"$ok" = xunknown; then
22948                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22949 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22950         fi
22951
22952         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22953 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
22954         flag=no
22955         case "${host_cpu}-${host_os}" in
22956                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
22957                 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22958         esac
22959         { echo "$as_me:$LINENO: result: ${flag}" >&5
22960 echo "${ECHO_T}${flag}" >&6; }
22961         if test "x$flag" != xno; then
22962                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22963         fi
22964
22965         LIBS="$save_LIBS"
22966         CFLAGS="$save_CFLAGS"
22967
22968         # More AIX lossage: must compile with cc_r
22969         # Extract the first word of "cc_r", so it can be a program name with args.
22970 set dummy cc_r; ac_word=$2
22971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22973 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22974   echo $ECHO_N "(cached) $ECHO_C" >&6
22975 else
22976   if test -n "$PTHREAD_CC"; then
22977   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22978 else
22979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22980 for as_dir in $PATH
22981 do
22982   IFS=$as_save_IFS
22983   test -z "$as_dir" && as_dir=.
22984   for ac_exec_ext in '' $ac_executable_extensions; do
22985   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22986     ac_cv_prog_PTHREAD_CC="cc_r"
22987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22988     break 2
22989   fi
22990 done
22991 done
22992 IFS=$as_save_IFS
22993
22994   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
22995 fi
22996 fi
22997 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22998 if test -n "$PTHREAD_CC"; then
22999   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23000 echo "${ECHO_T}$PTHREAD_CC" >&6; }
23001 else
23002   { echo "$as_me:$LINENO: result: no" >&5
23003 echo "${ECHO_T}no" >&6; }
23004 fi
23005
23006
23007 else
23008         PTHREAD_CC="$CC"
23009 fi
23010
23011
23012
23013
23014
23015 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23016 if test x"$acx_pthread_ok" = xyes; then
23017          ot_posix="yes"
23018
23019 cat >>confdefs.h <<\_ACEOF
23020 #define OMNITHREAD_POSIX 1
23021 _ACEOF
23022
23023
23024         :
23025 else
23026         acx_pthread_ok=no
23027
23028     # If no POSIX support found, then check for NT threads
23029     { echo "$as_me:$LINENO: checking for NT threads" >&5
23030 echo $ECHO_N "checking for NT threads... $ECHO_C" >&6; }
23031
23032     cat >conftest.$ac_ext <<_ACEOF
23033
23034         #include <windows.h>
23035         #include <winbase.h>
23036         int main() { InitializeCriticalSection(NULL); return 0; }
23037
23038 _ACEOF
23039 rm -f conftest.$ac_objext conftest$ac_exeext
23040 if { (ac_try="$ac_link"
23041 case "(($ac_try" in
23042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23043   *) ac_try_echo=$ac_try;;
23044 esac
23045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23046   (eval "$ac_link") 2>conftest.er1
23047   ac_status=$?
23048   grep -v '^ *+' conftest.er1 >conftest.err
23049   rm -f conftest.er1
23050   cat conftest.err >&5
23051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052   (exit $ac_status); } &&
23053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23054   { (case "(($ac_try" in
23055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23056   *) ac_try_echo=$ac_try;;
23057 esac
23058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23059   (eval "$ac_try") 2>&5
23060   ac_status=$?
23061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062   (exit $ac_status); }; } &&
23063          { ac_try='test -s conftest$ac_exeext'
23064   { (case "(($ac_try" in
23065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23066   *) ac_try_echo=$ac_try;;
23067 esac
23068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23069   (eval "$ac_try") 2>&5
23070   ac_status=$?
23071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072   (exit $ac_status); }; }; then
23073
23074         ot_nt="yes"
23075
23076 cat >>confdefs.h <<\_ACEOF
23077 #define OMNITHREAD_NT 1
23078 _ACEOF
23079
23080
23081 else
23082   echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23084
23085         { { echo "$as_me:$LINENO: error: GNU Radio requires POSIX threads.  pthreads not found.
23086 See \`config.log' for more details." >&5
23087 echo "$as_me: error: GNU Radio requires POSIX threads.  pthreads not found.
23088 See \`config.log' for more details." >&2;}
23089    { (exit 1); exit 1; }; }
23090
23091 fi
23092
23093 rm -f core conftest.err conftest.$ac_objext \
23094       conftest$ac_exeext conftest.$ac_ext
23095     { echo "$as_me:$LINENO: result: yes" >&5
23096 echo "${ECHO_T}yes" >&6; }
23097
23098 fi
23099 ac_ext=c
23100 ac_cpp='$CPP $CPPFLAGS'
23101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23104
23105
23106
23107
23108 if test "x$ot_posix" = xyes; then
23109   OMNITHREAD_POSIX_TRUE=
23110   OMNITHREAD_POSIX_FALSE='#'
23111 else
23112   OMNITHREAD_POSIX_TRUE='#'
23113   OMNITHREAD_POSIX_FALSE=
23114 fi
23115
23116
23117
23118 if test "x$ot_nt" = xyes; then
23119   OMNITHREAD_NT_TRUE=
23120   OMNITHREAD_NT_FALSE='#'
23121 else
23122   OMNITHREAD_NT_TRUE='#'
23123   OMNITHREAD_NT_FALSE=
23124 fi
23125
23126
23127   save_LIBS="$LIBS"
23128   { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
23129 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
23130 if test "${ac_cv_search_clock_gettime+set}" = set; then
23131   echo $ECHO_N "(cached) $ECHO_C" >&6
23132 else
23133   ac_func_search_save_LIBS=$LIBS
23134 cat >conftest.$ac_ext <<_ACEOF
23135 /* confdefs.h.  */
23136 _ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h.  */
23140
23141 /* Override any GCC internal prototype to avoid an error.
23142    Use char because int might match the return type of a GCC
23143    builtin and then its argument prototype would still apply.  */
23144 #ifdef __cplusplus
23145 extern "C"
23146 #endif
23147 char clock_gettime ();
23148 int
23149 main ()
23150 {
23151 return clock_gettime ();
23152   ;
23153   return 0;
23154 }
23155 _ACEOF
23156 for ac_lib in '' rt; do
23157   if test -z "$ac_lib"; then
23158     ac_res="none required"
23159   else
23160     ac_res=-l$ac_lib
23161     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23162   fi
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23170   (eval "$ac_link") 2>conftest.er1
23171   ac_status=$?
23172   grep -v '^ *+' conftest.er1 >conftest.err
23173   rm -f conftest.er1
23174   cat conftest.err >&5
23175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176   (exit $ac_status); } &&
23177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23178   { (case "(($ac_try" in
23179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23180   *) ac_try_echo=$ac_try;;
23181 esac
23182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23183   (eval "$ac_try") 2>&5
23184   ac_status=$?
23185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186   (exit $ac_status); }; } &&
23187          { ac_try='test -s conftest$ac_exeext'
23188   { (case "(($ac_try" in
23189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23190   *) ac_try_echo=$ac_try;;
23191 esac
23192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23193   (eval "$ac_try") 2>&5
23194   ac_status=$?
23195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196   (exit $ac_status); }; }; then
23197   ac_cv_search_clock_gettime=$ac_res
23198 else
23199   echo "$as_me: failed program was:" >&5
23200 sed 's/^/| /' conftest.$ac_ext >&5
23201
23202
23203 fi
23204
23205 rm -f core conftest.err conftest.$ac_objext \
23206       conftest$ac_exeext
23207   if test "${ac_cv_search_clock_gettime+set}" = set; then
23208   break
23209 fi
23210 done
23211 if test "${ac_cv_search_clock_gettime+set}" = set; then
23212   :
23213 else
23214   ac_cv_search_clock_gettime=no
23215 fi
23216 rm conftest.$ac_ext
23217 LIBS=$ac_func_search_save_LIBS
23218 fi
23219 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
23220 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
23221 ac_res=$ac_cv_search_clock_gettime
23222 if test "$ac_res" != no; then
23223   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23224   PTHREAD_LIBS="$PTHREAD_LIBS $LIBS"
23225 fi
23226
23227
23228
23229
23230 for ac_func in clock_gettime gettimeofday nanosleep
23231 do
23232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23236   echo $ECHO_N "(cached) $ECHO_C" >&6
23237 else
23238   cat >conftest.$ac_ext <<_ACEOF
23239 /* confdefs.h.  */
23240 _ACEOF
23241 cat confdefs.h >>conftest.$ac_ext
23242 cat >>conftest.$ac_ext <<_ACEOF
23243 /* end confdefs.h.  */
23244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23246 #define $ac_func innocuous_$ac_func
23247
23248 /* System header to define __stub macros and hopefully few prototypes,
23249     which can conflict with char $ac_func (); below.
23250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23251     <limits.h> exists even on freestanding compilers.  */
23252
23253 #ifdef __STDC__
23254 # include <limits.h>
23255 #else
23256 # include <assert.h>
23257 #endif
23258
23259 #undef $ac_func
23260
23261 /* Override any GCC internal prototype to avoid an error.
23262    Use char because int might match the return type of a GCC
23263    builtin and then its argument prototype would still apply.  */
23264 #ifdef __cplusplus
23265 extern "C"
23266 #endif
23267 char $ac_func ();
23268 /* The GNU C library defines this for functions which it implements
23269     to always fail with ENOSYS.  Some functions are actually named
23270     something starting with __ and the normal name is an alias.  */
23271 #if defined __stub_$ac_func || defined __stub___$ac_func
23272 choke me
23273 #endif
23274
23275 int
23276 main ()
23277 {
23278 return $ac_func ();
23279   ;
23280   return 0;
23281 }
23282 _ACEOF
23283 rm -f conftest.$ac_objext conftest$ac_exeext
23284 if { (ac_try="$ac_link"
23285 case "(($ac_try" in
23286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287   *) ac_try_echo=$ac_try;;
23288 esac
23289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23290   (eval "$ac_link") 2>conftest.er1
23291   ac_status=$?
23292   grep -v '^ *+' conftest.er1 >conftest.err
23293   rm -f conftest.er1
23294   cat conftest.err >&5
23295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296   (exit $ac_status); } &&
23297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23298   { (case "(($ac_try" in
23299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23300   *) ac_try_echo=$ac_try;;
23301 esac
23302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23303   (eval "$ac_try") 2>&5
23304   ac_status=$?
23305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306   (exit $ac_status); }; } &&
23307          { ac_try='test -s conftest$ac_exeext'
23308   { (case "(($ac_try" in
23309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23310   *) ac_try_echo=$ac_try;;
23311 esac
23312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23313   (eval "$ac_try") 2>&5
23314   ac_status=$?
23315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316   (exit $ac_status); }; }; then
23317   eval "$as_ac_var=yes"
23318 else
23319   echo "$as_me: failed program was:" >&5
23320 sed 's/^/| /' conftest.$ac_ext >&5
23321
23322         eval "$as_ac_var=no"
23323 fi
23324
23325 rm -f core conftest.err conftest.$ac_objext \
23326       conftest$ac_exeext conftest.$ac_ext
23327 fi
23328 ac_res=`eval echo '${'$as_ac_var'}'`
23329                { echo "$as_me:$LINENO: result: $ac_res" >&5
23330 echo "${ECHO_T}$ac_res" >&6; }
23331 if test `eval echo '${'$as_ac_var'}'` = yes; then
23332   cat >>confdefs.h <<_ACEOF
23333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23334 _ACEOF
23335
23336 fi
23337 done
23338
23339   LIBS="$save_LIBS"
23340
23341 #AC_SUBST(PTHREAD_CFLAGS)
23342 CFLAGS="${CFLAGS} $PTHREAD_CFLAGS"
23343 CXXFLAGS="${CXXFLAGS} $PTHREAD_CFLAGS"
23344
23345 if test "x$CXX_FOR_BUILD" = x
23346 then
23347   CXX_FOR_BUILD=${CXX}
23348 fi
23349
23350
23351
23352
23353         ac_ext=c
23354 ac_cpp='$CPP $CPPFLAGS'
23355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23358
23359
23360
23361
23362 for ac_header in sys/ipc.h sys/shm.h
23363 do
23364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23366   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23369   echo $ECHO_N "(cached) $ECHO_C" >&6
23370 fi
23371 ac_res=`eval echo '${'$as_ac_Header'}'`
23372                { echo "$as_me:$LINENO: result: $ac_res" >&5
23373 echo "${ECHO_T}$ac_res" >&6; }
23374 else
23375   # Is the header compilable?
23376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23378 cat >conftest.$ac_ext <<_ACEOF
23379 /* confdefs.h.  */
23380 _ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h.  */
23384 $ac_includes_default
23385 #include <$ac_header>
23386 _ACEOF
23387 rm -f conftest.$ac_objext
23388 if { (ac_try="$ac_compile"
23389 case "(($ac_try" in
23390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23391   *) ac_try_echo=$ac_try;;
23392 esac
23393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23394   (eval "$ac_compile") 2>conftest.er1
23395   ac_status=$?
23396   grep -v '^ *+' conftest.er1 >conftest.err
23397   rm -f conftest.er1
23398   cat conftest.err >&5
23399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400   (exit $ac_status); } &&
23401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23402   { (case "(($ac_try" in
23403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23404   *) ac_try_echo=$ac_try;;
23405 esac
23406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23407   (eval "$ac_try") 2>&5
23408   ac_status=$?
23409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410   (exit $ac_status); }; } &&
23411          { ac_try='test -s conftest.$ac_objext'
23412   { (case "(($ac_try" in
23413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23414   *) ac_try_echo=$ac_try;;
23415 esac
23416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23417   (eval "$ac_try") 2>&5
23418   ac_status=$?
23419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420   (exit $ac_status); }; }; then
23421   ac_header_compiler=yes
23422 else
23423   echo "$as_me: failed program was:" >&5
23424 sed 's/^/| /' conftest.$ac_ext >&5
23425
23426         ac_header_compiler=no
23427 fi
23428
23429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23431 echo "${ECHO_T}$ac_header_compiler" >&6; }
23432
23433 # Is the header present?
23434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23436 cat >conftest.$ac_ext <<_ACEOF
23437 /* confdefs.h.  */
23438 _ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h.  */
23442 #include <$ac_header>
23443 _ACEOF
23444 if { (ac_try="$ac_cpp conftest.$ac_ext"
23445 case "(($ac_try" in
23446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447   *) ac_try_echo=$ac_try;;
23448 esac
23449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23450   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23451   ac_status=$?
23452   grep -v '^ *+' conftest.er1 >conftest.err
23453   rm -f conftest.er1
23454   cat conftest.err >&5
23455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456   (exit $ac_status); } >/dev/null; then
23457   if test -s conftest.err; then
23458     ac_cpp_err=$ac_c_preproc_warn_flag
23459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23460   else
23461     ac_cpp_err=
23462   fi
23463 else
23464   ac_cpp_err=yes
23465 fi
23466 if test -z "$ac_cpp_err"; then
23467   ac_header_preproc=yes
23468 else
23469   echo "$as_me: failed program was:" >&5
23470 sed 's/^/| /' conftest.$ac_ext >&5
23471
23472   ac_header_preproc=no
23473 fi
23474
23475 rm -f conftest.err conftest.$ac_ext
23476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23477 echo "${ECHO_T}$ac_header_preproc" >&6; }
23478
23479 # So?  What about this header?
23480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23481   yes:no: )
23482     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23484     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23486     ac_header_preproc=yes
23487     ;;
23488   no:yes:* )
23489     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23491     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23492 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23493     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23495     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23496 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23499     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23501
23502     ;;
23503 esac
23504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23507   echo $ECHO_N "(cached) $ECHO_C" >&6
23508 else
23509   eval "$as_ac_Header=\$ac_header_preproc"
23510 fi
23511 ac_res=`eval echo '${'$as_ac_Header'}'`
23512                { echo "$as_me:$LINENO: result: $ac_res" >&5
23513 echo "${ECHO_T}$ac_res" >&6; }
23514
23515 fi
23516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23517   cat >>confdefs.h <<_ACEOF
23518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23519 _ACEOF
23520
23521 fi
23522
23523 done
23524
23525
23526         save_LIBS="$LIBS"
23527         { echo "$as_me:$LINENO: checking for library containing shmat" >&5
23528 echo $ECHO_N "checking for library containing shmat... $ECHO_C" >&6; }
23529 if test "${ac_cv_search_shmat+set}" = set; then
23530   echo $ECHO_N "(cached) $ECHO_C" >&6
23531 else
23532   ac_func_search_save_LIBS=$LIBS
23533 cat >conftest.$ac_ext <<_ACEOF
23534 /* confdefs.h.  */
23535 _ACEOF
23536 cat confdefs.h >>conftest.$ac_ext
23537 cat >>conftest.$ac_ext <<_ACEOF
23538 /* end confdefs.h.  */
23539
23540 /* Override any GCC internal prototype to avoid an error.
23541    Use char because int might match the return type of a GCC
23542    builtin and then its argument prototype would still apply.  */
23543 #ifdef __cplusplus
23544 extern "C"
23545 #endif
23546 char shmat ();
23547 int
23548 main ()
23549 {
23550 return shmat ();
23551   ;
23552   return 0;
23553 }
23554 _ACEOF
23555 for ac_lib in '' cygipc ipc; do
23556   if test -z "$ac_lib"; then
23557     ac_res="none required"
23558   else
23559     ac_res=-l$ac_lib
23560     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23561   fi
23562   rm -f conftest.$ac_objext conftest$ac_exeext
23563 if { (ac_try="$ac_link"
23564 case "(($ac_try" in
23565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23566   *) ac_try_echo=$ac_try;;
23567 esac
23568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23569   (eval "$ac_link") 2>conftest.er1
23570   ac_status=$?
23571   grep -v '^ *+' conftest.er1 >conftest.err
23572   rm -f conftest.er1
23573   cat conftest.err >&5
23574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575   (exit $ac_status); } &&
23576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23577   { (case "(($ac_try" in
23578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579   *) ac_try_echo=$ac_try;;
23580 esac
23581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23582   (eval "$ac_try") 2>&5
23583   ac_status=$?
23584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585   (exit $ac_status); }; } &&
23586          { ac_try='test -s conftest$ac_exeext'
23587   { (case "(($ac_try" in
23588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23589   *) ac_try_echo=$ac_try;;
23590 esac
23591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23592   (eval "$ac_try") 2>&5
23593   ac_status=$?
23594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595   (exit $ac_status); }; }; then
23596   ac_cv_search_shmat=$ac_res
23597 else
23598   echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23600
23601
23602 fi
23603
23604 rm -f core conftest.err conftest.$ac_objext \
23605       conftest$ac_exeext
23606   if test "${ac_cv_search_shmat+set}" = set; then
23607   break
23608 fi
23609 done
23610 if test "${ac_cv_search_shmat+set}" = set; then
23611   :
23612 else
23613   ac_cv_search_shmat=no
23614 fi
23615 rm conftest.$ac_ext
23616 LIBS=$ac_func_search_save_LIBS
23617 fi
23618 { echo "$as_me:$LINENO: result: $ac_cv_search_shmat" >&5
23619 echo "${ECHO_T}$ac_cv_search_shmat" >&6; }
23620 ac_res=$ac_cv_search_shmat
23621 if test "$ac_res" != no; then
23622   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23623    IPC_LIBS="$LIBS"
23624 else
23625    { echo "$as_me:$LINENO: WARNING: SystemV IPC support not found. " >&5
23626 echo "$as_me: WARNING: SystemV IPC support not found. " >&2;}
23627
23628 fi
23629
23630         LIBS="$save_LIBS"
23631
23632         ac_ext=c
23633 ac_cpp='$CPP $CPPFLAGS'
23634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23637
23638
23639
23640
23641 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23642 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
23643 if test "${ac_cv_header_stdc+set}" = set; then
23644   echo $ECHO_N "(cached) $ECHO_C" >&6
23645 else
23646   cat >conftest.$ac_ext <<_ACEOF
23647 /* confdefs.h.  */
23648 _ACEOF
23649 cat confdefs.h >>conftest.$ac_ext
23650 cat >>conftest.$ac_ext <<_ACEOF
23651 /* end confdefs.h.  */
23652 #include <stdlib.h>
23653 #include <stdarg.h>
23654 #include <string.h>
23655 #include <float.h>
23656
23657 int
23658 main ()
23659 {
23660
23661   ;
23662   return 0;
23663 }
23664 _ACEOF
23665 rm -f conftest.$ac_objext
23666 if { (ac_try="$ac_compile"
23667 case "(($ac_try" in
23668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23669   *) ac_try_echo=$ac_try;;
23670 esac
23671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23672   (eval "$ac_compile") 2>conftest.er1
23673   ac_status=$?
23674   grep -v '^ *+' conftest.er1 >conftest.err
23675   rm -f conftest.er1
23676   cat conftest.err >&5
23677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678   (exit $ac_status); } &&
23679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23680   { (case "(($ac_try" in
23681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23682   *) ac_try_echo=$ac_try;;
23683 esac
23684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23685   (eval "$ac_try") 2>&5
23686   ac_status=$?
23687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688   (exit $ac_status); }; } &&
23689          { ac_try='test -s conftest.$ac_objext'
23690   { (case "(($ac_try" in
23691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23692   *) ac_try_echo=$ac_try;;
23693 esac
23694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23695   (eval "$ac_try") 2>&5
23696   ac_status=$?
23697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698   (exit $ac_status); }; }; then
23699   ac_cv_header_stdc=yes
23700 else
23701   echo "$as_me: failed program was:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23703
23704         ac_cv_header_stdc=no
23705 fi
23706
23707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23708
23709 if test $ac_cv_header_stdc = yes; then
23710   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23711   cat >conftest.$ac_ext <<_ACEOF
23712 /* confdefs.h.  */
23713 _ACEOF
23714 cat confdefs.h >>conftest.$ac_ext
23715 cat >>conftest.$ac_ext <<_ACEOF
23716 /* end confdefs.h.  */
23717 #include <string.h>
23718
23719 _ACEOF
23720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23721   $EGREP "memchr" >/dev/null 2>&1; then
23722   :
23723 else
23724   ac_cv_header_stdc=no
23725 fi
23726 rm -f conftest*
23727
23728 fi
23729
23730 if test $ac_cv_header_stdc = yes; then
23731   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23732   cat >conftest.$ac_ext <<_ACEOF
23733 /* confdefs.h.  */
23734 _ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h.  */
23738 #include <stdlib.h>
23739
23740 _ACEOF
23741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23742   $EGREP "free" >/dev/null 2>&1; then
23743   :
23744 else
23745   ac_cv_header_stdc=no
23746 fi
23747 rm -f conftest*
23748
23749 fi
23750
23751 if test $ac_cv_header_stdc = yes; then
23752   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23753   if test "$cross_compiling" = yes; then
23754   :
23755 else
23756   cat >conftest.$ac_ext <<_ACEOF
23757 /* confdefs.h.  */
23758 _ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h.  */
23762 #include <ctype.h>
23763 #include <stdlib.h>
23764 #if ((' ' & 0x0FF) == 0x020)
23765 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23766 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23767 #else
23768 # define ISLOWER(c) \
23769                    (('a' <= (c) && (c) <= 'i') \
23770                      || ('j' <= (c) && (c) <= 'r') \
23771                      || ('s' <= (c) && (c) <= 'z'))
23772 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23773 #endif
23774
23775 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23776 int
23777 main ()
23778 {
23779   int i;
23780   for (i = 0; i < 256; i++)
23781     if (XOR (islower (i), ISLOWER (i))
23782         || toupper (i) != TOUPPER (i))
23783       return 2;
23784   return 0;
23785 }
23786 _ACEOF
23787 rm -f conftest$ac_exeext
23788 if { (ac_try="$ac_link"
23789 case "(($ac_try" in
23790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23791   *) ac_try_echo=$ac_try;;
23792 esac
23793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23794   (eval "$ac_link") 2>&5
23795   ac_status=$?
23796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23798   { (case "(($ac_try" in
23799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23800   *) ac_try_echo=$ac_try;;
23801 esac
23802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23803   (eval "$ac_try") 2>&5
23804   ac_status=$?
23805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806   (exit $ac_status); }; }; then
23807   :
23808 else
23809   echo "$as_me: program exited with status $ac_status" >&5
23810 echo "$as_me: failed program was:" >&5
23811 sed 's/^/| /' conftest.$ac_ext >&5
23812
23813 ( exit $ac_status )
23814 ac_cv_header_stdc=no
23815 fi
23816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23817 fi
23818
23819
23820 fi
23821 fi
23822 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23823 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
23824 if test $ac_cv_header_stdc = yes; then
23825
23826 cat >>confdefs.h <<\_ACEOF
23827 #define STDC_HEADERS 1
23828 _ACEOF
23829
23830 fi
23831
23832 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23833 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
23834 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23835   echo $ECHO_N "(cached) $ECHO_C" >&6
23836 else
23837   cat >conftest.$ac_ext <<_ACEOF
23838 /* confdefs.h.  */
23839 _ACEOF
23840 cat confdefs.h >>conftest.$ac_ext
23841 cat >>conftest.$ac_ext <<_ACEOF
23842 /* end confdefs.h.  */
23843 #include <sys/types.h>
23844 #include <sys/wait.h>
23845 #ifndef WEXITSTATUS
23846 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
23847 #endif
23848 #ifndef WIFEXITED
23849 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23850 #endif
23851
23852 int
23853 main ()
23854 {
23855   int s;
23856   wait (&s);
23857   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23858   ;
23859   return 0;
23860 }
23861 _ACEOF
23862 rm -f conftest.$ac_objext
23863 if { (ac_try="$ac_compile"
23864 case "(($ac_try" in
23865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23866   *) ac_try_echo=$ac_try;;
23867 esac
23868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23869   (eval "$ac_compile") 2>conftest.er1
23870   ac_status=$?
23871   grep -v '^ *+' conftest.er1 >conftest.err
23872   rm -f conftest.er1
23873   cat conftest.err >&5
23874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23875   (exit $ac_status); } &&
23876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23877   { (case "(($ac_try" in
23878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23879   *) ac_try_echo=$ac_try;;
23880 esac
23881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23882   (eval "$ac_try") 2>&5
23883   ac_status=$?
23884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885   (exit $ac_status); }; } &&
23886          { ac_try='test -s conftest.$ac_objext'
23887   { (case "(($ac_try" in
23888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23889   *) ac_try_echo=$ac_try;;
23890 esac
23891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23892   (eval "$ac_try") 2>&5
23893   ac_status=$?
23894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895   (exit $ac_status); }; }; then
23896   ac_cv_header_sys_wait_h=yes
23897 else
23898   echo "$as_me: failed program was:" >&5
23899 sed 's/^/| /' conftest.$ac_ext >&5
23900
23901         ac_cv_header_sys_wait_h=no
23902 fi
23903
23904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23905 fi
23906 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23907 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
23908 if test $ac_cv_header_sys_wait_h = yes; then
23909
23910 cat >>confdefs.h <<\_ACEOF
23911 #define HAVE_SYS_WAIT_H 1
23912 _ACEOF
23913
23914 fi
23915
23916
23917
23918
23919
23920
23921
23922
23923 for ac_header in fcntl.h limits.h strings.h time.h sys/ioctl.h sys/time.h unistd.h
23924 do
23925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23927   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23930   echo $ECHO_N "(cached) $ECHO_C" >&6
23931 fi
23932 ac_res=`eval echo '${'$as_ac_Header'}'`
23933                { echo "$as_me:$LINENO: result: $ac_res" >&5
23934 echo "${ECHO_T}$ac_res" >&6; }
23935 else
23936   # Is the header compilable?
23937 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23939 cat >conftest.$ac_ext <<_ACEOF
23940 /* confdefs.h.  */
23941 _ACEOF
23942 cat confdefs.h >>conftest.$ac_ext
23943 cat >>conftest.$ac_ext <<_ACEOF
23944 /* end confdefs.h.  */
23945 $ac_includes_default
23946 #include <$ac_header>
23947 _ACEOF
23948 rm -f conftest.$ac_objext
23949 if { (ac_try="$ac_compile"
23950 case "(($ac_try" in
23951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23952   *) ac_try_echo=$ac_try;;
23953 esac
23954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23955   (eval "$ac_compile") 2>conftest.er1
23956   ac_status=$?
23957   grep -v '^ *+' conftest.er1 >conftest.err
23958   rm -f conftest.er1
23959   cat conftest.err >&5
23960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961   (exit $ac_status); } &&
23962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23963   { (case "(($ac_try" in
23964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23965   *) ac_try_echo=$ac_try;;
23966 esac
23967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23968   (eval "$ac_try") 2>&5
23969   ac_status=$?
23970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971   (exit $ac_status); }; } &&
23972          { ac_try='test -s conftest.$ac_objext'
23973   { (case "(($ac_try" in
23974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975   *) ac_try_echo=$ac_try;;
23976 esac
23977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23978   (eval "$ac_try") 2>&5
23979   ac_status=$?
23980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981   (exit $ac_status); }; }; then
23982   ac_header_compiler=yes
23983 else
23984   echo "$as_me: failed program was:" >&5
23985 sed 's/^/| /' conftest.$ac_ext >&5
23986
23987         ac_header_compiler=no
23988 fi
23989
23990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23992 echo "${ECHO_T}$ac_header_compiler" >&6; }
23993
23994 # Is the header present?
23995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23997 cat >conftest.$ac_ext <<_ACEOF
23998 /* confdefs.h.  */
23999 _ACEOF
24000 cat confdefs.h >>conftest.$ac_ext
24001 cat >>conftest.$ac_ext <<_ACEOF
24002 /* end confdefs.h.  */
24003 #include <$ac_header>
24004 _ACEOF
24005 if { (ac_try="$ac_cpp conftest.$ac_ext"
24006 case "(($ac_try" in
24007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24008   *) ac_try_echo=$ac_try;;
24009 esac
24010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24011   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24012   ac_status=$?
24013   grep -v '^ *+' conftest.er1 >conftest.err
24014   rm -f conftest.er1
24015   cat conftest.err >&5
24016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017   (exit $ac_status); } >/dev/null; then
24018   if test -s conftest.err; then
24019     ac_cpp_err=$ac_c_preproc_warn_flag
24020     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24021   else
24022     ac_cpp_err=
24023   fi
24024 else
24025   ac_cpp_err=yes
24026 fi
24027 if test -z "$ac_cpp_err"; then
24028   ac_header_preproc=yes
24029 else
24030   echo "$as_me: failed program was:" >&5
24031 sed 's/^/| /' conftest.$ac_ext >&5
24032
24033   ac_header_preproc=no
24034 fi
24035
24036 rm -f conftest.err conftest.$ac_ext
24037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24038 echo "${ECHO_T}$ac_header_preproc" >&6; }
24039
24040 # So?  What about this header?
24041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24042   yes:no: )
24043     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24047     ac_header_preproc=yes
24048     ;;
24049   no:yes:* )
24050     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24052     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24053 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24054     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24056     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24057 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24060     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24062
24063     ;;
24064 esac
24065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24068   echo $ECHO_N "(cached) $ECHO_C" >&6
24069 else
24070   eval "$as_ac_Header=\$ac_header_preproc"
24071 fi
24072 ac_res=`eval echo '${'$as_ac_Header'}'`
24073                { echo "$as_me:$LINENO: result: $ac_res" >&5
24074 echo "${ECHO_T}$ac_res" >&6; }
24075
24076 fi
24077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24078   cat >>confdefs.h <<_ACEOF
24079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24080 _ACEOF
24081
24082 fi
24083
24084 done
24085
24086
24087
24088
24089
24090 for ac_header in linux/ppdev.h sys/mman.h sys/select.h sys/types.h
24091 do
24092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24094   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24097   echo $ECHO_N "(cached) $ECHO_C" >&6
24098 fi
24099 ac_res=`eval echo '${'$as_ac_Header'}'`
24100                { echo "$as_me:$LINENO: result: $ac_res" >&5
24101 echo "${ECHO_T}$ac_res" >&6; }
24102 else
24103   # Is the header compilable?
24104 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24106 cat >conftest.$ac_ext <<_ACEOF
24107 /* confdefs.h.  */
24108 _ACEOF
24109 cat confdefs.h >>conftest.$ac_ext
24110 cat >>conftest.$ac_ext <<_ACEOF
24111 /* end confdefs.h.  */
24112 $ac_includes_default
24113 #include <$ac_header>
24114 _ACEOF
24115 rm -f conftest.$ac_objext
24116 if { (ac_try="$ac_compile"
24117 case "(($ac_try" in
24118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24119   *) ac_try_echo=$ac_try;;
24120 esac
24121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24122   (eval "$ac_compile") 2>conftest.er1
24123   ac_status=$?
24124   grep -v '^ *+' conftest.er1 >conftest.err
24125   rm -f conftest.er1
24126   cat conftest.err >&5
24127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128   (exit $ac_status); } &&
24129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24130   { (case "(($ac_try" in
24131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24132   *) ac_try_echo=$ac_try;;
24133 esac
24134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24135   (eval "$ac_try") 2>&5
24136   ac_status=$?
24137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138   (exit $ac_status); }; } &&
24139          { ac_try='test -s conftest.$ac_objext'
24140   { (case "(($ac_try" in
24141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24142   *) ac_try_echo=$ac_try;;
24143 esac
24144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24145   (eval "$ac_try") 2>&5
24146   ac_status=$?
24147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148   (exit $ac_status); }; }; then
24149   ac_header_compiler=yes
24150 else
24151   echo "$as_me: failed program was:" >&5
24152 sed 's/^/| /' conftest.$ac_ext >&5
24153
24154         ac_header_compiler=no
24155 fi
24156
24157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24159 echo "${ECHO_T}$ac_header_compiler" >&6; }
24160
24161 # Is the header present?
24162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24164 cat >conftest.$ac_ext <<_ACEOF
24165 /* confdefs.h.  */
24166 _ACEOF
24167 cat confdefs.h >>conftest.$ac_ext
24168 cat >>conftest.$ac_ext <<_ACEOF
24169 /* end confdefs.h.  */
24170 #include <$ac_header>
24171 _ACEOF
24172 if { (ac_try="$ac_cpp conftest.$ac_ext"
24173 case "(($ac_try" in
24174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24175   *) ac_try_echo=$ac_try;;
24176 esac
24177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24178   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24179   ac_status=$?
24180   grep -v '^ *+' conftest.er1 >conftest.err
24181   rm -f conftest.er1
24182   cat conftest.err >&5
24183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184   (exit $ac_status); } >/dev/null; then
24185   if test -s conftest.err; then
24186     ac_cpp_err=$ac_c_preproc_warn_flag
24187     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24188   else
24189     ac_cpp_err=
24190   fi
24191 else
24192   ac_cpp_err=yes
24193 fi
24194 if test -z "$ac_cpp_err"; then
24195   ac_header_preproc=yes
24196 else
24197   echo "$as_me: failed program was:" >&5
24198 sed 's/^/| /' conftest.$ac_ext >&5
24199
24200   ac_header_preproc=no
24201 fi
24202
24203 rm -f conftest.err conftest.$ac_ext
24204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24205 echo "${ECHO_T}$ac_header_preproc" >&6; }
24206
24207 # So?  What about this header?
24208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24209   yes:no: )
24210     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24212     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24214     ac_header_preproc=yes
24215     ;;
24216   no:yes:* )
24217     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24219     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24220 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24221     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24223     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24224 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24225     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24227     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24229
24230     ;;
24231 esac
24232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24235   echo $ECHO_N "(cached) $ECHO_C" >&6
24236 else
24237   eval "$as_ac_Header=\$ac_header_preproc"
24238 fi
24239 ac_res=`eval echo '${'$as_ac_Header'}'`
24240                { echo "$as_me:$LINENO: result: $ac_res" >&5
24241 echo "${ECHO_T}$ac_res" >&6; }
24242
24243 fi
24244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24245   cat >>confdefs.h <<_ACEOF
24246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24247 _ACEOF
24248
24249 fi
24250
24251 done
24252
24253
24254
24255
24256 for ac_header in sys/resource.h stdint.h sched.h
24257 do
24258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24260   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24263   echo $ECHO_N "(cached) $ECHO_C" >&6
24264 fi
24265 ac_res=`eval echo '${'$as_ac_Header'}'`
24266                { echo "$as_me:$LINENO: result: $ac_res" >&5
24267 echo "${ECHO_T}$ac_res" >&6; }
24268 else
24269   # Is the header compilable?
24270 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24272 cat >conftest.$ac_ext <<_ACEOF
24273 /* confdefs.h.  */
24274 _ACEOF
24275 cat confdefs.h >>conftest.$ac_ext
24276 cat >>conftest.$ac_ext <<_ACEOF
24277 /* end confdefs.h.  */
24278 $ac_includes_default
24279 #include <$ac_header>
24280 _ACEOF
24281 rm -f conftest.$ac_objext
24282 if { (ac_try="$ac_compile"
24283 case "(($ac_try" in
24284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24285   *) ac_try_echo=$ac_try;;
24286 esac
24287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24288   (eval "$ac_compile") 2>conftest.er1
24289   ac_status=$?
24290   grep -v '^ *+' conftest.er1 >conftest.err
24291   rm -f conftest.er1
24292   cat conftest.err >&5
24293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294   (exit $ac_status); } &&
24295          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24296   { (case "(($ac_try" in
24297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24298   *) ac_try_echo=$ac_try;;
24299 esac
24300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24301   (eval "$ac_try") 2>&5
24302   ac_status=$?
24303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304   (exit $ac_status); }; } &&
24305          { ac_try='test -s conftest.$ac_objext'
24306   { (case "(($ac_try" in
24307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24308   *) ac_try_echo=$ac_try;;
24309 esac
24310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24311   (eval "$ac_try") 2>&5
24312   ac_status=$?
24313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314   (exit $ac_status); }; }; then
24315   ac_header_compiler=yes
24316 else
24317   echo "$as_me: failed program was:" >&5
24318 sed 's/^/| /' conftest.$ac_ext >&5
24319
24320         ac_header_compiler=no
24321 fi
24322
24323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24325 echo "${ECHO_T}$ac_header_compiler" >&6; }
24326
24327 # Is the header present?
24328 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24330 cat >conftest.$ac_ext <<_ACEOF
24331 /* confdefs.h.  */
24332 _ACEOF
24333 cat confdefs.h >>conftest.$ac_ext
24334 cat >>conftest.$ac_ext <<_ACEOF
24335 /* end confdefs.h.  */
24336 #include <$ac_header>
24337 _ACEOF
24338 if { (ac_try="$ac_cpp conftest.$ac_ext"
24339 case "(($ac_try" in
24340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24341   *) ac_try_echo=$ac_try;;
24342 esac
24343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24344   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24345   ac_status=$?
24346   grep -v '^ *+' conftest.er1 >conftest.err
24347   rm -f conftest.er1
24348   cat conftest.err >&5
24349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350   (exit $ac_status); } >/dev/null; then
24351   if test -s conftest.err; then
24352     ac_cpp_err=$ac_c_preproc_warn_flag
24353     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24354   else
24355     ac_cpp_err=
24356   fi
24357 else
24358   ac_cpp_err=yes
24359 fi
24360 if test -z "$ac_cpp_err"; then
24361   ac_header_preproc=yes
24362 else
24363   echo "$as_me: failed program was:" >&5
24364 sed 's/^/| /' conftest.$ac_ext >&5
24365
24366   ac_header_preproc=no
24367 fi
24368
24369 rm -f conftest.err conftest.$ac_ext
24370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24371 echo "${ECHO_T}$ac_header_preproc" >&6; }
24372
24373 # So?  What about this header?
24374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24375   yes:no: )
24376     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24378     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24380     ac_header_preproc=yes
24381     ;;
24382   no:yes:* )
24383     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24385     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24386 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24387     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24389     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24390 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24391     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24393     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24395
24396     ;;
24397 esac
24398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24401   echo $ECHO_N "(cached) $ECHO_C" >&6
24402 else
24403   eval "$as_ac_Header=\$ac_header_preproc"
24404 fi
24405 ac_res=`eval echo '${'$as_ac_Header'}'`
24406                { echo "$as_me:$LINENO: result: $ac_res" >&5
24407 echo "${ECHO_T}$ac_res" >&6; }
24408
24409 fi
24410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24411   cat >>confdefs.h <<_ACEOF
24412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24413 _ACEOF
24414
24415 fi
24416
24417 done
24418
24419
24420 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24421 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24422 if test "${ac_cv_c_const+set}" = set; then
24423   echo $ECHO_N "(cached) $ECHO_C" >&6
24424 else
24425   cat >conftest.$ac_ext <<_ACEOF
24426 /* confdefs.h.  */
24427 _ACEOF
24428 cat confdefs.h >>conftest.$ac_ext
24429 cat >>conftest.$ac_ext <<_ACEOF
24430 /* end confdefs.h.  */
24431
24432 int
24433 main ()
24434 {
24435 /* FIXME: Include the comments suggested by Paul. */
24436 #ifndef __cplusplus
24437   /* Ultrix mips cc rejects this.  */
24438   typedef int charset[2];
24439   const charset x;
24440   /* SunOS 4.1.1 cc rejects this.  */
24441   char const *const *ccp;
24442   char **p;
24443   /* NEC SVR4.0.2 mips cc rejects this.  */
24444   struct point {int x, y;};
24445   static struct point const zero = {0,0};
24446   /* AIX XL C 1.02.0.0 rejects this.
24447      It does not let you subtract one const X* pointer from another in
24448      an arm of an if-expression whose if-part is not a constant
24449      expression */
24450   const char *g = "string";
24451   ccp = &g + (g ? g-g : 0);
24452   /* HPUX 7.0 cc rejects these. */
24453   ++ccp;
24454   p = (char**) ccp;
24455   ccp = (char const *const *) p;
24456   { /* SCO 3.2v4 cc rejects this.  */
24457     char *t;
24458     char const *s = 0 ? (char *) 0 : (char const *) 0;
24459
24460     *t++ = 0;
24461     if (s) return 0;
24462   }
24463   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24464     int x[] = {25, 17};
24465     const int *foo = &x[0];
24466     ++foo;
24467   }
24468   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24469     typedef const int *iptr;
24470     iptr p = 0;
24471     ++p;
24472   }
24473   { /* AIX XL C 1.02.0.0 rejects this saying
24474        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24475     struct s { int j; const int *ap[3]; };
24476     struct s *b; b->j = 5;
24477   }
24478   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24479     const int foo = 10;
24480     if (!foo) return 0;
24481   }
24482   return !x[0] && !zero.x;
24483 #endif
24484
24485   ;
24486   return 0;
24487 }
24488 _ACEOF
24489 rm -f conftest.$ac_objext
24490 if { (ac_try="$ac_compile"
24491 case "(($ac_try" in
24492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493   *) ac_try_echo=$ac_try;;
24494 esac
24495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24496   (eval "$ac_compile") 2>conftest.er1
24497   ac_status=$?
24498   grep -v '^ *+' conftest.er1 >conftest.err
24499   rm -f conftest.er1
24500   cat conftest.err >&5
24501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24502   (exit $ac_status); } &&
24503          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24504   { (case "(($ac_try" in
24505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24506   *) ac_try_echo=$ac_try;;
24507 esac
24508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24509   (eval "$ac_try") 2>&5
24510   ac_status=$?
24511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512   (exit $ac_status); }; } &&
24513          { ac_try='test -s conftest.$ac_objext'
24514   { (case "(($ac_try" in
24515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24516   *) ac_try_echo=$ac_try;;
24517 esac
24518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24519   (eval "$ac_try") 2>&5
24520   ac_status=$?
24521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522   (exit $ac_status); }; }; then
24523   ac_cv_c_const=yes
24524 else
24525   echo "$as_me: failed program was:" >&5
24526 sed 's/^/| /' conftest.$ac_ext >&5
24527
24528         ac_cv_c_const=no
24529 fi
24530
24531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24532 fi
24533 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24534 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24535 if test $ac_cv_c_const = no; then
24536
24537 cat >>confdefs.h <<\_ACEOF
24538 #define const
24539 _ACEOF
24540
24541 fi
24542
24543 { echo "$as_me:$LINENO: checking for inline" >&5
24544 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24545 if test "${ac_cv_c_inline+set}" = set; then
24546   echo $ECHO_N "(cached) $ECHO_C" >&6
24547 else
24548   ac_cv_c_inline=no
24549 for ac_kw in inline __inline__ __inline; do
24550   cat >conftest.$ac_ext <<_ACEOF
24551 /* confdefs.h.  */
24552 _ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h.  */
24556 #ifndef __cplusplus
24557 typedef int foo_t;
24558 static $ac_kw foo_t static_foo () {return 0; }
24559 $ac_kw foo_t foo () {return 0; }
24560 #endif
24561
24562 _ACEOF
24563 rm -f conftest.$ac_objext
24564 if { (ac_try="$ac_compile"
24565 case "(($ac_try" in
24566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24567   *) ac_try_echo=$ac_try;;
24568 esac
24569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24570   (eval "$ac_compile") 2>conftest.er1
24571   ac_status=$?
24572   grep -v '^ *+' conftest.er1 >conftest.err
24573   rm -f conftest.er1
24574   cat conftest.err >&5
24575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576   (exit $ac_status); } &&
24577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24578   { (case "(($ac_try" in
24579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24580   *) ac_try_echo=$ac_try;;
24581 esac
24582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24583   (eval "$ac_try") 2>&5
24584   ac_status=$?
24585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586   (exit $ac_status); }; } &&
24587          { ac_try='test -s conftest.$ac_objext'
24588   { (case "(($ac_try" in
24589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590   *) ac_try_echo=$ac_try;;
24591 esac
24592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24593   (eval "$ac_try") 2>&5
24594   ac_status=$?
24595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596   (exit $ac_status); }; }; then
24597   ac_cv_c_inline=$ac_kw
24598 else
24599   echo "$as_me: failed program was:" >&5
24600 sed 's/^/| /' conftest.$ac_ext >&5
24601
24602
24603 fi
24604
24605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24606   test "$ac_cv_c_inline" != no && break
24607 done
24608
24609 fi
24610 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24611 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24612
24613
24614 case $ac_cv_c_inline in
24615   inline | yes) ;;
24616   *)
24617     case $ac_cv_c_inline in
24618       no) ac_val=;;
24619       *) ac_val=$ac_cv_c_inline;;
24620     esac
24621     cat >>confdefs.h <<_ACEOF
24622 #ifndef __cplusplus
24623 #define inline $ac_val
24624 #endif
24625 _ACEOF
24626     ;;
24627 esac
24628
24629 { echo "$as_me:$LINENO: checking for size_t" >&5
24630 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24631 if test "${ac_cv_type_size_t+set}" = set; then
24632   echo $ECHO_N "(cached) $ECHO_C" >&6
24633 else
24634   cat >conftest.$ac_ext <<_ACEOF
24635 /* confdefs.h.  */
24636 _ACEOF
24637 cat confdefs.h >>conftest.$ac_ext
24638 cat >>conftest.$ac_ext <<_ACEOF
24639 /* end confdefs.h.  */
24640 $ac_includes_default
24641 typedef size_t ac__type_new_;
24642 int
24643 main ()
24644 {
24645 if ((ac__type_new_ *) 0)
24646   return 0;
24647 if (sizeof (ac__type_new_))
24648   return 0;
24649   ;
24650   return 0;
24651 }
24652 _ACEOF
24653 rm -f conftest.$ac_objext
24654 if { (ac_try="$ac_compile"
24655 case "(($ac_try" in
24656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24657   *) ac_try_echo=$ac_try;;
24658 esac
24659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24660   (eval "$ac_compile") 2>conftest.er1
24661   ac_status=$?
24662   grep -v '^ *+' conftest.er1 >conftest.err
24663   rm -f conftest.er1
24664   cat conftest.err >&5
24665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666   (exit $ac_status); } &&
24667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24668   { (case "(($ac_try" in
24669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24670   *) ac_try_echo=$ac_try;;
24671 esac
24672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24673   (eval "$ac_try") 2>&5
24674   ac_status=$?
24675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676   (exit $ac_status); }; } &&
24677          { ac_try='test -s conftest.$ac_objext'
24678   { (case "(($ac_try" in
24679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24680   *) ac_try_echo=$ac_try;;
24681 esac
24682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24683   (eval "$ac_try") 2>&5
24684   ac_status=$?
24685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686   (exit $ac_status); }; }; then
24687   ac_cv_type_size_t=yes
24688 else
24689   echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24691
24692         ac_cv_type_size_t=no
24693 fi
24694
24695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24696 fi
24697 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24698 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24699 if test $ac_cv_type_size_t = yes; then
24700   :
24701 else
24702
24703 cat >>confdefs.h <<_ACEOF
24704 #define size_t unsigned int
24705 _ACEOF
24706
24707 fi
24708
24709 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24710 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24711 if test "${ac_cv_header_time+set}" = set; then
24712   echo $ECHO_N "(cached) $ECHO_C" >&6
24713 else
24714   cat >conftest.$ac_ext <<_ACEOF
24715 /* confdefs.h.  */
24716 _ACEOF
24717 cat confdefs.h >>conftest.$ac_ext
24718 cat >>conftest.$ac_ext <<_ACEOF
24719 /* end confdefs.h.  */
24720 #include <sys/types.h>
24721 #include <sys/time.h>
24722 #include <time.h>
24723
24724 int
24725 main ()
24726 {
24727 if ((struct tm *) 0)
24728 return 0;
24729   ;
24730   return 0;
24731 }
24732 _ACEOF
24733 rm -f conftest.$ac_objext
24734 if { (ac_try="$ac_compile"
24735 case "(($ac_try" in
24736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737   *) ac_try_echo=$ac_try;;
24738 esac
24739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740   (eval "$ac_compile") 2>conftest.er1
24741   ac_status=$?
24742   grep -v '^ *+' conftest.er1 >conftest.err
24743   rm -f conftest.er1
24744   cat conftest.err >&5
24745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746   (exit $ac_status); } &&
24747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24748   { (case "(($ac_try" in
24749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24750   *) ac_try_echo=$ac_try;;
24751 esac
24752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24753   (eval "$ac_try") 2>&5
24754   ac_status=$?
24755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756   (exit $ac_status); }; } &&
24757          { ac_try='test -s conftest.$ac_objext'
24758   { (case "(($ac_try" in
24759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24760   *) ac_try_echo=$ac_try;;
24761 esac
24762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24763   (eval "$ac_try") 2>&5
24764   ac_status=$?
24765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766   (exit $ac_status); }; }; then
24767   ac_cv_header_time=yes
24768 else
24769   echo "$as_me: failed program was:" >&5
24770 sed 's/^/| /' conftest.$ac_ext >&5
24771
24772         ac_cv_header_time=no
24773 fi
24774
24775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24776 fi
24777 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24778 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24779 if test $ac_cv_header_time = yes; then
24780
24781 cat >>confdefs.h <<\_ACEOF
24782 #define TIME_WITH_SYS_TIME 1
24783 _ACEOF
24784
24785 fi
24786
24787 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24788 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24789 if test "${ac_cv_c_bigendian+set}" = set; then
24790   echo $ECHO_N "(cached) $ECHO_C" >&6
24791 else
24792   # See if sys/param.h defines the BYTE_ORDER macro.
24793 cat >conftest.$ac_ext <<_ACEOF
24794 /* confdefs.h.  */
24795 _ACEOF
24796 cat confdefs.h >>conftest.$ac_ext
24797 cat >>conftest.$ac_ext <<_ACEOF
24798 /* end confdefs.h.  */
24799 #include <sys/types.h>
24800 #include <sys/param.h>
24801
24802 int
24803 main ()
24804 {
24805 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24806  bogus endian macros
24807 #endif
24808
24809   ;
24810   return 0;
24811 }
24812 _ACEOF
24813 rm -f conftest.$ac_objext
24814 if { (ac_try="$ac_compile"
24815 case "(($ac_try" in
24816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24817   *) ac_try_echo=$ac_try;;
24818 esac
24819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24820   (eval "$ac_compile") 2>conftest.er1
24821   ac_status=$?
24822   grep -v '^ *+' conftest.er1 >conftest.err
24823   rm -f conftest.er1
24824   cat conftest.err >&5
24825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826   (exit $ac_status); } &&
24827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24828   { (case "(($ac_try" in
24829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24830   *) ac_try_echo=$ac_try;;
24831 esac
24832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24833   (eval "$ac_try") 2>&5
24834   ac_status=$?
24835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836   (exit $ac_status); }; } &&
24837          { ac_try='test -s conftest.$ac_objext'
24838   { (case "(($ac_try" in
24839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840   *) ac_try_echo=$ac_try;;
24841 esac
24842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24843   (eval "$ac_try") 2>&5
24844   ac_status=$?
24845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846   (exit $ac_status); }; }; then
24847   # It does; now see whether it defined to BIG_ENDIAN or not.
24848 cat >conftest.$ac_ext <<_ACEOF
24849 /* confdefs.h.  */
24850 _ACEOF
24851 cat confdefs.h >>conftest.$ac_ext
24852 cat >>conftest.$ac_ext <<_ACEOF
24853 /* end confdefs.h.  */
24854 #include <sys/types.h>
24855 #include <sys/param.h>
24856
24857 int
24858 main ()
24859 {
24860 #if BYTE_ORDER != BIG_ENDIAN
24861  not big endian
24862 #endif
24863
24864   ;
24865   return 0;
24866 }
24867 _ACEOF
24868 rm -f conftest.$ac_objext
24869 if { (ac_try="$ac_compile"
24870 case "(($ac_try" in
24871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24872   *) ac_try_echo=$ac_try;;
24873 esac
24874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24875   (eval "$ac_compile") 2>conftest.er1
24876   ac_status=$?
24877   grep -v '^ *+' conftest.er1 >conftest.err
24878   rm -f conftest.er1
24879   cat conftest.err >&5
24880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881   (exit $ac_status); } &&
24882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24883   { (case "(($ac_try" in
24884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24885   *) ac_try_echo=$ac_try;;
24886 esac
24887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24888   (eval "$ac_try") 2>&5
24889   ac_status=$?
24890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891   (exit $ac_status); }; } &&
24892          { ac_try='test -s conftest.$ac_objext'
24893   { (case "(($ac_try" in
24894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24895   *) ac_try_echo=$ac_try;;
24896 esac
24897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24898   (eval "$ac_try") 2>&5
24899   ac_status=$?
24900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901   (exit $ac_status); }; }; then
24902   ac_cv_c_bigendian=yes
24903 else
24904   echo "$as_me: failed program was:" >&5
24905 sed 's/^/| /' conftest.$ac_ext >&5
24906
24907         ac_cv_c_bigendian=no
24908 fi
24909
24910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24911 else
24912   echo "$as_me: failed program was:" >&5
24913 sed 's/^/| /' conftest.$ac_ext >&5
24914
24915         # It does not; compile a test program.
24916 if test "$cross_compiling" = yes; then
24917   # try to guess the endianness by grepping values into an object file
24918   ac_cv_c_bigendian=unknown
24919   cat >conftest.$ac_ext <<_ACEOF
24920 /* confdefs.h.  */
24921 _ACEOF
24922 cat confdefs.h >>conftest.$ac_ext
24923 cat >>conftest.$ac_ext <<_ACEOF
24924 /* end confdefs.h.  */
24925 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24926 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24927 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24928 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24929 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24930 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
24931 int
24932 main ()
24933 {
24934  _ascii (); _ebcdic ();
24935   ;
24936   return 0;
24937 }
24938 _ACEOF
24939 rm -f conftest.$ac_objext
24940 if { (ac_try="$ac_compile"
24941 case "(($ac_try" in
24942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24943   *) ac_try_echo=$ac_try;;
24944 esac
24945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24946   (eval "$ac_compile") 2>conftest.er1
24947   ac_status=$?
24948   grep -v '^ *+' conftest.er1 >conftest.err
24949   rm -f conftest.er1
24950   cat conftest.err >&5
24951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952   (exit $ac_status); } &&
24953          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24954   { (case "(($ac_try" in
24955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24956   *) ac_try_echo=$ac_try;;
24957 esac
24958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24959   (eval "$ac_try") 2>&5
24960   ac_status=$?
24961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962   (exit $ac_status); }; } &&
24963          { ac_try='test -s conftest.$ac_objext'
24964   { (case "(($ac_try" in
24965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24966   *) ac_try_echo=$ac_try;;
24967 esac
24968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24969   (eval "$ac_try") 2>&5
24970   ac_status=$?
24971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972   (exit $ac_status); }; }; then
24973   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
24974   ac_cv_c_bigendian=yes
24975 fi
24976 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24977   if test "$ac_cv_c_bigendian" = unknown; then
24978     ac_cv_c_bigendian=no
24979   else
24980     # finding both strings is unlikely to happen, but who knows?
24981     ac_cv_c_bigendian=unknown
24982   fi
24983 fi
24984 else
24985   echo "$as_me: failed program was:" >&5
24986 sed 's/^/| /' conftest.$ac_ext >&5
24987
24988
24989 fi
24990
24991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24992 else
24993   cat >conftest.$ac_ext <<_ACEOF
24994 /* confdefs.h.  */
24995 _ACEOF
24996 cat confdefs.h >>conftest.$ac_ext
24997 cat >>conftest.$ac_ext <<_ACEOF
24998 /* end confdefs.h.  */
24999 $ac_includes_default
25000 int
25001 main ()
25002 {
25003
25004   /* Are we little or big endian?  From Harbison&Steele.  */
25005   union
25006   {
25007     long int l;
25008     char c[sizeof (long int)];
25009   } u;
25010   u.l = 1;
25011   return u.c[sizeof (long int) - 1] == 1;
25012
25013   ;
25014   return 0;
25015 }
25016 _ACEOF
25017 rm -f conftest$ac_exeext
25018 if { (ac_try="$ac_link"
25019 case "(($ac_try" in
25020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25021   *) ac_try_echo=$ac_try;;
25022 esac
25023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25024   (eval "$ac_link") 2>&5
25025   ac_status=$?
25026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25028   { (case "(($ac_try" in
25029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030   *) ac_try_echo=$ac_try;;
25031 esac
25032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033   (eval "$ac_try") 2>&5
25034   ac_status=$?
25035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036   (exit $ac_status); }; }; then
25037   ac_cv_c_bigendian=no
25038 else
25039   echo "$as_me: program exited with status $ac_status" >&5
25040 echo "$as_me: failed program was:" >&5
25041 sed 's/^/| /' conftest.$ac_ext >&5
25042
25043 ( exit $ac_status )
25044 ac_cv_c_bigendian=yes
25045 fi
25046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25047 fi
25048
25049
25050 fi
25051
25052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25053 fi
25054 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25055 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25056 case $ac_cv_c_bigendian in
25057   yes)
25058
25059 cat >>confdefs.h <<\_ACEOF
25060 #define WORDS_BIGENDIAN 1
25061 _ACEOF
25062  ;;
25063   no)
25064      ;;
25065   *)
25066     { { echo "$as_me:$LINENO: error: unknown endianness
25067 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
25068 echo "$as_me: error: unknown endianness
25069 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
25070    { (exit 1); exit 1; }; } ;;
25071 esac
25072
25073 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25074 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25075 if test "${ac_cv_struct_tm+set}" = set; then
25076   echo $ECHO_N "(cached) $ECHO_C" >&6
25077 else
25078   cat >conftest.$ac_ext <<_ACEOF
25079 /* confdefs.h.  */
25080 _ACEOF
25081 cat confdefs.h >>conftest.$ac_ext
25082 cat >>conftest.$ac_ext <<_ACEOF
25083 /* end confdefs.h.  */
25084 #include <sys/types.h>
25085 #include <time.h>
25086
25087 int
25088 main ()
25089 {
25090 struct tm *tp; tp->tm_sec;
25091   ;
25092   return 0;
25093 }
25094 _ACEOF
25095 rm -f conftest.$ac_objext
25096 if { (ac_try="$ac_compile"
25097 case "(($ac_try" in
25098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25099   *) ac_try_echo=$ac_try;;
25100 esac
25101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25102   (eval "$ac_compile") 2>conftest.er1
25103   ac_status=$?
25104   grep -v '^ *+' conftest.er1 >conftest.err
25105   rm -f conftest.er1
25106   cat conftest.err >&5
25107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108   (exit $ac_status); } &&
25109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25110   { (case "(($ac_try" in
25111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25112   *) ac_try_echo=$ac_try;;
25113 esac
25114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25115   (eval "$ac_try") 2>&5
25116   ac_status=$?
25117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118   (exit $ac_status); }; } &&
25119          { ac_try='test -s conftest.$ac_objext'
25120   { (case "(($ac_try" in
25121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25122   *) ac_try_echo=$ac_try;;
25123 esac
25124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25125   (eval "$ac_try") 2>&5
25126   ac_status=$?
25127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128   (exit $ac_status); }; }; then
25129   ac_cv_struct_tm=time.h
25130 else
25131   echo "$as_me: failed program was:" >&5
25132 sed 's/^/| /' conftest.$ac_ext >&5
25133
25134         ac_cv_struct_tm=sys/time.h
25135 fi
25136
25137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25138 fi
25139 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25140 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25141 if test $ac_cv_struct_tm = sys/time.h; then
25142
25143 cat >>confdefs.h <<\_ACEOF
25144 #define TM_IN_SYS_TIME 1
25145 _ACEOF
25146
25147 fi
25148
25149
25150 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
25151 # for constant arguments.  Useless!
25152 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
25153 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
25154 if test "${ac_cv_working_alloca_h+set}" = set; then
25155   echo $ECHO_N "(cached) $ECHO_C" >&6
25156 else
25157   cat >conftest.$ac_ext <<_ACEOF
25158 /* confdefs.h.  */
25159 _ACEOF
25160 cat confdefs.h >>conftest.$ac_ext
25161 cat >>conftest.$ac_ext <<_ACEOF
25162 /* end confdefs.h.  */
25163 #include <alloca.h>
25164 int
25165 main ()
25166 {
25167 char *p = (char *) alloca (2 * sizeof (int));
25168                           if (p) return 0;
25169   ;
25170   return 0;
25171 }
25172 _ACEOF
25173 rm -f conftest.$ac_objext conftest$ac_exeext
25174 if { (ac_try="$ac_link"
25175 case "(($ac_try" in
25176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25177   *) ac_try_echo=$ac_try;;
25178 esac
25179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25180   (eval "$ac_link") 2>conftest.er1
25181   ac_status=$?
25182   grep -v '^ *+' conftest.er1 >conftest.err
25183   rm -f conftest.er1
25184   cat conftest.err >&5
25185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25186   (exit $ac_status); } &&
25187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25188   { (case "(($ac_try" in
25189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25190   *) ac_try_echo=$ac_try;;
25191 esac
25192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25193   (eval "$ac_try") 2>&5
25194   ac_status=$?
25195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196   (exit $ac_status); }; } &&
25197          { ac_try='test -s conftest$ac_exeext'
25198   { (case "(($ac_try" in
25199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200   *) ac_try_echo=$ac_try;;
25201 esac
25202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25203   (eval "$ac_try") 2>&5
25204   ac_status=$?
25205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206   (exit $ac_status); }; }; then
25207   ac_cv_working_alloca_h=yes
25208 else
25209   echo "$as_me: failed program was:" >&5
25210 sed 's/^/| /' conftest.$ac_ext >&5
25211
25212         ac_cv_working_alloca_h=no
25213 fi
25214
25215 rm -f core conftest.err conftest.$ac_objext \
25216       conftest$ac_exeext conftest.$ac_ext
25217 fi
25218 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
25219 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
25220 if test $ac_cv_working_alloca_h = yes; then
25221
25222 cat >>confdefs.h <<\_ACEOF
25223 #define HAVE_ALLOCA_H 1
25224 _ACEOF
25225
25226 fi
25227
25228 { echo "$as_me:$LINENO: checking for alloca" >&5
25229 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
25230 if test "${ac_cv_func_alloca_works+set}" = set; then
25231   echo $ECHO_N "(cached) $ECHO_C" >&6
25232 else
25233   cat >conftest.$ac_ext <<_ACEOF
25234 /* confdefs.h.  */
25235 _ACEOF
25236 cat confdefs.h >>conftest.$ac_ext
25237 cat >>conftest.$ac_ext <<_ACEOF
25238 /* end confdefs.h.  */
25239 #ifdef __GNUC__
25240 # define alloca __builtin_alloca
25241 #else
25242 # ifdef _MSC_VER
25243 #  include <malloc.h>
25244 #  define alloca _alloca
25245 # else
25246 #  if HAVE_ALLOCA_H
25247 #   include <alloca.h>
25248 #  else
25249 #   ifdef _AIX
25250  #pragma alloca
25251 #   else
25252 #    ifndef alloca /* predefined by HP cc +Olibcalls */
25253 char *alloca ();
25254 #    endif
25255 #   endif
25256 #  endif
25257 # endif
25258 #endif
25259
25260 int
25261 main ()
25262 {
25263 char *p = (char *) alloca (1);
25264                                     if (p) return 0;
25265   ;
25266   return 0;
25267 }
25268 _ACEOF
25269 rm -f conftest.$ac_objext conftest$ac_exeext
25270 if { (ac_try="$ac_link"
25271 case "(($ac_try" in
25272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25273   *) ac_try_echo=$ac_try;;
25274 esac
25275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25276   (eval "$ac_link") 2>conftest.er1
25277   ac_status=$?
25278   grep -v '^ *+' conftest.er1 >conftest.err
25279   rm -f conftest.er1
25280   cat conftest.err >&5
25281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282   (exit $ac_status); } &&
25283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25284   { (case "(($ac_try" in
25285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25286   *) ac_try_echo=$ac_try;;
25287 esac
25288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25289   (eval "$ac_try") 2>&5
25290   ac_status=$?
25291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292   (exit $ac_status); }; } &&
25293          { ac_try='test -s conftest$ac_exeext'
25294   { (case "(($ac_try" in
25295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25296   *) ac_try_echo=$ac_try;;
25297 esac
25298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25299   (eval "$ac_try") 2>&5
25300   ac_status=$?
25301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302   (exit $ac_status); }; }; then
25303   ac_cv_func_alloca_works=yes
25304 else
25305   echo "$as_me: failed program was:" >&5
25306 sed 's/^/| /' conftest.$ac_ext >&5
25307
25308         ac_cv_func_alloca_works=no
25309 fi
25310
25311 rm -f core conftest.err conftest.$ac_objext \
25312       conftest$ac_exeext conftest.$ac_ext
25313 fi
25314 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
25315 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
25316
25317 if test $ac_cv_func_alloca_works = yes; then
25318
25319 cat >>confdefs.h <<\_ACEOF
25320 #define HAVE_ALLOCA 1
25321 _ACEOF
25322
25323 else
25324   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25325 # that cause trouble.  Some versions do not even contain alloca or
25326 # contain a buggy version.  If you still want to use their alloca,
25327 # use ar to extract alloca.o from them instead of compiling alloca.c.
25328
25329 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25330
25331 cat >>confdefs.h <<\_ACEOF
25332 #define C_ALLOCA 1
25333 _ACEOF
25334
25335
25336 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25337 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25338 if test "${ac_cv_os_cray+set}" = set; then
25339   echo $ECHO_N "(cached) $ECHO_C" >&6
25340 else
25341   cat >conftest.$ac_ext <<_ACEOF
25342 /* confdefs.h.  */
25343 _ACEOF
25344 cat confdefs.h >>conftest.$ac_ext
25345 cat >>conftest.$ac_ext <<_ACEOF
25346 /* end confdefs.h.  */
25347 #if defined CRAY && ! defined CRAY2
25348 webecray
25349 #else
25350 wenotbecray
25351 #endif
25352
25353 _ACEOF
25354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25355   $EGREP "webecray" >/dev/null 2>&1; then
25356   ac_cv_os_cray=yes
25357 else
25358   ac_cv_os_cray=no
25359 fi
25360 rm -f conftest*
25361
25362 fi
25363 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25364 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25365 if test $ac_cv_os_cray = yes; then
25366   for ac_func in _getb67 GETB67 getb67; do
25367     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25368 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25371   echo $ECHO_N "(cached) $ECHO_C" >&6
25372 else
25373   cat >conftest.$ac_ext <<_ACEOF
25374 /* confdefs.h.  */
25375 _ACEOF
25376 cat confdefs.h >>conftest.$ac_ext
25377 cat >>conftest.$ac_ext <<_ACEOF
25378 /* end confdefs.h.  */
25379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25381 #define $ac_func innocuous_$ac_func
25382
25383 /* System header to define __stub macros and hopefully few prototypes,
25384     which can conflict with char $ac_func (); below.
25385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25386     <limits.h> exists even on freestanding compilers.  */
25387
25388 #ifdef __STDC__
25389 # include <limits.h>
25390 #else
25391 # include <assert.h>
25392 #endif
25393
25394 #undef $ac_func
25395
25396 /* Override any GCC internal prototype to avoid an error.
25397    Use char because int might match the return type of a GCC
25398    builtin and then its argument prototype would still apply.  */
25399 #ifdef __cplusplus
25400 extern "C"
25401 #endif
25402 char $ac_func ();
25403 /* The GNU C library defines this for functions which it implements
25404     to always fail with ENOSYS.  Some functions are actually named
25405     something starting with __ and the normal name is an alias.  */
25406 #if defined __stub_$ac_func || defined __stub___$ac_func
25407 choke me
25408 #endif
25409
25410 int
25411 main ()
25412 {
25413 return $ac_func ();
25414   ;
25415   return 0;
25416 }
25417 _ACEOF
25418 rm -f conftest.$ac_objext conftest$ac_exeext
25419 if { (ac_try="$ac_link"
25420 case "(($ac_try" in
25421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25422   *) ac_try_echo=$ac_try;;
25423 esac
25424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25425   (eval "$ac_link") 2>conftest.er1
25426   ac_status=$?
25427   grep -v '^ *+' conftest.er1 >conftest.err
25428   rm -f conftest.er1
25429   cat conftest.err >&5
25430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431   (exit $ac_status); } &&
25432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25433   { (case "(($ac_try" in
25434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25435   *) ac_try_echo=$ac_try;;
25436 esac
25437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25438   (eval "$ac_try") 2>&5
25439   ac_status=$?
25440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25441   (exit $ac_status); }; } &&
25442          { ac_try='test -s conftest$ac_exeext'
25443   { (case "(($ac_try" in
25444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25445   *) ac_try_echo=$ac_try;;
25446 esac
25447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25448   (eval "$ac_try") 2>&5
25449   ac_status=$?
25450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451   (exit $ac_status); }; }; then
25452   eval "$as_ac_var=yes"
25453 else
25454   echo "$as_me: failed program was:" >&5
25455 sed 's/^/| /' conftest.$ac_ext >&5
25456
25457         eval "$as_ac_var=no"
25458 fi
25459
25460 rm -f core conftest.err conftest.$ac_objext \
25461       conftest$ac_exeext conftest.$ac_ext
25462 fi
25463 ac_res=`eval echo '${'$as_ac_var'}'`
25464                { echo "$as_me:$LINENO: result: $ac_res" >&5
25465 echo "${ECHO_T}$ac_res" >&6; }
25466 if test `eval echo '${'$as_ac_var'}'` = yes; then
25467
25468 cat >>confdefs.h <<_ACEOF
25469 #define CRAY_STACKSEG_END $ac_func
25470 _ACEOF
25471
25472     break
25473 fi
25474
25475   done
25476 fi
25477
25478 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25479 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25480 if test "${ac_cv_c_stack_direction+set}" = set; then
25481   echo $ECHO_N "(cached) $ECHO_C" >&6
25482 else
25483   if test "$cross_compiling" = yes; then
25484   ac_cv_c_stack_direction=0
25485 else
25486   cat >conftest.$ac_ext <<_ACEOF
25487 /* confdefs.h.  */
25488 _ACEOF
25489 cat confdefs.h >>conftest.$ac_ext
25490 cat >>conftest.$ac_ext <<_ACEOF
25491 /* end confdefs.h.  */
25492 $ac_includes_default
25493 int
25494 find_stack_direction ()
25495 {
25496   static char *addr = 0;
25497   auto char dummy;
25498   if (addr == 0)
25499     {
25500       addr = &dummy;
25501       return find_stack_direction ();
25502     }
25503   else
25504     return (&dummy > addr) ? 1 : -1;
25505 }
25506
25507 int
25508 main ()
25509 {
25510   return find_stack_direction () < 0;
25511 }
25512 _ACEOF
25513 rm -f conftest$ac_exeext
25514 if { (ac_try="$ac_link"
25515 case "(($ac_try" in
25516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25517   *) ac_try_echo=$ac_try;;
25518 esac
25519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25520   (eval "$ac_link") 2>&5
25521   ac_status=$?
25522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25524   { (case "(($ac_try" in
25525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25526   *) ac_try_echo=$ac_try;;
25527 esac
25528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25529   (eval "$ac_try") 2>&5
25530   ac_status=$?
25531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532   (exit $ac_status); }; }; then
25533   ac_cv_c_stack_direction=1
25534 else
25535   echo "$as_me: program exited with status $ac_status" >&5
25536 echo "$as_me: failed program was:" >&5
25537 sed 's/^/| /' conftest.$ac_ext >&5
25538
25539 ( exit $ac_status )
25540 ac_cv_c_stack_direction=-1
25541 fi
25542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25543 fi
25544
25545
25546 fi
25547 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25548 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25549
25550 cat >>confdefs.h <<_ACEOF
25551 #define STACK_DIRECTION $ac_cv_c_stack_direction
25552 _ACEOF
25553
25554
25555 fi
25556
25557 { echo "$as_me:$LINENO: checking for function prototypes" >&5
25558 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
25559 if test "$ac_cv_prog_cc_c89" != no; then
25560   { echo "$as_me:$LINENO: result: yes" >&5
25561 echo "${ECHO_T}yes" >&6; }
25562
25563 cat >>confdefs.h <<\_ACEOF
25564 #define PROTOTYPES 1
25565 _ACEOF
25566
25567
25568 cat >>confdefs.h <<\_ACEOF
25569 #define __PROTOTYPES 1
25570 _ACEOF
25571
25572 else
25573   { echo "$as_me:$LINENO: result: no" >&5
25574 echo "${ECHO_T}no" >&6; }
25575 fi
25576
25577 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
25578 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
25579 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
25580   echo $ECHO_N "(cached) $ECHO_C" >&6
25581 else
25582   ac_cv_func_setvbuf_reversed=no
25583    cat >conftest.$ac_ext <<_ACEOF
25584 /* confdefs.h.  */
25585 _ACEOF
25586 cat confdefs.h >>conftest.$ac_ext
25587 cat >>conftest.$ac_ext <<_ACEOF
25588 /* end confdefs.h.  */
25589 #include <stdio.h>
25590 #         if PROTOTYPES
25591            int (setvbuf) (FILE *, int, char *, size_t);
25592 #         endif
25593 int
25594 main ()
25595 {
25596 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
25597   ;
25598   return 0;
25599 }
25600 _ACEOF
25601 rm -f conftest.$ac_objext conftest$ac_exeext
25602 if { (ac_try="$ac_link"
25603 case "(($ac_try" in
25604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25605   *) ac_try_echo=$ac_try;;
25606 esac
25607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25608   (eval "$ac_link") 2>conftest.er1
25609   ac_status=$?
25610   grep -v '^ *+' conftest.er1 >conftest.err
25611   rm -f conftest.er1
25612   cat conftest.err >&5
25613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614   (exit $ac_status); } &&
25615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25616   { (case "(($ac_try" in
25617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25618   *) ac_try_echo=$ac_try;;
25619 esac
25620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25621   (eval "$ac_try") 2>&5
25622   ac_status=$?
25623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25624   (exit $ac_status); }; } &&
25625          { ac_try='test -s conftest$ac_exeext'
25626   { (case "(($ac_try" in
25627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25628   *) ac_try_echo=$ac_try;;
25629 esac
25630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25631   (eval "$ac_try") 2>&5
25632   ac_status=$?
25633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634   (exit $ac_status); }; }; then
25635   cat >conftest.$ac_ext <<_ACEOF
25636 /* confdefs.h.  */
25637 _ACEOF
25638 cat confdefs.h >>conftest.$ac_ext
25639 cat >>conftest.$ac_ext <<_ACEOF
25640 /* end confdefs.h.  */
25641 #include <stdio.h>
25642 #            if PROTOTYPES
25643               int (setvbuf) (FILE *, int, char *, size_t);
25644 #            endif
25645 int
25646 main ()
25647 {
25648 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
25649   ;
25650   return 0;
25651 }
25652 _ACEOF
25653 rm -f conftest.$ac_objext conftest$ac_exeext
25654 if { (ac_try="$ac_link"
25655 case "(($ac_try" in
25656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25657   *) ac_try_echo=$ac_try;;
25658 esac
25659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25660   (eval "$ac_link") 2>conftest.er1
25661   ac_status=$?
25662   grep -v '^ *+' conftest.er1 >conftest.err
25663   rm -f conftest.er1
25664   cat conftest.err >&5
25665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666   (exit $ac_status); } &&
25667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25668   { (case "(($ac_try" in
25669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25670   *) ac_try_echo=$ac_try;;
25671 esac
25672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25673   (eval "$ac_try") 2>&5
25674   ac_status=$?
25675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676   (exit $ac_status); }; } &&
25677          { ac_try='test -s conftest$ac_exeext'
25678   { (case "(($ac_try" in
25679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25680   *) ac_try_echo=$ac_try;;
25681 esac
25682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25683   (eval "$ac_try") 2>&5
25684   ac_status=$?
25685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686   (exit $ac_status); }; }; then
25687   # It compiles and links either way, so it must not be declared
25688          # with a prototype and most likely this is a K&R C compiler.
25689          # Try running it.
25690          if test "$cross_compiling" = yes; then
25691   : # Assume setvbuf is not reversed when cross-compiling.
25692 else
25693   cat >conftest.$ac_ext <<_ACEOF
25694 /* confdefs.h.  */
25695 _ACEOF
25696 cat confdefs.h >>conftest.$ac_ext
25697 cat >>conftest.$ac_ext <<_ACEOF
25698 /* end confdefs.h.  */
25699 $ac_includes_default
25700 int
25701 main ()
25702 {
25703 /* This call has the arguments reversed.
25704                    A reversed system may check and see that the address of buf
25705                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
25706                 char buf;
25707                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
25708                   return 1;
25709                 putchar ('\r');
25710                 return 0; /* Non-reversed systems SEGV here.  */
25711   ;
25712   return 0;
25713 }
25714 _ACEOF
25715 rm -f conftest$ac_exeext
25716 if { (ac_try="$ac_link"
25717 case "(($ac_try" in
25718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25719   *) ac_try_echo=$ac_try;;
25720 esac
25721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25722   (eval "$ac_link") 2>&5
25723   ac_status=$?
25724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25726   { (case "(($ac_try" in
25727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25728   *) ac_try_echo=$ac_try;;
25729 esac
25730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25731   (eval "$ac_try") 2>&5
25732   ac_status=$?
25733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734   (exit $ac_status); }; }; then
25735   ac_cv_func_setvbuf_reversed=yes
25736 else
25737   echo "$as_me: program exited with status $ac_status" >&5
25738 echo "$as_me: failed program was:" >&5
25739 sed 's/^/| /' conftest.$ac_ext >&5
25740
25741 fi
25742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25743 fi
25744
25745
25746         ac_cv_func_setvbuf_reversed=yes
25747 else
25748   echo "$as_me: failed program was:" >&5
25749 sed 's/^/| /' conftest.$ac_ext >&5
25750
25751
25752 fi
25753
25754 rm -f core conftest.err conftest.$ac_objext \
25755       conftest$ac_exeext conftest.$ac_ext
25756 else
25757   echo "$as_me: failed program was:" >&5
25758 sed 's/^/| /' conftest.$ac_ext >&5
25759
25760
25761 fi
25762
25763 rm -f core conftest.err conftest.$ac_objext \
25764       conftest$ac_exeext conftest.$ac_ext
25765 fi
25766 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
25767 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
25768 if test $ac_cv_func_setvbuf_reversed = yes; then
25769
25770 cat >>confdefs.h <<\_ACEOF
25771 #define SETVBUF_REVERSED 1
25772 _ACEOF
25773
25774 fi
25775
25776
25777 for ac_func in vprintf
25778 do
25779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25780 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25783   echo $ECHO_N "(cached) $ECHO_C" >&6
25784 else
25785   cat >conftest.$ac_ext <<_ACEOF
25786 /* confdefs.h.  */
25787 _ACEOF
25788 cat confdefs.h >>conftest.$ac_ext
25789 cat >>conftest.$ac_ext <<_ACEOF
25790 /* end confdefs.h.  */
25791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25793 #define $ac_func innocuous_$ac_func
25794
25795 /* System header to define __stub macros and hopefully few prototypes,
25796     which can conflict with char $ac_func (); below.
25797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25798     <limits.h> exists even on freestanding compilers.  */
25799
25800 #ifdef __STDC__
25801 # include <limits.h>
25802 #else
25803 # include <assert.h>
25804 #endif
25805
25806 #undef $ac_func
25807
25808 /* Override any GCC internal prototype to avoid an error.
25809    Use char because int might match the return type of a GCC
25810    builtin and then its argument prototype would still apply.  */
25811 #ifdef __cplusplus
25812 extern "C"
25813 #endif
25814 char $ac_func ();
25815 /* The GNU C library defines this for functions which it implements
25816     to always fail with ENOSYS.  Some functions are actually named
25817     something starting with __ and the normal name is an alias.  */
25818 #if defined __stub_$ac_func || defined __stub___$ac_func
25819 choke me
25820 #endif
25821
25822 int
25823 main ()
25824 {
25825 return $ac_func ();
25826   ;
25827   return 0;
25828 }
25829 _ACEOF
25830 rm -f conftest.$ac_objext conftest$ac_exeext
25831 if { (ac_try="$ac_link"
25832 case "(($ac_try" in
25833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25834   *) ac_try_echo=$ac_try;;
25835 esac
25836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25837   (eval "$ac_link") 2>conftest.er1
25838   ac_status=$?
25839   grep -v '^ *+' conftest.er1 >conftest.err
25840   rm -f conftest.er1
25841   cat conftest.err >&5
25842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843   (exit $ac_status); } &&
25844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25845   { (case "(($ac_try" in
25846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25847   *) ac_try_echo=$ac_try;;
25848 esac
25849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25850   (eval "$ac_try") 2>&5
25851   ac_status=$?
25852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853   (exit $ac_status); }; } &&
25854          { ac_try='test -s conftest$ac_exeext'
25855   { (case "(($ac_try" in
25856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25857   *) ac_try_echo=$ac_try;;
25858 esac
25859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25860   (eval "$ac_try") 2>&5
25861   ac_status=$?
25862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863   (exit $ac_status); }; }; then
25864   eval "$as_ac_var=yes"
25865 else
25866   echo "$as_me: failed program was:" >&5
25867 sed 's/^/| /' conftest.$ac_ext >&5
25868
25869         eval "$as_ac_var=no"
25870 fi
25871
25872 rm -f core conftest.err conftest.$ac_objext \
25873       conftest$ac_exeext conftest.$ac_ext
25874 fi
25875 ac_res=`eval echo '${'$as_ac_var'}'`
25876                { echo "$as_me:$LINENO: result: $ac_res" >&5
25877 echo "${ECHO_T}$ac_res" >&6; }
25878 if test `eval echo '${'$as_ac_var'}'` = yes; then
25879   cat >>confdefs.h <<_ACEOF
25880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25881 _ACEOF
25882
25883 { echo "$as_me:$LINENO: checking for _doprnt" >&5
25884 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
25885 if test "${ac_cv_func__doprnt+set}" = set; then
25886   echo $ECHO_N "(cached) $ECHO_C" >&6
25887 else
25888   cat >conftest.$ac_ext <<_ACEOF
25889 /* confdefs.h.  */
25890 _ACEOF
25891 cat confdefs.h >>conftest.$ac_ext
25892 cat >>conftest.$ac_ext <<_ACEOF
25893 /* end confdefs.h.  */
25894 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25896 #define _doprnt innocuous__doprnt
25897
25898 /* System header to define __stub macros and hopefully few prototypes,
25899     which can conflict with char _doprnt (); below.
25900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25901     <limits.h> exists even on freestanding compilers.  */
25902
25903 #ifdef __STDC__
25904 # include <limits.h>
25905 #else
25906 # include <assert.h>
25907 #endif
25908
25909 #undef _doprnt
25910
25911 /* Override any GCC internal prototype to avoid an error.
25912    Use char because int might match the return type of a GCC
25913    builtin and then its argument prototype would still apply.  */
25914 #ifdef __cplusplus
25915 extern "C"
25916 #endif
25917 char _doprnt ();
25918 /* The GNU C library defines this for functions which it implements
25919     to always fail with ENOSYS.  Some functions are actually named
25920     something starting with __ and the normal name is an alias.  */
25921 #if defined __stub__doprnt || defined __stub____doprnt
25922 choke me
25923 #endif
25924
25925 int
25926 main ()
25927 {
25928 return _doprnt ();
25929   ;
25930   return 0;
25931 }
25932 _ACEOF
25933 rm -f conftest.$ac_objext conftest$ac_exeext
25934 if { (ac_try="$ac_link"
25935 case "(($ac_try" in
25936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25937   *) ac_try_echo=$ac_try;;
25938 esac
25939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25940   (eval "$ac_link") 2>conftest.er1
25941   ac_status=$?
25942   grep -v '^ *+' conftest.er1 >conftest.err
25943   rm -f conftest.er1
25944   cat conftest.err >&5
25945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946   (exit $ac_status); } &&
25947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25948   { (case "(($ac_try" in
25949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25950   *) ac_try_echo=$ac_try;;
25951 esac
25952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25953   (eval "$ac_try") 2>&5
25954   ac_status=$?
25955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956   (exit $ac_status); }; } &&
25957          { ac_try='test -s conftest$ac_exeext'
25958   { (case "(($ac_try" in
25959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25960   *) ac_try_echo=$ac_try;;
25961 esac
25962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25963   (eval "$ac_try") 2>&5
25964   ac_status=$?
25965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966   (exit $ac_status); }; }; then
25967   ac_cv_func__doprnt=yes
25968 else
25969   echo "$as_me: failed program was:" >&5
25970 sed 's/^/| /' conftest.$ac_ext >&5
25971
25972         ac_cv_func__doprnt=no
25973 fi
25974
25975 rm -f core conftest.err conftest.$ac_objext \
25976       conftest$ac_exeext conftest.$ac_ext
25977 fi
25978 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25979 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
25980 if test $ac_cv_func__doprnt = yes; then
25981
25982 cat >>confdefs.h <<\_ACEOF
25983 #define HAVE_DOPRNT 1
25984 _ACEOF
25985
25986 fi
25987
25988 fi
25989 done
25990
25991
25992
25993
25994
25995
25996
25997
25998
25999
26000 for ac_func in mmap select socket strcspn strerror strspn getpagesize sysconf
26001 do
26002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26006   echo $ECHO_N "(cached) $ECHO_C" >&6
26007 else
26008   cat >conftest.$ac_ext <<_ACEOF
26009 /* confdefs.h.  */
26010 _ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h.  */
26014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26016 #define $ac_func innocuous_$ac_func
26017
26018 /* System header to define __stub macros and hopefully few prototypes,
26019     which can conflict with char $ac_func (); below.
26020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26021     <limits.h> exists even on freestanding compilers.  */
26022
26023 #ifdef __STDC__
26024 # include <limits.h>
26025 #else
26026 # include <assert.h>
26027 #endif
26028
26029 #undef $ac_func
26030
26031 /* Override any GCC internal prototype to avoid an error.
26032    Use char because int might match the return type of a GCC
26033    builtin and then its argument prototype would still apply.  */
26034 #ifdef __cplusplus
26035 extern "C"
26036 #endif
26037 char $ac_func ();
26038 /* The GNU C library defines this for functions which it implements
26039     to always fail with ENOSYS.  Some functions are actually named
26040     something starting with __ and the normal name is an alias.  */
26041 #if defined __stub_$ac_func || defined __stub___$ac_func
26042 choke me
26043 #endif
26044
26045 int
26046 main ()
26047 {
26048 return $ac_func ();
26049   ;
26050   return 0;
26051 }
26052 _ACEOF
26053 rm -f conftest.$ac_objext conftest$ac_exeext
26054 if { (ac_try="$ac_link"
26055 case "(($ac_try" in
26056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26057   *) ac_try_echo=$ac_try;;
26058 esac
26059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26060   (eval "$ac_link") 2>conftest.er1
26061   ac_status=$?
26062   grep -v '^ *+' conftest.er1 >conftest.err
26063   rm -f conftest.er1
26064   cat conftest.err >&5
26065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066   (exit $ac_status); } &&
26067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26068   { (case "(($ac_try" in
26069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26070   *) ac_try_echo=$ac_try;;
26071 esac
26072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26073   (eval "$ac_try") 2>&5
26074   ac_status=$?
26075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076   (exit $ac_status); }; } &&
26077          { ac_try='test -s conftest$ac_exeext'
26078   { (case "(($ac_try" in
26079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26080   *) ac_try_echo=$ac_try;;
26081 esac
26082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26083   (eval "$ac_try") 2>&5
26084   ac_status=$?
26085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086   (exit $ac_status); }; }; then
26087   eval "$as_ac_var=yes"
26088 else
26089   echo "$as_me: failed program was:" >&5
26090 sed 's/^/| /' conftest.$ac_ext >&5
26091
26092         eval "$as_ac_var=no"
26093 fi
26094
26095 rm -f core conftest.err conftest.$ac_objext \
26096       conftest$ac_exeext conftest.$ac_ext
26097 fi
26098 ac_res=`eval echo '${'$as_ac_var'}'`
26099                { echo "$as_me:$LINENO: result: $ac_res" >&5
26100 echo "${ECHO_T}$ac_res" >&6; }
26101 if test `eval echo '${'$as_ac_var'}'` = yes; then
26102   cat >>confdefs.h <<_ACEOF
26103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26104 _ACEOF
26105
26106 fi
26107 done
26108
26109
26110
26111
26112
26113 for ac_func in snprintf gettimeofday nanosleep sched_setscheduler
26114 do
26115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26119   echo $ECHO_N "(cached) $ECHO_C" >&6
26120 else
26121   cat >conftest.$ac_ext <<_ACEOF
26122 /* confdefs.h.  */
26123 _ACEOF
26124 cat confdefs.h >>conftest.$ac_ext
26125 cat >>conftest.$ac_ext <<_ACEOF
26126 /* end confdefs.h.  */
26127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26129 #define $ac_func innocuous_$ac_func
26130
26131 /* System header to define __stub macros and hopefully few prototypes,
26132     which can conflict with char $ac_func (); below.
26133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26134     <limits.h> exists even on freestanding compilers.  */
26135
26136 #ifdef __STDC__
26137 # include <limits.h>
26138 #else
26139 # include <assert.h>
26140 #endif
26141
26142 #undef $ac_func
26143
26144 /* Override any GCC internal prototype to avoid an error.
26145    Use char because int might match the return type of a GCC
26146    builtin and then its argument prototype would still apply.  */
26147 #ifdef __cplusplus
26148 extern "C"
26149 #endif
26150 char $ac_func ();
26151 /* The GNU C library defines this for functions which it implements
26152     to always fail with ENOSYS.  Some functions are actually named
26153     something starting with __ and the normal name is an alias.  */
26154 #if defined __stub_$ac_func || defined __stub___$ac_func
26155 choke me
26156 #endif
26157
26158 int
26159 main ()
26160 {
26161 return $ac_func ();
26162   ;
26163   return 0;
26164 }
26165 _ACEOF
26166 rm -f conftest.$ac_objext conftest$ac_exeext
26167 if { (ac_try="$ac_link"
26168 case "(($ac_try" in
26169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26170   *) ac_try_echo=$ac_try;;
26171 esac
26172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26173   (eval "$ac_link") 2>conftest.er1
26174   ac_status=$?
26175   grep -v '^ *+' conftest.er1 >conftest.err
26176   rm -f conftest.er1
26177   cat conftest.err >&5
26178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179   (exit $ac_status); } &&
26180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26181   { (case "(($ac_try" in
26182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26183   *) ac_try_echo=$ac_try;;
26184 esac
26185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26186   (eval "$ac_try") 2>&5
26187   ac_status=$?
26188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189   (exit $ac_status); }; } &&
26190          { ac_try='test -s conftest$ac_exeext'
26191   { (case "(($ac_try" in
26192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26193   *) ac_try_echo=$ac_try;;
26194 esac
26195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26196   (eval "$ac_try") 2>&5
26197   ac_status=$?
26198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199   (exit $ac_status); }; }; then
26200   eval "$as_ac_var=yes"
26201 else
26202   echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26204
26205         eval "$as_ac_var=no"
26206 fi
26207
26208 rm -f core conftest.err conftest.$ac_objext \
26209       conftest$ac_exeext conftest.$ac_ext
26210 fi
26211 ac_res=`eval echo '${'$as_ac_var'}'`
26212                { echo "$as_me:$LINENO: result: $ac_res" >&5
26213 echo "${ECHO_T}$ac_res" >&6; }
26214 if test `eval echo '${'$as_ac_var'}'` = yes; then
26215   cat >>confdefs.h <<_ACEOF
26216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26217 _ACEOF
26218
26219 fi
26220 done
26221
26222
26223
26224 for ac_func in modf sqrt
26225 do
26226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26227 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26229 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26230   echo $ECHO_N "(cached) $ECHO_C" >&6
26231 else
26232   cat >conftest.$ac_ext <<_ACEOF
26233 /* confdefs.h.  */
26234 _ACEOF
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h.  */
26238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26240 #define $ac_func innocuous_$ac_func
26241
26242 /* System header to define __stub macros and hopefully few prototypes,
26243     which can conflict with char $ac_func (); below.
26244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26245     <limits.h> exists even on freestanding compilers.  */
26246
26247 #ifdef __STDC__
26248 # include <limits.h>
26249 #else
26250 # include <assert.h>
26251 #endif
26252
26253 #undef $ac_func
26254
26255 /* Override any GCC internal prototype to avoid an error.
26256    Use char because int might match the return type of a GCC
26257    builtin and then its argument prototype would still apply.  */
26258 #ifdef __cplusplus
26259 extern "C"
26260 #endif
26261 char $ac_func ();
26262 /* The GNU C library defines this for functions which it implements
26263     to always fail with ENOSYS.  Some functions are actually named
26264     something starting with __ and the normal name is an alias.  */
26265 #if defined __stub_$ac_func || defined __stub___$ac_func
26266 choke me
26267 #endif
26268
26269 int
26270 main ()
26271 {
26272 return $ac_func ();
26273   ;
26274   return 0;
26275 }
26276 _ACEOF
26277 rm -f conftest.$ac_objext conftest$ac_exeext
26278 if { (ac_try="$ac_link"
26279 case "(($ac_try" in
26280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26281   *) ac_try_echo=$ac_try;;
26282 esac
26283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26284   (eval "$ac_link") 2>conftest.er1
26285   ac_status=$?
26286   grep -v '^ *+' conftest.er1 >conftest.err
26287   rm -f conftest.er1
26288   cat conftest.err >&5
26289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290   (exit $ac_status); } &&
26291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26292   { (case "(($ac_try" in
26293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26294   *) ac_try_echo=$ac_try;;
26295 esac
26296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26297   (eval "$ac_try") 2>&5
26298   ac_status=$?
26299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300   (exit $ac_status); }; } &&
26301          { ac_try='test -s conftest$ac_exeext'
26302   { (case "(($ac_try" in
26303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26304   *) ac_try_echo=$ac_try;;
26305 esac
26306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26307   (eval "$ac_try") 2>&5
26308   ac_status=$?
26309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310   (exit $ac_status); }; }; then
26311   eval "$as_ac_var=yes"
26312 else
26313   echo "$as_me: failed program was:" >&5
26314 sed 's/^/| /' conftest.$ac_ext >&5
26315
26316         eval "$as_ac_var=no"
26317 fi
26318
26319 rm -f core conftest.err conftest.$ac_objext \
26320       conftest$ac_exeext conftest.$ac_ext
26321 fi
26322 ac_res=`eval echo '${'$as_ac_var'}'`
26323                { echo "$as_me:$LINENO: result: $ac_res" >&5
26324 echo "${ECHO_T}$ac_res" >&6; }
26325 if test `eval echo '${'$as_ac_var'}'` = yes; then
26326   cat >>confdefs.h <<_ACEOF
26327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26328 _ACEOF
26329
26330 fi
26331 done
26332
26333
26334 { echo "$as_me:$LINENO: checking for sincos in -lm" >&5
26335 echo $ECHO_N "checking for sincos in -lm... $ECHO_C" >&6; }
26336 if test "${ac_cv_lib_m_sincos+set}" = set; then
26337   echo $ECHO_N "(cached) $ECHO_C" >&6
26338 else
26339   ac_check_lib_save_LIBS=$LIBS
26340 LIBS="-lm  $LIBS"
26341 cat >conftest.$ac_ext <<_ACEOF
26342 /* confdefs.h.  */
26343 _ACEOF
26344 cat confdefs.h >>conftest.$ac_ext
26345 cat >>conftest.$ac_ext <<_ACEOF
26346 /* end confdefs.h.  */
26347
26348 /* Override any GCC internal prototype to avoid an error.
26349    Use char because int might match the return type of a GCC
26350    builtin and then its argument prototype would still apply.  */
26351 #ifdef __cplusplus
26352 extern "C"
26353 #endif
26354 char sincos ();
26355 int
26356 main ()
26357 {
26358 return sincos ();
26359   ;
26360   return 0;
26361 }
26362 _ACEOF
26363 rm -f conftest.$ac_objext conftest$ac_exeext
26364 if { (ac_try="$ac_link"
26365 case "(($ac_try" in
26366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26367   *) ac_try_echo=$ac_try;;
26368 esac
26369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26370   (eval "$ac_link") 2>conftest.er1
26371   ac_status=$?
26372   grep -v '^ *+' conftest.er1 >conftest.err
26373   rm -f conftest.er1
26374   cat conftest.err >&5
26375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376   (exit $ac_status); } &&
26377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26378   { (case "(($ac_try" in
26379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26380   *) ac_try_echo=$ac_try;;
26381 esac
26382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26383   (eval "$ac_try") 2>&5
26384   ac_status=$?
26385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26386   (exit $ac_status); }; } &&
26387          { ac_try='test -s conftest$ac_exeext'
26388   { (case "(($ac_try" in
26389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26390   *) ac_try_echo=$ac_try;;
26391 esac
26392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26393   (eval "$ac_try") 2>&5
26394   ac_status=$?
26395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396   (exit $ac_status); }; }; then
26397   ac_cv_lib_m_sincos=yes
26398 else
26399   echo "$as_me: failed program was:" >&5
26400 sed 's/^/| /' conftest.$ac_ext >&5
26401
26402         ac_cv_lib_m_sincos=no
26403 fi
26404
26405 rm -f core conftest.err conftest.$ac_objext \
26406       conftest$ac_exeext conftest.$ac_ext
26407 LIBS=$ac_check_lib_save_LIBS
26408 fi
26409 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sincos" >&5
26410 echo "${ECHO_T}$ac_cv_lib_m_sincos" >&6; }
26411 if test $ac_cv_lib_m_sincos = yes; then
26412
26413 cat >>confdefs.h <<\_ACEOF
26414 #define HAVE_SINCOS 1
26415 _ACEOF
26416
26417 fi
26418
26419 { echo "$as_me:$LINENO: checking for sincosf in -lm" >&5
26420 echo $ECHO_N "checking for sincosf in -lm... $ECHO_C" >&6; }
26421 if test "${ac_cv_lib_m_sincosf+set}" = set; then
26422   echo $ECHO_N "(cached) $ECHO_C" >&6
26423 else
26424   ac_check_lib_save_LIBS=$LIBS
26425 LIBS="-lm  $LIBS"
26426 cat >conftest.$ac_ext <<_ACEOF
26427 /* confdefs.h.  */
26428 _ACEOF
26429 cat confdefs.h >>conftest.$ac_ext
26430 cat >>conftest.$ac_ext <<_ACEOF
26431 /* end confdefs.h.  */
26432
26433 /* Override any GCC internal prototype to avoid an error.
26434    Use char because int might match the return type of a GCC
26435    builtin and then its argument prototype would still apply.  */
26436 #ifdef __cplusplus
26437 extern "C"
26438 #endif
26439 char sincosf ();
26440 int
26441 main ()
26442 {
26443 return sincosf ();
26444   ;
26445   return 0;
26446 }
26447 _ACEOF
26448 rm -f conftest.$ac_objext conftest$ac_exeext
26449 if { (ac_try="$ac_link"
26450 case "(($ac_try" in
26451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26452   *) ac_try_echo=$ac_try;;
26453 esac
26454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26455   (eval "$ac_link") 2>conftest.er1
26456   ac_status=$?
26457   grep -v '^ *+' conftest.er1 >conftest.err
26458   rm -f conftest.er1
26459   cat conftest.err >&5
26460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461   (exit $ac_status); } &&
26462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26463   { (case "(($ac_try" in
26464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26465   *) ac_try_echo=$ac_try;;
26466 esac
26467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26468   (eval "$ac_try") 2>&5
26469   ac_status=$?
26470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471   (exit $ac_status); }; } &&
26472          { ac_try='test -s conftest$ac_exeext'
26473   { (case "(($ac_try" in
26474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26475   *) ac_try_echo=$ac_try;;
26476 esac
26477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26478   (eval "$ac_try") 2>&5
26479   ac_status=$?
26480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481   (exit $ac_status); }; }; then
26482   ac_cv_lib_m_sincosf=yes
26483 else
26484   echo "$as_me: failed program was:" >&5
26485 sed 's/^/| /' conftest.$ac_ext >&5
26486
26487         ac_cv_lib_m_sincosf=no
26488 fi
26489
26490 rm -f core conftest.err conftest.$ac_objext \
26491       conftest$ac_exeext conftest.$ac_ext
26492 LIBS=$ac_check_lib_save_LIBS
26493 fi
26494 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sincosf" >&5
26495 echo "${ECHO_T}$ac_cv_lib_m_sincosf" >&6; }
26496 if test $ac_cv_lib_m_sincosf = yes; then
26497
26498 cat >>confdefs.h <<\_ACEOF
26499 #define HAVE_SINCOSF 1
26500 _ACEOF
26501
26502 fi
26503
26504 { echo "$as_me:$LINENO: checking for sinf in -lm" >&5
26505 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6; }
26506 if test "${ac_cv_lib_m_sinf+set}" = set; then
26507   echo $ECHO_N "(cached) $ECHO_C" >&6
26508 else
26509   ac_check_lib_save_LIBS=$LIBS
26510 LIBS="-lm  $LIBS"
26511 cat >conftest.$ac_ext <<_ACEOF
26512 /* confdefs.h.  */
26513 _ACEOF
26514 cat confdefs.h >>conftest.$ac_ext
26515 cat >>conftest.$ac_ext <<_ACEOF
26516 /* end confdefs.h.  */
26517
26518 /* Override any GCC internal prototype to avoid an error.
26519    Use char because int might match the return type of a GCC
26520    builtin and then its argument prototype would still apply.  */
26521 #ifdef __cplusplus
26522 extern "C"
26523 #endif
26524 char sinf ();
26525 int
26526 main ()
26527 {
26528 return sinf ();
26529   ;
26530   return 0;
26531 }
26532 _ACEOF
26533 rm -f conftest.$ac_objext conftest$ac_exeext
26534 if { (ac_try="$ac_link"
26535 case "(($ac_try" in
26536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26537   *) ac_try_echo=$ac_try;;
26538 esac
26539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26540   (eval "$ac_link") 2>conftest.er1
26541   ac_status=$?
26542   grep -v '^ *+' conftest.er1 >conftest.err
26543   rm -f conftest.er1
26544   cat conftest.err >&5
26545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546   (exit $ac_status); } &&
26547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26548   { (case "(($ac_try" in
26549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550   *) ac_try_echo=$ac_try;;
26551 esac
26552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26553   (eval "$ac_try") 2>&5
26554   ac_status=$?
26555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556   (exit $ac_status); }; } &&
26557          { ac_try='test -s conftest$ac_exeext'
26558   { (case "(($ac_try" in
26559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26560   *) ac_try_echo=$ac_try;;
26561 esac
26562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26563   (eval "$ac_try") 2>&5
26564   ac_status=$?
26565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566   (exit $ac_status); }; }; then
26567   ac_cv_lib_m_sinf=yes
26568 else
26569   echo "$as_me: failed program was:" >&5
26570 sed 's/^/| /' conftest.$ac_ext >&5
26571
26572         ac_cv_lib_m_sinf=no
26573 fi
26574
26575 rm -f core conftest.err conftest.$ac_objext \
26576       conftest$ac_exeext conftest.$ac_ext
26577 LIBS=$ac_check_lib_save_LIBS
26578 fi
26579 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
26580 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6; }
26581 if test $ac_cv_lib_m_sinf = yes; then
26582
26583 cat >>confdefs.h <<\_ACEOF
26584 #define HAVE_SINF 1
26585 _ACEOF
26586
26587 fi
26588
26589 { echo "$as_me:$LINENO: checking for cosf in -lm" >&5
26590 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6; }
26591 if test "${ac_cv_lib_m_cosf+set}" = set; then
26592   echo $ECHO_N "(cached) $ECHO_C" >&6
26593 else
26594   ac_check_lib_save_LIBS=$LIBS
26595 LIBS="-lm  $LIBS"
26596 cat >conftest.$ac_ext <<_ACEOF
26597 /* confdefs.h.  */
26598 _ACEOF
26599 cat confdefs.h >>conftest.$ac_ext
26600 cat >>conftest.$ac_ext <<_ACEOF
26601 /* end confdefs.h.  */
26602
26603 /* Override any GCC internal prototype to avoid an error.
26604    Use char because int might match the return type of a GCC
26605    builtin and then its argument prototype would still apply.  */
26606 #ifdef __cplusplus
26607 extern "C"
26608 #endif
26609 char cosf ();
26610 int
26611 main ()
26612 {
26613 return cosf ();
26614   ;
26615   return 0;
26616 }
26617 _ACEOF
26618 rm -f conftest.$ac_objext conftest$ac_exeext
26619 if { (ac_try="$ac_link"
26620 case "(($ac_try" in
26621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26622   *) ac_try_echo=$ac_try;;
26623 esac
26624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26625   (eval "$ac_link") 2>conftest.er1
26626   ac_status=$?
26627   grep -v '^ *+' conftest.er1 >conftest.err
26628   rm -f conftest.er1
26629   cat conftest.err >&5
26630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26631   (exit $ac_status); } &&
26632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26633   { (case "(($ac_try" in
26634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26635   *) ac_try_echo=$ac_try;;
26636 esac
26637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26638   (eval "$ac_try") 2>&5
26639   ac_status=$?
26640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641   (exit $ac_status); }; } &&
26642          { ac_try='test -s conftest$ac_exeext'
26643   { (case "(($ac_try" in
26644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26645   *) ac_try_echo=$ac_try;;
26646 esac
26647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26648   (eval "$ac_try") 2>&5
26649   ac_status=$?
26650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651   (exit $ac_status); }; }; then
26652   ac_cv_lib_m_cosf=yes
26653 else
26654   echo "$as_me: failed program was:" >&5
26655 sed 's/^/| /' conftest.$ac_ext >&5
26656
26657         ac_cv_lib_m_cosf=no
26658 fi
26659
26660 rm -f core conftest.err conftest.$ac_objext \
26661       conftest$ac_exeext conftest.$ac_ext
26662 LIBS=$ac_check_lib_save_LIBS
26663 fi
26664 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
26665 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6; }
26666 if test $ac_cv_lib_m_cosf = yes; then
26667
26668 cat >>confdefs.h <<\_ACEOF
26669 #define HAVE_COSF 1
26670 _ACEOF
26671
26672 fi
26673
26674 { echo "$as_me:$LINENO: checking for trunc in -lm" >&5
26675 echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6; }
26676 if test "${ac_cv_lib_m_trunc+set}" = set; then
26677   echo $ECHO_N "(cached) $ECHO_C" >&6
26678 else
26679   ac_check_lib_save_LIBS=$LIBS
26680 LIBS="-lm  $LIBS"
26681 cat >conftest.$ac_ext <<_ACEOF
26682 /* confdefs.h.  */
26683 _ACEOF
26684 cat confdefs.h >>conftest.$ac_ext
26685 cat >>conftest.$ac_ext <<_ACEOF
26686 /* end confdefs.h.  */
26687
26688 /* Override any GCC internal prototype to avoid an error.
26689    Use char because int might match the return type of a GCC
26690    builtin and then its argument prototype would still apply.  */
26691 #ifdef __cplusplus
26692 extern "C"
26693 #endif
26694 char trunc ();
26695 int
26696 main ()
26697 {
26698 return trunc ();
26699   ;
26700   return 0;
26701 }
26702 _ACEOF
26703 rm -f conftest.$ac_objext conftest$ac_exeext
26704 if { (ac_try="$ac_link"
26705 case "(($ac_try" in
26706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26707   *) ac_try_echo=$ac_try;;
26708 esac
26709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26710   (eval "$ac_link") 2>conftest.er1
26711   ac_status=$?
26712   grep -v '^ *+' conftest.er1 >conftest.err
26713   rm -f conftest.er1
26714   cat conftest.err >&5
26715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716   (exit $ac_status); } &&
26717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26718   { (case "(($ac_try" in
26719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26720   *) ac_try_echo=$ac_try;;
26721 esac
26722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26723   (eval "$ac_try") 2>&5
26724   ac_status=$?
26725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726   (exit $ac_status); }; } &&
26727          { ac_try='test -s conftest$ac_exeext'
26728   { (case "(($ac_try" in
26729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26730   *) ac_try_echo=$ac_try;;
26731 esac
26732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26733   (eval "$ac_try") 2>&5
26734   ac_status=$?
26735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736   (exit $ac_status); }; }; then
26737   ac_cv_lib_m_trunc=yes
26738 else
26739   echo "$as_me: failed program was:" >&5
26740 sed 's/^/| /' conftest.$ac_ext >&5
26741
26742         ac_cv_lib_m_trunc=no
26743 fi
26744
26745 rm -f core conftest.err conftest.$ac_objext \
26746       conftest$ac_exeext conftest.$ac_ext
26747 LIBS=$ac_check_lib_save_LIBS
26748 fi
26749 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5
26750 echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6; }
26751 if test $ac_cv_lib_m_trunc = yes; then
26752
26753 cat >>confdefs.h <<\_ACEOF
26754 #define HAVE_TRUNC 1
26755 _ACEOF
26756
26757 fi
26758
26759 { echo "$as_me:$LINENO: checking for exp10 in -lm" >&5
26760 echo $ECHO_N "checking for exp10 in -lm... $ECHO_C" >&6; }
26761 if test "${ac_cv_lib_m_exp10+set}" = set; then
26762   echo $ECHO_N "(cached) $ECHO_C" >&6
26763 else
26764   ac_check_lib_save_LIBS=$LIBS
26765 LIBS="-lm  $LIBS"
26766 cat >conftest.$ac_ext <<_ACEOF
26767 /* confdefs.h.  */
26768 _ACEOF
26769 cat confdefs.h >>conftest.$ac_ext
26770 cat >>conftest.$ac_ext <<_ACEOF
26771 /* end confdefs.h.  */
26772
26773 /* Override any GCC internal prototype to avoid an error.
26774    Use char because int might match the return type of a GCC
26775    builtin and then its argument prototype would still apply.  */
26776 #ifdef __cplusplus
26777 extern "C"
26778 #endif
26779 char exp10 ();
26780 int
26781 main ()
26782 {
26783 return exp10 ();
26784   ;
26785   return 0;
26786 }
26787 _ACEOF
26788 rm -f conftest.$ac_objext conftest$ac_exeext
26789 if { (ac_try="$ac_link"
26790 case "(($ac_try" in
26791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26792   *) ac_try_echo=$ac_try;;
26793 esac
26794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26795   (eval "$ac_link") 2>conftest.er1
26796   ac_status=$?
26797   grep -v '^ *+' conftest.er1 >conftest.err
26798   rm -f conftest.er1
26799   cat conftest.err >&5
26800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801   (exit $ac_status); } &&
26802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26803   { (case "(($ac_try" in
26804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26805   *) ac_try_echo=$ac_try;;
26806 esac
26807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26808   (eval "$ac_try") 2>&5
26809   ac_status=$?
26810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811   (exit $ac_status); }; } &&
26812          { ac_try='test -s conftest$ac_exeext'
26813   { (case "(($ac_try" in
26814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26815   *) ac_try_echo=$ac_try;;
26816 esac
26817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26818   (eval "$ac_try") 2>&5
26819   ac_status=$?
26820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821   (exit $ac_status); }; }; then
26822   ac_cv_lib_m_exp10=yes
26823 else
26824   echo "$as_me: failed program was:" >&5
26825 sed 's/^/| /' conftest.$ac_ext >&5
26826
26827         ac_cv_lib_m_exp10=no
26828 fi
26829
26830 rm -f core conftest.err conftest.$ac_objext \
26831       conftest$ac_exeext conftest.$ac_ext
26832 LIBS=$ac_check_lib_save_LIBS
26833 fi
26834 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp10" >&5
26835 echo "${ECHO_T}$ac_cv_lib_m_exp10" >&6; }
26836 if test $ac_cv_lib_m_exp10 = yes; then
26837
26838 cat >>confdefs.h <<\_ACEOF
26839 #define HAVE_EXP10 1
26840 _ACEOF
26841
26842 fi
26843
26844 #AC_FUNC_MKTIME
26845
26846
26847
26848
26849
26850   SHM_OPEN_LIBS=""
26851   save_LIBS="$LIBS"
26852   { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26853 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26854 if test "${ac_cv_search_shm_open+set}" = set; then
26855   echo $ECHO_N "(cached) $ECHO_C" >&6
26856 else
26857   ac_func_search_save_LIBS=$LIBS
26858 cat >conftest.$ac_ext <<_ACEOF
26859 /* confdefs.h.  */
26860 _ACEOF
26861 cat confdefs.h >>conftest.$ac_ext
26862 cat >>conftest.$ac_ext <<_ACEOF
26863 /* end confdefs.h.  */
26864
26865 /* Override any GCC internal prototype to avoid an error.
26866    Use char because int might match the return type of a GCC
26867    builtin and then its argument prototype would still apply.  */
26868 #ifdef __cplusplus
26869 extern "C"
26870 #endif
26871 char shm_open ();
26872 int
26873 main ()
26874 {
26875 return shm_open ();
26876   ;
26877   return 0;
26878 }
26879 _ACEOF
26880 for ac_lib in '' rt; do
26881   if test -z "$ac_lib"; then
26882     ac_res="none required"
26883   else
26884     ac_res=-l$ac_lib
26885     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26886   fi
26887   rm -f conftest.$ac_objext conftest$ac_exeext
26888 if { (ac_try="$ac_link"
26889 case "(($ac_try" in
26890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26891   *) ac_try_echo=$ac_try;;
26892 esac
26893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26894   (eval "$ac_link") 2>conftest.er1
26895   ac_status=$?
26896   grep -v '^ *+' conftest.er1 >conftest.err
26897   rm -f conftest.er1
26898   cat conftest.err >&5
26899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900   (exit $ac_status); } &&
26901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26902   { (case "(($ac_try" in
26903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26904   *) ac_try_echo=$ac_try;;
26905 esac
26906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26907   (eval "$ac_try") 2>&5
26908   ac_status=$?
26909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26910   (exit $ac_status); }; } &&
26911          { ac_try='test -s conftest$ac_exeext'
26912   { (case "(($ac_try" in
26913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26914   *) ac_try_echo=$ac_try;;
26915 esac
26916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26917   (eval "$ac_try") 2>&5
26918   ac_status=$?
26919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920   (exit $ac_status); }; }; then
26921   ac_cv_search_shm_open=$ac_res
26922 else
26923   echo "$as_me: failed program was:" >&5
26924 sed 's/^/| /' conftest.$ac_ext >&5
26925
26926
26927 fi
26928
26929 rm -f core conftest.err conftest.$ac_objext \
26930       conftest$ac_exeext
26931   if test "${ac_cv_search_shm_open+set}" = set; then
26932   break
26933 fi
26934 done
26935 if test "${ac_cv_search_shm_open+set}" = set; then
26936   :
26937 else
26938   ac_cv_search_shm_open=no
26939 fi
26940 rm conftest.$ac_ext
26941 LIBS=$ac_func_search_save_LIBS
26942 fi
26943 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26944 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26945 ac_res=$ac_cv_search_shm_open
26946 if test "$ac_res" != no; then
26947   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26948   SHM_OPEN_LIBS="$LIBS"
26949 fi
26950
26951
26952 for ac_func in shm_open
26953 do
26954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26958   echo $ECHO_N "(cached) $ECHO_C" >&6
26959 else
26960   cat >conftest.$ac_ext <<_ACEOF
26961 /* confdefs.h.  */
26962 _ACEOF
26963 cat confdefs.h >>conftest.$ac_ext
26964 cat >>conftest.$ac_ext <<_ACEOF
26965 /* end confdefs.h.  */
26966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26968 #define $ac_func innocuous_$ac_func
26969
26970 /* System header to define __stub macros and hopefully few prototypes,
26971     which can conflict with char $ac_func (); below.
26972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26973     <limits.h> exists even on freestanding compilers.  */
26974
26975 #ifdef __STDC__
26976 # include <limits.h>
26977 #else
26978 # include <assert.h>
26979 #endif
26980
26981 #undef $ac_func
26982
26983 /* Override any GCC internal prototype to avoid an error.
26984    Use char because int might match the return type of a GCC
26985    builtin and then its argument prototype would still apply.  */
26986 #ifdef __cplusplus
26987 extern "C"
26988 #endif
26989 char $ac_func ();
26990 /* The GNU C library defines this for functions which it implements
26991     to always fail with ENOSYS.  Some functions are actually named
26992     something starting with __ and the normal name is an alias.  */
26993 #if defined __stub_$ac_func || defined __stub___$ac_func
26994 choke me
26995 #endif
26996
26997 int
26998 main ()
26999 {
27000 return $ac_func ();
27001   ;
27002   return 0;
27003 }
27004 _ACEOF
27005 rm -f conftest.$ac_objext conftest$ac_exeext
27006 if { (ac_try="$ac_link"
27007 case "(($ac_try" in
27008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27009   *) ac_try_echo=$ac_try;;
27010 esac
27011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27012   (eval "$ac_link") 2>conftest.er1
27013   ac_status=$?
27014   grep -v '^ *+' conftest.er1 >conftest.err
27015   rm -f conftest.er1
27016   cat conftest.err >&5
27017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018   (exit $ac_status); } &&
27019          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27020   { (case "(($ac_try" in
27021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27022   *) ac_try_echo=$ac_try;;
27023 esac
27024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27025   (eval "$ac_try") 2>&5
27026   ac_status=$?
27027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028   (exit $ac_status); }; } &&
27029          { ac_try='test -s conftest$ac_exeext'
27030   { (case "(($ac_try" in
27031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27032   *) ac_try_echo=$ac_try;;
27033 esac
27034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27035   (eval "$ac_try") 2>&5
27036   ac_status=$?
27037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038   (exit $ac_status); }; }; then
27039   eval "$as_ac_var=yes"
27040 else
27041   echo "$as_me: failed program was:" >&5
27042 sed 's/^/| /' conftest.$ac_ext >&5
27043
27044         eval "$as_ac_var=no"
27045 fi
27046
27047 rm -f core conftest.err conftest.$ac_objext \
27048       conftest$ac_exeext conftest.$ac_ext
27049 fi
27050 ac_res=`eval echo '${'$as_ac_var'}'`
27051                { echo "$as_me:$LINENO: result: $ac_res" >&5
27052 echo "${ECHO_T}$ac_res" >&6; }
27053 if test `eval echo '${'$as_ac_var'}'` = yes; then
27054   cat >>confdefs.h <<_ACEOF
27055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27056 _ACEOF
27057
27058 fi
27059 done
27060
27061   LIBS="$save_LIBS"
27062
27063
27064
27065
27066 # on Mingw32 extra LDFLAGS are required to ease global variable linking
27067 LIBGNURADIO_CORE_EXTRA_LDFLAGS=""
27068
27069 { echo "$as_me:$LINENO: checking whether $LD accepts --enable-runtime-pseudo-reloc" >&5
27070 echo $ECHO_N "checking whether $LD accepts --enable-runtime-pseudo-reloc... $ECHO_C" >&6; }
27071 if ${LD} --enable-runtime-pseudo-reloc --version >/dev/null 2>&1
27072 then
27073         # libtool requires the quotes
27074         LIBGNURADIO_CORE_EXTRA_LDFLAGS="\"-Wl,--enable-runtime-pseudo-reloc\""
27075         { echo "$as_me:$LINENO: result: yes" >&5
27076 echo "${ECHO_T}yes" >&6; }
27077 else
27078         { echo "$as_me:$LINENO: result: no" >&5
27079 echo "${ECHO_T}no" >&6; }
27080 fi
27081
27082
27083
27084
27085
27086   { echo "$as_me:$LINENO: checking for CreateFileMapping function" >&5
27087 echo $ECHO_N "checking for CreateFileMapping function... $ECHO_C" >&6; }
27088   cat >conftest.$ac_ext <<_ACEOF
27089
27090 #include <windows.h>
27091 int main (int argc, char **argv)
27092 {
27093     HANDLE handle;
27094     int size;
27095     char                seg_name[1024];
27096     handle = CreateFileMapping(
27097                      INVALID_HANDLE_VALUE,    // use paging file
27098                      NULL,                    // default security
27099                      PAGE_READWRITE,          // read/write access
27100                      0,                       // max. object size
27101                      size,                // buffer size
27102                      seg_name);                 // name of mapping object
27103     return 0;
27104 }
27105
27106 _ACEOF
27107 rm -f conftest.$ac_objext
27108 if { (ac_try="$ac_compile"
27109 case "(($ac_try" in
27110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27111   *) ac_try_echo=$ac_try;;
27112 esac
27113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27114   (eval "$ac_compile") 2>conftest.er1
27115   ac_status=$?
27116   grep -v '^ *+' conftest.er1 >conftest.err
27117   rm -f conftest.er1
27118   cat conftest.err >&5
27119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120   (exit $ac_status); } &&
27121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27122   { (case "(($ac_try" in
27123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27124   *) ac_try_echo=$ac_try;;
27125 esac
27126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27127   (eval "$ac_try") 2>&5
27128   ac_status=$?
27129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130   (exit $ac_status); }; } &&
27131          { ac_try='test -s conftest.$ac_objext'
27132   { (case "(($ac_try" in
27133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134   *) ac_try_echo=$ac_try;;
27135 esac
27136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27137   (eval "$ac_try") 2>&5
27138   ac_status=$?
27139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140   (exit $ac_status); }; }; then
27141   HAVE_CREATEFILEMAPPING=yes
27142
27143 cat >>confdefs.h <<\_ACEOF
27144 #define HAVE_CREATEFILEMAPPING 1
27145 _ACEOF
27146
27147 else
27148   echo "$as_me: failed program was:" >&5
27149 sed 's/^/| /' conftest.$ac_ext >&5
27150
27151         HAVE_CREATEFILEMAPPING=no
27152 fi
27153
27154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27155
27156   { echo "$as_me:$LINENO: result: $HAVE_CREATEFILEMAPPING" >&5
27157 echo "${ECHO_T}$HAVE_CREATEFILEMAPPING" >&6; }
27158
27159
27160 if test x$HAVE_CREATEFILEMAPPING = xyes; then
27161   HAVE_CREATEFILEMAPPING_TRUE=
27162   HAVE_CREATEFILEMAPPING_FALSE='#'
27163 else
27164   HAVE_CREATEFILEMAPPING_TRUE='#'
27165   HAVE_CREATEFILEMAPPING_FALSE=
27166 fi
27167
27168
27169
27170
27171
27172
27173
27174
27175 for ac_header in sys/types.h fcntl.h io.h
27176 do
27177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27179   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27182   echo $ECHO_N "(cached) $ECHO_C" >&6
27183 fi
27184 ac_res=`eval echo '${'$as_ac_Header'}'`
27185                { echo "$as_me:$LINENO: result: $ac_res" >&5
27186 echo "${ECHO_T}$ac_res" >&6; }
27187 else
27188   # Is the header compilable?
27189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27191 cat >conftest.$ac_ext <<_ACEOF
27192 /* confdefs.h.  */
27193 _ACEOF
27194 cat confdefs.h >>conftest.$ac_ext
27195 cat >>conftest.$ac_ext <<_ACEOF
27196 /* end confdefs.h.  */
27197 $ac_includes_default
27198 #include <$ac_header>
27199 _ACEOF
27200 rm -f conftest.$ac_objext
27201 if { (ac_try="$ac_compile"
27202 case "(($ac_try" in
27203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204   *) ac_try_echo=$ac_try;;
27205 esac
27206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27207   (eval "$ac_compile") 2>conftest.er1
27208   ac_status=$?
27209   grep -v '^ *+' conftest.er1 >conftest.err
27210   rm -f conftest.er1
27211   cat conftest.err >&5
27212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213   (exit $ac_status); } &&
27214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27215   { (case "(($ac_try" in
27216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27217   *) ac_try_echo=$ac_try;;
27218 esac
27219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27220   (eval "$ac_try") 2>&5
27221   ac_status=$?
27222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223   (exit $ac_status); }; } &&
27224          { ac_try='test -s conftest.$ac_objext'
27225   { (case "(($ac_try" in
27226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227   *) ac_try_echo=$ac_try;;
27228 esac
27229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27230   (eval "$ac_try") 2>&5
27231   ac_status=$?
27232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233   (exit $ac_status); }; }; then
27234   ac_header_compiler=yes
27235 else
27236   echo "$as_me: failed program was:" >&5
27237 sed 's/^/| /' conftest.$ac_ext >&5
27238
27239         ac_header_compiler=no
27240 fi
27241
27242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27244 echo "${ECHO_T}$ac_header_compiler" >&6; }
27245
27246 # Is the header present?
27247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27249 cat >conftest.$ac_ext <<_ACEOF
27250 /* confdefs.h.  */
27251 _ACEOF
27252 cat confdefs.h >>conftest.$ac_ext
27253 cat >>conftest.$ac_ext <<_ACEOF
27254 /* end confdefs.h.  */
27255 #include <$ac_header>
27256 _ACEOF
27257 if { (ac_try="$ac_cpp conftest.$ac_ext"
27258 case "(($ac_try" in
27259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27260   *) ac_try_echo=$ac_try;;
27261 esac
27262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27263   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27264   ac_status=$?
27265   grep -v '^ *+' conftest.er1 >conftest.err
27266   rm -f conftest.er1
27267   cat conftest.err >&5
27268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269   (exit $ac_status); } >/dev/null; then
27270   if test -s conftest.err; then
27271     ac_cpp_err=$ac_c_preproc_warn_flag
27272     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27273   else
27274     ac_cpp_err=
27275   fi
27276 else
27277   ac_cpp_err=yes
27278 fi
27279 if test -z "$ac_cpp_err"; then
27280   ac_header_preproc=yes
27281 else
27282   echo "$as_me: failed program was:" >&5
27283 sed 's/^/| /' conftest.$ac_ext >&5
27284
27285   ac_header_preproc=no
27286 fi
27287
27288 rm -f conftest.err conftest.$ac_ext
27289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27290 echo "${ECHO_T}$ac_header_preproc" >&6; }
27291
27292 # So?  What about this header?
27293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27294   yes:no: )
27295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27299     ac_header_preproc=yes
27300     ;;
27301   no:yes:* )
27302     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27304     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27305 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27306     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27308     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27309 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27312     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27314
27315     ;;
27316 esac
27317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27320   echo $ECHO_N "(cached) $ECHO_C" >&6
27321 else
27322   eval "$as_ac_Header=\$ac_header_preproc"
27323 fi
27324 ac_res=`eval echo '${'$as_ac_Header'}'`
27325                { echo "$as_me:$LINENO: result: $ac_res" >&5
27326 echo "${ECHO_T}$ac_res" >&6; }
27327
27328 fi
27329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27330   cat >>confdefs.h <<_ACEOF
27331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27332 _ACEOF
27333
27334 fi
27335
27336 done
27337
27338
27339 for ac_header in windows.h
27340 do
27341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27343   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27346   echo $ECHO_N "(cached) $ECHO_C" >&6
27347 fi
27348 ac_res=`eval echo '${'$as_ac_Header'}'`
27349                { echo "$as_me:$LINENO: result: $ac_res" >&5
27350 echo "${ECHO_T}$ac_res" >&6; }
27351 else
27352   # Is the header compilable?
27353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27355 cat >conftest.$ac_ext <<_ACEOF
27356 /* confdefs.h.  */
27357 _ACEOF
27358 cat confdefs.h >>conftest.$ac_ext
27359 cat >>conftest.$ac_ext <<_ACEOF
27360 /* end confdefs.h.  */
27361 $ac_includes_default
27362 #include <$ac_header>
27363 _ACEOF
27364 rm -f conftest.$ac_objext
27365 if { (ac_try="$ac_compile"
27366 case "(($ac_try" in
27367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368   *) ac_try_echo=$ac_try;;
27369 esac
27370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371   (eval "$ac_compile") 2>conftest.er1
27372   ac_status=$?
27373   grep -v '^ *+' conftest.er1 >conftest.err
27374   rm -f conftest.er1
27375   cat conftest.err >&5
27376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377   (exit $ac_status); } &&
27378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27379   { (case "(($ac_try" in
27380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27381   *) ac_try_echo=$ac_try;;
27382 esac
27383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27384   (eval "$ac_try") 2>&5
27385   ac_status=$?
27386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387   (exit $ac_status); }; } &&
27388          { ac_try='test -s conftest.$ac_objext'
27389   { (case "(($ac_try" in
27390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27391   *) ac_try_echo=$ac_try;;
27392 esac
27393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27394   (eval "$ac_try") 2>&5
27395   ac_status=$?
27396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397   (exit $ac_status); }; }; then
27398   ac_header_compiler=yes
27399 else
27400   echo "$as_me: failed program was:" >&5
27401 sed 's/^/| /' conftest.$ac_ext >&5
27402
27403         ac_header_compiler=no
27404 fi
27405
27406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27408 echo "${ECHO_T}$ac_header_compiler" >&6; }
27409
27410 # Is the header present?
27411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27413 cat >conftest.$ac_ext <<_ACEOF
27414 /* confdefs.h.  */
27415 _ACEOF
27416 cat confdefs.h >>conftest.$ac_ext
27417 cat >>conftest.$ac_ext <<_ACEOF
27418 /* end confdefs.h.  */
27419 #include <$ac_header>
27420 _ACEOF
27421 if { (ac_try="$ac_cpp conftest.$ac_ext"
27422 case "(($ac_try" in
27423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27424   *) ac_try_echo=$ac_try;;
27425 esac
27426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27428   ac_status=$?
27429   grep -v '^ *+' conftest.er1 >conftest.err
27430   rm -f conftest.er1
27431   cat conftest.err >&5
27432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433   (exit $ac_status); } >/dev/null; then
27434   if test -s conftest.err; then
27435     ac_cpp_err=$ac_c_preproc_warn_flag
27436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27437   else
27438     ac_cpp_err=
27439   fi
27440 else
27441   ac_cpp_err=yes
27442 fi
27443 if test -z "$ac_cpp_err"; then
27444   ac_header_preproc=yes
27445 else
27446   echo "$as_me: failed program was:" >&5
27447 sed 's/^/| /' conftest.$ac_ext >&5
27448
27449   ac_header_preproc=no
27450 fi
27451
27452 rm -f conftest.err conftest.$ac_ext
27453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27454 echo "${ECHO_T}$ac_header_preproc" >&6; }
27455
27456 # So?  What about this header?
27457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27458   yes:no: )
27459     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27463     ac_header_preproc=yes
27464     ;;
27465   no:yes:* )
27466     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27468     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27469 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27470     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27472     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27473 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27476     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27478
27479     ;;
27480 esac
27481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27484   echo $ECHO_N "(cached) $ECHO_C" >&6
27485 else
27486   eval "$as_ac_Header=\$ac_header_preproc"
27487 fi
27488 ac_res=`eval echo '${'$as_ac_Header'}'`
27489                { echo "$as_me:$LINENO: result: $ac_res" >&5
27490 echo "${ECHO_T}$ac_res" >&6; }
27491
27492 fi
27493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27494   cat >>confdefs.h <<_ACEOF
27495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27496 _ACEOF
27497
27498 fi
27499
27500 done
27501
27502
27503
27504 for ac_header in winioctl.h winbase.h
27505 do
27506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27510   echo $ECHO_N "(cached) $ECHO_C" >&6
27511 else
27512   cat >conftest.$ac_ext <<_ACEOF
27513 /* confdefs.h.  */
27514 _ACEOF
27515 cat confdefs.h >>conftest.$ac_ext
27516 cat >>conftest.$ac_ext <<_ACEOF
27517 /* end confdefs.h.  */
27518
27519         #if HAVE_WINDOWS_H
27520         #include <windows.h>
27521         #endif
27522
27523
27524 #include <$ac_header>
27525 _ACEOF
27526 rm -f conftest.$ac_objext
27527 if { (ac_try="$ac_compile"
27528 case "(($ac_try" in
27529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27530   *) ac_try_echo=$ac_try;;
27531 esac
27532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27533   (eval "$ac_compile") 2>conftest.er1
27534   ac_status=$?
27535   grep -v '^ *+' conftest.er1 >conftest.err
27536   rm -f conftest.er1
27537   cat conftest.err >&5
27538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539   (exit $ac_status); } &&
27540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27541   { (case "(($ac_try" in
27542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27543   *) ac_try_echo=$ac_try;;
27544 esac
27545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27546   (eval "$ac_try") 2>&5
27547   ac_status=$?
27548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27549   (exit $ac_status); }; } &&
27550          { ac_try='test -s conftest.$ac_objext'
27551   { (case "(($ac_try" in
27552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27553   *) ac_try_echo=$ac_try;;
27554 esac
27555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27556   (eval "$ac_try") 2>&5
27557   ac_status=$?
27558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559   (exit $ac_status); }; }; then
27560   eval "$as_ac_Header=yes"
27561 else
27562   echo "$as_me: failed program was:" >&5
27563 sed 's/^/| /' conftest.$ac_ext >&5
27564
27565         eval "$as_ac_Header=no"
27566 fi
27567
27568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27569 fi
27570 ac_res=`eval echo '${'$as_ac_Header'}'`
27571                { echo "$as_me:$LINENO: result: $ac_res" >&5
27572 echo "${ECHO_T}$ac_res" >&6; }
27573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27574   cat >>confdefs.h <<_ACEOF
27575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27576 _ACEOF
27577
27578 fi
27579
27580 done
27581
27582
27583
27584
27585
27586
27587
27588
27589
27590
27591
27592
27593 for ac_func in getopt usleep gettimeofday nanosleep rand srand random srandom sleep sigaction
27594 do
27595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27599   echo $ECHO_N "(cached) $ECHO_C" >&6
27600 else
27601   cat >conftest.$ac_ext <<_ACEOF
27602 /* confdefs.h.  */
27603 _ACEOF
27604 cat confdefs.h >>conftest.$ac_ext
27605 cat >>conftest.$ac_ext <<_ACEOF
27606 /* end confdefs.h.  */
27607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27609 #define $ac_func innocuous_$ac_func
27610
27611 /* System header to define __stub macros and hopefully few prototypes,
27612     which can conflict with char $ac_func (); below.
27613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27614     <limits.h> exists even on freestanding compilers.  */
27615
27616 #ifdef __STDC__
27617 # include <limits.h>
27618 #else
27619 # include <assert.h>
27620 #endif
27621
27622 #undef $ac_func
27623
27624 /* Override any GCC internal prototype to avoid an error.
27625    Use char because int might match the return type of a GCC
27626    builtin and then its argument prototype would still apply.  */
27627 #ifdef __cplusplus
27628 extern "C"
27629 #endif
27630 char $ac_func ();
27631 /* The GNU C library defines this for functions which it implements
27632     to always fail with ENOSYS.  Some functions are actually named
27633     something starting with __ and the normal name is an alias.  */
27634 #if defined __stub_$ac_func || defined __stub___$ac_func
27635 choke me
27636 #endif
27637
27638 int
27639 main ()
27640 {
27641 return $ac_func ();
27642   ;
27643   return 0;
27644 }
27645 _ACEOF
27646 rm -f conftest.$ac_objext conftest$ac_exeext
27647 if { (ac_try="$ac_link"
27648 case "(($ac_try" in
27649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650   *) ac_try_echo=$ac_try;;
27651 esac
27652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653   (eval "$ac_link") 2>conftest.er1
27654   ac_status=$?
27655   grep -v '^ *+' conftest.er1 >conftest.err
27656   rm -f conftest.er1
27657   cat conftest.err >&5
27658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659   (exit $ac_status); } &&
27660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27661   { (case "(($ac_try" in
27662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663   *) ac_try_echo=$ac_try;;
27664 esac
27665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666   (eval "$ac_try") 2>&5
27667   ac_status=$?
27668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669   (exit $ac_status); }; } &&
27670          { ac_try='test -s conftest$ac_exeext'
27671   { (case "(($ac_try" in
27672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27673   *) ac_try_echo=$ac_try;;
27674 esac
27675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27676   (eval "$ac_try") 2>&5
27677   ac_status=$?
27678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679   (exit $ac_status); }; }; then
27680   eval "$as_ac_var=yes"
27681 else
27682   echo "$as_me: failed program was:" >&5
27683 sed 's/^/| /' conftest.$ac_ext >&5
27684
27685         eval "$as_ac_var=no"
27686 fi
27687
27688 rm -f core conftest.err conftest.$ac_objext \
27689       conftest$ac_exeext conftest.$ac_ext
27690 fi
27691 ac_res=`eval echo '${'$as_ac_var'}'`
27692                { echo "$as_me:$LINENO: result: $ac_res" >&5
27693 echo "${ECHO_T}$ac_res" >&6; }
27694 if test `eval echo '${'$as_ac_var'}'` = yes; then
27695   cat >>confdefs.h <<_ACEOF
27696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27697 _ACEOF
27698
27699 fi
27700 done
27701
27702 { echo "$as_me:$LINENO: checking for struct timezone" >&5
27703 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6; }
27704 if test "${ac_cv_type_struct_timezone+set}" = set; then
27705   echo $ECHO_N "(cached) $ECHO_C" >&6
27706 else
27707   cat >conftest.$ac_ext <<_ACEOF
27708 /* confdefs.h.  */
27709 _ACEOF
27710 cat confdefs.h >>conftest.$ac_ext
27711 cat >>conftest.$ac_ext <<_ACEOF
27712 /* end confdefs.h.  */
27713
27714      #if HAVE_SYS_TYPES_H
27715      # include <sys/types.h>
27716      #endif
27717      #if TIME_WITH_SYS_TIME
27718      # include <sys/time.h>
27719      # include <time.h>
27720      #else
27721      # if HAVE_SYS_TIME_H
27722      #  include <sys/time.h>
27723      # else
27724      #  include <time.h>
27725      # endif
27726      #endif
27727
27728
27729 typedef struct timezone ac__type_new_;
27730 int
27731 main ()
27732 {
27733 if ((ac__type_new_ *) 0)
27734   return 0;
27735 if (sizeof (ac__type_new_))
27736   return 0;
27737   ;
27738   return 0;
27739 }
27740 _ACEOF
27741 rm -f conftest.$ac_objext
27742 if { (ac_try="$ac_compile"
27743 case "(($ac_try" in
27744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27745   *) ac_try_echo=$ac_try;;
27746 esac
27747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27748   (eval "$ac_compile") 2>conftest.er1
27749   ac_status=$?
27750   grep -v '^ *+' conftest.er1 >conftest.err
27751   rm -f conftest.er1
27752   cat conftest.err >&5
27753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754   (exit $ac_status); } &&
27755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27756   { (case "(($ac_try" in
27757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758   *) ac_try_echo=$ac_try;;
27759 esac
27760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761   (eval "$ac_try") 2>&5
27762   ac_status=$?
27763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764   (exit $ac_status); }; } &&
27765          { ac_try='test -s conftest.$ac_objext'
27766   { (case "(($ac_try" in
27767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27768   *) ac_try_echo=$ac_try;;
27769 esac
27770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27771   (eval "$ac_try") 2>&5
27772   ac_status=$?
27773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774   (exit $ac_status); }; }; then
27775   ac_cv_type_struct_timezone=yes
27776 else
27777   echo "$as_me: failed program was:" >&5
27778 sed 's/^/| /' conftest.$ac_ext >&5
27779
27780         ac_cv_type_struct_timezone=no
27781 fi
27782
27783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27784 fi
27785 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timezone" >&5
27786 echo "${ECHO_T}$ac_cv_type_struct_timezone" >&6; }
27787 if test $ac_cv_type_struct_timezone = yes; then
27788
27789 cat >>confdefs.h <<_ACEOF
27790 #define HAVE_STRUCT_TIMEZONE 1
27791 _ACEOF
27792
27793
27794 fi
27795 { echo "$as_me:$LINENO: checking for struct timespec" >&5
27796 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
27797 if test "${ac_cv_type_struct_timespec+set}" = set; then
27798   echo $ECHO_N "(cached) $ECHO_C" >&6
27799 else
27800   cat >conftest.$ac_ext <<_ACEOF
27801 /* confdefs.h.  */
27802 _ACEOF
27803 cat confdefs.h >>conftest.$ac_ext
27804 cat >>conftest.$ac_ext <<_ACEOF
27805 /* end confdefs.h.  */
27806
27807      #if HAVE_SYS_TYPES_H
27808      # include <sys/types.h>
27809      #endif
27810      #if TIME_WITH_SYS_TIME
27811      # include <sys/time.h>
27812      # include <time.h>
27813      #else
27814      # if HAVE_SYS_TIME_H
27815      #  include <sys/time.h>
27816      # else
27817      #  include <time.h>
27818      # endif
27819      #endif
27820
27821
27822 typedef struct timespec ac__type_new_;
27823 int
27824 main ()
27825 {
27826 if ((ac__type_new_ *) 0)
27827   return 0;
27828 if (sizeof (ac__type_new_))
27829   return 0;
27830   ;
27831   return 0;
27832 }
27833 _ACEOF
27834 rm -f conftest.$ac_objext
27835 if { (ac_try="$ac_compile"
27836 case "(($ac_try" in
27837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27838   *) ac_try_echo=$ac_try;;
27839 esac
27840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27841   (eval "$ac_compile") 2>conftest.er1
27842   ac_status=$?
27843   grep -v '^ *+' conftest.er1 >conftest.err
27844   rm -f conftest.er1
27845   cat conftest.err >&5
27846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847   (exit $ac_status); } &&
27848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27849   { (case "(($ac_try" in
27850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27851   *) ac_try_echo=$ac_try;;
27852 esac
27853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27854   (eval "$ac_try") 2>&5
27855   ac_status=$?
27856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857   (exit $ac_status); }; } &&
27858          { ac_try='test -s conftest.$ac_objext'
27859   { (case "(($ac_try" in
27860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27861   *) ac_try_echo=$ac_try;;
27862 esac
27863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27864   (eval "$ac_try") 2>&5
27865   ac_status=$?
27866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867   (exit $ac_status); }; }; then
27868   ac_cv_type_struct_timespec=yes
27869 else
27870   echo "$as_me: failed program was:" >&5
27871 sed 's/^/| /' conftest.$ac_ext >&5
27872
27873         ac_cv_type_struct_timespec=no
27874 fi
27875
27876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27877 fi
27878 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
27879 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
27880 if test $ac_cv_type_struct_timespec = yes; then
27881
27882 cat >>confdefs.h <<_ACEOF
27883 #define HAVE_STRUCT_TIMESPEC 1
27884 _ACEOF
27885
27886
27887 fi
27888 { echo "$as_me:$LINENO: checking for ssize_t" >&5
27889 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
27890 if test "${ac_cv_type_ssize_t+set}" = set; then
27891   echo $ECHO_N "(cached) $ECHO_C" >&6
27892 else
27893   cat >conftest.$ac_ext <<_ACEOF
27894 /* confdefs.h.  */
27895 _ACEOF
27896 cat confdefs.h >>conftest.$ac_ext
27897 cat >>conftest.$ac_ext <<_ACEOF
27898 /* end confdefs.h.  */
27899
27900      #if HAVE_SYS_TYPES_H
27901      # include <sys/types.h>
27902      #endif
27903      #if TIME_WITH_SYS_TIME
27904      # include <sys/time.h>
27905      # include <time.h>
27906      #else
27907      # if HAVE_SYS_TIME_H
27908      #  include <sys/time.h>
27909      # else
27910      #  include <time.h>
27911      # endif
27912      #endif
27913
27914
27915 typedef ssize_t ac__type_new_;
27916 int
27917 main ()
27918 {
27919 if ((ac__type_new_ *) 0)
27920   return 0;
27921 if (sizeof (ac__type_new_))
27922   return 0;
27923   ;
27924   return 0;
27925 }
27926 _ACEOF
27927 rm -f conftest.$ac_objext
27928 if { (ac_try="$ac_compile"
27929 case "(($ac_try" in
27930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27931   *) ac_try_echo=$ac_try;;
27932 esac
27933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27934   (eval "$ac_compile") 2>conftest.er1
27935   ac_status=$?
27936   grep -v '^ *+' conftest.er1 >conftest.err
27937   rm -f conftest.er1
27938   cat conftest.err >&5
27939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940   (exit $ac_status); } &&
27941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27942   { (case "(($ac_try" in
27943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27944   *) ac_try_echo=$ac_try;;
27945 esac
27946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27947   (eval "$ac_try") 2>&5
27948   ac_status=$?
27949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950   (exit $ac_status); }; } &&
27951          { ac_try='test -s conftest.$ac_objext'
27952   { (case "(($ac_try" in
27953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27954   *) ac_try_echo=$ac_try;;
27955 esac
27956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27957   (eval "$ac_try") 2>&5
27958   ac_status=$?
27959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960   (exit $ac_status); }; }; then
27961   ac_cv_type_ssize_t=yes
27962 else
27963   echo "$as_me: failed program was:" >&5
27964 sed 's/^/| /' conftest.$ac_ext >&5
27965
27966         ac_cv_type_ssize_t=no
27967 fi
27968
27969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27970 fi
27971 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
27972 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
27973 if test $ac_cv_type_ssize_t = yes; then
27974
27975 cat >>confdefs.h <<_ACEOF
27976 #define HAVE_SSIZE_T 1
27977 _ACEOF
27978
27979
27980 fi
27981
27982
27983
27984
27985
27986 for ac_func in getopt usleep gettimeofday
27987 do
27988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27992   echo $ECHO_N "(cached) $ECHO_C" >&6
27993 else
27994   cat >conftest.$ac_ext <<_ACEOF
27995 /* confdefs.h.  */
27996 _ACEOF
27997 cat confdefs.h >>conftest.$ac_ext
27998 cat >>conftest.$ac_ext <<_ACEOF
27999 /* end confdefs.h.  */
28000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28002 #define $ac_func innocuous_$ac_func
28003
28004 /* System header to define __stub macros and hopefully few prototypes,
28005     which can conflict with char $ac_func (); below.
28006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28007     <limits.h> exists even on freestanding compilers.  */
28008
28009 #ifdef __STDC__
28010 # include <limits.h>
28011 #else
28012 # include <assert.h>
28013 #endif
28014
28015 #undef $ac_func
28016
28017 /* Override any GCC internal prototype to avoid an error.
28018    Use char because int might match the return type of a GCC
28019    builtin and then its argument prototype would still apply.  */
28020 #ifdef __cplusplus
28021 extern "C"
28022 #endif
28023 char $ac_func ();
28024 /* The GNU C library defines this for functions which it implements
28025     to always fail with ENOSYS.  Some functions are actually named
28026     something starting with __ and the normal name is an alias.  */
28027 #if defined __stub_$ac_func || defined __stub___$ac_func
28028 choke me
28029 #endif
28030
28031 int
28032 main ()
28033 {
28034 return $ac_func ();
28035   ;
28036   return 0;
28037 }
28038 _ACEOF
28039 rm -f conftest.$ac_objext conftest$ac_exeext
28040 if { (ac_try="$ac_link"
28041 case "(($ac_try" in
28042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28043   *) ac_try_echo=$ac_try;;
28044 esac
28045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28046   (eval "$ac_link") 2>conftest.er1
28047   ac_status=$?
28048   grep -v '^ *+' conftest.er1 >conftest.err
28049   rm -f conftest.er1
28050   cat conftest.err >&5
28051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052   (exit $ac_status); } &&
28053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28054   { (case "(($ac_try" in
28055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056   *) ac_try_echo=$ac_try;;
28057 esac
28058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059   (eval "$ac_try") 2>&5
28060   ac_status=$?
28061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28062   (exit $ac_status); }; } &&
28063          { ac_try='test -s conftest$ac_exeext'
28064   { (case "(($ac_try" in
28065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28066   *) ac_try_echo=$ac_try;;
28067 esac
28068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28069   (eval "$ac_try") 2>&5
28070   ac_status=$?
28071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072   (exit $ac_status); }; }; then
28073   eval "$as_ac_var=yes"
28074 else
28075   echo "$as_me: failed program was:" >&5
28076 sed 's/^/| /' conftest.$ac_ext >&5
28077
28078         eval "$as_ac_var=no"
28079 fi
28080
28081 rm -f core conftest.err conftest.$ac_objext \
28082       conftest$ac_exeext conftest.$ac_ext
28083 fi
28084 ac_res=`eval echo '${'$as_ac_var'}'`
28085                { echo "$as_me:$LINENO: result: $ac_res" >&5
28086 echo "${ECHO_T}$ac_res" >&6; }
28087 if test `eval echo '${'$as_ac_var'}'` = yes; then
28088   cat >>confdefs.h <<_ACEOF
28089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28090 _ACEOF
28091
28092 else
28093   case " $LIBOBJS " in
28094   *" $ac_func.$ac_objext "* ) ;;
28095   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
28096  ;;
28097 esac
28098
28099 fi
28100 done
28101
28102
28103
28104
28105 { echo "$as_me:$LINENO: checking for Sleep" >&5
28106 echo $ECHO_N "checking for Sleep... $ECHO_C" >&6; }
28107 cat >conftest.$ac_ext <<_ACEOF
28108 /* confdefs.h.  */
28109 _ACEOF
28110 cat confdefs.h >>conftest.$ac_ext
28111 cat >>conftest.$ac_ext <<_ACEOF
28112 /* end confdefs.h.  */
28113    #include <windows.h>
28114                 #include <winbase.h>
28115
28116 int
28117 main ()
28118 {
28119  Sleep(0);
28120   ;
28121   return 0;
28122 }
28123 _ACEOF
28124 rm -f conftest.$ac_objext conftest$ac_exeext
28125 if { (ac_try="$ac_link"
28126 case "(($ac_try" in
28127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28128   *) ac_try_echo=$ac_try;;
28129 esac
28130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28131   (eval "$ac_link") 2>conftest.er1
28132   ac_status=$?
28133   grep -v '^ *+' conftest.er1 >conftest.err
28134   rm -f conftest.er1
28135   cat conftest.err >&5
28136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137   (exit $ac_status); } &&
28138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28139   { (case "(($ac_try" in
28140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28141   *) ac_try_echo=$ac_try;;
28142 esac
28143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28144   (eval "$ac_try") 2>&5
28145   ac_status=$?
28146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147   (exit $ac_status); }; } &&
28148          { ac_try='test -s conftest$ac_exeext'
28149   { (case "(($ac_try" in
28150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28151   *) ac_try_echo=$ac_try;;
28152 esac
28153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28154   (eval "$ac_try") 2>&5
28155   ac_status=$?
28156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157   (exit $ac_status); }; }; then
28158
28159 cat >>confdefs.h <<\_ACEOF
28160 #define HAVE_SSLEEP 1
28161 _ACEOF
28162
28163                 { echo "$as_me:$LINENO: result: yes" >&5
28164 echo "${ECHO_T}yes" >&6; }
28165 else
28166   echo "$as_me: failed program was:" >&5
28167 sed 's/^/| /' conftest.$ac_ext >&5
28168
28169         { echo "$as_me:$LINENO: result: no" >&5
28170 echo "${ECHO_T}no" >&6; }
28171
28172 fi
28173
28174 rm -f core conftest.err conftest.$ac_objext \
28175       conftest$ac_exeext conftest.$ac_ext
28176
28177 { echo "$as_me:$LINENO: checking whether mkdir accepts only one arg" >&5
28178 echo $ECHO_N "checking whether mkdir accepts only one arg... $ECHO_C" >&6; }
28179 cat >conftest.$ac_ext <<_ACEOF
28180 /* confdefs.h.  */
28181 _ACEOF
28182 cat confdefs.h >>conftest.$ac_ext
28183 cat >>conftest.$ac_ext <<_ACEOF
28184 /* end confdefs.h.  */
28185 #include <sys/types.h>
28186        #include <sys/stat.h>
28187        #include <fcntl.h>
28188 int
28189 main ()
28190 {
28191
28192        mkdir("")
28193
28194   ;
28195   return 0;
28196 }
28197 _ACEOF
28198 rm -f conftest.$ac_objext
28199 if { (ac_try="$ac_compile"
28200 case "(($ac_try" in
28201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28202   *) ac_try_echo=$ac_try;;
28203 esac
28204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28205   (eval "$ac_compile") 2>conftest.er1
28206   ac_status=$?
28207   grep -v '^ *+' conftest.er1 >conftest.err
28208   rm -f conftest.er1
28209   cat conftest.err >&5
28210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211   (exit $ac_status); } &&
28212          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28213   { (case "(($ac_try" in
28214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28215   *) ac_try_echo=$ac_try;;
28216 esac
28217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28218   (eval "$ac_try") 2>&5
28219   ac_status=$?
28220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221   (exit $ac_status); }; } &&
28222          { ac_try='test -s conftest.$ac_objext'
28223   { (case "(($ac_try" in
28224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28225   *) ac_try_echo=$ac_try;;
28226 esac
28227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28228   (eval "$ac_try") 2>&5
28229   ac_status=$?
28230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231   (exit $ac_status); }; }; then
28232    { echo "$as_me:$LINENO: result: yes" >&5
28233 echo "${ECHO_T}yes" >&6; }
28234
28235 cat >>confdefs.h <<\_ACEOF
28236 #define MKDIR_TAKES_ONE_ARG
28237 _ACEOF
28238
28239 else
28240   echo "$as_me: failed program was:" >&5
28241 sed 's/^/| /' conftest.$ac_ext >&5
28242
28243          { echo "$as_me:$LINENO: result: no" >&5
28244 echo "${ECHO_T}no" >&6; }
28245
28246 fi
28247
28248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28249
28250
28251
28252
28253
28254
28255
28256 # Extract the first word of "dot", so it can be a program name with args.
28257 set dummy dot; ac_word=$2
28258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28260 if test "${ac_cv_prog_HAVE_DOT+set}" = set; then
28261   echo $ECHO_N "(cached) $ECHO_C" >&6
28262 else
28263   if test -n "$HAVE_DOT"; then
28264   ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
28265 else
28266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28267 for as_dir in $PATH
28268 do
28269   IFS=$as_save_IFS
28270   test -z "$as_dir" && as_dir=.
28271   for ac_exec_ext in '' $ac_executable_extensions; do
28272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28273     ac_cv_prog_HAVE_DOT="YES"
28274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28275     break 2
28276   fi
28277 done
28278 done
28279 IFS=$as_save_IFS
28280
28281   test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="NO"
28282 fi
28283 fi
28284 HAVE_DOT=$ac_cv_prog_HAVE_DOT
28285 if test -n "$HAVE_DOT"; then
28286   { echo "$as_me:$LINENO: result: $HAVE_DOT" >&5
28287 echo "${ECHO_T}$HAVE_DOT" >&6; }
28288 else
28289   { echo "$as_me:$LINENO: result: no" >&5
28290 echo "${ECHO_T}no" >&6; }
28291 fi
28292
28293
28294
28295
28296   succeeded=no
28297
28298   if test -z "$PKG_CONFIG"; then
28299     # Extract the first word of "pkg-config", so it can be a program name with args.
28300 set dummy pkg-config; ac_word=$2
28301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28303 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28304   echo $ECHO_N "(cached) $ECHO_C" >&6
28305 else
28306   case $PKG_CONFIG in
28307   [\\/]* | ?:[\\/]*)
28308   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28309   ;;
28310   *)
28311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28312 for as_dir in $PATH
28313 do
28314   IFS=$as_save_IFS
28315   test -z "$as_dir" && as_dir=.
28316   for ac_exec_ext in '' $ac_executable_extensions; do
28317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28318     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28320     break 2
28321   fi
28322 done
28323 done
28324 IFS=$as_save_IFS
28325
28326   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28327   ;;
28328 esac
28329 fi
28330 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28331 if test -n "$PKG_CONFIG"; then
28332   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28333 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28334 else
28335   { echo "$as_me:$LINENO: result: no" >&5
28336 echo "${ECHO_T}no" >&6; }
28337 fi
28338
28339
28340   fi
28341
28342   if test "$PKG_CONFIG" = "no" ; then
28343      echo "*** The pkg-config script could not be found. Make sure it is"
28344      echo "*** in your path, or set the PKG_CONFIG environment variable"
28345      echo "*** to the full path to pkg-config."
28346      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28347   else
28348                     if test -z "$PKG_CONFIG_PATH"; then
28349         export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
28350      fi
28351
28352      PKG_CONFIG_MIN_VERSION=0.9.0
28353      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28354         { echo "$as_me:$LINENO: checking for fftw3f >= 3.0" >&5
28355 echo $ECHO_N "checking for fftw3f >= 3.0... $ECHO_C" >&6; }
28356
28357         if $PKG_CONFIG --exists "fftw3f >= 3.0" ; then
28358             { echo "$as_me:$LINENO: result: yes" >&5
28359 echo "${ECHO_T}yes" >&6; }
28360             succeeded=yes
28361
28362             { echo "$as_me:$LINENO: checking FFTW3F_CFLAGS" >&5
28363 echo $ECHO_N "checking FFTW3F_CFLAGS... $ECHO_C" >&6; }
28364             FFTW3F_CFLAGS=`$PKG_CONFIG --cflags "fftw3f >= 3.0"`
28365             { echo "$as_me:$LINENO: result: $FFTW3F_CFLAGS" >&5
28366 echo "${ECHO_T}$FFTW3F_CFLAGS" >&6; }
28367
28368             { echo "$as_me:$LINENO: checking FFTW3F_LIBS" >&5
28369 echo $ECHO_N "checking FFTW3F_LIBS... $ECHO_C" >&6; }
28370             FFTW3F_LIBS=`$PKG_CONFIG --libs "fftw3f >= 3.0"`
28371             { echo "$as_me:$LINENO: result: $FFTW3F_LIBS" >&5
28372 echo "${ECHO_T}$FFTW3F_LIBS" >&6; }
28373
28374             { echo "$as_me:$LINENO: checking FFTW3F_INCLUDEDIR" >&5
28375 echo $ECHO_N "checking FFTW3F_INCLUDEDIR... $ECHO_C" >&6; }
28376             FFTW3F_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "fftw3f >= 3.0"`
28377             { echo "$as_me:$LINENO: result: $FFTW3F_INCLUDEDIR" >&5
28378 echo "${ECHO_T}$FFTW3F_INCLUDEDIR" >&6; }
28379         else
28380             FFTW3F_CFLAGS=""
28381             FFTW3F_LIBS=""
28382             ## If we have a custom action on failure, don't print errors, but
28383             ## do set a variable so people can do so.
28384             FFTW3F_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3f >= 3.0"`
28385             echo $FFTW3F_PKG_ERRORS
28386         fi
28387
28388
28389
28390
28391      else
28392         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28393         echo "*** See http://www.freedesktop.org/software/pkgconfig"
28394      fi
28395   fi
28396
28397   if test $succeeded = yes; then
28398      :
28399   else
28400      { { echo "$as_me:$LINENO: error: Library requirements (fftw3f >= 3.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
28401 echo "$as_me: error: Library requirements (fftw3f >= 3.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
28402    { (exit 1); exit 1; }; }
28403   fi
28404
28405
28406
28407
28408   # Check whether --enable-doxygen was given.
28409 if test "${enable_doxygen+set}" = set; then
28410   enableval=$enable_doxygen;
28411 fi
28412
28413   # Check whether --enable-dot was given.
28414 if test "${enable_dot+set}" = set; then
28415   enableval=$enable_dot;
28416 fi
28417
28418   # Check whether --enable-html-docs was given.
28419 if test "${enable_html_docs+set}" = set; then
28420   enableval=$enable_html_docs;
28421 else
28422    enable_html_docs=yes
28423 fi
28424
28425   # Check whether --enable-latex-docs was given.
28426 if test "${enable_latex_docs+set}" = set; then
28427   enableval=$enable_latex_docs;
28428 else
28429    enable_latex_docs=no
28430 fi
28431
28432
28433   if test "x$enable_doxygen" = xyes; then
28434         # Extract the first word of "doxygen", so it can be a program name with args.
28435 set dummy doxygen; ac_word=$2
28436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28438 if test "${ac_cv_path_DOXYGEN+set}" = set; then
28439   echo $ECHO_N "(cached) $ECHO_C" >&6
28440 else
28441   case $DOXYGEN in
28442   [\\/]* | ?:[\\/]*)
28443   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
28444   ;;
28445   *)
28446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28447 for as_dir in $PATH
28448 do
28449   IFS=$as_save_IFS
28450   test -z "$as_dir" && as_dir=.
28451   for ac_exec_ext in '' $ac_executable_extensions; do
28452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28453     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
28454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28455     break 2
28456   fi
28457 done
28458 done
28459 IFS=$as_save_IFS
28460
28461   ;;
28462 esac
28463 fi
28464 DOXYGEN=$ac_cv_path_DOXYGEN
28465 if test -n "$DOXYGEN"; then
28466   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
28467 echo "${ECHO_T}$DOXYGEN" >&6; }
28468 else
28469   { echo "$as_me:$LINENO: result: no" >&5
28470 echo "${ECHO_T}no" >&6; }
28471 fi
28472
28473
28474         if test x$DOXYGEN = x; then
28475                 if test "x$enable_doxygen" = xyes; then
28476                         { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
28477 echo "$as_me: error: could not find doxygen" >&2;}
28478    { (exit 1); exit 1; }; }
28479                 fi
28480                 enable_doc=no
28481                 generate_docs=
28482         else
28483                 enable_doc=yes
28484                 generate_docs=docs
28485                 # Extract the first word of "dot", so it can be a program name with args.
28486 set dummy dot; ac_word=$2
28487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28489 if test "${ac_cv_path_DOT+set}" = set; then
28490   echo $ECHO_N "(cached) $ECHO_C" >&6
28491 else
28492   case $DOT in
28493   [\\/]* | ?:[\\/]*)
28494   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
28495   ;;
28496   *)
28497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28498 for as_dir in $PATH
28499 do
28500   IFS=$as_save_IFS
28501   test -z "$as_dir" && as_dir=.
28502   for ac_exec_ext in '' $ac_executable_extensions; do
28503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28504     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
28505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28506     break 2
28507   fi
28508 done
28509 done
28510 IFS=$as_save_IFS
28511
28512   ;;
28513 esac
28514 fi
28515 DOT=$ac_cv_path_DOT
28516 if test -n "$DOT"; then
28517   { echo "$as_me:$LINENO: result: $DOT" >&5
28518 echo "${ECHO_T}$DOT" >&6; }
28519 else
28520   { echo "$as_me:$LINENO: result: no" >&5
28521 echo "${ECHO_T}no" >&6; }
28522 fi
28523
28524
28525         fi
28526   else
28527         enable_doc=no
28528   fi
28529
28530
28531
28532 if test x$enable_doc = xyes; then
28533   DOC_TRUE=
28534   DOC_FALSE='#'
28535 else
28536   DOC_TRUE='#'
28537   DOC_FALSE=
28538 fi
28539
28540
28541   if test x$DOT = x; then
28542         if test "x$enable_dot" = xyes; then
28543                 { { echo "$as_me:$LINENO: error: could not find dot" >&5
28544 echo "$as_me: error: could not find dot" >&2;}
28545    { (exit 1); exit 1; }; }
28546         fi
28547         enable_dot=no
28548   else
28549         enable_dot=yes
28550   fi
28551
28552
28553
28554
28555
28556
28557
28558
28559 # Check whether --with-md-cpu was given.
28560 if test "${with_md_cpu+set}" = set; then
28561   withval=$with_md_cpu; cf_with_md_cpu="$withval"
28562 else
28563   cf_with_md_cpu="$host_cpu"
28564 fi
28565
28566
28567   { echo "$as_me:$LINENO: checking for machine dependent speedups" >&5
28568 echo $ECHO_N "checking for machine dependent speedups... $ECHO_C" >&6; }
28569   case "$cf_with_md_cpu" in
28570    x86 | i[3-7]86)      MD_CPU=x86      MD_SUBCPU=x86   ;;
28571    x86_64)              MD_CPU=x86      MD_SUBCPU=x86_64        ;;
28572 #  sparc)       MD_CPU=sparc     ;;
28573    *)           MD_CPU=generic   ;;
28574   esac
28575   { echo "$as_me:$LINENO: result: $MD_CPU" >&5
28576 echo "${ECHO_T}$MD_CPU" >&6; }
28577
28578
28579
28580
28581
28582 if test "$MD_CPU" = "x86"; then
28583   MD_CPU_x86_TRUE=
28584   MD_CPU_x86_FALSE='#'
28585 else
28586   MD_CPU_x86_TRUE='#'
28587   MD_CPU_x86_FALSE=
28588 fi
28589
28590
28591
28592 if test "$MD_SUBCPU" = "x86_64"; then
28593   MD_SUBCPU_x86_64_TRUE=
28594   MD_SUBCPU_x86_64_FALSE='#'
28595 else
28596   MD_SUBCPU_x86_64_TRUE='#'
28597   MD_SUBCPU_x86_64_FALSE=
28598 fi
28599
28600
28601
28602 if test "$MD_CPU" = "generic"; then
28603   MD_CPU_generic_TRUE=
28604   MD_CPU_generic_FALSE='#'
28605 else
28606   MD_CPU_generic_TRUE='#'
28607   MD_CPU_generic_FALSE=
28608 fi
28609
28610
28611
28612
28613
28614
28615 # Check whether --with-cppunit-prefix was given.
28616 if test "${with_cppunit_prefix+set}" = set; then
28617   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
28618 else
28619   cppunit_config_prefix=""
28620 fi
28621
28622
28623 # Check whether --with-cppunit-exec-prefix was given.
28624 if test "${with_cppunit_exec_prefix+set}" = set; then
28625   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
28626 else
28627   cppunit_config_exec_prefix=""
28628 fi
28629
28630
28631   if test x$cppunit_config_exec_prefix != x ; then
28632      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
28633      if test x${CPPUNIT_CONFIG+set} != xset ; then
28634         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
28635      fi
28636   fi
28637   if test x$cppunit_config_prefix != x ; then
28638      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
28639      if test x${CPPUNIT_CONFIG+set} != xset ; then
28640         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
28641      fi
28642   fi
28643
28644   # Extract the first word of "cppunit-config", so it can be a program name with args.
28645 set dummy cppunit-config; ac_word=$2
28646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28648 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
28649   echo $ECHO_N "(cached) $ECHO_C" >&6
28650 else
28651   case $CPPUNIT_CONFIG in
28652   [\\/]* | ?:[\\/]*)
28653   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
28654   ;;
28655   *)
28656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28657 for as_dir in $PATH
28658 do
28659   IFS=$as_save_IFS
28660   test -z "$as_dir" && as_dir=.
28661   for ac_exec_ext in '' $ac_executable_extensions; do
28662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28663     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28665     break 2
28666   fi
28667 done
28668 done
28669 IFS=$as_save_IFS
28670
28671   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
28672   ;;
28673 esac
28674 fi
28675 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
28676 if test -n "$CPPUNIT_CONFIG"; then
28677   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
28678 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
28679 else
28680   { echo "$as_me:$LINENO: result: no" >&5
28681 echo "${ECHO_T}no" >&6; }
28682 fi
28683
28684
28685   cppunit_version_min=1.9.14
28686
28687   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
28688 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
28689   no_cppunit=""
28690   if test "$CPPUNIT_CONFIG" = "no" ; then
28691     no_cppunit=yes
28692   else
28693     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
28694     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
28695     cppunit_version=`$CPPUNIT_CONFIG --version`
28696
28697     cppunit_major_version=`echo $cppunit_version | \
28698            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28699     cppunit_minor_version=`echo $cppunit_version | \
28700            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28701     cppunit_micro_version=`echo $cppunit_version | \
28702            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28703
28704     cppunit_major_min=`echo $cppunit_version_min | \
28705            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28706     cppunit_minor_min=`echo $cppunit_version_min | \
28707            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28708     cppunit_micro_min=`echo $cppunit_version_min | \
28709            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28710
28711     cppunit_version_proper=`expr \
28712         $cppunit_major_version \> $cppunit_major_min \| \
28713         $cppunit_major_version \= $cppunit_major_min \& \
28714         $cppunit_minor_version \> $cppunit_minor_min \| \
28715         $cppunit_major_version \= $cppunit_major_min \& \
28716         $cppunit_minor_version \= $cppunit_minor_min \& \
28717         $cppunit_micro_version \>= $cppunit_micro_min `
28718
28719     if test "$cppunit_version_proper" = "1" ; then
28720       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
28721 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
28722     else
28723       { echo "$as_me:$LINENO: result: no" >&5
28724 echo "${ECHO_T}no" >&6; }
28725       no_cppunit=yes
28726     fi
28727   fi
28728
28729   if test "x$no_cppunit" = x ; then
28730      :
28731   else
28732      CPPUNIT_CFLAGS=""
28733      CPPUNIT_LIBS=""
28734      { { echo "$as_me:$LINENO: error: GNU Radio requires cppunit.  Stop" >&5
28735 echo "$as_me: error: GNU Radio requires cppunit.  Stop" >&2;}
28736    { (exit 1); exit 1; }; }
28737   fi
28738
28739
28740
28741
28742
28743 CPPUNIT_INCLUDES=$CPPUNIT_CFLAGS
28744
28745
28746
28747
28748   ac_ext=cpp
28749 ac_cpp='$CXXCPP $CPPFLAGS'
28750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28753
28754   gr_boost_include_dir=
28755
28756 # Check whether --with-boost-include-dir was given.
28757 if test "${with_boost_include_dir+set}" = set; then
28758   withval=$with_boost_include_dir;
28759       # "yes" and "no" are bogus answers
28760       if test x"$with_boost_include_dir" = xyes ||
28761          test x"$with_boost_include_dir" = xno; then
28762         gr_boost_include_dir=
28763       else
28764         gr_boost_include_dir=$with_boost_include_dir
28765       fi
28766
28767 fi
28768
28769   echo "gr_boost_include_dir = $gr_boost_include_dir"
28770   if test x$gr_boost_include_dir != x; then
28771     #
28772     # If the user specified a directory, then we use it
28773     #
28774     OLD_CPPFLAGS=$CPPFLAGS
28775     CPPFLAGS="$CPPFLAGS -I$gr_boost_include_dir"
28776     if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28777   { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
28778 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
28779 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28780   echo $ECHO_N "(cached) $ECHO_C" >&6
28781 fi
28782 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
28783 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
28784 else
28785   # Is the header compilable?
28786 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
28787 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
28788 cat >conftest.$ac_ext <<_ACEOF
28789 /* confdefs.h.  */
28790 _ACEOF
28791 cat confdefs.h >>conftest.$ac_ext
28792 cat >>conftest.$ac_ext <<_ACEOF
28793 /* end confdefs.h.  */
28794 $ac_includes_default
28795 #include <boost/shared_ptr.hpp>
28796 _ACEOF
28797 rm -f conftest.$ac_objext
28798 if { (ac_try="$ac_compile"
28799 case "(($ac_try" in
28800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28801   *) ac_try_echo=$ac_try;;
28802 esac
28803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28804   (eval "$ac_compile") 2>conftest.er1
28805   ac_status=$?
28806   grep -v '^ *+' conftest.er1 >conftest.err
28807   rm -f conftest.er1
28808   cat conftest.err >&5
28809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810   (exit $ac_status); } &&
28811          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28812   { (case "(($ac_try" in
28813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28814   *) ac_try_echo=$ac_try;;
28815 esac
28816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28817   (eval "$ac_try") 2>&5
28818   ac_status=$?
28819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820   (exit $ac_status); }; } &&
28821          { ac_try='test -s conftest.$ac_objext'
28822   { (case "(($ac_try" in
28823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28824   *) ac_try_echo=$ac_try;;
28825 esac
28826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28827   (eval "$ac_try") 2>&5
28828   ac_status=$?
28829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830   (exit $ac_status); }; }; then
28831   ac_header_compiler=yes
28832 else
28833   echo "$as_me: failed program was:" >&5
28834 sed 's/^/| /' conftest.$ac_ext >&5
28835
28836         ac_header_compiler=no
28837 fi
28838
28839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28841 echo "${ECHO_T}$ac_header_compiler" >&6; }
28842
28843 # Is the header present?
28844 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
28845 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
28846 cat >conftest.$ac_ext <<_ACEOF
28847 /* confdefs.h.  */
28848 _ACEOF
28849 cat confdefs.h >>conftest.$ac_ext
28850 cat >>conftest.$ac_ext <<_ACEOF
28851 /* end confdefs.h.  */
28852 #include <boost/shared_ptr.hpp>
28853 _ACEOF
28854 if { (ac_try="$ac_cpp conftest.$ac_ext"
28855 case "(($ac_try" in
28856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857   *) ac_try_echo=$ac_try;;
28858 esac
28859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28860   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28861   ac_status=$?
28862   grep -v '^ *+' conftest.er1 >conftest.err
28863   rm -f conftest.er1
28864   cat conftest.err >&5
28865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866   (exit $ac_status); } >/dev/null; then
28867   if test -s conftest.err; then
28868     ac_cpp_err=$ac_cxx_preproc_warn_flag
28869     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28870   else
28871     ac_cpp_err=
28872   fi
28873 else
28874   ac_cpp_err=yes
28875 fi
28876 if test -z "$ac_cpp_err"; then
28877   ac_header_preproc=yes
28878 else
28879   echo "$as_me: failed program was:" >&5
28880 sed 's/^/| /' conftest.$ac_ext >&5
28881
28882   ac_header_preproc=no
28883 fi
28884
28885 rm -f conftest.err conftest.$ac_ext
28886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28887 echo "${ECHO_T}$ac_header_preproc" >&6; }
28888
28889 # So?  What about this header?
28890 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28891   yes:no: )
28892     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
28893 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
28894     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
28895 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
28896     ac_header_preproc=yes
28897     ;;
28898   no:yes:* )
28899     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
28900 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
28901     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&5
28902 echo "$as_me: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&2;}
28903     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
28904 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
28905     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&5
28906 echo "$as_me: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
28907     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
28908 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
28909     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
28910 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
28911
28912     ;;
28913 esac
28914 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
28915 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
28916 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28917   echo $ECHO_N "(cached) $ECHO_C" >&6
28918 else
28919   ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
28920 fi
28921 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
28922 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
28923
28924 fi
28925 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
28926   BOOST_CFLAGS="-I$gr_boost_include_dir"
28927 else
28928   { { echo "$as_me:$LINENO: error: Failed to locate boost/shared_ptr.hpp.
28929 Try using --with-boost-include-dir=<path>,
28930 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&5
28931 echo "$as_me: error: Failed to locate boost/shared_ptr.hpp.
28932 Try using --with-boost-include-dir=<path>,
28933 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&2;}
28934    { (exit 1); exit 1; }; }
28935 fi
28936
28937
28938     CPPFLAGS=$OLD_CPPFLAGS
28939   else
28940     #
28941     # Otherwise we check in the default places
28942     #
28943     if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28944   { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
28945 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
28946 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28947   echo $ECHO_N "(cached) $ECHO_C" >&6
28948 fi
28949 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
28950 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
28951 else
28952   # Is the header compilable?
28953 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
28954 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
28955 cat >conftest.$ac_ext <<_ACEOF
28956 /* confdefs.h.  */
28957 _ACEOF
28958 cat confdefs.h >>conftest.$ac_ext
28959 cat >>conftest.$ac_ext <<_ACEOF
28960 /* end confdefs.h.  */
28961 $ac_includes_default
28962 #include <boost/shared_ptr.hpp>
28963 _ACEOF
28964 rm -f conftest.$ac_objext
28965 if { (ac_try="$ac_compile"
28966 case "(($ac_try" in
28967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28968   *) ac_try_echo=$ac_try;;
28969 esac
28970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28971   (eval "$ac_compile") 2>conftest.er1
28972   ac_status=$?
28973   grep -v '^ *+' conftest.er1 >conftest.err
28974   rm -f conftest.er1
28975   cat conftest.err >&5
28976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977   (exit $ac_status); } &&
28978          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28979   { (case "(($ac_try" in
28980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28981   *) ac_try_echo=$ac_try;;
28982 esac
28983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28984   (eval "$ac_try") 2>&5
28985   ac_status=$?
28986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28987   (exit $ac_status); }; } &&
28988          { ac_try='test -s conftest.$ac_objext'
28989   { (case "(($ac_try" in
28990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28991   *) ac_try_echo=$ac_try;;
28992 esac
28993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28994   (eval "$ac_try") 2>&5
28995   ac_status=$?
28996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997   (exit $ac_status); }; }; then
28998   ac_header_compiler=yes
28999 else
29000   echo "$as_me: failed program was:" >&5
29001 sed 's/^/| /' conftest.$ac_ext >&5
29002
29003         ac_header_compiler=no
29004 fi
29005
29006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29007 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29008 echo "${ECHO_T}$ac_header_compiler" >&6; }
29009
29010 # Is the header present?
29011 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
29012 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
29013 cat >conftest.$ac_ext <<_ACEOF
29014 /* confdefs.h.  */
29015 _ACEOF
29016 cat confdefs.h >>conftest.$ac_ext
29017 cat >>conftest.$ac_ext <<_ACEOF
29018 /* end confdefs.h.  */
29019 #include <boost/shared_ptr.hpp>
29020 _ACEOF
29021 if { (ac_try="$ac_cpp conftest.$ac_ext"
29022 case "(($ac_try" in
29023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29024   *) ac_try_echo=$ac_try;;
29025 esac
29026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29027   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29028   ac_status=$?
29029   grep -v '^ *+' conftest.er1 >conftest.err
29030   rm -f conftest.er1
29031   cat conftest.err >&5
29032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033   (exit $ac_status); } >/dev/null; then
29034   if test -s conftest.err; then
29035     ac_cpp_err=$ac_cxx_preproc_warn_flag
29036     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29037   else
29038     ac_cpp_err=
29039   fi
29040 else
29041   ac_cpp_err=yes
29042 fi
29043 if test -z "$ac_cpp_err"; then
29044   ac_header_preproc=yes
29045 else
29046   echo "$as_me: failed program was:" >&5
29047 sed 's/^/| /' conftest.$ac_ext >&5
29048
29049   ac_header_preproc=no
29050 fi
29051
29052 rm -f conftest.err conftest.$ac_ext
29053 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29054 echo "${ECHO_T}$ac_header_preproc" >&6; }
29055
29056 # So?  What about this header?
29057 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29058   yes:no: )
29059     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
29060 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
29061     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
29062 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
29063     ac_header_preproc=yes
29064     ;;
29065   no:yes:* )
29066     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
29067 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
29068     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&5
29069 echo "$as_me: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&2;}
29070     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
29071 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
29072     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&5
29073 echo "$as_me: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
29074     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
29075 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
29076     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
29077 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
29078
29079     ;;
29080 esac
29081 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
29082 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
29083 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29084   echo $ECHO_N "(cached) $ECHO_C" >&6
29085 else
29086   ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
29087 fi
29088 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
29089 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
29090
29091 fi
29092 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
29093   BOOST_CFLAGS=""
29094 else
29095    # Nope, look for latest version if any in $prefix/include/boost-*
29096
29097         # Wipe out cached value.  KLUDGE: AC should have API for this
29098         unset ac_cv_header_boost_shared_ptr_hpp
29099
29100         boost_last_match(){
29101           #echo "boost_last_match: [$]*"
29102           pattern="$1"
29103           shift
29104           if test "$pattern" = "$1"
29105           then
29106             LM=''
29107           else
29108             shift `expr $# - 1`
29109             LM=$1
29110           fi
29111           #echo "LM(1)='[$]LM'"
29112         }
29113
29114         pattern="/usr/local/include/boost-*"
29115         boost_last_match "$pattern" $pattern
29116         #echo "LM(2)='$LM'"
29117
29118         OLD_CPPFLAGS=$CPP_FLAGS
29119         CPPFLAGS="$CPPFLAGS -I$LM"
29120         if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29121   { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
29122 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
29123 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29124   echo $ECHO_N "(cached) $ECHO_C" >&6
29125 fi
29126 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
29127 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
29128 else
29129   # Is the header compilable?
29130 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
29131 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
29132 cat >conftest.$ac_ext <<_ACEOF
29133 /* confdefs.h.  */
29134 _ACEOF
29135 cat confdefs.h >>conftest.$ac_ext
29136 cat >>conftest.$ac_ext <<_ACEOF
29137 /* end confdefs.h.  */
29138 $ac_includes_default
29139 #include <boost/shared_ptr.hpp>
29140 _ACEOF
29141 rm -f conftest.$ac_objext
29142 if { (ac_try="$ac_compile"
29143 case "(($ac_try" in
29144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29145   *) ac_try_echo=$ac_try;;
29146 esac
29147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29148   (eval "$ac_compile") 2>conftest.er1
29149   ac_status=$?
29150   grep -v '^ *+' conftest.er1 >conftest.err
29151   rm -f conftest.er1
29152   cat conftest.err >&5
29153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154   (exit $ac_status); } &&
29155          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29156   { (case "(($ac_try" in
29157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29158   *) ac_try_echo=$ac_try;;
29159 esac
29160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29161   (eval "$ac_try") 2>&5
29162   ac_status=$?
29163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164   (exit $ac_status); }; } &&
29165          { ac_try='test -s conftest.$ac_objext'
29166   { (case "(($ac_try" in
29167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29168   *) ac_try_echo=$ac_try;;
29169 esac
29170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29171   (eval "$ac_try") 2>&5
29172   ac_status=$?
29173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174   (exit $ac_status); }; }; then
29175   ac_header_compiler=yes
29176 else
29177   echo "$as_me: failed program was:" >&5
29178 sed 's/^/| /' conftest.$ac_ext >&5
29179
29180         ac_header_compiler=no
29181 fi
29182
29183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29185 echo "${ECHO_T}$ac_header_compiler" >&6; }
29186
29187 # Is the header present?
29188 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
29189 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
29190 cat >conftest.$ac_ext <<_ACEOF
29191 /* confdefs.h.  */
29192 _ACEOF
29193 cat confdefs.h >>conftest.$ac_ext
29194 cat >>conftest.$ac_ext <<_ACEOF
29195 /* end confdefs.h.  */
29196 #include <boost/shared_ptr.hpp>
29197 _ACEOF
29198 if { (ac_try="$ac_cpp conftest.$ac_ext"
29199 case "(($ac_try" in
29200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29201   *) ac_try_echo=$ac_try;;
29202 esac
29203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29204   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29205   ac_status=$?
29206   grep -v '^ *+' conftest.er1 >conftest.err
29207   rm -f conftest.er1
29208   cat conftest.err >&5
29209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210   (exit $ac_status); } >/dev/null; then
29211   if test -s conftest.err; then
29212     ac_cpp_err=$ac_cxx_preproc_warn_flag
29213     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29214   else
29215     ac_cpp_err=
29216   fi
29217 else
29218   ac_cpp_err=yes
29219 fi
29220 if test -z "$ac_cpp_err"; then
29221   ac_header_preproc=yes
29222 else
29223   echo "$as_me: failed program was:" >&5
29224 sed 's/^/| /' conftest.$ac_ext >&5
29225
29226   ac_header_preproc=no
29227 fi
29228
29229 rm -f conftest.err conftest.$ac_ext
29230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29231 echo "${ECHO_T}$ac_header_preproc" >&6; }
29232
29233 # So?  What about this header?
29234 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29235   yes:no: )
29236     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
29237 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
29238     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
29239 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
29240     ac_header_preproc=yes
29241     ;;
29242   no:yes:* )
29243     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
29244 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
29245     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&5
29246 echo "$as_me: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&2;}
29247     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
29248 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
29249     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&5
29250 echo "$as_me: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
29251     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
29252 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
29253     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
29254 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
29255
29256     ;;
29257 esac
29258 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
29259 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
29260 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29261   echo $ECHO_N "(cached) $ECHO_C" >&6
29262 else
29263   ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
29264 fi
29265 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
29266 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
29267
29268 fi
29269 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
29270   BOOST_CFLAGS="-I$LM"
29271 else
29272   { { echo "$as_me:$LINENO: error: Failed to locate boost/shared_ptr.hpp.
29273 Try using --with-boost-include-dir=<path>,
29274 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&5
29275 echo "$as_me: error: Failed to locate boost/shared_ptr.hpp.
29276 Try using --with-boost-include-dir=<path>,
29277 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&2;}
29278    { (exit 1); exit 1; }; }
29279 fi
29280
29281
29282         CPPFLAGS=$OLD_CPPFLAGS
29283
29284 fi
29285
29286
29287
29288    fi
29289    unset boost_last_match LM
29290    ac_ext=c
29291 ac_cpp='$CPP $CPPFLAGS'
29292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29295
29296
29297
29298
29299 DEFINES=""
29300
29301
29302 # Check whether --enable-all-components was given.
29303 if test "${enable_all_components+set}" = set; then
29304   enableval=$enable_all_components;
29305 fi
29306
29307
29308 build_dirs="config"
29309
29310
29311     # Check whether --enable-gnuradio-core was given.
29312 if test "${enable_gnuradio_core+set}" = set; then
29313   enableval=$enable_gnuradio_core;
29314 else
29315   enable_gnuradio_core=$enable_all_components
29316 fi
29317
29318
29319
29320     ac_config_files="$ac_config_files gnuradio-core/Makefile gnuradio-core/gnuradio-core.pc gnuradio-core/doc/Doxyfile gnuradio-core/doc/Makefile gnuradio-core/doc/other/Makefile gnuradio-core/doc/xml/Makefile gnuradio-core/src/Makefile gnuradio-core/src/gen_interpolator_taps/Makefile gnuradio-core/src/lib/Makefile gnuradio-core/src/lib/filter/Makefile gnuradio-core/src/lib/g72x/Makefile gnuradio-core/src/lib/general/Makefile gnuradio-core/src/lib/general/gr_prefix.cc gnuradio-core/src/lib/io/Makefile gnuradio-core/src/lib/missing/Makefile gnuradio-core/src/lib/omnithread/Makefile gnuradio-core/src/lib/reed-solomon/Makefile gnuradio-core/src/lib/runtime/Makefile gnuradio-core/src/lib/swig/Makefile gnuradio-core/src/python/Makefile gnuradio-core/src/python/bin/Makefile gnuradio-core/src/python/gnuradio/Makefile gnuradio-core/src/python/gnuradio/blks/Makefile gnuradio-core/src/python/gnuradio/blksimpl/Makefile gnuradio-core/src/python/gnuradio/gr/Makefile gnuradio-core/src/python/gnuradio/gr/run_tests gnuradio-core/src/python/gnuradio/gru/Makefile gnuradio-core/src/python/gnuradio/gruimpl/Makefile gnuradio-core/src/tests/Makefile gnuradio-core/src/utils/Makefile"
29321
29322
29323     passed=yes
29324
29325     if test x$passed = xno; then
29326         skipped_dirs="$skipped_dirs gnuradio-core"
29327         if test x$enable_gnuradio_core = xyes; then
29328             { { echo "$as_me:$LINENO: error: Component gnuradio-core has errors, stopping." >&5
29329 echo "$as_me: error: Component gnuradio-core has errors, stopping." >&2;}
29330    { (exit 1); exit 1; }; }
29331         else
29332             { echo "$as_me:$LINENO: result: Not building component gnuradio-core." >&5
29333 echo "${ECHO_T}Not building component gnuradio-core." >&6; }
29334         fi
29335     else
29336         if test x$enable_gnuradio_core != xno; then
29337
29338                 ac_config_commands="$ac_config_commands run_tests_core"
29339
29340
29341                 ac_config_commands="$ac_config_commands swig_deps"
29342
29343
29344             build_dirs="$build_dirs gnuradio-core"
29345             { echo "$as_me:$LINENO: result: Component gnuradio-core passed configuration checks, building." >&5
29346 echo "${ECHO_T}Component gnuradio-core passed configuration checks, building." >&6; }
29347         else
29348             skipped_dirs="$skipped_dirs gnuradio-core"
29349             { echo "$as_me:$LINENO: result: Component gnuradio-core passed configuration checks, but not building." >&5
29350 echo "${ECHO_T}Component gnuradio-core passed configuration checks, but not building." >&6; }
29351         fi
29352     fi
29353
29354
29355
29356
29357     # Check whether --enable-gnuradio-examples was given.
29358 if test "${enable_gnuradio_examples+set}" = set; then
29359   enableval=$enable_gnuradio_examples;
29360 else
29361   enable_gnuradio_examples=$enable_all_components
29362 fi
29363
29364
29365
29366     ac_config_files="$ac_config_files gnuradio-examples/Makefile gnuradio-examples/python/Makefile gnuradio-examples/python/apps/hf_explorer/Makefile gnuradio-examples/python/apps/hf_radio/Makefile gnuradio-examples/python/apps/Makefile gnuradio-examples/python/audio/Makefile gnuradio-examples/python/channel-coding/Makefile gnuradio-examples/python/channel-coding/fsm_files/Makefile gnuradio-examples/python/digital/Makefile gnuradio-examples/python/digital_voice/Makefile gnuradio-examples/python/multi-antenna/Makefile gnuradio-examples/python/multi_usrp/Makefile gnuradio-examples/python/networking/Makefile gnuradio-examples/python/usrp/Makefile"
29367
29368
29369     passed=yes
29370
29371     if test x$passed = xno; then
29372         skipped_dirs="$skipped_dirs gnuradio-examples"
29373         if test x$enable_gnuradio_examples = xyes; then
29374             { { echo "$as_me:$LINENO: error: Component gnuradio-examples has errors, stopping." >&5
29375 echo "$as_me: error: Component gnuradio-examples has errors, stopping." >&2;}
29376    { (exit 1); exit 1; }; }
29377         else
29378             { echo "$as_me:$LINENO: result: Not building component gnuradio-examples." >&5
29379 echo "${ECHO_T}Not building component gnuradio-examples." >&6; }
29380         fi
29381     else
29382         if test x$enable_gnuradio_examples != xno; then
29383
29384             build_dirs="$build_dirs gnuradio-examples"
29385             { echo "$as_me:$LINENO: result: Component gnuradio-examples passed configuration checks, building." >&5
29386 echo "${ECHO_T}Component gnuradio-examples passed configuration checks, building." >&6; }
29387         else
29388             skipped_dirs="$skipped_dirs gnuradio-examples"
29389             { echo "$as_me:$LINENO: result: Component gnuradio-examples passed configuration checks, but not building." >&5
29390 echo "${ECHO_T}Component gnuradio-examples passed configuration checks, but not building." >&6; }
29391         fi
29392     fi
29393
29394
29395 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29396 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29397 if test "${ac_cv_header_stat_broken+set}" = set; then
29398   echo $ECHO_N "(cached) $ECHO_C" >&6
29399 else
29400   cat >conftest.$ac_ext <<_ACEOF
29401 /* confdefs.h.  */
29402 _ACEOF
29403 cat confdefs.h >>conftest.$ac_ext
29404 cat >>conftest.$ac_ext <<_ACEOF
29405 /* end confdefs.h.  */
29406 #include <sys/types.h>
29407 #include <sys/stat.h>
29408
29409 #if defined S_ISBLK && defined S_IFDIR
29410 # if S_ISBLK (S_IFDIR)
29411 You lose.
29412 # endif
29413 #endif
29414
29415 #if defined S_ISBLK && defined S_IFCHR
29416 # if S_ISBLK (S_IFCHR)
29417 You lose.
29418 # endif
29419 #endif
29420
29421 #if defined S_ISLNK && defined S_IFREG
29422 # if S_ISLNK (S_IFREG)
29423 You lose.
29424 # endif
29425 #endif
29426
29427 #if defined S_ISSOCK && defined S_IFREG
29428 # if S_ISSOCK (S_IFREG)
29429 You lose.
29430 # endif
29431 #endif
29432
29433 _ACEOF
29434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29435   $EGREP "You lose" >/dev/null 2>&1; then
29436   ac_cv_header_stat_broken=yes
29437 else
29438   ac_cv_header_stat_broken=no
29439 fi
29440 rm -f conftest*
29441
29442 fi
29443 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29444 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29445 if test $ac_cv_header_stat_broken = yes; then
29446
29447 cat >>confdefs.h <<\_ACEOF
29448 #define STAT_MACROS_BROKEN 1
29449 _ACEOF
29450
29451 fi
29452
29453
29454
29455 for ac_header in fcntl.h
29456 do
29457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29459   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29462   echo $ECHO_N "(cached) $ECHO_C" >&6
29463 fi
29464 ac_res=`eval echo '${'$as_ac_Header'}'`
29465                { echo "$as_me:$LINENO: result: $ac_res" >&5
29466 echo "${ECHO_T}$ac_res" >&6; }
29467 else
29468   # Is the header compilable?
29469 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29471 cat >conftest.$ac_ext <<_ACEOF
29472 /* confdefs.h.  */
29473 _ACEOF
29474 cat confdefs.h >>conftest.$ac_ext
29475 cat >>conftest.$ac_ext <<_ACEOF
29476 /* end confdefs.h.  */
29477 $ac_includes_default
29478 #include <$ac_header>
29479 _ACEOF
29480 rm -f conftest.$ac_objext
29481 if { (ac_try="$ac_compile"
29482 case "(($ac_try" in
29483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29484   *) ac_try_echo=$ac_try;;
29485 esac
29486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29487   (eval "$ac_compile") 2>conftest.er1
29488   ac_status=$?
29489   grep -v '^ *+' conftest.er1 >conftest.err
29490   rm -f conftest.er1
29491   cat conftest.err >&5
29492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493   (exit $ac_status); } &&
29494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29495   { (case "(($ac_try" in
29496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29497   *) ac_try_echo=$ac_try;;
29498 esac
29499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29500   (eval "$ac_try") 2>&5
29501   ac_status=$?
29502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503   (exit $ac_status); }; } &&
29504          { ac_try='test -s conftest.$ac_objext'
29505   { (case "(($ac_try" in
29506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29507   *) ac_try_echo=$ac_try;;
29508 esac
29509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29510   (eval "$ac_try") 2>&5
29511   ac_status=$?
29512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29513   (exit $ac_status); }; }; then
29514   ac_header_compiler=yes
29515 else
29516   echo "$as_me: failed program was:" >&5
29517 sed 's/^/| /' conftest.$ac_ext >&5
29518
29519         ac_header_compiler=no
29520 fi
29521
29522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29524 echo "${ECHO_T}$ac_header_compiler" >&6; }
29525
29526 # Is the header present?
29527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29529 cat >conftest.$ac_ext <<_ACEOF
29530 /* confdefs.h.  */
29531 _ACEOF
29532 cat confdefs.h >>conftest.$ac_ext
29533 cat >>conftest.$ac_ext <<_ACEOF
29534 /* end confdefs.h.  */
29535 #include <$ac_header>
29536 _ACEOF
29537 if { (ac_try="$ac_cpp conftest.$ac_ext"
29538 case "(($ac_try" in
29539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29540   *) ac_try_echo=$ac_try;;
29541 esac
29542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29544   ac_status=$?
29545   grep -v '^ *+' conftest.er1 >conftest.err
29546   rm -f conftest.er1
29547   cat conftest.err >&5
29548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549   (exit $ac_status); } >/dev/null; then
29550   if test -s conftest.err; then
29551     ac_cpp_err=$ac_c_preproc_warn_flag
29552     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29553   else
29554     ac_cpp_err=
29555   fi
29556 else
29557   ac_cpp_err=yes
29558 fi
29559 if test -z "$ac_cpp_err"; then
29560   ac_header_preproc=yes
29561 else
29562   echo "$as_me: failed program was:" >&5
29563 sed 's/^/| /' conftest.$ac_ext >&5
29564
29565   ac_header_preproc=no
29566 fi
29567
29568 rm -f conftest.err conftest.$ac_ext
29569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29570 echo "${ECHO_T}$ac_header_preproc" >&6; }
29571
29572 # So?  What about this header?
29573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29574   yes:no: )
29575     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29579     ac_header_preproc=yes
29580     ;;
29581   no:yes:* )
29582     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29584     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29585 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29586     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29588     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29589 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29592     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29594
29595     ;;
29596 esac
29597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29600   echo $ECHO_N "(cached) $ECHO_C" >&6
29601 else
29602   eval "$as_ac_Header=\$ac_header_preproc"
29603 fi
29604 ac_res=`eval echo '${'$as_ac_Header'}'`
29605                { echo "$as_me:$LINENO: result: $ac_res" >&5
29606 echo "${ECHO_T}$ac_res" >&6; }
29607
29608 fi
29609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29610   cat >>confdefs.h <<_ACEOF
29611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29612 _ACEOF
29613
29614 fi
29615
29616 done
29617
29618
29619
29620
29621 for ac_header in sys/time.h
29622 do
29623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29625   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29628   echo $ECHO_N "(cached) $ECHO_C" >&6
29629 fi
29630 ac_res=`eval echo '${'$as_ac_Header'}'`
29631                { echo "$as_me:$LINENO: result: $ac_res" >&5
29632 echo "${ECHO_T}$ac_res" >&6; }
29633 else
29634   # Is the header compilable?
29635 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29637 cat >conftest.$ac_ext <<_ACEOF
29638 /* confdefs.h.  */
29639 _ACEOF
29640 cat confdefs.h >>conftest.$ac_ext
29641 cat >>conftest.$ac_ext <<_ACEOF
29642 /* end confdefs.h.  */
29643 $ac_includes_default
29644 #include <$ac_header>
29645 _ACEOF
29646 rm -f conftest.$ac_objext
29647 if { (ac_try="$ac_compile"
29648 case "(($ac_try" in
29649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29650   *) ac_try_echo=$ac_try;;
29651 esac
29652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29653   (eval "$ac_compile") 2>conftest.er1
29654   ac_status=$?
29655   grep -v '^ *+' conftest.er1 >conftest.err
29656   rm -f conftest.er1
29657   cat conftest.err >&5
29658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659   (exit $ac_status); } &&
29660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29661   { (case "(($ac_try" in
29662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29663   *) ac_try_echo=$ac_try;;
29664 esac
29665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29666   (eval "$ac_try") 2>&5
29667   ac_status=$?
29668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669   (exit $ac_status); }; } &&
29670          { ac_try='test -s conftest.$ac_objext'
29671   { (case "(($ac_try" in
29672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29673   *) ac_try_echo=$ac_try;;
29674 esac
29675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29676   (eval "$ac_try") 2>&5
29677   ac_status=$?
29678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679   (exit $ac_status); }; }; then
29680   ac_header_compiler=yes
29681 else
29682   echo "$as_me: failed program was:" >&5
29683 sed 's/^/| /' conftest.$ac_ext >&5
29684
29685         ac_header_compiler=no
29686 fi
29687
29688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29689 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29690 echo "${ECHO_T}$ac_header_compiler" >&6; }
29691
29692 # Is the header present?
29693 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29695 cat >conftest.$ac_ext <<_ACEOF
29696 /* confdefs.h.  */
29697 _ACEOF
29698 cat confdefs.h >>conftest.$ac_ext
29699 cat >>conftest.$ac_ext <<_ACEOF
29700 /* end confdefs.h.  */
29701 #include <$ac_header>
29702 _ACEOF
29703 if { (ac_try="$ac_cpp conftest.$ac_ext"
29704 case "(($ac_try" in
29705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29706   *) ac_try_echo=$ac_try;;
29707 esac
29708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29709   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29710   ac_status=$?
29711   grep -v '^ *+' conftest.er1 >conftest.err
29712   rm -f conftest.er1
29713   cat conftest.err >&5
29714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715   (exit $ac_status); } >/dev/null; then
29716   if test -s conftest.err; then
29717     ac_cpp_err=$ac_c_preproc_warn_flag
29718     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29719   else
29720     ac_cpp_err=
29721   fi
29722 else
29723   ac_cpp_err=yes
29724 fi
29725 if test -z "$ac_cpp_err"; then
29726   ac_header_preproc=yes
29727 else
29728   echo "$as_me: failed program was:" >&5
29729 sed 's/^/| /' conftest.$ac_ext >&5
29730
29731   ac_header_preproc=no
29732 fi
29733
29734 rm -f conftest.err conftest.$ac_ext
29735 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29736 echo "${ECHO_T}$ac_header_preproc" >&6; }
29737
29738 # So?  What about this header?
29739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29740   yes:no: )
29741     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29743     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29744 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29745     ac_header_preproc=yes
29746     ;;
29747   no:yes:* )
29748     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29750     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29751 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29752     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29753 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29754     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29755 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29756     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29758     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29759 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29760
29761     ;;
29762 esac
29763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29766   echo $ECHO_N "(cached) $ECHO_C" >&6
29767 else
29768   eval "$as_ac_Header=\$ac_header_preproc"
29769 fi
29770 ac_res=`eval echo '${'$as_ac_Header'}'`
29771                { echo "$as_me:$LINENO: result: $ac_res" >&5
29772 echo "${ECHO_T}$ac_res" >&6; }
29773
29774 fi
29775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29776   cat >>confdefs.h <<_ACEOF
29777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29778 _ACEOF
29779
29780 fi
29781
29782 done
29783
29784
29785
29786
29787 for ac_header in unistd.h
29788 do
29789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29791   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29794   echo $ECHO_N "(cached) $ECHO_C" >&6
29795 fi
29796 ac_res=`eval echo '${'$as_ac_Header'}'`
29797                { echo "$as_me:$LINENO: result: $ac_res" >&5
29798 echo "${ECHO_T}$ac_res" >&6; }
29799 else
29800   # Is the header compilable?
29801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29803 cat >conftest.$ac_ext <<_ACEOF
29804 /* confdefs.h.  */
29805 _ACEOF
29806 cat confdefs.h >>conftest.$ac_ext
29807 cat >>conftest.$ac_ext <<_ACEOF
29808 /* end confdefs.h.  */
29809 $ac_includes_default
29810 #include <$ac_header>
29811 _ACEOF
29812 rm -f conftest.$ac_objext
29813 if { (ac_try="$ac_compile"
29814 case "(($ac_try" in
29815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816   *) ac_try_echo=$ac_try;;
29817 esac
29818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819   (eval "$ac_compile") 2>conftest.er1
29820   ac_status=$?
29821   grep -v '^ *+' conftest.er1 >conftest.err
29822   rm -f conftest.er1
29823   cat conftest.err >&5
29824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825   (exit $ac_status); } &&
29826          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29827   { (case "(($ac_try" in
29828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29829   *) ac_try_echo=$ac_try;;
29830 esac
29831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29832   (eval "$ac_try") 2>&5
29833   ac_status=$?
29834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835   (exit $ac_status); }; } &&
29836          { ac_try='test -s conftest.$ac_objext'
29837   { (case "(($ac_try" in
29838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29839   *) ac_try_echo=$ac_try;;
29840 esac
29841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29842   (eval "$ac_try") 2>&5
29843   ac_status=$?
29844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845   (exit $ac_status); }; }; then
29846   ac_header_compiler=yes
29847 else
29848   echo "$as_me: failed program was:" >&5
29849 sed 's/^/| /' conftest.$ac_ext >&5
29850
29851         ac_header_compiler=no
29852 fi
29853
29854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29856 echo "${ECHO_T}$ac_header_compiler" >&6; }
29857
29858 # Is the header present?
29859 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29861 cat >conftest.$ac_ext <<_ACEOF
29862 /* confdefs.h.  */
29863 _ACEOF
29864 cat confdefs.h >>conftest.$ac_ext
29865 cat >>conftest.$ac_ext <<_ACEOF
29866 /* end confdefs.h.  */
29867 #include <$ac_header>
29868 _ACEOF
29869 if { (ac_try="$ac_cpp conftest.$ac_ext"
29870 case "(($ac_try" in
29871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29872   *) ac_try_echo=$ac_try;;
29873 esac
29874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29875   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29876   ac_status=$?
29877   grep -v '^ *+' conftest.er1 >conftest.err
29878   rm -f conftest.er1
29879   cat conftest.err >&5
29880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881   (exit $ac_status); } >/dev/null; then
29882   if test -s conftest.err; then
29883     ac_cpp_err=$ac_c_preproc_warn_flag
29884     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29885   else
29886     ac_cpp_err=
29887   fi
29888 else
29889   ac_cpp_err=yes
29890 fi
29891 if test -z "$ac_cpp_err"; then
29892   ac_header_preproc=yes
29893 else
29894   echo "$as_me: failed program was:" >&5
29895 sed 's/^/| /' conftest.$ac_ext >&5
29896
29897   ac_header_preproc=no
29898 fi
29899
29900 rm -f conftest.err conftest.$ac_ext
29901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29902 echo "${ECHO_T}$ac_header_preproc" >&6; }
29903
29904 # So?  What about this header?
29905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29906   yes:no: )
29907     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29911     ac_header_preproc=yes
29912     ;;
29913   no:yes:* )
29914     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29916     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29917 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29918     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29920     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29921 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29924     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29926
29927     ;;
29928 esac
29929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29932   echo $ECHO_N "(cached) $ECHO_C" >&6
29933 else
29934   eval "$as_ac_Header=\$ac_header_preproc"
29935 fi
29936 ac_res=`eval echo '${'$as_ac_Header'}'`
29937                { echo "$as_me:$LINENO: result: $ac_res" >&5
29938 echo "${ECHO_T}$ac_res" >&6; }
29939
29940 fi
29941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29942   cat >>confdefs.h <<_ACEOF
29943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29944 _ACEOF
29945
29946 fi
29947
29948 done
29949
29950
29951
29952       { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
29953 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
29954 if test "${ac_cv_have_decl_getenv+set}" = set; then
29955   echo $ECHO_N "(cached) $ECHO_C" >&6
29956 else
29957   cat >conftest.$ac_ext <<_ACEOF
29958 /* confdefs.h.  */
29959 _ACEOF
29960 cat confdefs.h >>conftest.$ac_ext
29961 cat >>conftest.$ac_ext <<_ACEOF
29962 /* end confdefs.h.  */
29963 $ac_includes_default
29964 int
29965 main ()
29966 {
29967 #ifndef getenv
29968   char *p = (char *) getenv;
29969   return !p;
29970 #endif
29971
29972   ;
29973   return 0;
29974 }
29975 _ACEOF
29976 rm -f conftest.$ac_objext
29977 if { (ac_try="$ac_compile"
29978 case "(($ac_try" in
29979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29980   *) ac_try_echo=$ac_try;;
29981 esac
29982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29983   (eval "$ac_compile") 2>conftest.er1
29984   ac_status=$?
29985   grep -v '^ *+' conftest.er1 >conftest.err
29986   rm -f conftest.er1
29987   cat conftest.err >&5
29988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989   (exit $ac_status); } &&
29990          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29991   { (case "(($ac_try" in
29992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29993   *) ac_try_echo=$ac_try;;
29994 esac
29995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29996   (eval "$ac_try") 2>&5
29997   ac_status=$?
29998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999   (exit $ac_status); }; } &&
30000          { ac_try='test -s conftest.$ac_objext'
30001   { (case "(($ac_try" in
30002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30003   *) ac_try_echo=$ac_try;;
30004 esac
30005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30006   (eval "$ac_try") 2>&5
30007   ac_status=$?
30008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009   (exit $ac_status); }; }; then
30010   ac_cv_have_decl_getenv=yes
30011 else
30012   echo "$as_me: failed program was:" >&5
30013 sed 's/^/| /' conftest.$ac_ext >&5
30014
30015         ac_cv_have_decl_getenv=no
30016 fi
30017
30018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30019 fi
30020 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
30021 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
30022 if test $ac_cv_have_decl_getenv = yes; then
30023
30024 cat >>confdefs.h <<_ACEOF
30025 #define HAVE_DECL_GETENV 1
30026 _ACEOF
30027
30028
30029 else
30030   cat >>confdefs.h <<_ACEOF
30031 #define HAVE_DECL_GETENV 0
30032 _ACEOF
30033
30034
30035 fi
30036
30037
30038
30039
30040
30041     # Check whether --enable-usrp was given.
30042 if test "${enable_usrp+set}" = set; then
30043   enableval=$enable_usrp;
30044 else
30045   enable_usrp=$enable_all_components
30046 fi
30047
30048
30049
30050     ac_config_files="$ac_config_files usrp/Makefile usrp/usrp.pc usrp/usrp.iss usrp/doc/Doxyfile usrp/doc/Makefile usrp/doc/other/Makefile usrp/host/Makefile usrp/host/misc/Makefile usrp/host/lib/Makefile usrp/host/lib/std_paths.h usrp/host/swig/Makefile usrp/host/apps/Makefile usrp/firmware/Makefile usrp/firmware/include/Makefile usrp/firmware/lib/Makefile usrp/firmware/src/Makefile usrp/firmware/src/common/Makefile usrp/firmware/src/usrp2/Makefile usrp/fpga/Makefile usrp/fpga/rbf/Makefile"
30051
30052
30053     # gnulib.
30054     # FIXME: this needs to fail gracefully and continue, not implemented yet
30055
30056 for ac_func in mkstemp
30057 do
30058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30059 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30061 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30062   echo $ECHO_N "(cached) $ECHO_C" >&6
30063 else
30064   cat >conftest.$ac_ext <<_ACEOF
30065 /* confdefs.h.  */
30066 _ACEOF
30067 cat confdefs.h >>conftest.$ac_ext
30068 cat >>conftest.$ac_ext <<_ACEOF
30069 /* end confdefs.h.  */
30070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30072 #define $ac_func innocuous_$ac_func
30073
30074 /* System header to define __stub macros and hopefully few prototypes,
30075     which can conflict with char $ac_func (); below.
30076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30077     <limits.h> exists even on freestanding compilers.  */
30078
30079 #ifdef __STDC__
30080 # include <limits.h>
30081 #else
30082 # include <assert.h>
30083 #endif
30084
30085 #undef $ac_func
30086
30087 /* Override any GCC internal prototype to avoid an error.
30088    Use char because int might match the return type of a GCC
30089    builtin and then its argument prototype would still apply.  */
30090 #ifdef __cplusplus
30091 extern "C"
30092 #endif
30093 char $ac_func ();
30094 /* The GNU C library defines this for functions which it implements
30095     to always fail with ENOSYS.  Some functions are actually named
30096     something starting with __ and the normal name is an alias.  */
30097 #if defined __stub_$ac_func || defined __stub___$ac_func
30098 choke me
30099 #endif
30100
30101 int
30102 main ()
30103 {
30104 return $ac_func ();
30105   ;
30106   return 0;
30107 }
30108 _ACEOF
30109 rm -f conftest.$ac_objext conftest$ac_exeext
30110 if { (ac_try="$ac_link"
30111 case "(($ac_try" in
30112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30113   *) ac_try_echo=$ac_try;;
30114 esac
30115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30116   (eval "$ac_link") 2>conftest.er1
30117   ac_status=$?
30118   grep -v '^ *+' conftest.er1 >conftest.err
30119   rm -f conftest.er1
30120   cat conftest.err >&5
30121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122   (exit $ac_status); } &&
30123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30124   { (case "(($ac_try" in
30125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126   *) ac_try_echo=$ac_try;;
30127 esac
30128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129   (eval "$ac_try") 2>&5
30130   ac_status=$?
30131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132   (exit $ac_status); }; } &&
30133          { ac_try='test -s conftest$ac_exeext'
30134   { (case "(($ac_try" in
30135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30136   *) ac_try_echo=$ac_try;;
30137 esac
30138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30139   (eval "$ac_try") 2>&5
30140   ac_status=$?
30141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142   (exit $ac_status); }; }; then
30143   eval "$as_ac_var=yes"
30144 else
30145   echo "$as_me: failed program was:" >&5
30146 sed 's/^/| /' conftest.$ac_ext >&5
30147
30148         eval "$as_ac_var=no"
30149 fi
30150
30151 rm -f core conftest.err conftest.$ac_objext \
30152       conftest$ac_exeext conftest.$ac_ext
30153 fi
30154 ac_res=`eval echo '${'$as_ac_var'}'`
30155                { echo "$as_me:$LINENO: result: $ac_res" >&5
30156 echo "${ECHO_T}$ac_res" >&6; }
30157 if test `eval echo '${'$as_ac_var'}'` = yes; then
30158   cat >>confdefs.h <<_ACEOF
30159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30160 _ACEOF
30161
30162 else
30163   case " $LIBOBJS " in
30164   *" $ac_func.$ac_objext "* ) ;;
30165   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
30166  ;;
30167 esac
30168
30169 fi
30170 done
30171
30172
30173   if test $ac_cv_func_mkstemp = no; then
30174     utils_cv_func_mkstemp_limitations=yes
30175   else
30176     { echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
30177 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6; }
30178 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
30179   echo $ECHO_N "(cached) $ECHO_C" >&6
30180 else
30181
30182         if test "$cross_compiling" = yes; then
30183   utils_cv_func_mkstemp_limitations=yes
30184
30185 else
30186   cat >conftest.$ac_ext <<_ACEOF
30187 /* confdefs.h.  */
30188 _ACEOF
30189 cat confdefs.h >>conftest.$ac_ext
30190 cat >>conftest.$ac_ext <<_ACEOF
30191 /* end confdefs.h.  */
30192
30193 #         include <stdlib.h>
30194           int main ()
30195           {
30196             int i;
30197             for (i = 0; i < 70; i++)
30198               {
30199                 char template[] = "conftestXXXXXX";
30200                 int fd = mkstemp (template);
30201                 if (fd == -1)
30202                   exit (1);
30203                 close (fd);
30204               }
30205             exit (0);
30206           }
30207
30208 _ACEOF
30209 rm -f conftest$ac_exeext
30210 if { (ac_try="$ac_link"
30211 case "(($ac_try" in
30212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30213   *) ac_try_echo=$ac_try;;
30214 esac
30215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30216   (eval "$ac_link") 2>&5
30217   ac_status=$?
30218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30220   { (case "(($ac_try" in
30221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30222   *) ac_try_echo=$ac_try;;
30223 esac
30224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30225   (eval "$ac_try") 2>&5
30226   ac_status=$?
30227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228   (exit $ac_status); }; }; then
30229   utils_cv_func_mkstemp_limitations=no
30230 else
30231   echo "$as_me: program exited with status $ac_status" >&5
30232 echo "$as_me: failed program was:" >&5
30233 sed 's/^/| /' conftest.$ac_ext >&5
30234
30235 ( exit $ac_status )
30236 utils_cv_func_mkstemp_limitations=yes
30237 fi
30238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30239 fi
30240
30241
30242
30243
30244 fi
30245 { echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
30246 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6; }
30247   fi
30248
30249   if test $utils_cv_func_mkstemp_limitations = yes; then
30250     case " $LIBOBJS " in
30251   *" mkstemp.$ac_objext "* ) ;;
30252   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
30253  ;;
30254 esac
30255
30256     case " $LIBOBJS " in
30257   *" tempname.$ac_objext "* ) ;;
30258   *) LIBOBJS="$LIBOBJS tempname.$ac_objext"
30259  ;;
30260 esac
30261
30262
30263 cat >>confdefs.h <<\_ACEOF
30264 #define mkstemp rpl_mkstemp
30265 _ACEOF
30266
30267
30268
30269
30270
30271
30272
30273
30274   :
30275
30276
30277
30278
30279
30280
30281
30282
30283
30284
30285
30286
30287 for ac_header in stdint.h
30288 do
30289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30291   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30294   echo $ECHO_N "(cached) $ECHO_C" >&6
30295 fi
30296 ac_res=`eval echo '${'$as_ac_Header'}'`
30297                { echo "$as_me:$LINENO: result: $ac_res" >&5
30298 echo "${ECHO_T}$ac_res" >&6; }
30299 else
30300   # Is the header compilable?
30301 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30303 cat >conftest.$ac_ext <<_ACEOF
30304 /* confdefs.h.  */
30305 _ACEOF
30306 cat confdefs.h >>conftest.$ac_ext
30307 cat >>conftest.$ac_ext <<_ACEOF
30308 /* end confdefs.h.  */
30309 $ac_includes_default
30310 #include <$ac_header>
30311 _ACEOF
30312 rm -f conftest.$ac_objext
30313 if { (ac_try="$ac_compile"
30314 case "(($ac_try" in
30315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30316   *) ac_try_echo=$ac_try;;
30317 esac
30318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30319   (eval "$ac_compile") 2>conftest.er1
30320   ac_status=$?
30321   grep -v '^ *+' conftest.er1 >conftest.err
30322   rm -f conftest.er1
30323   cat conftest.err >&5
30324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30325   (exit $ac_status); } &&
30326          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30327   { (case "(($ac_try" in
30328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30329   *) ac_try_echo=$ac_try;;
30330 esac
30331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30332   (eval "$ac_try") 2>&5
30333   ac_status=$?
30334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335   (exit $ac_status); }; } &&
30336          { ac_try='test -s conftest.$ac_objext'
30337   { (case "(($ac_try" in
30338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30339   *) ac_try_echo=$ac_try;;
30340 esac
30341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30342   (eval "$ac_try") 2>&5
30343   ac_status=$?
30344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345   (exit $ac_status); }; }; then
30346   ac_header_compiler=yes
30347 else
30348   echo "$as_me: failed program was:" >&5
30349 sed 's/^/| /' conftest.$ac_ext >&5
30350
30351         ac_header_compiler=no
30352 fi
30353
30354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30355 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30356 echo "${ECHO_T}$ac_header_compiler" >&6; }
30357
30358 # Is the header present?
30359 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30361 cat >conftest.$ac_ext <<_ACEOF
30362 /* confdefs.h.  */
30363 _ACEOF
30364 cat confdefs.h >>conftest.$ac_ext
30365 cat >>conftest.$ac_ext <<_ACEOF
30366 /* end confdefs.h.  */
30367 #include <$ac_header>
30368 _ACEOF
30369 if { (ac_try="$ac_cpp conftest.$ac_ext"
30370 case "(($ac_try" in
30371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30372   *) ac_try_echo=$ac_try;;
30373 esac
30374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30375   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30376   ac_status=$?
30377   grep -v '^ *+' conftest.er1 >conftest.err
30378   rm -f conftest.er1
30379   cat conftest.err >&5
30380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381   (exit $ac_status); } >/dev/null; then
30382   if test -s conftest.err; then
30383     ac_cpp_err=$ac_c_preproc_warn_flag
30384     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30385   else
30386     ac_cpp_err=
30387   fi
30388 else
30389   ac_cpp_err=yes
30390 fi
30391 if test -z "$ac_cpp_err"; then
30392   ac_header_preproc=yes
30393 else
30394   echo "$as_me: failed program was:" >&5
30395 sed 's/^/| /' conftest.$ac_ext >&5
30396
30397   ac_header_preproc=no
30398 fi
30399
30400 rm -f conftest.err conftest.$ac_ext
30401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30402 echo "${ECHO_T}$ac_header_preproc" >&6; }
30403
30404 # So?  What about this header?
30405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30406   yes:no: )
30407     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30411     ac_header_preproc=yes
30412     ;;
30413   no:yes:* )
30414     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30416     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30417 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30418     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30420     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30421 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30424     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30426
30427     ;;
30428 esac
30429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30432   echo $ECHO_N "(cached) $ECHO_C" >&6
30433 else
30434   eval "$as_ac_Header=\$ac_header_preproc"
30435 fi
30436 ac_res=`eval echo '${'$as_ac_Header'}'`
30437                { echo "$as_me:$LINENO: result: $ac_res" >&5
30438 echo "${ECHO_T}$ac_res" >&6; }
30439
30440 fi
30441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30442   cat >>confdefs.h <<_ACEOF
30443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30444 _ACEOF
30445
30446 fi
30447
30448 done
30449
30450
30451
30452
30453 for ac_func in __secure_getenv gettimeofday lstat
30454 do
30455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30456 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30459   echo $ECHO_N "(cached) $ECHO_C" >&6
30460 else
30461   cat >conftest.$ac_ext <<_ACEOF
30462 /* confdefs.h.  */
30463 _ACEOF
30464 cat confdefs.h >>conftest.$ac_ext
30465 cat >>conftest.$ac_ext <<_ACEOF
30466 /* end confdefs.h.  */
30467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30468    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30469 #define $ac_func innocuous_$ac_func
30470
30471 /* System header to define __stub macros and hopefully few prototypes,
30472     which can conflict with char $ac_func (); below.
30473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30474     <limits.h> exists even on freestanding compilers.  */
30475
30476 #ifdef __STDC__
30477 # include <limits.h>
30478 #else
30479 # include <assert.h>
30480 #endif
30481
30482 #undef $ac_func
30483
30484 /* Override any GCC internal prototype to avoid an error.
30485    Use char because int might match the return type of a GCC
30486    builtin and then its argument prototype would still apply.  */
30487 #ifdef __cplusplus
30488 extern "C"
30489 #endif
30490 char $ac_func ();
30491 /* The GNU C library defines this for functions which it implements
30492     to always fail with ENOSYS.  Some functions are actually named
30493     something starting with __ and the normal name is an alias.  */
30494 #if defined __stub_$ac_func || defined __stub___$ac_func
30495 choke me
30496 #endif
30497
30498 int
30499 main ()
30500 {
30501 return $ac_func ();
30502   ;
30503   return 0;
30504 }
30505 _ACEOF
30506 rm -f conftest.$ac_objext conftest$ac_exeext
30507 if { (ac_try="$ac_link"
30508 case "(($ac_try" in
30509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30510   *) ac_try_echo=$ac_try;;
30511 esac
30512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30513   (eval "$ac_link") 2>conftest.er1
30514   ac_status=$?
30515   grep -v '^ *+' conftest.er1 >conftest.err
30516   rm -f conftest.er1
30517   cat conftest.err >&5
30518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519   (exit $ac_status); } &&
30520          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30521   { (case "(($ac_try" in
30522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30523   *) ac_try_echo=$ac_try;;
30524 esac
30525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30526   (eval "$ac_try") 2>&5
30527   ac_status=$?
30528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529   (exit $ac_status); }; } &&
30530          { ac_try='test -s conftest$ac_exeext'
30531   { (case "(($ac_try" in
30532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533   *) ac_try_echo=$ac_try;;
30534 esac
30535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536   (eval "$ac_try") 2>&5
30537   ac_status=$?
30538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539   (exit $ac_status); }; }; then
30540   eval "$as_ac_var=yes"
30541 else
30542   echo "$as_me: failed program was:" >&5
30543 sed 's/^/| /' conftest.$ac_ext >&5
30544
30545         eval "$as_ac_var=no"
30546 fi
30547
30548 rm -f core conftest.err conftest.$ac_objext \
30549       conftest$ac_exeext conftest.$ac_ext
30550 fi
30551 ac_res=`eval echo '${'$as_ac_var'}'`
30552                { echo "$as_me:$LINENO: result: $ac_res" >&5
30553 echo "${ECHO_T}$ac_res" >&6; }
30554 if test `eval echo '${'$as_ac_var'}'` = yes; then
30555   cat >>confdefs.h <<_ACEOF
30556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30557 _ACEOF
30558
30559 fi
30560 done
30561
30562
30563   :
30564
30565
30566
30567
30568
30569   # AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
30570
30571     { echo "$as_me:$LINENO: checking whether mkdir accepts only one arg" >&5
30572 echo $ECHO_N "checking whether mkdir accepts only one arg... $ECHO_C" >&6; }
30573   cat >conftest.$ac_ext <<_ACEOF
30574 /* confdefs.h.  */
30575 _ACEOF
30576 cat confdefs.h >>conftest.$ac_ext
30577 cat >>conftest.$ac_ext <<_ACEOF
30578 /* end confdefs.h.  */
30579 #include <sys/types.h>
30580        #include <sys/stat.h>
30581        #include <fcntl.h>
30582 int
30583 main ()
30584 {
30585
30586        mkdir("")
30587
30588   ;
30589   return 0;
30590 }
30591 _ACEOF
30592 rm -f conftest.$ac_objext
30593 if { (ac_try="$ac_compile"
30594 case "(($ac_try" in
30595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30596   *) ac_try_echo=$ac_try;;
30597 esac
30598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30599   (eval "$ac_compile") 2>conftest.er1
30600   ac_status=$?
30601   grep -v '^ *+' conftest.er1 >conftest.err
30602   rm -f conftest.er1
30603   cat conftest.err >&5
30604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30605   (exit $ac_status); } &&
30606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30607   { (case "(($ac_try" in
30608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30609   *) ac_try_echo=$ac_try;;
30610 esac
30611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30612   (eval "$ac_try") 2>&5
30613   ac_status=$?
30614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30615   (exit $ac_status); }; } &&
30616          { ac_try='test -s conftest.$ac_objext'
30617   { (case "(($ac_try" in
30618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30619   *) ac_try_echo=$ac_try;;
30620 esac
30621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30622   (eval "$ac_try") 2>&5
30623   ac_status=$?
30624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30625   (exit $ac_status); }; }; then
30626    { echo "$as_me:$LINENO: result: yes" >&5
30627 echo "${ECHO_T}yes" >&6; }
30628
30629 cat >>confdefs.h <<\_ACEOF
30630 #define MKDIR_TAKES_ONE_ARG
30631 _ACEOF
30632
30633 else
30634   echo "$as_me: failed program was:" >&5
30635 sed 's/^/| /' conftest.$ac_ext >&5
30636
30637          { echo "$as_me:$LINENO: result: no" >&5
30638 echo "${ECHO_T}no" >&6; }
30639
30640 fi
30641
30642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30643
30644   fi
30645
30646
30647     # These checks don't fail
30648     { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
30649 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
30650 if test "${ac_cv_c_bigendian+set}" = set; then
30651   echo $ECHO_N "(cached) $ECHO_C" >&6
30652 else
30653   # See if sys/param.h defines the BYTE_ORDER macro.
30654 cat >conftest.$ac_ext <<_ACEOF
30655 /* confdefs.h.  */
30656 _ACEOF
30657 cat confdefs.h >>conftest.$ac_ext
30658 cat >>conftest.$ac_ext <<_ACEOF
30659 /* end confdefs.h.  */
30660 #include <sys/types.h>
30661 #include <sys/param.h>
30662
30663 int
30664 main ()
30665 {
30666 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
30667  bogus endian macros
30668 #endif
30669
30670   ;
30671   return 0;
30672 }
30673 _ACEOF
30674 rm -f conftest.$ac_objext
30675 if { (ac_try="$ac_compile"
30676 case "(($ac_try" in
30677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30678   *) ac_try_echo=$ac_try;;
30679 esac
30680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30681   (eval "$ac_compile") 2>conftest.er1
30682   ac_status=$?
30683   grep -v '^ *+' conftest.er1 >conftest.err
30684   rm -f conftest.er1
30685   cat conftest.err >&5
30686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687   (exit $ac_status); } &&
30688          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30689   { (case "(($ac_try" in
30690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30691   *) ac_try_echo=$ac_try;;
30692 esac
30693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30694   (eval "$ac_try") 2>&5
30695   ac_status=$?
30696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30697   (exit $ac_status); }; } &&
30698          { ac_try='test -s conftest.$ac_objext'
30699   { (case "(($ac_try" in
30700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30701   *) ac_try_echo=$ac_try;;
30702 esac
30703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30704   (eval "$ac_try") 2>&5
30705   ac_status=$?
30706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707   (exit $ac_status); }; }; then
30708   # It does; now see whether it defined to BIG_ENDIAN or not.
30709 cat >conftest.$ac_ext <<_ACEOF
30710 /* confdefs.h.  */
30711 _ACEOF
30712 cat confdefs.h >>conftest.$ac_ext
30713 cat >>conftest.$ac_ext <<_ACEOF
30714 /* end confdefs.h.  */
30715 #include <sys/types.h>
30716 #include <sys/param.h>
30717
30718 int
30719 main ()
30720 {
30721 #if BYTE_ORDER != BIG_ENDIAN
30722  not big endian
30723 #endif
30724
30725   ;
30726   return 0;
30727 }
30728 _ACEOF
30729 rm -f conftest.$ac_objext
30730 if { (ac_try="$ac_compile"
30731 case "(($ac_try" in
30732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30733   *) ac_try_echo=$ac_try;;
30734 esac
30735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30736   (eval "$ac_compile") 2>conftest.er1
30737   ac_status=$?
30738   grep -v '^ *+' conftest.er1 >conftest.err
30739   rm -f conftest.er1
30740   cat conftest.err >&5
30741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742   (exit $ac_status); } &&
30743          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30744   { (case "(($ac_try" in
30745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30746   *) ac_try_echo=$ac_try;;
30747 esac
30748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30749   (eval "$ac_try") 2>&5
30750   ac_status=$?
30751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752   (exit $ac_status); }; } &&
30753          { ac_try='test -s conftest.$ac_objext'
30754   { (case "(($ac_try" in
30755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30756   *) ac_try_echo=$ac_try;;
30757 esac
30758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30759   (eval "$ac_try") 2>&5
30760   ac_status=$?
30761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30762   (exit $ac_status); }; }; then
30763   ac_cv_c_bigendian=yes
30764 else
30765   echo "$as_me: failed program was:" >&5
30766 sed 's/^/| /' conftest.$ac_ext >&5
30767
30768         ac_cv_c_bigendian=no
30769 fi
30770
30771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30772 else
30773   echo "$as_me: failed program was:" >&5
30774 sed 's/^/| /' conftest.$ac_ext >&5
30775
30776         # It does not; compile a test program.
30777 if test "$cross_compiling" = yes; then
30778   # try to guess the endianness by grepping values into an object file
30779   ac_cv_c_bigendian=unknown
30780   cat >conftest.$ac_ext <<_ACEOF
30781 /* confdefs.h.  */
30782 _ACEOF
30783 cat confdefs.h >>conftest.$ac_ext
30784 cat >>conftest.$ac_ext <<_ACEOF
30785 /* end confdefs.h.  */
30786 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
30787 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
30788 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
30789 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
30790 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
30791 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
30792 int
30793 main ()
30794 {
30795  _ascii (); _ebcdic ();
30796   ;
30797   return 0;
30798 }
30799 _ACEOF
30800 rm -f conftest.$ac_objext
30801 if { (ac_try="$ac_compile"
30802 case "(($ac_try" in
30803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30804   *) ac_try_echo=$ac_try;;
30805 esac
30806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30807   (eval "$ac_compile") 2>conftest.er1
30808   ac_status=$?
30809   grep -v '^ *+' conftest.er1 >conftest.err
30810   rm -f conftest.er1
30811   cat conftest.err >&5
30812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813   (exit $ac_status); } &&
30814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30815   { (case "(($ac_try" in
30816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30817   *) ac_try_echo=$ac_try;;
30818 esac
30819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30820   (eval "$ac_try") 2>&5
30821   ac_status=$?
30822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823   (exit $ac_status); }; } &&
30824          { ac_try='test -s conftest.$ac_objext'
30825   { (case "(($ac_try" in
30826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30827   *) ac_try_echo=$ac_try;;
30828 esac
30829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30830   (eval "$ac_try") 2>&5
30831   ac_status=$?
30832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833   (exit $ac_status); }; }; then
30834   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
30835   ac_cv_c_bigendian=yes
30836 fi
30837 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
30838   if test "$ac_cv_c_bigendian" = unknown; then
30839     ac_cv_c_bigendian=no
30840   else
30841     # finding both strings is unlikely to happen, but who knows?
30842     ac_cv_c_bigendian=unknown
30843   fi
30844 fi
30845 else
30846   echo "$as_me: failed program was:" >&5
30847 sed 's/^/| /' conftest.$ac_ext >&5
30848
30849
30850 fi
30851
30852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30853 else
30854   cat >conftest.$ac_ext <<_ACEOF
30855 /* confdefs.h.  */
30856 _ACEOF
30857 cat confdefs.h >>conftest.$ac_ext
30858 cat >>conftest.$ac_ext <<_ACEOF
30859 /* end confdefs.h.  */
30860 $ac_includes_default
30861 int
30862 main ()
30863 {
30864
30865   /* Are we little or big endian?  From Harbison&Steele.  */
30866   union
30867   {
30868     long int l;
30869     char c[sizeof (long int)];
30870   } u;
30871   u.l = 1;
30872   return u.c[sizeof (long int) - 1] == 1;
30873
30874   ;
30875   return 0;
30876 }
30877 _ACEOF
30878 rm -f conftest$ac_exeext
30879 if { (ac_try="$ac_link"
30880 case "(($ac_try" in
30881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30882   *) ac_try_echo=$ac_try;;
30883 esac
30884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30885   (eval "$ac_link") 2>&5
30886   ac_status=$?
30887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30888   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30889   { (case "(($ac_try" in
30890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30891   *) ac_try_echo=$ac_try;;
30892 esac
30893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30894   (eval "$ac_try") 2>&5
30895   ac_status=$?
30896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897   (exit $ac_status); }; }; then
30898   ac_cv_c_bigendian=no
30899 else
30900   echo "$as_me: program exited with status $ac_status" >&5
30901 echo "$as_me: failed program was:" >&5
30902 sed 's/^/| /' conftest.$ac_ext >&5
30903
30904 ( exit $ac_status )
30905 ac_cv_c_bigendian=yes
30906 fi
30907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30908 fi
30909
30910
30911 fi
30912
30913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30914 fi
30915 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
30916 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
30917 case $ac_cv_c_bigendian in
30918   yes)
30919
30920 cat >>confdefs.h <<\_ACEOF
30921 #define WORDS_BIGENDIAN 1
30922 _ACEOF
30923  ;;
30924   no)
30925      ;;
30926   *)
30927     { { echo "$as_me:$LINENO: error: unknown endianness
30928 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
30929 echo "$as_me: error: unknown endianness
30930 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
30931    { (exit 1); exit 1; }; } ;;
30932 esac
30933
30934
30935
30936 for ac_header in byteswap.h linux/compiler.h
30937 do
30938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30940   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30943   echo $ECHO_N "(cached) $ECHO_C" >&6
30944 fi
30945 ac_res=`eval echo '${'$as_ac_Header'}'`
30946                { echo "$as_me:$LINENO: result: $ac_res" >&5
30947 echo "${ECHO_T}$ac_res" >&6; }
30948 else
30949   # Is the header compilable?
30950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30952 cat >conftest.$ac_ext <<_ACEOF
30953 /* confdefs.h.  */
30954 _ACEOF
30955 cat confdefs.h >>conftest.$ac_ext
30956 cat >>conftest.$ac_ext <<_ACEOF
30957 /* end confdefs.h.  */
30958 $ac_includes_default
30959 #include <$ac_header>
30960 _ACEOF
30961 rm -f conftest.$ac_objext
30962 if { (ac_try="$ac_compile"
30963 case "(($ac_try" in
30964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30965   *) ac_try_echo=$ac_try;;
30966 esac
30967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30968   (eval "$ac_compile") 2>conftest.er1
30969   ac_status=$?
30970   grep -v '^ *+' conftest.er1 >conftest.err
30971   rm -f conftest.er1
30972   cat conftest.err >&5
30973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974   (exit $ac_status); } &&
30975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30976   { (case "(($ac_try" in
30977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30978   *) ac_try_echo=$ac_try;;
30979 esac
30980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30981   (eval "$ac_try") 2>&5
30982   ac_status=$?
30983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984   (exit $ac_status); }; } &&
30985          { ac_try='test -s conftest.$ac_objext'
30986   { (case "(($ac_try" in
30987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30988   *) ac_try_echo=$ac_try;;
30989 esac
30990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30991   (eval "$ac_try") 2>&5
30992   ac_status=$?
30993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994   (exit $ac_status); }; }; then
30995   ac_header_compiler=yes
30996 else
30997   echo "$as_me: failed program was:" >&5
30998 sed 's/^/| /' conftest.$ac_ext >&5
30999
31000         ac_header_compiler=no
31001 fi
31002
31003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31005 echo "${ECHO_T}$ac_header_compiler" >&6; }
31006
31007 # Is the header present?
31008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31010 cat >conftest.$ac_ext <<_ACEOF
31011 /* confdefs.h.  */
31012 _ACEOF
31013 cat confdefs.h >>conftest.$ac_ext
31014 cat >>conftest.$ac_ext <<_ACEOF
31015 /* end confdefs.h.  */
31016 #include <$ac_header>
31017 _ACEOF
31018 if { (ac_try="$ac_cpp conftest.$ac_ext"
31019 case "(($ac_try" in
31020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31021   *) ac_try_echo=$ac_try;;
31022 esac
31023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31025   ac_status=$?
31026   grep -v '^ *+' conftest.er1 >conftest.err
31027   rm -f conftest.er1
31028   cat conftest.err >&5
31029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030   (exit $ac_status); } >/dev/null; then
31031   if test -s conftest.err; then
31032     ac_cpp_err=$ac_c_preproc_warn_flag
31033     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31034   else
31035     ac_cpp_err=
31036   fi
31037 else
31038   ac_cpp_err=yes
31039 fi
31040 if test -z "$ac_cpp_err"; then
31041   ac_header_preproc=yes
31042 else
31043   echo "$as_me: failed program was:" >&5
31044 sed 's/^/| /' conftest.$ac_ext >&5
31045
31046   ac_header_preproc=no
31047 fi
31048
31049 rm -f conftest.err conftest.$ac_ext
31050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31051 echo "${ECHO_T}$ac_header_preproc" >&6; }
31052
31053 # So?  What about this header?
31054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31055   yes:no: )
31056     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31060     ac_header_preproc=yes
31061     ;;
31062   no:yes:* )
31063     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31065     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31066 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31067     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31069     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31070 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31073     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31075
31076     ;;
31077 esac
31078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31081   echo $ECHO_N "(cached) $ECHO_C" >&6
31082 else
31083   eval "$as_ac_Header=\$ac_header_preproc"
31084 fi
31085 ac_res=`eval echo '${'$as_ac_Header'}'`
31086                { echo "$as_me:$LINENO: result: $ac_res" >&5
31087 echo "${ECHO_T}$ac_res" >&6; }
31088
31089 fi
31090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31091   cat >>confdefs.h <<_ACEOF
31092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31093 _ACEOF
31094
31095 fi
31096
31097 done
31098
31099
31100
31101 for ac_func in getrusage sched_setscheduler
31102 do
31103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31107   echo $ECHO_N "(cached) $ECHO_C" >&6
31108 else
31109   cat >conftest.$ac_ext <<_ACEOF
31110 /* confdefs.h.  */
31111 _ACEOF
31112 cat confdefs.h >>conftest.$ac_ext
31113 cat >>conftest.$ac_ext <<_ACEOF
31114 /* end confdefs.h.  */
31115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31117 #define $ac_func innocuous_$ac_func
31118
31119 /* System header to define __stub macros and hopefully few prototypes,
31120     which can conflict with char $ac_func (); below.
31121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31122     <limits.h> exists even on freestanding compilers.  */
31123
31124 #ifdef __STDC__
31125 # include <limits.h>
31126 #else
31127 # include <assert.h>
31128 #endif
31129
31130 #undef $ac_func
31131
31132 /* Override any GCC internal prototype to avoid an error.
31133    Use char because int might match the return type of a GCC
31134    builtin and then its argument prototype would still apply.  */
31135 #ifdef __cplusplus
31136 extern "C"
31137 #endif
31138 char $ac_func ();
31139 /* The GNU C library defines this for functions which it implements
31140     to always fail with ENOSYS.  Some functions are actually named
31141     something starting with __ and the normal name is an alias.  */
31142 #if defined __stub_$ac_func || defined __stub___$ac_func
31143 choke me
31144 #endif
31145
31146 int
31147 main ()
31148 {
31149 return $ac_func ();
31150   ;
31151   return 0;
31152 }
31153 _ACEOF
31154 rm -f conftest.$ac_objext conftest$ac_exeext
31155 if { (ac_try="$ac_link"
31156 case "(($ac_try" in
31157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31158   *) ac_try_echo=$ac_try;;
31159 esac
31160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31161   (eval "$ac_link") 2>conftest.er1
31162   ac_status=$?
31163   grep -v '^ *+' conftest.er1 >conftest.err
31164   rm -f conftest.er1
31165   cat conftest.err >&5
31166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31167   (exit $ac_status); } &&
31168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31169   { (case "(($ac_try" in
31170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31171   *) ac_try_echo=$ac_try;;
31172 esac
31173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31174   (eval "$ac_try") 2>&5
31175   ac_status=$?
31176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177   (exit $ac_status); }; } &&
31178          { ac_try='test -s conftest$ac_exeext'
31179   { (case "(($ac_try" in
31180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31181   *) ac_try_echo=$ac_try;;
31182 esac
31183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31184   (eval "$ac_try") 2>&5
31185   ac_status=$?
31186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187   (exit $ac_status); }; }; then
31188   eval "$as_ac_var=yes"
31189 else
31190   echo "$as_me: failed program was:" >&5
31191 sed 's/^/| /' conftest.$ac_ext >&5
31192
31193         eval "$as_ac_var=no"
31194 fi
31195
31196 rm -f core conftest.err conftest.$ac_objext \
31197       conftest$ac_exeext conftest.$ac_ext
31198 fi
31199 ac_res=`eval echo '${'$as_ac_var'}'`
31200                { echo "$as_me:$LINENO: result: $ac_res" >&5
31201 echo "${ECHO_T}$ac_res" >&6; }
31202 if test `eval echo '${'$as_ac_var'}'` = yes; then
31203   cat >>confdefs.h <<_ACEOF
31204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31205 _ACEOF
31206
31207 fi
31208 done
31209
31210
31211
31212 for ac_func in sigaction snprintf
31213 do
31214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31218   echo $ECHO_N "(cached) $ECHO_C" >&6
31219 else
31220   cat >conftest.$ac_ext <<_ACEOF
31221 /* confdefs.h.  */
31222 _ACEOF
31223 cat confdefs.h >>conftest.$ac_ext
31224 cat >>conftest.$ac_ext <<_ACEOF
31225 /* end confdefs.h.  */
31226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31227    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31228 #define $ac_func innocuous_$ac_func
31229
31230 /* System header to define __stub macros and hopefully few prototypes,
31231     which can conflict with char $ac_func (); below.
31232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31233     <limits.h> exists even on freestanding compilers.  */
31234
31235 #ifdef __STDC__
31236 # include <limits.h>
31237 #else
31238 # include <assert.h>
31239 #endif
31240
31241 #undef $ac_func
31242
31243 /* Override any GCC internal prototype to avoid an error.
31244    Use char because int might match the return type of a GCC
31245    builtin and then its argument prototype would still apply.  */
31246 #ifdef __cplusplus
31247 extern "C"
31248 #endif
31249 char $ac_func ();
31250 /* The GNU C library defines this for functions which it implements
31251     to always fail with ENOSYS.  Some functions are actually named
31252     something starting with __ and the normal name is an alias.  */
31253 #if defined __stub_$ac_func || defined __stub___$ac_func
31254 choke me
31255 #endif
31256
31257 int
31258 main ()
31259 {
31260 return $ac_func ();
31261   ;
31262   return 0;
31263 }
31264 _ACEOF
31265 rm -f conftest.$ac_objext conftest$ac_exeext
31266 if { (ac_try="$ac_link"
31267 case "(($ac_try" in
31268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31269   *) ac_try_echo=$ac_try;;
31270 esac
31271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31272   (eval "$ac_link") 2>conftest.er1
31273   ac_status=$?
31274   grep -v '^ *+' conftest.er1 >conftest.err
31275   rm -f conftest.er1
31276   cat conftest.err >&5
31277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31278   (exit $ac_status); } &&
31279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31280   { (case "(($ac_try" in
31281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31282   *) ac_try_echo=$ac_try;;
31283 esac
31284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31285   (eval "$ac_try") 2>&5
31286   ac_status=$?
31287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31288   (exit $ac_status); }; } &&
31289          { ac_try='test -s conftest$ac_exeext'
31290   { (case "(($ac_try" in
31291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31292   *) ac_try_echo=$ac_try;;
31293 esac
31294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31295   (eval "$ac_try") 2>&5
31296   ac_status=$?
31297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298   (exit $ac_status); }; }; then
31299   eval "$as_ac_var=yes"
31300 else
31301   echo "$as_me: failed program was:" >&5
31302 sed 's/^/| /' conftest.$ac_ext >&5
31303
31304         eval "$as_ac_var=no"
31305 fi
31306
31307 rm -f core conftest.err conftest.$ac_objext \
31308       conftest$ac_exeext conftest.$ac_ext
31309 fi
31310 ac_res=`eval echo '${'$as_ac_var'}'`
31311                { echo "$as_me:$LINENO: result: $ac_res" >&5
31312 echo "${ECHO_T}$ac_res" >&6; }
31313 if test `eval echo '${'$as_ac_var'}'` = yes; then
31314   cat >>confdefs.h <<_ACEOF
31315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31316 _ACEOF
31317
31318 fi
31319 done
31320
31321
31322     passed=yes
31323
31324         ac_ext=c
31325 ac_cpp='$CPP $CPPFLAGS'
31326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31329
31330
31331         libusbok=yes
31332
31333 for ac_header in usb.h
31334 do
31335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31337   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31340   echo $ECHO_N "(cached) $ECHO_C" >&6
31341 fi
31342 ac_res=`eval echo '${'$as_ac_Header'}'`
31343                { echo "$as_me:$LINENO: result: $ac_res" >&5
31344 echo "${ECHO_T}$ac_res" >&6; }
31345 else
31346   # Is the header compilable?
31347 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31349 cat >conftest.$ac_ext <<_ACEOF
31350 /* confdefs.h.  */
31351 _ACEOF
31352 cat confdefs.h >>conftest.$ac_ext
31353 cat >>conftest.$ac_ext <<_ACEOF
31354 /* end confdefs.h.  */
31355 $ac_includes_default
31356 #include <$ac_header>
31357 _ACEOF
31358 rm -f conftest.$ac_objext
31359 if { (ac_try="$ac_compile"
31360 case "(($ac_try" in
31361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31362   *) ac_try_echo=$ac_try;;
31363 esac
31364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31365   (eval "$ac_compile") 2>conftest.er1
31366   ac_status=$?
31367   grep -v '^ *+' conftest.er1 >conftest.err
31368   rm -f conftest.er1
31369   cat conftest.err >&5
31370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31371   (exit $ac_status); } &&
31372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31373   { (case "(($ac_try" in
31374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31375   *) ac_try_echo=$ac_try;;
31376 esac
31377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31378   (eval "$ac_try") 2>&5
31379   ac_status=$?
31380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381   (exit $ac_status); }; } &&
31382          { ac_try='test -s conftest.$ac_objext'
31383   { (case "(($ac_try" in
31384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31385   *) ac_try_echo=$ac_try;;
31386 esac
31387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31388   (eval "$ac_try") 2>&5
31389   ac_status=$?
31390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31391   (exit $ac_status); }; }; then
31392   ac_header_compiler=yes
31393 else
31394   echo "$as_me: failed program was:" >&5
31395 sed 's/^/| /' conftest.$ac_ext >&5
31396
31397         ac_header_compiler=no
31398 fi
31399
31400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31402 echo "${ECHO_T}$ac_header_compiler" >&6; }
31403
31404 # Is the header present?
31405 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31407 cat >conftest.$ac_ext <<_ACEOF
31408 /* confdefs.h.  */
31409 _ACEOF
31410 cat confdefs.h >>conftest.$ac_ext
31411 cat >>conftest.$ac_ext <<_ACEOF
31412 /* end confdefs.h.  */
31413 #include <$ac_header>
31414 _ACEOF
31415 if { (ac_try="$ac_cpp conftest.$ac_ext"
31416 case "(($ac_try" in
31417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418   *) ac_try_echo=$ac_try;;
31419 esac
31420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31422   ac_status=$?
31423   grep -v '^ *+' conftest.er1 >conftest.err
31424   rm -f conftest.er1
31425   cat conftest.err >&5
31426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427   (exit $ac_status); } >/dev/null; then
31428   if test -s conftest.err; then
31429     ac_cpp_err=$ac_c_preproc_warn_flag
31430     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31431   else
31432     ac_cpp_err=
31433   fi
31434 else
31435   ac_cpp_err=yes
31436 fi
31437 if test -z "$ac_cpp_err"; then
31438   ac_header_preproc=yes
31439 else
31440   echo "$as_me: failed program was:" >&5
31441 sed 's/^/| /' conftest.$ac_ext >&5
31442
31443   ac_header_preproc=no
31444 fi
31445
31446 rm -f conftest.err conftest.$ac_ext
31447 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31448 echo "${ECHO_T}$ac_header_preproc" >&6; }
31449
31450 # So?  What about this header?
31451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31452   yes:no: )
31453     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31457     ac_header_preproc=yes
31458     ;;
31459   no:yes:* )
31460     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31462     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31463 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31464     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31466     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31467 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31470     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31472
31473     ;;
31474 esac
31475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31478   echo $ECHO_N "(cached) $ECHO_C" >&6
31479 else
31480   eval "$as_ac_Header=\$ac_header_preproc"
31481 fi
31482 ac_res=`eval echo '${'$as_ac_Header'}'`
31483                { echo "$as_me:$LINENO: result: $ac_res" >&5
31484 echo "${ECHO_T}$ac_res" >&6; }
31485
31486 fi
31487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31488   cat >>confdefs.h <<_ACEOF
31489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31490 _ACEOF
31491
31492 else
31493   libusbok=no,
31494            { echo "$as_me:$LINENO: result: USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&5
31495 echo "${ECHO_T}USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&6; }
31496
31497 fi
31498
31499 done
31500
31501
31502         save_LIBS="$LIBS"
31503         case "$host_os" in
31504             darwin*)    LIBS="$LIBS -lIOKit" ;;
31505             *) ;;
31506         esac
31507         { echo "$as_me:$LINENO: checking for library containing usb_bulk_write" >&5
31508 echo $ECHO_N "checking for library containing usb_bulk_write... $ECHO_C" >&6; }
31509 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
31510   echo $ECHO_N "(cached) $ECHO_C" >&6
31511 else
31512   ac_func_search_save_LIBS=$LIBS
31513 cat >conftest.$ac_ext <<_ACEOF
31514 /* confdefs.h.  */
31515 _ACEOF
31516 cat confdefs.h >>conftest.$ac_ext
31517 cat >>conftest.$ac_ext <<_ACEOF
31518 /* end confdefs.h.  */
31519
31520 /* Override any GCC internal prototype to avoid an error.
31521    Use char because int might match the return type of a GCC
31522    builtin and then its argument prototype would still apply.  */
31523 #ifdef __cplusplus
31524 extern "C"
31525 #endif
31526 char usb_bulk_write ();
31527 int
31528 main ()
31529 {
31530 return usb_bulk_write ();
31531   ;
31532   return 0;
31533 }
31534 _ACEOF
31535 for ac_lib in '' usb; do
31536   if test -z "$ac_lib"; then
31537     ac_res="none required"
31538   else
31539     ac_res=-l$ac_lib
31540     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31541   fi
31542   rm -f conftest.$ac_objext conftest$ac_exeext
31543 if { (ac_try="$ac_link"
31544 case "(($ac_try" in
31545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31546   *) ac_try_echo=$ac_try;;
31547 esac
31548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31549   (eval "$ac_link") 2>conftest.er1
31550   ac_status=$?
31551   grep -v '^ *+' conftest.er1 >conftest.err
31552   rm -f conftest.er1
31553   cat conftest.err >&5
31554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555   (exit $ac_status); } &&
31556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31557   { (case "(($ac_try" in
31558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31559   *) ac_try_echo=$ac_try;;
31560 esac
31561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31562   (eval "$ac_try") 2>&5
31563   ac_status=$?
31564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565   (exit $ac_status); }; } &&
31566          { ac_try='test -s conftest$ac_exeext'
31567   { (case "(($ac_try" in
31568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31569   *) ac_try_echo=$ac_try;;
31570 esac
31571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31572   (eval "$ac_try") 2>&5
31573   ac_status=$?
31574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575   (exit $ac_status); }; }; then
31576   ac_cv_search_usb_bulk_write=$ac_res
31577 else
31578   echo "$as_me: failed program was:" >&5
31579 sed 's/^/| /' conftest.$ac_ext >&5
31580
31581
31582 fi
31583
31584 rm -f core conftest.err conftest.$ac_objext \
31585       conftest$ac_exeext
31586   if test "${ac_cv_search_usb_bulk_write+set}" = set; then
31587   break
31588 fi
31589 done
31590 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
31591   :
31592 else
31593   ac_cv_search_usb_bulk_write=no
31594 fi
31595 rm conftest.$ac_ext
31596 LIBS=$ac_func_search_save_LIBS
31597 fi
31598 { echo "$as_me:$LINENO: result: $ac_cv_search_usb_bulk_write" >&5
31599 echo "${ECHO_T}$ac_cv_search_usb_bulk_write" >&6; }
31600 ac_res=$ac_cv_search_usb_bulk_write
31601 if test "$ac_res" != no; then
31602   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31603   USB_LIBS="$LIBS"
31604 else
31605   libusbok=no,
31606            { echo "$as_me:$LINENO: result: USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&5
31607 echo "${ECHO_T}USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&6; }
31608
31609 fi
31610
31611         LIBS="$save_LIBS"
31612
31613         ac_ext=c
31614 ac_cpp='$CPP $CPPFLAGS'
31615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31618
31619
31620         if test $libusbok = yes; then
31621
31622             :
31623         else
31624             passed=no;{ echo "$as_me:$LINENO: result: Unable to configure USB dependency." >&5
31625 echo "${ECHO_T}Unable to configure USB dependency." >&6; }
31626         fi
31627
31628
31629
31630 # Check whether --with-fusb-tech was given.
31631 if test "${with_fusb_tech+set}" = set; then
31632   withval=$with_fusb_tech; cf_with_fusb_tech="$withval"
31633 else
31634   cf_with_fusb_tech="$host_os"
31635 fi
31636
31637
31638
31639   if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
31640   { echo "$as_me:$LINENO: checking for linux/usbdevice_fs.h" >&5
31641 echo $ECHO_N "checking for linux/usbdevice_fs.h... $ECHO_C" >&6; }
31642 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
31643   echo $ECHO_N "(cached) $ECHO_C" >&6
31644 fi
31645 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_usbdevice_fs_h" >&5
31646 echo "${ECHO_T}$ac_cv_header_linux_usbdevice_fs_h" >&6; }
31647 else
31648   # Is the header compilable?
31649 { echo "$as_me:$LINENO: checking linux/usbdevice_fs.h usability" >&5
31650 echo $ECHO_N "checking linux/usbdevice_fs.h usability... $ECHO_C" >&6; }
31651 cat >conftest.$ac_ext <<_ACEOF
31652 /* confdefs.h.  */
31653 _ACEOF
31654 cat confdefs.h >>conftest.$ac_ext
31655 cat >>conftest.$ac_ext <<_ACEOF
31656 /* end confdefs.h.  */
31657 $ac_includes_default
31658 #include <linux/usbdevice_fs.h>
31659 _ACEOF
31660 rm -f conftest.$ac_objext
31661 if { (ac_try="$ac_compile"
31662 case "(($ac_try" in
31663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31664   *) ac_try_echo=$ac_try;;
31665 esac
31666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31667   (eval "$ac_compile") 2>conftest.er1
31668   ac_status=$?
31669   grep -v '^ *+' conftest.er1 >conftest.err
31670   rm -f conftest.er1
31671   cat conftest.err >&5
31672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673   (exit $ac_status); } &&
31674          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31675   { (case "(($ac_try" in
31676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31677   *) ac_try_echo=$ac_try;;
31678 esac
31679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31680   (eval "$ac_try") 2>&5
31681   ac_status=$?
31682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683   (exit $ac_status); }; } &&
31684          { ac_try='test -s conftest.$ac_objext'
31685   { (case "(($ac_try" in
31686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31687   *) ac_try_echo=$ac_try;;
31688 esac
31689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31690   (eval "$ac_try") 2>&5
31691   ac_status=$?
31692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693   (exit $ac_status); }; }; then
31694   ac_header_compiler=yes
31695 else
31696   echo "$as_me: failed program was:" >&5
31697 sed 's/^/| /' conftest.$ac_ext >&5
31698
31699         ac_header_compiler=no
31700 fi
31701
31702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31704 echo "${ECHO_T}$ac_header_compiler" >&6; }
31705
31706 # Is the header present?
31707 { echo "$as_me:$LINENO: checking linux/usbdevice_fs.h presence" >&5
31708 echo $ECHO_N "checking linux/usbdevice_fs.h presence... $ECHO_C" >&6; }
31709 cat >conftest.$ac_ext <<_ACEOF
31710 /* confdefs.h.  */
31711 _ACEOF
31712 cat confdefs.h >>conftest.$ac_ext
31713 cat >>conftest.$ac_ext <<_ACEOF
31714 /* end confdefs.h.  */
31715 #include <linux/usbdevice_fs.h>
31716 _ACEOF
31717 if { (ac_try="$ac_cpp conftest.$ac_ext"
31718 case "(($ac_try" in
31719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31720   *) ac_try_echo=$ac_try;;
31721 esac
31722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31724   ac_status=$?
31725   grep -v '^ *+' conftest.er1 >conftest.err
31726   rm -f conftest.er1
31727   cat conftest.err >&5
31728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729   (exit $ac_status); } >/dev/null; then
31730   if test -s conftest.err; then
31731     ac_cpp_err=$ac_c_preproc_warn_flag
31732     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31733   else
31734     ac_cpp_err=
31735   fi
31736 else
31737   ac_cpp_err=yes
31738 fi
31739 if test -z "$ac_cpp_err"; then
31740   ac_header_preproc=yes
31741 else
31742   echo "$as_me: failed program was:" >&5
31743 sed 's/^/| /' conftest.$ac_ext >&5
31744
31745   ac_header_preproc=no
31746 fi
31747
31748 rm -f conftest.err conftest.$ac_ext
31749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31750 echo "${ECHO_T}$ac_header_preproc" >&6; }
31751
31752 # So?  What about this header?
31753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31754   yes:no: )
31755     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
31756 echo "$as_me: WARNING: linux/usbdevice_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31757     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: proceeding with the compiler's result" >&5
31758 echo "$as_me: WARNING: linux/usbdevice_fs.h: proceeding with the compiler's result" >&2;}
31759     ac_header_preproc=yes
31760     ;;
31761   no:yes:* )
31762     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: present but cannot be compiled" >&5
31763 echo "$as_me: WARNING: linux/usbdevice_fs.h: present but cannot be compiled" >&2;}
31764     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h:     check for missing prerequisite headers?" >&5
31765 echo "$as_me: WARNING: linux/usbdevice_fs.h:     check for missing prerequisite headers?" >&2;}
31766     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: see the Autoconf documentation" >&5
31767 echo "$as_me: WARNING: linux/usbdevice_fs.h: see the Autoconf documentation" >&2;}
31768     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
31769 echo "$as_me: WARNING: linux/usbdevice_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31770     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: proceeding with the preprocessor's result" >&5
31771 echo "$as_me: WARNING: linux/usbdevice_fs.h: proceeding with the preprocessor's result" >&2;}
31772     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: in the future, the compiler will take precedence" >&5
31773 echo "$as_me: WARNING: linux/usbdevice_fs.h: in the future, the compiler will take precedence" >&2;}
31774
31775     ;;
31776 esac
31777 { echo "$as_me:$LINENO: checking for linux/usbdevice_fs.h" >&5
31778 echo $ECHO_N "checking for linux/usbdevice_fs.h... $ECHO_C" >&6; }
31779 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
31780   echo $ECHO_N "(cached) $ECHO_C" >&6
31781 else
31782   ac_cv_header_linux_usbdevice_fs_h=$ac_header_preproc
31783 fi
31784 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_usbdevice_fs_h" >&5
31785 echo "${ECHO_T}$ac_cv_header_linux_usbdevice_fs_h" >&6; }
31786
31787 fi
31788 if test $ac_cv_header_linux_usbdevice_fs_h = yes; then
31789   x_have_usbdevice_fs_h=yes
31790 else
31791   x_have_usbdevice_fs_h=no
31792 fi
31793
31794
31795
31796   { echo "$as_me:$LINENO: checking for fast usb technique to use" >&5
31797 echo $ECHO_N "checking for fast usb technique to use... $ECHO_C" >&6; }
31798   case "$cf_with_fusb_tech" in
31799     linux*)     if test x${x_have_usbdevice_fs_h} = xyes;
31800                 then
31801                   FUSB_TECH=linux
31802                 else
31803                   FUSB_TECH=generic
31804                 fi                      ;;
31805
31806     darwin*)    FUSB_TECH=darwin        ;;
31807     cygwin*|win*|mingw*)        FUSB_TECH=win32         ;;
31808     *bsd*)
31809                 { echo "$as_me:$LINENO: checking for RA/WB" >&5
31810 echo $ECHO_N "checking for RA/WB... $ECHO_C" >&6; }
31811                 cat >conftest.$ac_ext <<_ACEOF
31812 /* confdefs.h.  */
31813 _ACEOF
31814 cat confdefs.h >>conftest.$ac_ext
31815 cat >>conftest.$ac_ext <<_ACEOF
31816 /* end confdefs.h.  */
31817 #include <dev/usb/usb.h>
31818 int
31819 main ()
31820 {
31821 struct usb_bulk_ra_wb_opt o;
31822                                                      ioctl(0, USB_SET_BULK_RA, &o);
31823   ;
31824   return 0;
31825 }
31826 _ACEOF
31827 rm -f conftest.$ac_objext
31828 if { (ac_try="$ac_compile"
31829 case "(($ac_try" in
31830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31831   *) ac_try_echo=$ac_try;;
31832 esac
31833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31834   (eval "$ac_compile") 2>conftest.er1
31835   ac_status=$?
31836   grep -v '^ *+' conftest.er1 >conftest.err
31837   rm -f conftest.er1
31838   cat conftest.err >&5
31839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840   (exit $ac_status); } &&
31841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31842   { (case "(($ac_try" in
31843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31844   *) ac_try_echo=$ac_try;;
31845 esac
31846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31847   (eval "$ac_try") 2>&5
31848   ac_status=$?
31849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850   (exit $ac_status); }; } &&
31851          { ac_try='test -s conftest.$ac_objext'
31852   { (case "(($ac_try" in
31853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31854   *) ac_try_echo=$ac_try;;
31855 esac
31856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31857   (eval "$ac_try") 2>&5
31858   ac_status=$?
31859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860   (exit $ac_status); }; }; then
31861   FUSB_TECH=ra_wb
31862 else
31863   echo "$as_me: failed program was:" >&5
31864 sed 's/^/| /' conftest.$ac_ext >&5
31865
31866         FUSB_TECH=generic
31867 fi
31868
31869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext            ;;
31870     *)          FUSB_TECH=generic       ;;
31871   esac
31872
31873   { echo "$as_me:$LINENO: result: $FUSB_TECH" >&5
31874 echo "${ECHO_T}$FUSB_TECH" >&6; }
31875
31876
31877
31878
31879 if test $FUSB_TECH = darwin; then
31880   FUSB_TECH_darwin_TRUE=
31881   FUSB_TECH_darwin_FALSE='#'
31882 else
31883   FUSB_TECH_darwin_TRUE='#'
31884   FUSB_TECH_darwin_FALSE=
31885 fi
31886
31887
31888
31889 if test $FUSB_TECH = win32; then
31890   FUSB_TECH_win32_TRUE=
31891   FUSB_TECH_win32_FALSE='#'
31892 else
31893   FUSB_TECH_win32_TRUE='#'
31894   FUSB_TECH_win32_FALSE=
31895 fi
31896
31897
31898
31899 if test $FUSB_TECH = generic; then
31900   FUSB_TECH_generic_TRUE=
31901   FUSB_TECH_generic_FALSE='#'
31902 else
31903   FUSB_TECH_generic_TRUE='#'
31904   FUSB_TECH_generic_FALSE=
31905 fi
31906
31907
31908
31909 if test $FUSB_TECH = linux; then
31910   FUSB_TECH_linux_TRUE=
31911   FUSB_TECH_linux_FALSE='#'
31912 else
31913   FUSB_TECH_linux_TRUE='#'
31914   FUSB_TECH_linux_FALSE=
31915 fi
31916
31917
31918
31919 if test $FUSB_TECH = ra_wb; then
31920   FUSB_TECH_ra_wb_TRUE=
31921   FUSB_TECH_ra_wb_FALSE='#'
31922 else
31923   FUSB_TECH_ra_wb_TRUE='#'
31924   FUSB_TECH_ra_wb_FALSE=
31925 fi
31926
31927
31928
31929         sdccok=yes
31930         # Extract the first word of "sdcc", so it can be a program name with args.
31931 set dummy sdcc; ac_word=$2
31932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31934 if test "${ac_cv_prog_XCC+set}" = set; then
31935   echo $ECHO_N "(cached) $ECHO_C" >&6
31936 else
31937   if test -n "$XCC"; then
31938   ac_cv_prog_XCC="$XCC" # Let the user override the test.
31939 else
31940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31941 for as_dir in $PATH
31942 do
31943   IFS=$as_save_IFS
31944   test -z "$as_dir" && as_dir=.
31945   for ac_exec_ext in '' $ac_executable_extensions; do
31946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
31947     ac_cv_prog_XCC="sdcc -mmcs51 --no-xinit-opt"
31948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31949     break 2
31950   fi
31951 done
31952 done
31953 IFS=$as_save_IFS
31954
31955   test -z "$ac_cv_prog_XCC" && ac_cv_prog_XCC="no"
31956 fi
31957 fi
31958 XCC=$ac_cv_prog_XCC
31959 if test -n "$XCC"; then
31960   { echo "$as_me:$LINENO: result: $XCC" >&5
31961 echo "${ECHO_T}$XCC" >&6; }
31962 else
31963   { echo "$as_me:$LINENO: result: no" >&5
31964 echo "${ECHO_T}no" >&6; }
31965 fi
31966
31967
31968         # Extract the first word of "asx8051", so it can be a program name with args.
31969 set dummy asx8051; ac_word=$2
31970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31972 if test "${ac_cv_prog_XAS+set}" = set; then
31973   echo $ECHO_N "(cached) $ECHO_C" >&6
31974 else
31975   if test -n "$XAS"; then
31976   ac_cv_prog_XAS="$XAS" # Let the user override the test.
31977 else
31978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31979 for as_dir in $PATH
31980 do
31981   IFS=$as_save_IFS
31982   test -z "$as_dir" && as_dir=.
31983   for ac_exec_ext in '' $ac_executable_extensions; do
31984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
31985     ac_cv_prog_XAS="asx8051 -plosgff"
31986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31987     break 2
31988   fi
31989 done
31990 done
31991 IFS=$as_save_IFS
31992
31993   test -z "$ac_cv_prog_XAS" && ac_cv_prog_XAS="no"
31994 fi
31995 fi
31996 XAS=$ac_cv_prog_XAS
31997 if test -n "$XAS"; then
31998   { echo "$as_me:$LINENO: result: $XAS" >&5
31999 echo "${ECHO_T}$XAS" >&6; }
32000 else
32001   { echo "$as_me:$LINENO: result: no" >&5
32002 echo "${ECHO_T}no" >&6; }
32003 fi
32004
32005
32006
32007         if test "$XCC" = "no" -o "$XAS" = "no" ; then
32008                 { echo "$as_me:$LINENO: result: USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&5
32009 echo "${ECHO_T}USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&6; }
32010                 sdccok=no
32011         else
32012                 sdcc_version_min=2.4.0
32013
32014                 sdcc_version=`sdcc --version 2>&1 | \
32015                         sed  's/\(SDCC.* \)\([0-9]*\.[0-9]*\.[0-9]*\)\( .*$\)/\2/'`
32016
32017                 { echo "$as_me:$LINENO: checking sdcc_version \"$sdcc_version\"" >&5
32018 echo $ECHO_N "checking sdcc_version \"$sdcc_version\"... $ECHO_C" >&6; }
32019
32020                 sdcc_major_version=`echo $sdcc_version | \
32021                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
32022                 sdcc_minor_version=`echo $sdcc_version | \
32023                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
32024                 sdcc_micro_version=`echo $sdcc_version | \
32025                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
32026
32027                 sdcc_major_min=`echo $sdcc_version_min | \
32028                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
32029                 sdcc_minor_min=`echo $sdcc_version_min | \
32030                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
32031                 sdcc_micro_min=`echo $sdcc_version_min | \
32032                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
32033
32034                 sdcc_version_proper=`expr \
32035                         "$sdcc_major_version" \> "$sdcc_major_min" \| \
32036                         "$sdcc_major_version" \= "$sdcc_major_min" \& \
32037                         "$sdcc_minor_version" \> "$sdcc_minor_min" \| \
32038                         "$sdcc_major_version" \= "$sdcc_major_min" \& \
32039                         "$sdcc_minor_version" \= "$sdcc_minor_min" \& \
32040                         "$sdcc_micro_version" \>= "$sdcc_micro_min" `
32041
32042                 if test "$sdcc_version_proper" = "1" ; then
32043                         { echo "$as_me:$LINENO: result: $sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&5
32044 echo "${ECHO_T}$sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&6; }
32045                 else
32046                         sdccok=no
32047                         { echo "$as_me:$LINENO: result: USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net\"" >&5
32048 echo "${ECHO_T}USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net\"" >&6; }
32049                 fi
32050
32051
32052
32053         fi
32054
32055         if test $sdccok = yes; then
32056                 :
32057         else
32058                 passed=no;{ echo "$as_me:$LINENO: result: Unable to find firmware compiler." >&5
32059 echo "${ECHO_T}Unable to find firmware compiler." >&6; }
32060         fi
32061
32062
32063
32064     if test x$passed = xno; then
32065         skipped_dirs="$skipped_dirs usrp"
32066         if test x$enable_usrp = xyes; then
32067             { { echo "$as_me:$LINENO: error: Component usrp has errors, stopping." >&5
32068 echo "$as_me: error: Component usrp has errors, stopping." >&2;}
32069    { (exit 1); exit 1; }; }
32070         else
32071             { echo "$as_me:$LINENO: result: Not building component usrp." >&5
32072 echo "${ECHO_T}Not building component usrp." >&6; }
32073         fi
32074     else
32075         if test x$enable_usrp != xno; then
32076
32077             build_dirs="$build_dirs usrp"
32078             { echo "$as_me:$LINENO: result: Component usrp passed configuration checks, building." >&5
32079 echo "${ECHO_T}Component usrp passed configuration checks, building." >&6; }
32080         else
32081             skipped_dirs="$skipped_dirs usrp"
32082             { echo "$as_me:$LINENO: result: Component usrp passed configuration checks, but not building." >&5
32083 echo "${ECHO_T}Component usrp passed configuration checks, but not building." >&6; }
32084         fi
32085     fi
32086
32087
32088
32089
32090     # Check whether --enable-gr-usrp was given.
32091 if test "${enable_gr_usrp+set}" = set; then
32092   enableval=$enable_gr_usrp;
32093 else
32094   enable_gr_usrp=$enable_all_components
32095 fi
32096
32097
32098
32099     ac_config_files="$ac_config_files gr-usrp/Makefile gr-usrp/src/Makefile gr-usrp/src/run_tests"
32100
32101
32102     passed=yes
32103     # Don't do gr-usrp if usrp skipped
32104     # There *has* to be a better way to check if a value is in a string
32105     for dir in $skipped_dirs
32106     do
32107         if test x$dir = xusrp; then
32108             { echo "$as_me:$LINENO: result: Component gr-usrp requires usrp, which is not being built." >&5
32109 echo "${ECHO_T}Component gr-usrp requires usrp, which is not being built." >&6; }
32110             passed=no
32111         fi
32112     done
32113
32114
32115     if test x$passed = xno; then
32116         skipped_dirs="$skipped_dirs gr-usrp"
32117         if test x$enable_gr_usrp = xyes; then
32118             { { echo "$as_me:$LINENO: error: Component gr-usrp has errors, stopping." >&5
32119 echo "$as_me: error: Component gr-usrp has errors, stopping." >&2;}
32120    { (exit 1); exit 1; }; }
32121         else
32122             { echo "$as_me:$LINENO: result: Not building component gr-usrp." >&5
32123 echo "${ECHO_T}Not building component gr-usrp." >&6; }
32124         fi
32125     else
32126         if test x$enable_gr_usrp != xno; then
32127
32128                 ac_config_commands="$ac_config_commands run_tests_usrp"
32129
32130
32131             build_dirs="$build_dirs gr-usrp"
32132             { echo "$as_me:$LINENO: result: Component gr-usrp passed configuration checks, building." >&5
32133 echo "${ECHO_T}Component gr-usrp passed configuration checks, building." >&6; }
32134         else
32135             skipped_dirs="$skipped_dirs gr-usrp"
32136             { echo "$as_me:$LINENO: result: Component gr-usrp passed configuration checks, but not building." >&5
32137 echo "${ECHO_T}Component gr-usrp passed configuration checks, but not building." >&6; }
32138         fi
32139     fi
32140
32141
32142
32143     # Check whether --enable-gr-audio-alsa was given.
32144 if test "${enable_gr_audio_alsa+set}" = set; then
32145   enableval=$enable_gr_audio_alsa;
32146 else
32147   enable_gr_audio_alsa=$enable_all_components
32148 fi
32149
32150
32151
32152     ac_config_files="$ac_config_files gr-audio-alsa/Makefile gr-audio-alsa/src/Makefile gr-audio-alsa/src/run_tests"
32153
32154
32155     passed=yes
32156
32157   succeeded=no
32158
32159   if test -z "$PKG_CONFIG"; then
32160     # Extract the first word of "pkg-config", so it can be a program name with args.
32161 set dummy pkg-config; ac_word=$2
32162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32164 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32165   echo $ECHO_N "(cached) $ECHO_C" >&6
32166 else
32167   case $PKG_CONFIG in
32168   [\\/]* | ?:[\\/]*)
32169   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32170   ;;
32171   *)
32172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32173 for as_dir in $PATH
32174 do
32175   IFS=$as_save_IFS
32176   test -z "$as_dir" && as_dir=.
32177   for ac_exec_ext in '' $ac_executable_extensions; do
32178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
32179     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32181     break 2
32182   fi
32183 done
32184 done
32185 IFS=$as_save_IFS
32186
32187   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
32188   ;;
32189 esac
32190 fi
32191 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32192 if test -n "$PKG_CONFIG"; then
32193   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32194 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32195 else
32196   { echo "$as_me:$LINENO: result: no" >&5
32197 echo "${ECHO_T}no" >&6; }
32198 fi
32199
32200
32201   fi
32202
32203   if test "$PKG_CONFIG" = "no" ; then
32204      echo "*** The pkg-config script could not be found. Make sure it is"
32205      echo "*** in your path, or set the PKG_CONFIG environment variable"
32206      echo "*** to the full path to pkg-config."
32207      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
32208   else
32209                     if test -z "$PKG_CONFIG_PATH"; then
32210         export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
32211      fi
32212
32213      PKG_CONFIG_MIN_VERSION=0.9.0
32214      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
32215         { echo "$as_me:$LINENO: checking for alsa >= 0.9" >&5
32216 echo $ECHO_N "checking for alsa >= 0.9... $ECHO_C" >&6; }
32217
32218         if $PKG_CONFIG --exists "alsa >= 0.9" ; then
32219             { echo "$as_me:$LINENO: result: yes" >&5
32220 echo "${ECHO_T}yes" >&6; }
32221             succeeded=yes
32222
32223             { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
32224 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
32225             ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 0.9"`
32226             { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
32227 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
32228
32229             { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
32230 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
32231             ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= 0.9"`
32232             { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
32233 echo "${ECHO_T}$ALSA_LIBS" >&6; }
32234
32235             { echo "$as_me:$LINENO: checking ALSA_INCLUDEDIR" >&5
32236 echo $ECHO_N "checking ALSA_INCLUDEDIR... $ECHO_C" >&6; }
32237             ALSA_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "alsa >= 0.9"`
32238             { echo "$as_me:$LINENO: result: $ALSA_INCLUDEDIR" >&5
32239 echo "${ECHO_T}$ALSA_INCLUDEDIR" >&6; }
32240         else
32241             ALSA_CFLAGS=""
32242             ALSA_LIBS=""
32243             ## If we have a custom action on failure, don't print errors, but
32244             ## do set a variable so people can do so.
32245             ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa >= 0.9"`
32246
32247         fi
32248
32249
32250
32251
32252      else
32253         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
32254         echo "*** See http://www.freedesktop.org/software/pkgconfig"
32255      fi
32256   fi
32257
32258   if test $succeeded = yes; then
32259      :
32260   else
32261      passed=no;{ echo "$as_me:$LINENO: result: gr-audio-alsa requires package alsa, not found." >&5
32262 echo "${ECHO_T}gr-audio-alsa requires package alsa, not found." >&6; }
32263   fi
32264
32265
32266
32267     if test x$passed = xno; then
32268         skipped_dirs="$skipped_dirs gr-audio-alsa"
32269         if test x$enable_gr_audio_alsa = xyes; then
32270             { { echo "$as_me:$LINENO: error: Component gr-audio-alsa has errors, stopping." >&5
32271 echo "$as_me: error: Component gr-audio-alsa has errors, stopping." >&2;}
32272    { (exit 1); exit 1; }; }
32273         else
32274             { echo "$as_me:$LINENO: result: Not building component gr-audio-alsa." >&5
32275 echo "${ECHO_T}Not building component gr-audio-alsa." >&6; }
32276         fi
32277     else
32278         if test x$enable_gr_audio_alsa != xno; then
32279
32280
32281                 ac_config_commands="$ac_config_commands run_tests_alsa"
32282
32283
32284             build_dirs="$build_dirs gr-audio-alsa"
32285             { echo "$as_me:$LINENO: result: Component gr-audio-alsa passed configuration checks, building." >&5
32286 echo "${ECHO_T}Component gr-audio-alsa passed configuration checks, building." >&6; }
32287         else
32288             skipped_dirs="$skipped_dirs gr-audio-alsa"
32289             { echo "$as_me:$LINENO: result: Component gr-audio-alsa passed configuration checks, but not building." >&5
32290 echo "${ECHO_T}Component gr-audio-alsa passed configuration checks, but not building." >&6; }
32291         fi
32292     fi
32293
32294
32295
32296
32297     # Check whether --enable-gr-audio-jack was given.
32298 if test "${enable_gr_audio_jack+set}" = set; then
32299   enableval=$enable_gr_audio_jack;
32300 else
32301   enable_gr_audio_jack=$enable_all_components
32302 fi
32303
32304
32305
32306     ac_config_files="$ac_config_files gr-audio-jack/Makefile gr-audio-jack/src/Makefile gr-audio-jack/src/run_tests"
32307
32308
32309     passed=yes
32310
32311   succeeded=no
32312
32313   if test -z "$PKG_CONFIG"; then
32314     # Extract the first word of "pkg-config", so it can be a program name with args.
32315 set dummy pkg-config; ac_word=$2
32316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32318 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32319   echo $ECHO_N "(cached) $ECHO_C" >&6
32320 else
32321   case $PKG_CONFIG in
32322   [\\/]* | ?:[\\/]*)
32323   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32324   ;;
32325   *)
32326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32327 for as_dir in $PATH
32328 do
32329   IFS=$as_save_IFS
32330   test -z "$as_dir" && as_dir=.
32331   for ac_exec_ext in '' $ac_executable_extensions; do
32332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
32333     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32335     break 2
32336   fi
32337 done
32338 done
32339 IFS=$as_save_IFS
32340
32341   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
32342   ;;
32343 esac
32344 fi
32345 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32346 if test -n "$PKG_CONFIG"; then
32347   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32348 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32349 else
32350   { echo "$as_me:$LINENO: result: no" >&5
32351 echo "${ECHO_T}no" >&6; }
32352 fi
32353
32354
32355   fi
32356
32357   if test "$PKG_CONFIG" = "no" ; then
32358      echo "*** The pkg-config script could not be found. Make sure it is"
32359      echo "*** in your path, or set the PKG_CONFIG environment variable"
32360      echo "*** to the full path to pkg-config."
32361      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
32362   else
32363                     if test -z "$PKG_CONFIG_PATH"; then
32364         export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
32365      fi
32366
32367      PKG_CONFIG_MIN_VERSION=0.9.0
32368      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
32369         { echo "$as_me:$LINENO: checking for jack >= 0.8" >&5
32370 echo $ECHO_N "checking for jack >= 0.8... $ECHO_C" >&6; }
32371
32372         if $PKG_CONFIG --exists "jack >= 0.8" ; then
32373             { echo "$as_me:$LINENO: result: yes" >&5
32374 echo "${ECHO_T}yes" >&6; }
32375             succeeded=yes
32376
32377             { echo "$as_me:$LINENO: checking JACK_CFLAGS" >&5
32378 echo $ECHO_N "checking JACK_CFLAGS... $ECHO_C" >&6; }
32379             JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.8"`
32380             { echo "$as_me:$LINENO: result: $JACK_CFLAGS" >&5
32381 echo "${ECHO_T}$JACK_CFLAGS" >&6; }
32382
32383             { echo "$as_me:$LINENO: checking JACK_LIBS" >&5
32384 echo $ECHO_N "checking JACK_LIBS... $ECHO_C" >&6; }
32385             JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.8"`
32386             { echo "$as_me:$LINENO: result: $JACK_LIBS" >&5
32387 echo "${ECHO_T}$JACK_LIBS" >&6; }
32388
32389             { echo "$as_me:$LINENO: checking JACK_INCLUDEDIR" >&5
32390 echo $ECHO_N "checking JACK_INCLUDEDIR... $ECHO_C" >&6; }
32391             JACK_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "jack >= 0.8"`
32392             { echo "$as_me:$LINENO: result: $JACK_INCLUDEDIR" >&5
32393 echo "${ECHO_T}$JACK_INCLUDEDIR" >&6; }
32394         else
32395             JACK_CFLAGS=""
32396             JACK_LIBS=""
32397             ## If we have a custom action on failure, don't print errors, but
32398             ## do set a variable so people can do so.
32399             JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack >= 0.8"`
32400
32401         fi
32402
32403
32404
32405
32406      else
32407         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
32408         echo "*** See http://www.freedesktop.org/software/pkgconfig"
32409      fi
32410   fi
32411
32412   if test $succeeded = yes; then
32413      :
32414   else
32415      passed=no;{ echo "$as_me:$LINENO: result: gr-audio-jack requires package jack, not found." >&5
32416 echo "${ECHO_T}gr-audio-jack requires package jack, not found." >&6; }
32417   fi
32418
32419
32420
32421     if test x$passed = xno; then
32422         skipped_dirs="$skipped_dirs gr-audio-jack"
32423         if test x$enable_gr_audio_jack = xyes; then
32424             { { echo "$as_me:$LINENO: error: Component gr-audio-jack has errors, stopping." >&5
32425 echo "$as_me: error: Component gr-audio-jack has errors, stopping." >&2;}
32426    { (exit 1); exit 1; }; }
32427         else
32428             { echo "$as_me:$LINENO: result: Not building component gr-audio-jack." >&5
32429 echo "${ECHO_T}Not building component gr-audio-jack." >&6; }
32430         fi
32431     else
32432         if test x$enable_gr_audio_jack != xno; then
32433
32434
32435                 ac_config_commands="$ac_config_commands run_tests_jack"
32436
32437
32438             build_dirs="$build_dirs gr-audio-jack"
32439             { echo "$as_me:$LINENO: result: Component gr-audio-jack passed configuration checks, building." >&5
32440 echo "${ECHO_T}Component gr-audio-jack passed configuration checks, building." >&6; }
32441         else
32442             skipped_dirs="$skipped_dirs gr-audio-jack"
32443             { echo "$as_me:$LINENO: result: Component gr-audio-jack passed configuration checks, but not building." >&5
32444 echo "${ECHO_T}Component gr-audio-jack passed configuration checks, but not building." >&6; }
32445         fi
32446     fi
32447
32448
32449
32450
32451     # Check whether --enable-gr-audio-oss was given.
32452 if test "${enable_gr_audio_oss+set}" = set; then
32453   enableval=$enable_gr_audio_oss;
32454 else
32455   enable_gr_audio_oss=$enable_all_components
32456 fi
32457
32458
32459
32460     ac_config_files="$ac_config_files gr-audio-oss/Makefile gr-audio-oss/src/Makefile gr-audio-oss/src/run_tests"
32461
32462
32463     passed=yes
32464     case $target in
32465         *-*-netbsd*)
32466
32467 { echo "$as_me:$LINENO: checking for main in -lossaudio" >&5
32468 echo $ECHO_N "checking for main in -lossaudio... $ECHO_C" >&6; }
32469 if test "${ac_cv_lib_ossaudio_main+set}" = set; then
32470   echo $ECHO_N "(cached) $ECHO_C" >&6
32471 else
32472   ac_check_lib_save_LIBS=$LIBS
32473 LIBS="-lossaudio  $LIBS"
32474 cat >conftest.$ac_ext <<_ACEOF
32475 /* confdefs.h.  */
32476 _ACEOF
32477 cat confdefs.h >>conftest.$ac_ext
32478 cat >>conftest.$ac_ext <<_ACEOF
32479 /* end confdefs.h.  */
32480
32481
32482 int
32483 main ()
32484 {
32485 return main ();
32486   ;
32487   return 0;
32488 }
32489 _ACEOF
32490 rm -f conftest.$ac_objext conftest$ac_exeext
32491 if { (ac_try="$ac_link"
32492 case "(($ac_try" in
32493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32494   *) ac_try_echo=$ac_try;;
32495 esac
32496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32497   (eval "$ac_link") 2>conftest.er1
32498   ac_status=$?
32499   grep -v '^ *+' conftest.er1 >conftest.err
32500   rm -f conftest.er1
32501   cat conftest.err >&5
32502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503   (exit $ac_status); } &&
32504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32505   { (case "(($ac_try" in
32506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32507   *) ac_try_echo=$ac_try;;
32508 esac
32509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32510   (eval "$ac_try") 2>&5
32511   ac_status=$?
32512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32513   (exit $ac_status); }; } &&
32514          { ac_try='test -s conftest$ac_exeext'
32515   { (case "(($ac_try" in
32516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32517   *) ac_try_echo=$ac_try;;
32518 esac
32519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32520   (eval "$ac_try") 2>&5
32521   ac_status=$?
32522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32523   (exit $ac_status); }; }; then
32524   ac_cv_lib_ossaudio_main=yes
32525 else
32526   echo "$as_me: failed program was:" >&5
32527 sed 's/^/| /' conftest.$ac_ext >&5
32528
32529         ac_cv_lib_ossaudio_main=no
32530 fi
32531
32532 rm -f core conftest.err conftest.$ac_objext \
32533       conftest$ac_exeext conftest.$ac_ext
32534 LIBS=$ac_check_lib_save_LIBS
32535 fi
32536 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_main" >&5
32537 echo "${ECHO_T}$ac_cv_lib_ossaudio_main" >&6; }
32538 if test $ac_cv_lib_ossaudio_main = yes; then
32539   cat >>confdefs.h <<_ACEOF
32540 #define HAVE_LIBOSSAUDIO 1
32541 _ACEOF
32542
32543   LIBS="-lossaudio $LIBS"
32544
32545 else
32546   passed=no;{ echo "$as_me:$LINENO: result: gr-audio-oss requires library ossaudio, not found." >&5
32547 echo "${ECHO_T}gr-audio-oss requires library ossaudio, not found." >&6; }
32548 fi
32549 ac_cv_lib_ossaudio=ac_cv_lib_ossaudio_main
32550
32551             if test x$passed != xno; then
32552                 OSS_LIBS=-lossaudio
32553                 { echo "$as_me:$LINENO: result: Using OSS library $OSS_LIBS" >&5
32554 echo "${ECHO_T}Using OSS library $OSS_LIBS" >&6; }
32555             fi
32556             ;;
32557         *)
32558             if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
32559   { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
32560 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
32561 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
32562   echo $ECHO_N "(cached) $ECHO_C" >&6
32563 fi
32564 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
32565 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
32566 else
32567   # Is the header compilable?
32568 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
32569 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
32570 cat >conftest.$ac_ext <<_ACEOF
32571 /* confdefs.h.  */
32572 _ACEOF
32573 cat confdefs.h >>conftest.$ac_ext
32574 cat >>conftest.$ac_ext <<_ACEOF
32575 /* end confdefs.h.  */
32576 $ac_includes_default
32577 #include <sys/soundcard.h>
32578 _ACEOF
32579 rm -f conftest.$ac_objext
32580 if { (ac_try="$ac_compile"
32581 case "(($ac_try" in
32582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32583   *) ac_try_echo=$ac_try;;
32584 esac
32585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32586   (eval "$ac_compile") 2>conftest.er1
32587   ac_status=$?
32588   grep -v '^ *+' conftest.er1 >conftest.err
32589   rm -f conftest.er1
32590   cat conftest.err >&5
32591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592   (exit $ac_status); } &&
32593          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32594   { (case "(($ac_try" in
32595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32596   *) ac_try_echo=$ac_try;;
32597 esac
32598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32599   (eval "$ac_try") 2>&5
32600   ac_status=$?
32601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602   (exit $ac_status); }; } &&
32603          { ac_try='test -s conftest.$ac_objext'
32604   { (case "(($ac_try" in
32605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32606   *) ac_try_echo=$ac_try;;
32607 esac
32608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32609   (eval "$ac_try") 2>&5
32610   ac_status=$?
32611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612   (exit $ac_status); }; }; then
32613   ac_header_compiler=yes
32614 else
32615   echo "$as_me: failed program was:" >&5
32616 sed 's/^/| /' conftest.$ac_ext >&5
32617
32618         ac_header_compiler=no
32619 fi
32620
32621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32623 echo "${ECHO_T}$ac_header_compiler" >&6; }
32624
32625 # Is the header present?
32626 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
32627 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
32628 cat >conftest.$ac_ext <<_ACEOF
32629 /* confdefs.h.  */
32630 _ACEOF
32631 cat confdefs.h >>conftest.$ac_ext
32632 cat >>conftest.$ac_ext <<_ACEOF
32633 /* end confdefs.h.  */
32634 #include <sys/soundcard.h>
32635 _ACEOF
32636 if { (ac_try="$ac_cpp conftest.$ac_ext"
32637 case "(($ac_try" in
32638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32639   *) ac_try_echo=$ac_try;;
32640 esac
32641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32642   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32643   ac_status=$?
32644   grep -v '^ *+' conftest.er1 >conftest.err
32645   rm -f conftest.er1
32646   cat conftest.err >&5
32647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648   (exit $ac_status); } >/dev/null; then
32649   if test -s conftest.err; then
32650     ac_cpp_err=$ac_c_preproc_warn_flag
32651     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32652   else
32653     ac_cpp_err=
32654   fi
32655 else
32656   ac_cpp_err=yes
32657 fi
32658 if test -z "$ac_cpp_err"; then
32659   ac_header_preproc=yes
32660 else
32661   echo "$as_me: failed program was:" >&5
32662 sed 's/^/| /' conftest.$ac_ext >&5
32663
32664   ac_header_preproc=no
32665 fi
32666
32667 rm -f conftest.err conftest.$ac_ext
32668 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32669 echo "${ECHO_T}$ac_header_preproc" >&6; }
32670
32671 # So?  What about this header?
32672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32673   yes:no: )
32674     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
32675 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32676     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
32677 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
32678     ac_header_preproc=yes
32679     ;;
32680   no:yes:* )
32681     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
32682 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
32683     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h:     check for missing prerequisite headers?" >&5
32684 echo "$as_me: WARNING: sys/soundcard.h:     check for missing prerequisite headers?" >&2;}
32685     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
32686 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
32687     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h:     section \"Present But Cannot Be Compiled\"" >&5
32688 echo "$as_me: WARNING: sys/soundcard.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32689     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
32690 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
32691     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
32692 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
32693
32694     ;;
32695 esac
32696 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
32697 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
32698 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
32699   echo $ECHO_N "(cached) $ECHO_C" >&6
32700 else
32701   ac_cv_header_sys_soundcard_h=$ac_header_preproc
32702 fi
32703 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
32704 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
32705
32706 fi
32707 if test $ac_cv_header_sys_soundcard_h = yes; then
32708   :
32709 else
32710   passed=no;{ echo "$as_me:$LINENO: result: gr-audio-oss requires sys/soundcard.h, not found." >&5
32711 echo "${ECHO_T}gr-audio-oss requires sys/soundcard.h, not found." >&6; }
32712 fi
32713
32714
32715     esac
32716
32717
32718     if test x$passed = xno; then
32719         skipped_dirs="$skipped_dirs gr-audio-oss"
32720         if test x$enable_gr_audio_oss = xyes; then
32721             { { echo "$as_me:$LINENO: error: Component gr-audio-oss has errors, stopping." >&5
32722 echo "$as_me: error: Component gr-audio-oss has errors, stopping." >&2;}
32723    { (exit 1); exit 1; }; }
32724         else
32725             { echo "$as_me:$LINENO: result: Not building component gr-audio-oss." >&5
32726 echo "${ECHO_T}Not building component gr-audio-oss." >&6; }
32727         fi
32728     else
32729         if test x$enable_gr_audio_oss != xno; then
32730
32731
32732                 ac_config_commands="$ac_config_commands run_tests_oss"
32733
32734
32735             build_dirs="$build_dirs gr-audio-oss"
32736             { echo "$as_me:$LINENO: result: Component gr-audio-oss passed configuration checks, building." >&5
32737 echo "${ECHO_T}Component gr-audio-oss passed configuration checks, building." >&6; }
32738         else
32739             skipped_dirs="$skipped_dirs gr-audio-oss"
32740             { echo "$as_me:$LINENO: result: Component gr-audio-oss passed configuration checks, but not building." >&5
32741 echo "${ECHO_T}Component gr-audio-oss passed configuration checks, but not building." >&6; }
32742         fi
32743     fi
32744
32745
32746
32747
32748     # Check whether --enable-gr-audio-osx was given.
32749 if test "${enable_gr_audio_osx+set}" = set; then
32750   enableval=$enable_gr_audio_osx;
32751 else
32752   enable_gr_audio_osx=$enable_all_components
32753 fi
32754
32755
32756
32757     ac_config_files="$ac_config_files gr-audio-osx/Makefile gr-audio-osx/src/Makefile gr-audio-osx/src/run_tests"
32758
32759
32760     passed=yes
32761
32762     audiounitok=yes
32763     case "$host_os" in
32764         darwin*);;
32765         *)
32766            audiounitok=no
32767            { echo "$as_me:$LINENO: result: gr-audio-osx requires darwin or MacOS X." >&5
32768 echo "${ECHO_T}gr-audio-osx requires darwin or MacOS X." >&6; }
32769     esac
32770
32771
32772 for ac_header in AudioUnit/AudioUnit.h
32773 do
32774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32776   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32779   echo $ECHO_N "(cached) $ECHO_C" >&6
32780 fi
32781 ac_res=`eval echo '${'$as_ac_Header'}'`
32782                { echo "$as_me:$LINENO: result: $ac_res" >&5
32783 echo "${ECHO_T}$ac_res" >&6; }
32784 else
32785   # Is the header compilable?
32786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32788 cat >conftest.$ac_ext <<_ACEOF
32789 /* confdefs.h.  */
32790 _ACEOF
32791 cat confdefs.h >>conftest.$ac_ext
32792 cat >>conftest.$ac_ext <<_ACEOF
32793 /* end confdefs.h.  */
32794 $ac_includes_default
32795 #include <$ac_header>
32796 _ACEOF
32797 rm -f conftest.$ac_objext
32798 if { (ac_try="$ac_compile"
32799 case "(($ac_try" in
32800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32801   *) ac_try_echo=$ac_try;;
32802 esac
32803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32804   (eval "$ac_compile") 2>conftest.er1
32805   ac_status=$?
32806   grep -v '^ *+' conftest.er1 >conftest.err
32807   rm -f conftest.er1
32808   cat conftest.err >&5
32809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810   (exit $ac_status); } &&
32811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32812   { (case "(($ac_try" in
32813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32814   *) ac_try_echo=$ac_try;;
32815 esac
32816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32817   (eval "$ac_try") 2>&5
32818   ac_status=$?
32819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32820   (exit $ac_status); }; } &&
32821          { ac_try='test -s conftest.$ac_objext'
32822   { (case "(($ac_try" in
32823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32824   *) ac_try_echo=$ac_try;;
32825 esac
32826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32827   (eval "$ac_try") 2>&5
32828   ac_status=$?
32829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32830   (exit $ac_status); }; }; then
32831   ac_header_compiler=yes
32832 else
32833   echo "$as_me: failed program was:" >&5
32834 sed 's/^/| /' conftest.$ac_ext >&5
32835
32836         ac_header_compiler=no
32837 fi
32838
32839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32841 echo "${ECHO_T}$ac_header_compiler" >&6; }
32842
32843 # Is the header present?
32844 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32846 cat >conftest.$ac_ext <<_ACEOF
32847 /* confdefs.h.  */
32848 _ACEOF
32849 cat confdefs.h >>conftest.$ac_ext
32850 cat >>conftest.$ac_ext <<_ACEOF
32851 /* end confdefs.h.  */
32852 #include <$ac_header>
32853 _ACEOF
32854 if { (ac_try="$ac_cpp conftest.$ac_ext"
32855 case "(($ac_try" in
32856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32857   *) ac_try_echo=$ac_try;;
32858 esac
32859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32860   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32861   ac_status=$?
32862   grep -v '^ *+' conftest.er1 >conftest.err
32863   rm -f conftest.er1
32864   cat conftest.err >&5
32865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32866   (exit $ac_status); } >/dev/null; then
32867   if test -s conftest.err; then
32868     ac_cpp_err=$ac_c_preproc_warn_flag
32869     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32870   else
32871     ac_cpp_err=
32872   fi
32873 else
32874   ac_cpp_err=yes
32875 fi
32876 if test -z "$ac_cpp_err"; then
32877   ac_header_preproc=yes
32878 else
32879   echo "$as_me: failed program was:" >&5
32880 sed 's/^/| /' conftest.$ac_ext >&5
32881
32882   ac_header_preproc=no
32883 fi
32884
32885 rm -f conftest.err conftest.$ac_ext
32886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32887 echo "${ECHO_T}$ac_header_preproc" >&6; }
32888
32889 # So?  What about this header?
32890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32891   yes:no: )
32892     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32896     ac_header_preproc=yes
32897     ;;
32898   no:yes:* )
32899     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32901     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32902 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32903     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32905     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32906 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32909     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32911
32912     ;;
32913 esac
32914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32917   echo $ECHO_N "(cached) $ECHO_C" >&6
32918 else
32919   eval "$as_ac_Header=\$ac_header_preproc"
32920 fi
32921 ac_res=`eval echo '${'$as_ac_Header'}'`
32922                { echo "$as_me:$LINENO: result: $ac_res" >&5
32923 echo "${ECHO_T}$ac_res" >&6; }
32924
32925 fi
32926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32927   cat >>confdefs.h <<_ACEOF
32928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32929 _ACEOF
32930
32931 else
32932   audiounitok=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&5
32933 echo "${ECHO_T}gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&6; }
32934 fi
32935
32936 done
32937
32938
32939
32940 for ac_header in AudioToolbox/AudioToolbox.h
32941 do
32942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32944   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32947   echo $ECHO_N "(cached) $ECHO_C" >&6
32948 fi
32949 ac_res=`eval echo '${'$as_ac_Header'}'`
32950                { echo "$as_me:$LINENO: result: $ac_res" >&5
32951 echo "${ECHO_T}$ac_res" >&6; }
32952 else
32953   # Is the header compilable?
32954 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32956 cat >conftest.$ac_ext <<_ACEOF
32957 /* confdefs.h.  */
32958 _ACEOF
32959 cat confdefs.h >>conftest.$ac_ext
32960 cat >>conftest.$ac_ext <<_ACEOF
32961 /* end confdefs.h.  */
32962 $ac_includes_default
32963 #include <$ac_header>
32964 _ACEOF
32965 rm -f conftest.$ac_objext
32966 if { (ac_try="$ac_compile"
32967 case "(($ac_try" in
32968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32969   *) ac_try_echo=$ac_try;;
32970 esac
32971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32972   (eval "$ac_compile") 2>conftest.er1
32973   ac_status=$?
32974   grep -v '^ *+' conftest.er1 >conftest.err
32975   rm -f conftest.er1
32976   cat conftest.err >&5
32977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978   (exit $ac_status); } &&
32979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32980   { (case "(($ac_try" in
32981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32982   *) ac_try_echo=$ac_try;;
32983 esac
32984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32985   (eval "$ac_try") 2>&5
32986   ac_status=$?
32987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32988   (exit $ac_status); }; } &&
32989          { ac_try='test -s conftest.$ac_objext'
32990   { (case "(($ac_try" in
32991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32992   *) ac_try_echo=$ac_try;;
32993 esac
32994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32995   (eval "$ac_try") 2>&5
32996   ac_status=$?
32997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32998   (exit $ac_status); }; }; then
32999   ac_header_compiler=yes
33000 else
33001   echo "$as_me: failed program was:" >&5
33002 sed 's/^/| /' conftest.$ac_ext >&5
33003
33004         ac_header_compiler=no
33005 fi
33006
33007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33008 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33009 echo "${ECHO_T}$ac_header_compiler" >&6; }
33010
33011 # Is the header present?
33012 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33014 cat >conftest.$ac_ext <<_ACEOF
33015 /* confdefs.h.  */
33016 _ACEOF
33017 cat confdefs.h >>conftest.$ac_ext
33018 cat >>conftest.$ac_ext <<_ACEOF
33019 /* end confdefs.h.  */
33020 #include <$ac_header>
33021 _ACEOF
33022 if { (ac_try="$ac_cpp conftest.$ac_ext"
33023 case "(($ac_try" in
33024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33025   *) ac_try_echo=$ac_try;;
33026 esac
33027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33028   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33029   ac_status=$?
33030   grep -v '^ *+' conftest.er1 >conftest.err
33031   rm -f conftest.er1
33032   cat conftest.err >&5
33033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034   (exit $ac_status); } >/dev/null; then
33035   if test -s conftest.err; then
33036     ac_cpp_err=$ac_c_preproc_warn_flag
33037     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33038   else
33039     ac_cpp_err=
33040   fi
33041 else
33042   ac_cpp_err=yes
33043 fi
33044 if test -z "$ac_cpp_err"; then
33045   ac_header_preproc=yes
33046 else
33047   echo "$as_me: failed program was:" >&5
33048 sed 's/^/| /' conftest.$ac_ext >&5
33049
33050   ac_header_preproc=no
33051 fi
33052
33053 rm -f conftest.err conftest.$ac_ext
33054 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33055 echo "${ECHO_T}$ac_header_preproc" >&6; }
33056
33057 # So?  What about this header?
33058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33059   yes:no: )
33060     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33064     ac_header_preproc=yes
33065     ;;
33066   no:yes:* )
33067     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33069     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33070 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33071     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33073     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33074 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33077     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33079
33080     ;;
33081 esac
33082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33085   echo $ECHO_N "(cached) $ECHO_C" >&6
33086 else
33087   eval "$as_ac_Header=\$ac_header_preproc"
33088 fi
33089 ac_res=`eval echo '${'$as_ac_Header'}'`
33090                { echo "$as_me:$LINENO: result: $ac_res" >&5
33091 echo "${ECHO_T}$ac_res" >&6; }
33092
33093 fi
33094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33095   cat >>confdefs.h <<_ACEOF
33096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33097 _ACEOF
33098
33099 else
33100   audiounitok=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&5
33101 echo "${ECHO_T}gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&6; }
33102 fi
33103
33104 done
33105
33106
33107     if test $audiounitok = yes; then
33108         :
33109     else
33110         passed=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioUnit, not found." >&5
33111 echo "${ECHO_T}gr-audio-osx requires AudioUnit, not found." >&6; }
33112     fi
33113
33114
33115
33116     if test x$passed = xno; then
33117         skipped_dirs="$skipped_dirs gr-audio-osx"
33118         if test x$enable_gr_audio_osx = xyes; then
33119             { { echo "$as_me:$LINENO: error: Component gr-audio-osx has errors, stopping." >&5
33120 echo "$as_me: error: Component gr-audio-osx has errors, stopping." >&2;}
33121    { (exit 1); exit 1; }; }
33122         else
33123             { echo "$as_me:$LINENO: result: Not building component gr-audio-osx." >&5
33124 echo "${ECHO_T}Not building component gr-audio-osx." >&6; }
33125         fi
33126     else
33127         if test x$enable_gr_audio_osx != xno; then
33128
33129                 ac_config_commands="$ac_config_commands run_tests_osx"
33130
33131
33132             build_dirs="$build_dirs gr-audio-osx"
33133             { echo "$as_me:$LINENO: result: Component gr-audio-osx passed configuration checks, building." >&5
33134 echo "${ECHO_T}Component gr-audio-osx passed configuration checks, building." >&6; }
33135         else
33136             skipped_dirs="$skipped_dirs gr-audio-osx"
33137             { echo "$as_me:$LINENO: result: Component gr-audio-osx passed configuration checks, but not building." >&5
33138 echo "${ECHO_T}Component gr-audio-osx passed configuration checks, but not building." >&6; }
33139         fi
33140     fi
33141
33142
33143
33144
33145     # Check whether --enable-gr-audio-portaudio was given.
33146 if test "${enable_gr_audio_portaudio+set}" = set; then
33147   enableval=$enable_gr_audio_portaudio;
33148 else
33149   enable_gr_audio_portaudio=$enable_all_components
33150 fi
33151
33152
33153
33154     ac_config_files="$ac_config_files gr-audio-portaudio/Makefile gr-audio-portaudio/src/Makefile gr-audio-portaudio/src/run_tests"
33155
33156
33157     passed=yes
33158
33159   succeeded=no
33160
33161   if test -z "$PKG_CONFIG"; then
33162     # Extract the first word of "pkg-config", so it can be a program name with args.
33163 set dummy pkg-config; ac_word=$2
33164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33166 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33167   echo $ECHO_N "(cached) $ECHO_C" >&6
33168 else
33169   case $PKG_CONFIG in
33170   [\\/]* | ?:[\\/]*)
33171   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33172   ;;
33173   *)
33174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33175 for as_dir in $PATH
33176 do
33177   IFS=$as_save_IFS
33178   test -z "$as_dir" && as_dir=.
33179   for ac_exec_ext in '' $ac_executable_extensions; do
33180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
33181     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33183     break 2
33184   fi
33185 done
33186 done
33187 IFS=$as_save_IFS
33188
33189   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
33190   ;;
33191 esac
33192 fi
33193 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33194 if test -n "$PKG_CONFIG"; then
33195   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33196 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33197 else
33198   { echo "$as_me:$LINENO: result: no" >&5
33199 echo "${ECHO_T}no" >&6; }
33200 fi
33201
33202
33203   fi
33204
33205   if test "$PKG_CONFIG" = "no" ; then
33206      echo "*** The pkg-config script could not be found. Make sure it is"
33207      echo "*** in your path, or set the PKG_CONFIG environment variable"
33208      echo "*** to the full path to pkg-config."
33209      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
33210   else
33211                     if test -z "$PKG_CONFIG_PATH"; then
33212         export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
33213      fi
33214
33215      PKG_CONFIG_MIN_VERSION=0.9.0
33216      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
33217         { echo "$as_me:$LINENO: checking for portaudio-2.0 >= 19" >&5
33218 echo $ECHO_N "checking for portaudio-2.0 >= 19... $ECHO_C" >&6; }
33219
33220         if $PKG_CONFIG --exists "portaudio-2.0 >= 19" ; then
33221             { echo "$as_me:$LINENO: result: yes" >&5
33222 echo "${ECHO_T}yes" >&6; }
33223             succeeded=yes
33224
33225             { echo "$as_me:$LINENO: checking PORTAUDIO_CFLAGS" >&5
33226 echo $ECHO_N "checking PORTAUDIO_CFLAGS... $ECHO_C" >&6; }
33227             PORTAUDIO_CFLAGS=`$PKG_CONFIG --cflags "portaudio-2.0 >= 19"`
33228             { echo "$as_me:$LINENO: result: $PORTAUDIO_CFLAGS" >&5
33229 echo "${ECHO_T}$PORTAUDIO_CFLAGS" >&6; }
33230
33231             { echo "$as_me:$LINENO: checking PORTAUDIO_LIBS" >&5
33232 echo $ECHO_N "checking PORTAUDIO_LIBS... $ECHO_C" >&6; }
33233             PORTAUDIO_LIBS=`$PKG_CONFIG --libs "portaudio-2.0 >= 19"`
33234             { echo "$as_me:$LINENO: result: $PORTAUDIO_LIBS" >&5
33235 echo "${ECHO_T}$PORTAUDIO_LIBS" >&6; }
33236
33237             { echo "$as_me:$LINENO: checking PORTAUDIO_INCLUDEDIR" >&5
33238 echo $ECHO_N "checking PORTAUDIO_INCLUDEDIR... $ECHO_C" >&6; }
33239             PORTAUDIO_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "portaudio-2.0 >= 19"`
33240             { echo "$as_me:$LINENO: result: $PORTAUDIO_INCLUDEDIR" >&5
33241 echo "${ECHO_T}$PORTAUDIO_INCLUDEDIR" >&6; }
33242         else
33243             PORTAUDIO_CFLAGS=""
33244             PORTAUDIO_LIBS=""
33245             ## If we have a custom action on failure, don't print errors, but
33246             ## do set a variable so people can do so.
33247             PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "portaudio-2.0 >= 19"`
33248
33249         fi
33250
33251
33252
33253
33254      else
33255         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
33256         echo "*** See http://www.freedesktop.org/software/pkgconfig"
33257      fi
33258   fi
33259
33260   if test $succeeded = yes; then
33261      :
33262   else
33263      passed=no;{ echo "$as_me:$LINENO: result: gr-audio-portaudio requires package portaudio, not found." >&5
33264 echo "${ECHO_T}gr-audio-portaudio requires package portaudio, not found." >&6; }
33265   fi
33266
33267
33268
33269     if test x$passed = xno; then
33270         skipped_dirs="$skipped_dirs gr-audio-portaudio"
33271         if test x$enable_gr_audio_portaudio = xyes; then
33272             { { echo "$as_me:$LINENO: error: Component gr-audio-portaudio has errors, stopping." >&5
33273 echo "$as_me: error: Component gr-audio-portaudio has errors, stopping." >&2;}
33274    { (exit 1); exit 1; }; }
33275         else
33276             { echo "$as_me:$LINENO: result: Not building component gr-audio-portaudio." >&5
33277 echo "${ECHO_T}Not building component gr-audio-portaudio." >&6; }
33278         fi
33279     else
33280         if test x$enable_gr_audio_portaudio != xno; then
33281
33282
33283                 ac_config_commands="$ac_config_commands run_tests_portaudio"
33284
33285
33286             build_dirs="$build_dirs gr-audio-portaudio"
33287             { echo "$as_me:$LINENO: result: Component gr-audio-portaudio passed configuration checks, building." >&5
33288 echo "${ECHO_T}Component gr-audio-portaudio passed configuration checks, building." >&6; }
33289         else
33290             skipped_dirs="$skipped_dirs gr-audio-portaudio"
33291             { echo "$as_me:$LINENO: result: Component gr-audio-portaudio passed configuration checks, but not building." >&5
33292 echo "${ECHO_T}Component gr-audio-portaudio passed configuration checks, but not building." >&6; }
33293         fi
33294     fi
33295
33296
33297
33298
33299     # Check whether --enable-gr-audio-windows was given.
33300 if test "${enable_gr_audio_windows+set}" = set; then
33301   enableval=$enable_gr_audio_windows;
33302 else
33303   enable_gr_audio_windows=$enable_all_components
33304 fi
33305
33306
33307
33308     ac_config_files="$ac_config_files gr-audio-windows/Makefile gr-audio-windows/src/Makefile gr-audio-windows/src/run_tests"
33309
33310
33311     passed=yes
33312
33313 { echo "$as_me:$LINENO: checking for main in -lwinmm" >&5
33314 echo $ECHO_N "checking for main in -lwinmm... $ECHO_C" >&6; }
33315 if test "${ac_cv_lib_winmm_main+set}" = set; then
33316   echo $ECHO_N "(cached) $ECHO_C" >&6
33317 else
33318   ac_check_lib_save_LIBS=$LIBS
33319 LIBS="-lwinmm  $LIBS"
33320 cat >conftest.$ac_ext <<_ACEOF
33321 /* confdefs.h.  */
33322 _ACEOF
33323 cat confdefs.h >>conftest.$ac_ext
33324 cat >>conftest.$ac_ext <<_ACEOF
33325 /* end confdefs.h.  */
33326
33327
33328 int
33329 main ()
33330 {
33331 return main ();
33332   ;
33333   return 0;
33334 }
33335 _ACEOF
33336 rm -f conftest.$ac_objext conftest$ac_exeext
33337 if { (ac_try="$ac_link"
33338 case "(($ac_try" in
33339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33340   *) ac_try_echo=$ac_try;;
33341 esac
33342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33343   (eval "$ac_link") 2>conftest.er1
33344   ac_status=$?
33345   grep -v '^ *+' conftest.er1 >conftest.err
33346   rm -f conftest.er1
33347   cat conftest.err >&5
33348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33349   (exit $ac_status); } &&
33350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33351   { (case "(($ac_try" in
33352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33353   *) ac_try_echo=$ac_try;;
33354 esac
33355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33356   (eval "$ac_try") 2>&5
33357   ac_status=$?
33358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359   (exit $ac_status); }; } &&
33360          { ac_try='test -s conftest$ac_exeext'
33361   { (case "(($ac_try" in
33362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33363   *) ac_try_echo=$ac_try;;
33364 esac
33365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33366   (eval "$ac_try") 2>&5
33367   ac_status=$?
33368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369   (exit $ac_status); }; }; then
33370   ac_cv_lib_winmm_main=yes
33371 else
33372   echo "$as_me: failed program was:" >&5
33373 sed 's/^/| /' conftest.$ac_ext >&5
33374
33375         ac_cv_lib_winmm_main=no
33376 fi
33377
33378 rm -f core conftest.err conftest.$ac_objext \
33379       conftest$ac_exeext conftest.$ac_ext
33380 LIBS=$ac_check_lib_save_LIBS
33381 fi
33382 { echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_main" >&5
33383 echo "${ECHO_T}$ac_cv_lib_winmm_main" >&6; }
33384 if test $ac_cv_lib_winmm_main = yes; then
33385   cat >>confdefs.h <<_ACEOF
33386 #define HAVE_LIBWINMM 1
33387 _ACEOF
33388
33389   LIBS="-lwinmm $LIBS"
33390
33391 else
33392   passed=no;{ echo "$as_me:$LINENO: result: gr-audio-windows requires library winmm, not found." >&5
33393 echo "${ECHO_T}gr-audio-windows requires library winmm, not found." >&6; }
33394 fi
33395 ac_cv_lib_winmm=ac_cv_lib_winmm_main
33396
33397
33398
33399     if test x$passed = xno; then
33400         skipped_dirs="$skipped_dirs gr-audio-windows"
33401         if test x$enable_gr_audio_windows = xyes; then
33402             { { echo "$as_me:$LINENO: error: Component gr-audio-windows has errors, stopping." >&5
33403 echo "$as_me: error: Component gr-audio-windows has errors, stopping." >&2;}
33404    { (exit 1); exit 1; }; }
33405         else
33406             { echo "$as_me:$LINENO: result: Not building component gr-audio-windows." >&5
33407 echo "${ECHO_T}Not building component gr-audio-windows." >&6; }
33408         fi
33409     else
33410         if test x$enable_gr_audio_windows != xno; then
33411
33412         WINAUDIO_LIBS=-lwinmm
33413
33414                 ac_config_commands="$ac_config_commands run_tests_audio_windows"
33415
33416
33417             build_dirs="$build_dirs gr-audio-windows"
33418             { echo "$as_me:$LINENO: result: Component gr-audio-windows passed configuration checks, building." >&5
33419 echo "${ECHO_T}Component gr-audio-windows passed configuration checks, building." >&6; }
33420         else
33421             skipped_dirs="$skipped_dirs gr-audio-windows"
33422             { echo "$as_me:$LINENO: result: Component gr-audio-windows passed configuration checks, but not building." >&5
33423 echo "${ECHO_T}Component gr-audio-windows passed configuration checks, but not building." >&6; }
33424         fi
33425     fi
33426
33427
33428
33429
33430     # Check whether --enable-gr-gsm-fr-vocoder was given.
33431 if test "${enable_gr_gsm_fr_vocoder+set}" = set; then
33432   enableval=$enable_gr_gsm_fr_vocoder;
33433 else
33434   enable_gr_gsm_fr_vocoder=$enable_all_components
33435 fi
33436
33437
33438
33439     ac_config_files="$ac_config_files gr-gsm-fr-vocoder/Makefile gr-gsm-fr-vocoder/src/Makefile gr-gsm-fr-vocoder/src/lib/Makefile gr-gsm-fr-vocoder/src/lib/gsm/Makefile gr-gsm-fr-vocoder/src/python/Makefile gr-gsm-fr-vocoder/src/python/run_tests"
33440
33441
33442     passed=yes
33443
33444     if test x$passed = xno; then
33445         skipped_dirs="$skipped_dirs gr-gsm-fr-vocoder"
33446         if test x$enable_gr_gsm_fr_vocoder = xyes; then
33447             { { echo "$as_me:$LINENO: error: Component gr-gsm-fr-vocoder has errors, stopping." >&5
33448 echo "$as_me: error: Component gr-gsm-fr-vocoder has errors, stopping." >&2;}
33449    { (exit 1); exit 1; }; }
33450         else
33451             { echo "$as_me:$LINENO: result: Not building component gr-gsm-fr-vocoder." >&5
33452 echo "${ECHO_T}Not building component gr-gsm-fr-vocoder." >&6; }
33453         fi
33454     else
33455         if test x$enable_gr_gsm_fr_vocoder != xno; then
33456
33457                 ac_config_commands="$ac_config_commands run_tests_gsm"
33458
33459
33460             build_dirs="$build_dirs gr-gsm-fr-vocoder"
33461             { echo "$as_me:$LINENO: result: Component gr-gsm-fr-vocoder passed configuration checks, building." >&5
33462 echo "${ECHO_T}Component gr-gsm-fr-vocoder passed configuration checks, building." >&6; }
33463         else
33464             skipped_dirs="$skipped_dirs gr-gsm-fr-vocoder"
33465             { echo "$as_me:$LINENO: result: Component gr-gsm-fr-vocoder passed configuration checks, but not building." >&5
33466 echo "${ECHO_T}Component gr-gsm-fr-vocoder passed configuration checks, but not building." >&6; }
33467         fi
33468     fi
33469
33470
33471
33472
33473     # Check whether --enable-gr-radio-astronomy was given.
33474 if test "${enable_gr_radio_astronomy+set}" = set; then
33475   enableval=$enable_gr_radio_astronomy;
33476 else
33477   enable_gr_radio_astronomy=$enable_all_components
33478 fi
33479
33480
33481
33482     ac_config_files="$ac_config_files gr-radio-astronomy/Makefile gr-radio-astronomy/src/Makefile gr-radio-astronomy/src/lib/Makefile gr-radio-astronomy/src/python/Makefile gr-radio-astronomy/src/python/run_tests"
33483
33484
33485     passed=yes
33486
33487     if test x$passed = xno; then
33488         skipped_dirs="$skipped_dirs gr-radio-astronomy"
33489         if test x$enable_gr_radio_astronomy = xyes; then
33490             { { echo "$as_me:$LINENO: error: Component gr-radio-astronomy has errors, stopping." >&5
33491 echo "$as_me: error: Component gr-radio-astronomy has errors, stopping." >&2;}
33492    { (exit 1); exit 1; }; }
33493         else
33494             { echo "$as_me:$LINENO: result: Not building component gr-radio-astronomy." >&5
33495 echo "${ECHO_T}Not building component gr-radio-astronomy." >&6; }
33496         fi
33497     else
33498         if test x$enable_gr_radio_astronomy != xno; then
33499
33500                 ac_config_commands="$ac_config_commands run_tests_astronomy"
33501
33502
33503             build_dirs="$build_dirs gr-radio-astronomy"
33504             { echo "$as_me:$LINENO: result: Component gr-radio-astronomy passed configuration checks, building." >&5
33505 echo "${ECHO_T}Component gr-radio-astronomy passed configuration checks, building." >&6; }
33506         else
33507             skipped_dirs="$skipped_dirs gr-radio-astronomy"
33508             { echo "$as_me:$LINENO: result: Component gr-radio-astronomy passed configuration checks, but not building." >&5
33509 echo "${ECHO_T}Component gr-radio-astronomy passed configuration checks, but not building." >&6; }
33510         fi
33511     fi
33512
33513
33514
33515
33516     # Check whether --enable-gr-trellis was given.
33517 if test "${enable_gr_trellis+set}" = set; then
33518   enableval=$enable_gr_trellis;
33519 else
33520   enable_gr_trellis=$enable_all_components
33521 fi
33522
33523
33524
33525     ac_config_files="$ac_config_files gr-trellis/Makefile gr-trellis/doc/Makefile gr-trellis/src/Makefile gr-trellis/src/lib/Makefile gr-trellis/src/python/Makefile gr-trellis/src/python/run_tests"
33526
33527
33528     passed=yes
33529
33530     if test x$passed = xno; then
33531         skipped_dirs="$skipped_dirs gr-trellis"
33532         if test x$enable_gr_trellis = xyes; then
33533             { { echo "$as_me:$LINENO: error: Component gr-trellis has errors, stopping." >&5
33534 echo "$as_me: error: Component gr-trellis has errors, stopping." >&2;}
33535    { (exit 1); exit 1; }; }
33536         else
33537             { echo "$as_me:$LINENO: result: Not building component gr-trellis." >&5
33538 echo "${ECHO_T}Not building component gr-trellis." >&6; }
33539         fi
33540     else
33541         if test x$enable_gr_trellis != xno; then
33542
33543                 ac_config_commands="$ac_config_commands run_tests_gr_trellis"
33544
33545
33546             build_dirs="$build_dirs gr-trellis"
33547             { echo "$as_me:$LINENO: result: Component gr-trellis passed configuration checks, building." >&5
33548 echo "${ECHO_T}Component gr-trellis passed configuration checks, building." >&6; }
33549         else
33550             skipped_dirs="$skipped_dirs gr-trellis"
33551             { echo "$as_me:$LINENO: result: Component gr-trellis passed configuration checks, but not building." >&5
33552 echo "${ECHO_T}Component gr-trellis passed configuration checks, but not building." >&6; }
33553         fi
33554     fi
33555
33556
33557
33558
33559     # Check whether --enable-gr-video-sdl was given.
33560 if test "${enable_gr_video_sdl+set}" = set; then
33561   enableval=$enable_gr_video_sdl;
33562 else
33563   enable_gr_video_sdl=$enable_all_components
33564 fi
33565
33566
33567
33568     ac_config_files="$ac_config_files gr-video-sdl/Makefile gr-video-sdl/src/Makefile gr-video-sdl/src/run_tests"
33569
33570
33571     passed=yes
33572     SDL_VERSION=1.2.0
33573
33574 # Check whether --with-sdl-prefix was given.
33575 if test "${with_sdl_prefix+set}" = set; then
33576   withval=$with_sdl_prefix; sdl_prefix="$withval"
33577 else
33578   sdl_prefix=""
33579 fi
33580
33581
33582 # Check whether --with-sdl-exec-prefix was given.
33583 if test "${with_sdl_exec_prefix+set}" = set; then
33584   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
33585 else
33586   sdl_exec_prefix=""
33587 fi
33588
33589 # Check whether --enable-sdltest was given.
33590 if test "${enable_sdltest+set}" = set; then
33591   enableval=$enable_sdltest;
33592 else
33593   enable_sdltest=yes
33594 fi
33595
33596
33597   if test x$sdl_exec_prefix != x ; then
33598      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
33599      if test x${SDL_CONFIG+set} != xset ; then
33600         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
33601      fi
33602   fi
33603   if test x$sdl_prefix != x ; then
33604      sdl_args="$sdl_args --prefix=$sdl_prefix"
33605      if test x${SDL_CONFIG+set} != xset ; then
33606         SDL_CONFIG=$sdl_prefix/bin/sdl-config
33607      fi
33608   fi
33609
33610
33611   PATH="$prefix/bin:$prefix/usr/bin:$PATH"
33612   # Extract the first word of "sdl-config", so it can be a program name with args.
33613 set dummy sdl-config; ac_word=$2
33614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33616 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
33617   echo $ECHO_N "(cached) $ECHO_C" >&6
33618 else
33619   case $SDL_CONFIG in
33620   [\\/]* | ?:[\\/]*)
33621   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
33622   ;;
33623   *)
33624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33625 for as_dir in $PATH
33626 do
33627   IFS=$as_save_IFS
33628   test -z "$as_dir" && as_dir=.
33629   for ac_exec_ext in '' $ac_executable_extensions; do
33630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
33631     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33633     break 2
33634   fi
33635 done
33636 done
33637 IFS=$as_save_IFS
33638
33639   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
33640   ;;
33641 esac
33642 fi
33643 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
33644 if test -n "$SDL_CONFIG"; then
33645   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
33646 echo "${ECHO_T}$SDL_CONFIG" >&6; }
33647 else
33648   { echo "$as_me:$LINENO: result: no" >&5
33649 echo "${ECHO_T}no" >&6; }
33650 fi
33651
33652
33653   min_sdl_version=$SDL_VERSION
33654   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
33655 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
33656   no_sdl=""
33657   if test "$SDL_CONFIG" = "no" ; then
33658     no_sdl=yes
33659   else
33660     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
33661     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
33662
33663     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
33664            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
33665     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
33666            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
33667     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
33668            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
33669     if test "x$enable_sdltest" = "xyes" ; then
33670       ac_save_CFLAGS="$CFLAGS"
33671       ac_save_LIBS="$LIBS"
33672       CFLAGS="$CFLAGS $SDL_CFLAGS"
33673       LIBS="$LIBS $SDL_LIBS"
33674       rm -f conf.sdltest
33675       if test "$cross_compiling" = yes; then
33676   echo $ac_n "cross compiling; assumed OK... $ac_c"
33677 else
33678   cat >conftest.$ac_ext <<_ACEOF
33679 /* confdefs.h.  */
33680 _ACEOF
33681 cat confdefs.h >>conftest.$ac_ext
33682 cat >>conftest.$ac_ext <<_ACEOF
33683 /* end confdefs.h.  */
33684
33685 #include <stdio.h>
33686 #include <stdlib.h>
33687 #include <string.h>
33688 #include "SDL.h"
33689
33690 char*
33691 my_strdup (char *str)
33692 {
33693   char *new_str;
33694
33695   if (str)
33696     {
33697       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
33698       strcpy (new_str, str);
33699     }
33700   else
33701     new_str = NULL;
33702
33703   return new_str;
33704 }
33705
33706 int main (int argc, char *argv[])
33707 {
33708   int major, minor, micro;
33709   char *tmp_version;
33710
33711   /* This hangs on some systems (?)
33712   system ("touch conf.sdltest");
33713   */
33714   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
33715
33716   /* HP/UX 9 (%@#!) writes to sscanf strings */
33717   tmp_version = my_strdup("$min_sdl_version");
33718   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
33719      printf("%s, bad version string\n", "$min_sdl_version");
33720      exit(1);
33721    }
33722
33723    if (($sdl_major_version > major) ||
33724       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
33725       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
33726     {
33727       return 0;
33728     }
33729   else
33730     {
33731       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
33732       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
33733       printf("*** best to upgrade to the required version.\n");
33734       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
33735       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
33736       printf("*** config.cache before re-running configure\n");
33737       return 1;
33738     }
33739 }
33740
33741
33742 _ACEOF
33743 rm -f conftest$ac_exeext
33744 if { (ac_try="$ac_link"
33745 case "(($ac_try" in
33746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33747   *) ac_try_echo=$ac_try;;
33748 esac
33749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33750   (eval "$ac_link") 2>&5
33751   ac_status=$?
33752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33753   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33754   { (case "(($ac_try" in
33755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33756   *) ac_try_echo=$ac_try;;
33757 esac
33758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33759   (eval "$ac_try") 2>&5
33760   ac_status=$?
33761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33762   (exit $ac_status); }; }; then
33763   :
33764 else
33765   echo "$as_me: program exited with status $ac_status" >&5
33766 echo "$as_me: failed program was:" >&5
33767 sed 's/^/| /' conftest.$ac_ext >&5
33768
33769 ( exit $ac_status )
33770 no_sdl=yes
33771 fi
33772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33773 fi
33774
33775
33776        CFLAGS="$ac_save_CFLAGS"
33777        LIBS="$ac_save_LIBS"
33778      fi
33779   fi
33780   if test "x$no_sdl" = x ; then
33781      { echo "$as_me:$LINENO: result: yes" >&5
33782 echo "${ECHO_T}yes" >&6; }
33783      :
33784   else
33785      { echo "$as_me:$LINENO: result: no" >&5
33786 echo "${ECHO_T}no" >&6; }
33787      if test "$SDL_CONFIG" = "no" ; then
33788        echo "*** The sdl-config script installed by SDL could not be found"
33789        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
33790        echo "*** your path, or set the SDL_CONFIG environment variable to the"
33791        echo "*** full path to sdl-config."
33792      else
33793        if test -f conf.sdltest ; then
33794         :
33795        else
33796           echo "*** Could not run SDL test program, checking why..."
33797           CFLAGS="$CFLAGS $SDL_CFLAGS"
33798           LIBS="$LIBS $SDL_LIBS"
33799           cat >conftest.$ac_ext <<_ACEOF
33800 /* confdefs.h.  */
33801 _ACEOF
33802 cat confdefs.h >>conftest.$ac_ext
33803 cat >>conftest.$ac_ext <<_ACEOF
33804 /* end confdefs.h.  */
33805
33806 #include <stdio.h>
33807 #include "SDL.h"
33808
33809 int main(int argc, char *argv[])
33810 { return 0; }
33811 #undef  main
33812 #define main K_and_R_C_main
33813
33814 int
33815 main ()
33816 {
33817  return 0;
33818   ;
33819   return 0;
33820 }
33821 _ACEOF
33822 rm -f conftest.$ac_objext conftest$ac_exeext
33823 if { (ac_try="$ac_link"
33824 case "(($ac_try" in
33825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33826   *) ac_try_echo=$ac_try;;
33827 esac
33828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33829   (eval "$ac_link") 2>conftest.er1
33830   ac_status=$?
33831   grep -v '^ *+' conftest.er1 >conftest.err
33832   rm -f conftest.er1
33833   cat conftest.err >&5
33834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33835   (exit $ac_status); } &&
33836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33837   { (case "(($ac_try" in
33838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33839   *) ac_try_echo=$ac_try;;
33840 esac
33841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33842   (eval "$ac_try") 2>&5
33843   ac_status=$?
33844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33845   (exit $ac_status); }; } &&
33846          { ac_try='test -s conftest$ac_exeext'
33847   { (case "(($ac_try" in
33848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33849   *) ac_try_echo=$ac_try;;
33850 esac
33851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33852   (eval "$ac_try") 2>&5
33853   ac_status=$?
33854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33855   (exit $ac_status); }; }; then
33856    echo "*** The test program compiled, but did not run. This usually means"
33857           echo "*** that the run-time linker is not finding SDL or finding the wrong"
33858           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
33859           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
33860           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
33861           echo "*** is required on your system"
33862           echo "***"
33863           echo "*** If you have an old version installed, it is best to remove it, although"
33864           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
33865 else
33866   echo "$as_me: failed program was:" >&5
33867 sed 's/^/| /' conftest.$ac_ext >&5
33868
33869          echo "*** The test program failed to compile or link. See the file config.log for the"
33870           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
33871           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
33872           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
33873 fi
33874
33875 rm -f core conftest.err conftest.$ac_objext \
33876       conftest$ac_exeext conftest.$ac_ext
33877           CFLAGS="$ac_save_CFLAGS"
33878           LIBS="$ac_save_LIBS"
33879        fi
33880      fi
33881      SDL_CFLAGS=""
33882      SDL_LIBS=""
33883      passed=no;{ echo "$as_me:$LINENO: result: gr-video-sdl requires library sdl, not found or failed test." >&5
33884 echo "${ECHO_T}gr-video-sdl requires library sdl, not found or failed test." >&6; }
33885   fi
33886
33887
33888   rm -f conf.sdltest
33889
33890
33891
33892     if test x$passed = xno; then
33893         skipped_dirs="$skipped_dirs gr-video-sdl"
33894         if test x$enable_gr_video_sdl = xyes; then
33895             { { echo "$as_me:$LINENO: error: Component gr-video-sdl has errors, stopping." >&5
33896 echo "$as_me: error: Component gr-video-sdl has errors, stopping." >&2;}
33897    { (exit 1); exit 1; }; }
33898         else
33899             { echo "$as_me:$LINENO: result: Not building component gr-video-sdl." >&5
33900 echo "${ECHO_T}Not building component gr-video-sdl." >&6; }
33901         fi
33902     else
33903         if test x$enable_gr_video_sdl != xno; then
33904
33905
33906
33907                 ac_config_commands="$ac_config_commands run_tests_sdl"
33908
33909
33910             build_dirs="$build_dirs gr-video-sdl"
33911             { echo "$as_me:$LINENO: result: Component gr-video-sdl passed configuration checks, building." >&5
33912 echo "${ECHO_T}Component gr-video-sdl passed configuration checks, building." >&6; }
33913         else
33914             skipped_dirs="$skipped_dirs gr-video-sdl"
33915             { echo "$as_me:$LINENO: result: Component gr-video-sdl passed configuration checks, but not building." >&5
33916 echo "${ECHO_T}Component gr-video-sdl passed configuration checks, but not building." >&6; }
33917         fi
33918     fi
33919
33920
33921
33922
33923     # Check whether --enable-gr-wxgui was given.
33924 if test "${enable_gr_wxgui+set}" = set; then
33925   enableval=$enable_gr_wxgui;
33926 else
33927   enable_gr_wxgui=$enable_all_components
33928 fi
33929
33930
33931
33932     ac_config_files="$ac_config_files gr-wxgui/Makefile gr-wxgui/src/Makefile gr-wxgui/src/python/Makefile"
33933
33934
33935     if ${PYTHON} -c 'import wx'; then
33936         passed=yes
33937     else
33938         passed=no
33939     fi
33940
33941
33942     if test x$passed = xno; then
33943         skipped_dirs="$skipped_dirs gr-wxgui"
33944         if test x$enable_gr_wxgui = xyes; then
33945             { { echo "$as_me:$LINENO: error: Component gr-wxgui has errors, stopping." >&5
33946 echo "$as_me: error: Component gr-wxgui has errors, stopping." >&2;}
33947    { (exit 1); exit 1; }; }
33948         else
33949             { echo "$as_me:$LINENO: result: Not building component gr-wxgui." >&5
33950 echo "${ECHO_T}Not building component gr-wxgui." >&6; }
33951         fi
33952     else
33953         if test x$enable_gr_wxgui != xno; then
33954
33955             build_dirs="$build_dirs gr-wxgui"
33956             { echo "$as_me:$LINENO: result: Component gr-wxgui passed configuration checks, building." >&5
33957 echo "${ECHO_T}Component gr-wxgui passed configuration checks, building." >&6; }
33958         else
33959             skipped_dirs="$skipped_dirs gr-wxgui"
33960             { echo "$as_me:$LINENO: result: Component gr-wxgui passed configuration checks, but not building." >&5
33961 echo "${ECHO_T}Component gr-wxgui passed configuration checks, but not building." >&6; }
33962         fi
33963     fi
33964
33965
33966
33967 # Each component is now either to be built, was skipped, or failed dependencies
33968 build_dirs=$build_dirs
33969
33970 skipped_dirs=$skipped_dirs
33971
33972
33973 ac_config_files="$ac_config_files Makefile run_tests.sh config/Makefile"
33974
33975
33976 ac_config_commands="$ac_config_commands run_tests_build"
33977
33978
33979 cat >confcache <<\_ACEOF
33980 # This file is a shell script that caches the results of configure
33981 # tests run on this system so they can be shared between configure
33982 # scripts and configure runs, see configure's option --config-cache.
33983 # It is not useful on other systems.  If it contains results you don't
33984 # want to keep, you may remove or edit it.
33985 #
33986 # config.status only pays attention to the cache file if you give it
33987 # the --recheck option to rerun configure.
33988 #
33989 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33990 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33991 # following values.
33992
33993 _ACEOF
33994
33995 # The following way of writing the cache mishandles newlines in values,
33996 # but we know of no workaround that is simple, portable, and efficient.
33997 # So, we kill variables containing newlines.
33998 # Ultrix sh set writes to stderr and can't be redirected directly,
33999 # and sets the high bit in the cache file unless we assign to the vars.
34000 (
34001   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34002     eval ac_val=\$$ac_var
34003     case $ac_val in #(
34004     *${as_nl}*)
34005       case $ac_var in #(
34006       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34007 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34008       esac
34009       case $ac_var in #(
34010       _ | IFS | as_nl) ;; #(
34011       *) $as_unset $ac_var ;;
34012       esac ;;
34013     esac
34014   done
34015
34016   (set) 2>&1 |
34017     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34018     *${as_nl}ac_space=\ *)
34019       # `set' does not quote correctly, so add quotes (double-quote
34020       # substitution turns \\\\ into \\, and sed turns \\ into \).
34021       sed -n \
34022         "s/'/'\\\\''/g;
34023           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34024       ;; #(
34025     *)
34026       # `set' quotes correctly as required by POSIX, so do not add quotes.
34027       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34028       ;;
34029     esac |
34030     sort
34031 ) |
34032   sed '
34033      /^ac_cv_env_/b end
34034      t clear
34035      :clear
34036      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34037      t end
34038      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34039      :end' >>confcache
34040 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34041   if test -w "$cache_file"; then
34042     test "x$cache_file" != "x/dev/null" &&
34043       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34044 echo "$as_me: updating cache $cache_file" >&6;}
34045     cat confcache >$cache_file
34046   else
34047     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34048 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34049   fi
34050 fi
34051 rm -f confcache
34052
34053 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34054 # Let make expand exec_prefix.
34055 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34056
34057 DEFS=-DHAVE_CONFIG_H
34058
34059 ac_libobjs=
34060 ac_ltlibobjs=
34061 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34062   # 1. Remove the extension, and $U if already installed.
34063   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34064   ac_i=`echo "$ac_i" | sed "$ac_script"`
34065   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34066   #    will be set to the directory where LIBOBJS objects are built.
34067   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34068   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34069 done
34070 LIBOBJS=$ac_libobjs
34071
34072 LTLIBOBJS=$ac_ltlibobjs
34073
34074
34075 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34076   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
34077 Usually this means the macro was only invoked conditionally." >&5
34078 echo "$as_me: error: conditional \"AMDEP\" was never defined.
34079 Usually this means the macro was only invoked conditionally." >&2;}
34080    { (exit 1); exit 1; }; }
34081 fi
34082 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34083   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
34084 Usually this means the macro was only invoked conditionally." >&5
34085 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
34086 Usually this means the macro was only invoked conditionally." >&2;}
34087    { (exit 1); exit 1; }; }
34088 fi
34089 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34090   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
34091 Usually this means the macro was only invoked conditionally." >&5
34092 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
34093 Usually this means the macro was only invoked conditionally." >&2;}
34094    { (exit 1); exit 1; }; }
34095 fi
34096 if test -z "${ENABLE_FORTRAN_TRUE}" && test -z "${ENABLE_FORTRAN_FALSE}"; then
34097   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FORTRAN\" was never defined.
34098 Usually this means the macro was only invoked conditionally." >&5
34099 echo "$as_me: error: conditional \"ENABLE_FORTRAN\" was never defined.
34100 Usually this means the macro was only invoked conditionally." >&2;}
34101    { (exit 1); exit 1; }; }
34102 fi
34103 if test -z "${HAS_XMLTO_TRUE}" && test -z "${HAS_XMLTO_FALSE}"; then
34104   { { echo "$as_me:$LINENO: error: conditional \"HAS_XMLTO\" was never defined.
34105 Usually this means the macro was only invoked conditionally." >&5
34106 echo "$as_me: error: conditional \"HAS_XMLTO\" was never defined.
34107 Usually this means the macro was only invoked conditionally." >&2;}
34108    { (exit 1); exit 1; }; }
34109 fi
34110 if test -z "${OMNITHREAD_POSIX_TRUE}" && test -z "${OMNITHREAD_POSIX_FALSE}"; then
34111   { { echo "$as_me:$LINENO: error: conditional \"OMNITHREAD_POSIX\" was never defined.
34112 Usually this means the macro was only invoked conditionally." >&5
34113 echo "$as_me: error: conditional \"OMNITHREAD_POSIX\" was never defined.
34114 Usually this means the macro was only invoked conditionally." >&2;}
34115    { (exit 1); exit 1; }; }
34116 fi
34117 if test -z "${OMNITHREAD_NT_TRUE}" && test -z "${OMNITHREAD_NT_FALSE}"; then
34118   { { echo "$as_me:$LINENO: error: conditional \"OMNITHREAD_NT\" was never defined.
34119 Usually this means the macro was only invoked conditionally." >&5
34120 echo "$as_me: error: conditional \"OMNITHREAD_NT\" was never defined.
34121 Usually this means the macro was only invoked conditionally." >&2;}
34122    { (exit 1); exit 1; }; }
34123 fi
34124 if test -z "${HAVE_CREATEFILEMAPPING_TRUE}" && test -z "${HAVE_CREATEFILEMAPPING_FALSE}"; then
34125   { { echo "$as_me:$LINENO: error: conditional \"HAVE_CREATEFILEMAPPING\" was never defined.
34126 Usually this means the macro was only invoked conditionally." >&5
34127 echo "$as_me: error: conditional \"HAVE_CREATEFILEMAPPING\" was never defined.
34128 Usually this means the macro was only invoked conditionally." >&2;}
34129    { (exit 1); exit 1; }; }
34130 fi
34131 if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
34132   { { echo "$as_me:$LINENO: error: conditional \"DOC\" was never defined.
34133 Usually this means the macro was only invoked conditionally." >&5
34134 echo "$as_me: error: conditional \"DOC\" was never defined.
34135 Usually this means the macro was only invoked conditionally." >&2;}
34136    { (exit 1); exit 1; }; }
34137 fi
34138 if test -z "${MD_CPU_x86_TRUE}" && test -z "${MD_CPU_x86_FALSE}"; then
34139   { { echo "$as_me:$LINENO: error: conditional \"MD_CPU_x86\" was never defined.
34140 Usually this means the macro was only invoked conditionally." >&5
34141 echo "$as_me: error: conditional \"MD_CPU_x86\" was never defined.
34142 Usually this means the macro was only invoked conditionally." >&2;}
34143    { (exit 1); exit 1; }; }
34144 fi
34145 if test -z "${MD_SUBCPU_x86_64_TRUE}" && test -z "${MD_SUBCPU_x86_64_FALSE}"; then
34146   { { echo "$as_me:$LINENO: error: conditional \"MD_SUBCPU_x86_64\" was never defined.
34147 Usually this means the macro was only invoked conditionally." >&5
34148 echo "$as_me: error: conditional \"MD_SUBCPU_x86_64\" was never defined.
34149 Usually this means the macro was only invoked conditionally." >&2;}
34150    { (exit 1); exit 1; }; }
34151 fi
34152 if test -z "${MD_CPU_generic_TRUE}" && test -z "${MD_CPU_generic_FALSE}"; then
34153   { { echo "$as_me:$LINENO: error: conditional \"MD_CPU_generic\" was never defined.
34154 Usually this means the macro was only invoked conditionally." >&5
34155 echo "$as_me: error: conditional \"MD_CPU_generic\" was never defined.
34156 Usually this means the macro was only invoked conditionally." >&2;}
34157    { (exit 1); exit 1; }; }
34158 fi
34159 if test -z "${FUSB_TECH_darwin_TRUE}" && test -z "${FUSB_TECH_darwin_FALSE}"; then
34160   { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_darwin\" was never defined.
34161 Usually this means the macro was only invoked conditionally." >&5
34162 echo "$as_me: error: conditional \"FUSB_TECH_darwin\" was never defined.
34163 Usually this means the macro was only invoked conditionally." >&2;}
34164    { (exit 1); exit 1; }; }
34165 fi
34166 if test -z "${FUSB_TECH_win32_TRUE}" && test -z "${FUSB_TECH_win32_FALSE}"; then
34167   { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_win32\" was never defined.
34168 Usually this means the macro was only invoked conditionally." >&5
34169 echo "$as_me: error: conditional \"FUSB_TECH_win32\" was never defined.
34170 Usually this means the macro was only invoked conditionally." >&2;}
34171    { (exit 1); exit 1; }; }
34172 fi
34173 if test -z "${FUSB_TECH_generic_TRUE}" && test -z "${FUSB_TECH_generic_FALSE}"; then
34174   { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_generic\" was never defined.
34175 Usually this means the macro was only invoked conditionally." >&5
34176 echo "$as_me: error: conditional \"FUSB_TECH_generic\" was never defined.
34177 Usually this means the macro was only invoked conditionally." >&2;}
34178    { (exit 1); exit 1; }; }
34179 fi
34180 if test -z "${FUSB_TECH_linux_TRUE}" && test -z "${FUSB_TECH_linux_FALSE}"; then
34181   { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_linux\" was never defined.
34182 Usually this means the macro was only invoked conditionally." >&5
34183 echo "$as_me: error: conditional \"FUSB_TECH_linux\" was never defined.
34184 Usually this means the macro was only invoked conditionally." >&2;}
34185    { (exit 1); exit 1; }; }
34186 fi
34187 if test -z "${FUSB_TECH_ra_wb_TRUE}" && test -z "${FUSB_TECH_ra_wb_FALSE}"; then
34188   { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_ra_wb\" was never defined.
34189 Usually this means the macro was only invoked conditionally." >&5
34190 echo "$as_me: error: conditional \"FUSB_TECH_ra_wb\" was never defined.
34191 Usually this means the macro was only invoked conditionally." >&2;}
34192    { (exit 1); exit 1; }; }
34193 fi
34194
34195 : ${CONFIG_STATUS=./config.status}
34196 ac_clean_files_save=$ac_clean_files
34197 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34198 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34199 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34200 cat >$CONFIG_STATUS <<_ACEOF
34201 #! $SHELL
34202 # Generated by $as_me.
34203 # Run this file to recreate the current configuration.
34204 # Compiler output produced by configure, useful for debugging
34205 # configure, is in config.log if it exists.
34206
34207 debug=false
34208 ac_cs_recheck=false
34209 ac_cs_silent=false
34210 SHELL=\${CONFIG_SHELL-$SHELL}
34211 _ACEOF
34212
34213 cat >>$CONFIG_STATUS <<\_ACEOF
34214 ## --------------------- ##
34215 ## M4sh Initialization.  ##
34216 ## --------------------- ##
34217
34218 # Be Bourne compatible
34219 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34220   emulate sh
34221   NULLCMD=:
34222   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34223   # is contrary to our usage.  Disable this feature.
34224   alias -g '${1+"$@"}'='"$@"'
34225   setopt NO_GLOB_SUBST
34226 else
34227   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34228 fi
34229 BIN_SH=xpg4; export BIN_SH # for Tru64
34230 DUALCASE=1; export DUALCASE # for MKS sh
34231
34232
34233 # PATH needs CR
34234 # Avoid depending upon Character Ranges.
34235 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34236 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34237 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34238 as_cr_digits='0123456789'
34239 as_cr_alnum=$as_cr_Letters$as_cr_digits
34240
34241 # The user is always right.
34242 if test "${PATH_SEPARATOR+set}" != set; then
34243   echo "#! /bin/sh" >conf$$.sh
34244   echo  "exit 0"   >>conf$$.sh
34245   chmod +x conf$$.sh
34246   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34247     PATH_SEPARATOR=';'
34248   else
34249     PATH_SEPARATOR=:
34250   fi
34251   rm -f conf$$.sh
34252 fi
34253
34254 # Support unset when possible.
34255 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34256   as_unset=unset
34257 else
34258   as_unset=false
34259 fi
34260
34261
34262 # IFS
34263 # We need space, tab and new line, in precisely that order.  Quoting is
34264 # there to prevent editors from complaining about space-tab.
34265 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34266 # splitting by setting IFS to empty value.)
34267 as_nl='
34268 '
34269 IFS=" ""        $as_nl"
34270
34271 # Find who we are.  Look in the path if we contain no directory separator.
34272 case $0 in
34273   *[\\/]* ) as_myself=$0 ;;
34274   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34275 for as_dir in $PATH
34276 do
34277   IFS=$as_save_IFS
34278   test -z "$as_dir" && as_dir=.
34279   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34280 done
34281 IFS=$as_save_IFS
34282
34283      ;;
34284 esac
34285 # We did not find ourselves, most probably we were run as `sh COMMAND'
34286 # in which case we are not to be found in the path.
34287 if test "x$as_myself" = x; then
34288   as_myself=$0
34289 fi
34290 if test ! -f "$as_myself"; then
34291   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34292   { (exit 1); exit 1; }
34293 fi
34294
34295 # Work around bugs in pre-3.0 UWIN ksh.
34296 for as_var in ENV MAIL MAILPATH
34297 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34298 done
34299 PS1='$ '
34300 PS2='> '
34301 PS4='+ '
34302
34303 # NLS nuisances.
34304 for as_var in \
34305   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34306   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34307   LC_TELEPHONE LC_TIME
34308 do
34309   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34310     eval $as_var=C; export $as_var
34311   else
34312     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34313   fi
34314 done
34315
34316 # Required to use basename.
34317 if expr a : '\(a\)' >/dev/null 2>&1 &&
34318    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34319   as_expr=expr
34320 else
34321   as_expr=false
34322 fi
34323
34324 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34325   as_basename=basename
34326 else
34327   as_basename=false
34328 fi
34329
34330
34331 # Name of the executable.
34332 as_me=`$as_basename -- "$0" ||
34333 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34334          X"$0" : 'X\(//\)$' \| \
34335          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34336 echo X/"$0" |
34337     sed '/^.*\/\([^/][^/]*\)\/*$/{
34338             s//\1/
34339             q
34340           }
34341           /^X\/\(\/\/\)$/{
34342             s//\1/
34343             q
34344           }
34345           /^X\/\(\/\).*/{
34346             s//\1/
34347             q
34348           }
34349           s/.*/./; q'`
34350
34351 # CDPATH.
34352 $as_unset CDPATH
34353
34354
34355
34356   as_lineno_1=$LINENO
34357   as_lineno_2=$LINENO
34358   test "x$as_lineno_1" != "x$as_lineno_2" &&
34359   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34360
34361   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34362   # uniformly replaced by the line number.  The first 'sed' inserts a
34363   # line-number line after each line using $LINENO; the second 'sed'
34364   # does the real work.  The second script uses 'N' to pair each
34365   # line-number line with the line containing $LINENO, and appends
34366   # trailing '-' during substitution so that $LINENO is not a special
34367   # case at line end.
34368   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34369   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34370   # E. McMahon (1931-1989) for sed's syntax.  :-)
34371   sed -n '
34372     p
34373     /[$]LINENO/=
34374   ' <$as_myself |
34375     sed '
34376       s/[$]LINENO.*/&-/
34377       t lineno
34378       b
34379       :lineno
34380       N
34381       :loop
34382       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34383       t loop
34384       s/-\n.*//
34385     ' >$as_me.lineno &&
34386   chmod +x "$as_me.lineno" ||
34387     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34388    { (exit 1); exit 1; }; }
34389
34390   # Don't try to exec as it changes $[0], causing all sort of problems
34391   # (the dirname of $[0] is not the place where we might find the
34392   # original and so on.  Autoconf is especially sensitive to this).
34393   . "./$as_me.lineno"
34394   # Exit status is that of the last command.
34395   exit
34396 }
34397
34398
34399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34400   as_dirname=dirname
34401 else
34402   as_dirname=false
34403 fi
34404
34405 ECHO_C= ECHO_N= ECHO_T=
34406 case `echo -n x` in
34407 -n*)
34408   case `echo 'x\c'` in
34409   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34410   *)   ECHO_C='\c';;
34411   esac;;
34412 *)
34413   ECHO_N='-n';;
34414 esac
34415
34416 if expr a : '\(a\)' >/dev/null 2>&1 &&
34417    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34418   as_expr=expr
34419 else
34420   as_expr=false
34421 fi
34422
34423 rm -f conf$$ conf$$.exe conf$$.file
34424 if test -d conf$$.dir; then
34425   rm -f conf$$.dir/conf$$.file
34426 else
34427   rm -f conf$$.dir
34428   mkdir conf$$.dir
34429 fi
34430 echo >conf$$.file
34431 if ln -s conf$$.file conf$$ 2>/dev/null; then
34432   as_ln_s='ln -s'
34433   # ... but there are two gotchas:
34434   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34435   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34436   # In both cases, we have to default to `cp -p'.
34437   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34438     as_ln_s='cp -p'
34439 elif ln conf$$.file conf$$ 2>/dev/null; then
34440   as_ln_s=ln
34441 else
34442   as_ln_s='cp -p'
34443 fi
34444 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34445 rmdir conf$$.dir 2>/dev/null
34446
34447 if mkdir -p . 2>/dev/null; then
34448   as_mkdir_p=:
34449 else
34450   test -d ./-p && rmdir ./-p
34451   as_mkdir_p=false
34452 fi
34453
34454 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34455 # systems may use methods other than mode bits to determine executability.
34456 cat >conf$$.file <<_ASEOF
34457 #! /bin/sh
34458 exit 0
34459 _ASEOF
34460 chmod +x conf$$.file
34461 if test -x conf$$.file >/dev/null 2>&1; then
34462   as_executable_p="test -x"
34463 else
34464   as_executable_p=:
34465 fi
34466 rm -f conf$$.file
34467
34468 # Sed expression to map a string onto a valid CPP name.
34469 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34470
34471 # Sed expression to map a string onto a valid variable name.
34472 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34473
34474
34475 exec 6>&1
34476
34477 # Save the log message, to keep $[0] and so on meaningful, and to
34478 # report actual input values of CONFIG_FILES etc. instead of their
34479 # values after options handling.
34480 ac_log="
34481 This file was extended by $as_me, which was
34482 generated by GNU Autoconf 2.60.  Invocation command line was
34483
34484   CONFIG_FILES    = $CONFIG_FILES
34485   CONFIG_HEADERS  = $CONFIG_HEADERS
34486   CONFIG_LINKS    = $CONFIG_LINKS
34487   CONFIG_COMMANDS = $CONFIG_COMMANDS
34488   $ $0 $@
34489
34490 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34491 "
34492
34493 _ACEOF
34494
34495 cat >>$CONFIG_STATUS <<_ACEOF
34496 # Files that config.status was made for.
34497 config_files="$ac_config_files"
34498 config_headers="$ac_config_headers"
34499 config_commands="$ac_config_commands"
34500
34501 _ACEOF
34502
34503 cat >>$CONFIG_STATUS <<\_ACEOF
34504 ac_cs_usage="\
34505 \`$as_me' instantiates files from templates according to the
34506 current configuration.
34507
34508 Usage: $0 [OPTIONS] [FILE]...
34509
34510   -h, --help       print this help, then exit
34511   -V, --version    print version number, then exit
34512   -q, --quiet      do not print progress messages
34513   -d, --debug      don't remove temporary files
34514       --recheck    update $as_me by reconfiguring in the same conditions
34515   --file=FILE[:TEMPLATE]
34516                    instantiate the configuration file FILE
34517   --header=FILE[:TEMPLATE]
34518                    instantiate the configuration header FILE
34519
34520 Configuration files:
34521 $config_files
34522
34523 Configuration headers:
34524 $config_headers
34525
34526 Configuration commands:
34527 $config_commands
34528
34529 Report bugs to <bug-autoconf@gnu.org>."
34530
34531 _ACEOF
34532 cat >>$CONFIG_STATUS <<_ACEOF
34533 ac_cs_version="\\
34534 config.status
34535 configured by $0, generated by GNU Autoconf 2.60,
34536   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34537
34538 Copyright (C) 2006 Free Software Foundation, Inc.
34539 This config.status script is free software; the Free Software Foundation
34540 gives unlimited permission to copy, distribute and modify it."
34541
34542 ac_pwd='$ac_pwd'
34543 srcdir='$srcdir'
34544 INSTALL='$INSTALL'
34545 _ACEOF
34546
34547 cat >>$CONFIG_STATUS <<\_ACEOF
34548 # If no file are specified by the user, then we need to provide default
34549 # value.  By we need to know if files were specified by the user.
34550 ac_need_defaults=:
34551 while test $# != 0
34552 do
34553   case $1 in
34554   --*=*)
34555     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34556     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34557     ac_shift=:
34558     ;;
34559   *)
34560     ac_option=$1
34561     ac_optarg=$2
34562     ac_shift=shift
34563     ;;
34564   esac
34565
34566   case $ac_option in
34567   # Handling of the options.
34568   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34569     ac_cs_recheck=: ;;
34570   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34571     echo "$ac_cs_version"; exit ;;
34572   --debug | --debu | --deb | --de | --d | -d )
34573     debug=: ;;
34574   --file | --fil | --fi | --f )
34575     $ac_shift
34576     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34577     ac_need_defaults=false;;
34578   --header | --heade | --head | --hea )
34579     $ac_shift
34580     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34581     ac_need_defaults=false;;
34582   --he | --h)
34583     # Conflict between --help and --header
34584     { echo "$as_me: error: ambiguous option: $1
34585 Try \`$0 --help' for more information." >&2
34586    { (exit 1); exit 1; }; };;
34587   --help | --hel | -h )
34588     echo "$ac_cs_usage"; exit ;;
34589   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34590   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34591     ac_cs_silent=: ;;
34592
34593   # This is an error.
34594   -*) { echo "$as_me: error: unrecognized option: $1
34595 Try \`$0 --help' for more information." >&2
34596    { (exit 1); exit 1; }; } ;;
34597
34598   *) ac_config_targets="$ac_config_targets $1"
34599      ac_need_defaults=false ;;
34600
34601   esac
34602   shift
34603 done
34604
34605 ac_configure_extra_args=
34606
34607 if $ac_cs_silent; then
34608   exec 6>/dev/null
34609   ac_configure_extra_args="$ac_configure_extra_args --silent"
34610 fi
34611
34612 _ACEOF
34613 cat >>$CONFIG_STATUS <<_ACEOF
34614 if \$ac_cs_recheck; then
34615   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34616   CONFIG_SHELL=$SHELL
34617   export CONFIG_SHELL
34618   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34619 fi
34620
34621 _ACEOF
34622 cat >>$CONFIG_STATUS <<\_ACEOF
34623 exec 5>>config.log
34624 {
34625   echo
34626   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34627 ## Running $as_me. ##
34628 _ASBOX
34629   echo "$ac_log"
34630 } >&5
34631
34632 _ACEOF
34633 cat >>$CONFIG_STATUS <<_ACEOF
34634 #
34635 # INIT-COMMANDS
34636 #
34637 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34638
34639 _ACEOF
34640
34641 cat >>$CONFIG_STATUS <<\_ACEOF
34642
34643 # Handling of arguments.
34644 for ac_config_target in $ac_config_targets
34645 do
34646   case $ac_config_target in
34647     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
34648     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34649     "gnuradio-core/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/Makefile" ;;
34650     "gnuradio-core/gnuradio-core.pc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/gnuradio-core.pc" ;;
34651     "gnuradio-core/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/Doxyfile" ;;
34652     "gnuradio-core/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/Makefile" ;;
34653     "gnuradio-core/doc/other/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/other/Makefile" ;;
34654     "gnuradio-core/doc/xml/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/xml/Makefile" ;;
34655     "gnuradio-core/src/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/Makefile" ;;
34656     "gnuradio-core/src/gen_interpolator_taps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/gen_interpolator_taps/Makefile" ;;
34657     "gnuradio-core/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/Makefile" ;;
34658     "gnuradio-core/src/lib/filter/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/filter/Makefile" ;;
34659     "gnuradio-core/src/lib/g72x/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/g72x/Makefile" ;;
34660     "gnuradio-core/src/lib/general/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/Makefile" ;;
34661     "gnuradio-core/src/lib/general/gr_prefix.cc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/gr_prefix.cc" ;;
34662     "gnuradio-core/src/lib/io/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/io/Makefile" ;;
34663     "gnuradio-core/src/lib/missing/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/missing/Makefile" ;;
34664     "gnuradio-core/src/lib/omnithread/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/omnithread/Makefile" ;;
34665     "gnuradio-core/src/lib/reed-solomon/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/reed-solomon/Makefile" ;;
34666     "gnuradio-core/src/lib/runtime/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/runtime/Makefile" ;;
34667     "gnuradio-core/src/lib/swig/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/swig/Makefile" ;;
34668     "gnuradio-core/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/Makefile" ;;
34669     "gnuradio-core/src/python/bin/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/bin/Makefile" ;;
34670     "gnuradio-core/src/python/gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/Makefile" ;;
34671     "gnuradio-core/src/python/gnuradio/blks/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blks/Makefile" ;;
34672     "gnuradio-core/src/python/gnuradio/blksimpl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blksimpl/Makefile" ;;
34673     "gnuradio-core/src/python/gnuradio/gr/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/Makefile" ;;
34674     "gnuradio-core/src/python/gnuradio/gr/run_tests") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/run_tests" ;;
34675     "gnuradio-core/src/python/gnuradio/gru/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gru/Makefile" ;;
34676     "gnuradio-core/src/python/gnuradio/gruimpl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gruimpl/Makefile" ;;
34677     "gnuradio-core/src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/tests/Makefile" ;;
34678     "gnuradio-core/src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/utils/Makefile" ;;
34679     "run_tests_core") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_core" ;;
34680     "swig_deps") CONFIG_COMMANDS="$CONFIG_COMMANDS swig_deps" ;;
34681     "gnuradio-examples/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/Makefile" ;;
34682     "gnuradio-examples/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/Makefile" ;;
34683     "gnuradio-examples/python/apps/hf_explorer/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_explorer/Makefile" ;;
34684     "gnuradio-examples/python/apps/hf_radio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_radio/Makefile" ;;
34685     "gnuradio-examples/python/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/Makefile" ;;
34686     "gnuradio-examples/python/audio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/audio/Makefile" ;;
34687     "gnuradio-examples/python/channel-coding/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/channel-coding/Makefile" ;;
34688     "gnuradio-examples/python/channel-coding/fsm_files/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/channel-coding/fsm_files/Makefile" ;;
34689     "gnuradio-examples/python/digital/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital/Makefile" ;;
34690     "gnuradio-examples/python/digital_voice/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital_voice/Makefile" ;;
34691     "gnuradio-examples/python/multi-antenna/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi-antenna/Makefile" ;;
34692     "gnuradio-examples/python/multi_usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi_usrp/Makefile" ;;
34693     "gnuradio-examples/python/networking/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/networking/Makefile" ;;
34694     "gnuradio-examples/python/usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/usrp/Makefile" ;;
34695     "usrp/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/Makefile" ;;
34696     "usrp/usrp.pc") CONFIG_FILES="$CONFIG_FILES usrp/usrp.pc" ;;
34697     "usrp/usrp.iss") CONFIG_FILES="$CONFIG_FILES usrp/usrp.iss" ;;
34698     "usrp/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Doxyfile" ;;
34699     "usrp/doc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Makefile" ;;
34700     "usrp/doc/other/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/other/Makefile" ;;
34701     "usrp/host/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/Makefile" ;;
34702     "usrp/host/misc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/misc/Makefile" ;;
34703     "usrp/host/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/Makefile" ;;
34704     "usrp/host/lib/std_paths.h") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/std_paths.h" ;;
34705     "usrp/host/swig/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/swig/Makefile" ;;
34706     "usrp/host/apps/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/apps/Makefile" ;;
34707     "usrp/firmware/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/Makefile" ;;
34708     "usrp/firmware/include/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/include/Makefile" ;;
34709     "usrp/firmware/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/lib/Makefile" ;;
34710     "usrp/firmware/src/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/Makefile" ;;
34711     "usrp/firmware/src/common/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/common/Makefile" ;;
34712     "usrp/firmware/src/usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/usrp2/Makefile" ;;
34713     "usrp/fpga/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/Makefile" ;;
34714     "usrp/fpga/rbf/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/rbf/Makefile" ;;
34715     "gr-usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/Makefile" ;;
34716     "gr-usrp/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/Makefile" ;;
34717     "gr-usrp/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/run_tests" ;;
34718     "run_tests_usrp") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_usrp" ;;
34719     "gr-audio-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/Makefile" ;;
34720     "gr-audio-alsa/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/Makefile" ;;
34721     "gr-audio-alsa/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/run_tests" ;;
34722     "run_tests_alsa") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_alsa" ;;
34723     "gr-audio-jack/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/Makefile" ;;
34724     "gr-audio-jack/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/Makefile" ;;
34725     "gr-audio-jack/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/run_tests" ;;
34726     "run_tests_jack") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_jack" ;;
34727     "gr-audio-oss/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/Makefile" ;;
34728     "gr-audio-oss/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/Makefile" ;;
34729     "gr-audio-oss/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/run_tests" ;;
34730     "run_tests_oss") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_oss" ;;
34731     "gr-audio-osx/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/Makefile" ;;
34732     "gr-audio-osx/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/Makefile" ;;
34733     "gr-audio-osx/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/run_tests" ;;
34734     "run_tests_osx") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_osx" ;;
34735     "gr-audio-portaudio/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/Makefile" ;;
34736     "gr-audio-portaudio/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/Makefile" ;;
34737     "gr-audio-portaudio/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/run_tests" ;;
34738     "run_tests_portaudio") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_portaudio" ;;
34739     "gr-audio-windows/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/Makefile" ;;
34740     "gr-audio-windows/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/Makefile" ;;
34741     "gr-audio-windows/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/run_tests" ;;
34742     "run_tests_audio_windows") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_audio_windows" ;;
34743     "gr-gsm-fr-vocoder/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/Makefile" ;;
34744     "gr-gsm-fr-vocoder/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/Makefile" ;;
34745     "gr-gsm-fr-vocoder/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/Makefile" ;;
34746     "gr-gsm-fr-vocoder/src/lib/gsm/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/gsm/Makefile" ;;
34747     "gr-gsm-fr-vocoder/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/Makefile" ;;
34748     "gr-gsm-fr-vocoder/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/run_tests" ;;
34749     "run_tests_gsm") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gsm" ;;
34750     "gr-radio-astronomy/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/Makefile" ;;
34751     "gr-radio-astronomy/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/Makefile" ;;
34752     "gr-radio-astronomy/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/lib/Makefile" ;;
34753     "gr-radio-astronomy/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/Makefile" ;;
34754     "gr-radio-astronomy/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/run_tests" ;;
34755     "run_tests_astronomy") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_astronomy" ;;
34756     "gr-trellis/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/Makefile" ;;
34757     "gr-trellis/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/doc/Makefile" ;;
34758     "gr-trellis/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/Makefile" ;;
34759     "gr-trellis/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/lib/Makefile" ;;
34760     "gr-trellis/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/Makefile" ;;
34761     "gr-trellis/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/run_tests" ;;
34762     "run_tests_gr_trellis") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gr_trellis" ;;
34763     "gr-video-sdl/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/Makefile" ;;
34764     "gr-video-sdl/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/Makefile" ;;
34765     "gr-video-sdl/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/run_tests" ;;
34766     "run_tests_sdl") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_sdl" ;;
34767     "gr-wxgui/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/Makefile" ;;
34768     "gr-wxgui/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/Makefile" ;;
34769     "gr-wxgui/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/python/Makefile" ;;
34770     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34771     "run_tests.sh") CONFIG_FILES="$CONFIG_FILES run_tests.sh" ;;
34772     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
34773     "run_tests_build") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_build" ;;
34774
34775   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34776 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34777    { (exit 1); exit 1; }; };;
34778   esac
34779 done
34780
34781
34782 # If the user did not use the arguments to specify the items to instantiate,
34783 # then the envvar interface is used.  Set only those that are not.
34784 # We use the long form for the default assignment because of an extremely
34785 # bizarre bug on SunOS 4.1.3.
34786 if $ac_need_defaults; then
34787   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34788   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34789   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34790 fi
34791
34792 # Have a temporary directory for convenience.  Make it in the build tree
34793 # simply because there is no reason against having it here, and in addition,
34794 # creating and moving files from /tmp can sometimes cause problems.
34795 # Hook for its removal unless debugging.
34796 # Note that there is a small window in which the directory will not be cleaned:
34797 # after its creation but before its name has been assigned to `$tmp'.
34798 $debug ||
34799 {
34800   tmp=
34801   trap 'exit_status=$?
34802   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34803 ' 0
34804   trap '{ (exit 1); exit 1; }' 1 2 13 15
34805 }
34806 # Create a (secure) tmp directory for tmp files.
34807
34808 {
34809   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34810   test -n "$tmp" && test -d "$tmp"
34811 }  ||
34812 {
34813   tmp=./conf$$-$RANDOM
34814   (umask 077 && mkdir "$tmp")
34815 } ||
34816 {
34817    echo "$me: cannot create a temporary directory in ." >&2
34818    { (exit 1); exit 1; }
34819 }
34820
34821 #
34822 # Set up the sed scripts for CONFIG_FILES section.
34823 #
34824
34825 # No need to generate the scripts if there are no CONFIG_FILES.
34826 # This happens for instance when ./config.status config.h
34827 if test -n "$CONFIG_FILES"; then
34828
34829 _ACEOF
34830
34831
34832
34833 ac_delim='%!_!# '
34834 for ac_last_try in false false false false false :; do
34835   cat >conf$$subs.sed <<_ACEOF
34836 SHELL!$SHELL$ac_delim
34837 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34838 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34839 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34840 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34841 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34842 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34843 exec_prefix!$exec_prefix$ac_delim
34844 prefix!$prefix$ac_delim
34845 program_transform_name!$program_transform_name$ac_delim
34846 bindir!$bindir$ac_delim
34847 sbindir!$sbindir$ac_delim
34848 libexecdir!$libexecdir$ac_delim
34849 datarootdir!$datarootdir$ac_delim
34850 datadir!$datadir$ac_delim
34851 sysconfdir!$sysconfdir$ac_delim
34852 sharedstatedir!$sharedstatedir$ac_delim
34853 localstatedir!$localstatedir$ac_delim
34854 includedir!$includedir$ac_delim
34855 oldincludedir!$oldincludedir$ac_delim
34856 docdir!$docdir$ac_delim
34857 infodir!$infodir$ac_delim
34858 htmldir!$htmldir$ac_delim
34859 dvidir!$dvidir$ac_delim
34860 pdfdir!$pdfdir$ac_delim
34861 psdir!$psdir$ac_delim
34862 libdir!$libdir$ac_delim
34863 localedir!$localedir$ac_delim
34864 mandir!$mandir$ac_delim
34865 DEFS!$DEFS$ac_delim
34866 ECHO_C!$ECHO_C$ac_delim
34867 ECHO_N!$ECHO_N$ac_delim
34868 ECHO_T!$ECHO_T$ac_delim
34869 LIBS!$LIBS$ac_delim
34870 build_alias!$build_alias$ac_delim
34871 host_alias!$host_alias$ac_delim
34872 target_alias!$target_alias$ac_delim
34873 build!$build$ac_delim
34874 build_cpu!$build_cpu$ac_delim
34875 build_vendor!$build_vendor$ac_delim
34876 build_os!$build_os$ac_delim
34877 host!$host$ac_delim
34878 host_cpu!$host_cpu$ac_delim
34879 host_vendor!$host_vendor$ac_delim
34880 host_os!$host_os$ac_delim
34881 target!$target$ac_delim
34882 target_cpu!$target_cpu$ac_delim
34883 target_vendor!$target_vendor$ac_delim
34884 target_os!$target_os$ac_delim
34885 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34886 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34887 INSTALL_DATA!$INSTALL_DATA$ac_delim
34888 CYGPATH_W!$CYGPATH_W$ac_delim
34889 PACKAGE!$PACKAGE$ac_delim
34890 VERSION!$VERSION$ac_delim
34891 ACLOCAL!$ACLOCAL$ac_delim
34892 AUTOCONF!$AUTOCONF$ac_delim
34893 AUTOMAKE!$AUTOMAKE$ac_delim
34894 AUTOHEADER!$AUTOHEADER$ac_delim
34895 MAKEINFO!$MAKEINFO$ac_delim
34896 install_sh!$install_sh$ac_delim
34897 STRIP!$STRIP$ac_delim
34898 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
34899 mkdir_p!$mkdir_p$ac_delim
34900 AWK!$AWK$ac_delim
34901 SET_MAKE!$SET_MAKE$ac_delim
34902 am__leading_dot!$am__leading_dot$ac_delim
34903 AMTAR!$AMTAR$ac_delim
34904 am__tar!$am__tar$ac_delim
34905 am__untar!$am__untar$ac_delim
34906 CC!$CC$ac_delim
34907 CFLAGS!$CFLAGS$ac_delim
34908 LDFLAGS!$LDFLAGS$ac_delim
34909 CPPFLAGS!$CPPFLAGS$ac_delim
34910 ac_ct_CC!$ac_ct_CC$ac_delim
34911 EXEEXT!$EXEEXT$ac_delim
34912 OBJEXT!$OBJEXT$ac_delim
34913 DEPDIR!$DEPDIR$ac_delim
34914 am__include!$am__include$ac_delim
34915 am__quote!$am__quote$ac_delim
34916 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
34917 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
34918 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
34919 CCDEPMODE!$CCDEPMODE$ac_delim
34920 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
34921 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
34922 CPP!$CPP$ac_delim
34923 GREP!$GREP$ac_delim
34924 EGREP!$EGREP$ac_delim
34925 CXX!$CXX$ac_delim
34926 CXXFLAGS!$CXXFLAGS$ac_delim
34927 ac_ct_CXX!$ac_ct_CXX$ac_delim
34928 CXXDEPMODE!$CXXDEPMODE$ac_delim
34929 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
34930 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
34931 CXXCPP!$CXXCPP$ac_delim
34932 CCAS!$CCAS$ac_delim
34933 _ACEOF
34934
34935   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34936     break
34937   elif $ac_last_try; then
34938     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34939 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34940    { (exit 1); exit 1; }; }
34941   else
34942     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34943   fi
34944 done
34945
34946 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34947 if test -n "$ac_eof"; then
34948   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34949   ac_eof=`expr $ac_eof + 1`
34950 fi
34951
34952 cat >>$CONFIG_STATUS <<_ACEOF
34953 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34955 _ACEOF
34956 sed '
34957 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34958 s/^/s,@/; s/!/@,|#_!!_#|/
34959 :n
34960 t n
34961 s/'"$ac_delim"'$/,g/; t
34962 s/$/\\/; p
34963 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34964 ' >>$CONFIG_STATUS <conf$$subs.sed
34965 rm -f conf$$subs.sed
34966 cat >>$CONFIG_STATUS <<_ACEOF
34967 CEOF$ac_eof
34968 _ACEOF
34969
34970
34971 ac_delim='%!_!# '
34972 for ac_last_try in false false false false false :; do
34973   cat >conf$$subs.sed <<_ACEOF
34974 CCASFLAGS!$CCASFLAGS$ac_delim
34975 LN_S!$LN_S$ac_delim
34976 RM_PROG!$RM_PROG$ac_delim
34977 ECHO!$ECHO$ac_delim
34978 AR!$AR$ac_delim
34979 RANLIB!$RANLIB$ac_delim
34980 DLLTOOL!$DLLTOOL$ac_delim
34981 AS!$AS$ac_delim
34982 OBJDUMP!$OBJDUMP$ac_delim
34983 F77!$F77$ac_delim
34984 FFLAGS!$FFLAGS$ac_delim
34985 ac_ct_F77!$ac_ct_F77$ac_delim
34986 LIBTOOL!$LIBTOOL$ac_delim
34987 ENABLE_FORTRAN_TRUE!$ENABLE_FORTRAN_TRUE$ac_delim
34988 ENABLE_FORTRAN_FALSE!$ENABLE_FORTRAN_FALSE$ac_delim
34989 FLIBS!$FLIBS$ac_delim
34990 NO_UNDEFINED!$NO_UNDEFINED$ac_delim
34991 SWIG!$SWIG$ac_delim
34992 PYTHON!$PYTHON$ac_delim
34993 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
34994 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
34995 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
34996 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
34997 pythondir!$pythondir$ac_delim
34998 pkgpythondir!$pkgpythondir$ac_delim
34999 pyexecdir!$pyexecdir$ac_delim
35000 pkgpyexecdir!$pkgpyexecdir$ac_delim
35001 PYTHON_CPPFLAGS!$PYTHON_CPPFLAGS$ac_delim
35002 PYTHON_LDFLAGS!$PYTHON_LDFLAGS$ac_delim
35003 SWIG_PYTHON_LIB!$SWIG_PYTHON_LIB$ac_delim
35004 SWIG_PYTHON_OPT!$SWIG_PYTHON_OPT$ac_delim
35005 SWIG_PYTHON_CPPFLAGS!$SWIG_PYTHON_CPPFLAGS$ac_delim
35006 XMLTO!$XMLTO$ac_delim
35007 HAS_XMLTO_TRUE!$HAS_XMLTO_TRUE$ac_delim
35008 HAS_XMLTO_FALSE!$HAS_XMLTO_FALSE$ac_delim
35009 PTHREAD_CC!$PTHREAD_CC$ac_delim
35010 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
35011 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
35012 OMNITHREAD_POSIX_TRUE!$OMNITHREAD_POSIX_TRUE$ac_delim
35013 OMNITHREAD_POSIX_FALSE!$OMNITHREAD_POSIX_FALSE$ac_delim
35014 OMNITHREAD_NT_TRUE!$OMNITHREAD_NT_TRUE$ac_delim
35015 OMNITHREAD_NT_FALSE!$OMNITHREAD_NT_FALSE$ac_delim
35016 CXX_FOR_BUILD!$CXX_FOR_BUILD$ac_delim
35017 IPC_LIBS!$IPC_LIBS$ac_delim
35018 ALLOCA!$ALLOCA$ac_delim
35019 SHM_OPEN_LIBS!$SHM_OPEN_LIBS$ac_delim
35020 LIBGNURADIO_CORE_EXTRA_LDFLAGS!$LIBGNURADIO_CORE_EXTRA_LDFLAGS$ac_delim
35021 HAVE_CREATEFILEMAPPING_TRUE!$HAVE_CREATEFILEMAPPING_TRUE$ac_delim
35022 HAVE_CREATEFILEMAPPING_FALSE!$HAVE_CREATEFILEMAPPING_FALSE$ac_delim
35023 LIBOBJS!$LIBOBJS$ac_delim
35024 HAVE_DOT!$HAVE_DOT$ac_delim
35025 PKG_CONFIG!$PKG_CONFIG$ac_delim
35026 FFTW3F_CFLAGS!$FFTW3F_CFLAGS$ac_delim
35027 FFTW3F_LIBS!$FFTW3F_LIBS$ac_delim
35028 FFTW3F_INCLUDEDIR!$FFTW3F_INCLUDEDIR$ac_delim
35029 DOXYGEN!$DOXYGEN$ac_delim
35030 DOT!$DOT$ac_delim
35031 DOC_TRUE!$DOC_TRUE$ac_delim
35032 DOC_FALSE!$DOC_FALSE$ac_delim
35033 enable_dot!$enable_dot$ac_delim
35034 enable_html_docs!$enable_html_docs$ac_delim
35035 enable_latex_docs!$enable_latex_docs$ac_delim
35036 generate_docs!$generate_docs$ac_delim
35037 MD_CPU!$MD_CPU$ac_delim
35038 MD_SUBCPU!$MD_SUBCPU$ac_delim
35039 MD_CPU_x86_TRUE!$MD_CPU_x86_TRUE$ac_delim
35040 MD_CPU_x86_FALSE!$MD_CPU_x86_FALSE$ac_delim
35041 MD_SUBCPU_x86_64_TRUE!$MD_SUBCPU_x86_64_TRUE$ac_delim
35042 MD_SUBCPU_x86_64_FALSE!$MD_SUBCPU_x86_64_FALSE$ac_delim
35043 MD_CPU_generic_TRUE!$MD_CPU_generic_TRUE$ac_delim
35044 MD_CPU_generic_FALSE!$MD_CPU_generic_FALSE$ac_delim
35045 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
35046 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
35047 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
35048 CPPUNIT_INCLUDES!$CPPUNIT_INCLUDES$ac_delim
35049 BOOST_CFLAGS!$BOOST_CFLAGS$ac_delim
35050 DEFINES!$DEFINES$ac_delim
35051 USB_LIBS!$USB_LIBS$ac_delim
35052 FUSB_TECH!$FUSB_TECH$ac_delim
35053 FUSB_TECH_darwin_TRUE!$FUSB_TECH_darwin_TRUE$ac_delim
35054 FUSB_TECH_darwin_FALSE!$FUSB_TECH_darwin_FALSE$ac_delim
35055 FUSB_TECH_win32_TRUE!$FUSB_TECH_win32_TRUE$ac_delim
35056 FUSB_TECH_win32_FALSE!$FUSB_TECH_win32_FALSE$ac_delim
35057 FUSB_TECH_generic_TRUE!$FUSB_TECH_generic_TRUE$ac_delim
35058 FUSB_TECH_generic_FALSE!$FUSB_TECH_generic_FALSE$ac_delim
35059 FUSB_TECH_linux_TRUE!$FUSB_TECH_linux_TRUE$ac_delim
35060 FUSB_TECH_linux_FALSE!$FUSB_TECH_linux_FALSE$ac_delim
35061 FUSB_TECH_ra_wb_TRUE!$FUSB_TECH_ra_wb_TRUE$ac_delim
35062 FUSB_TECH_ra_wb_FALSE!$FUSB_TECH_ra_wb_FALSE$ac_delim
35063 XCC!$XCC$ac_delim
35064 XAS!$XAS$ac_delim
35065 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
35066 ALSA_LIBS!$ALSA_LIBS$ac_delim
35067 ALSA_INCLUDEDIR!$ALSA_INCLUDEDIR$ac_delim
35068 JACK_CFLAGS!$JACK_CFLAGS$ac_delim
35069 JACK_LIBS!$JACK_LIBS$ac_delim
35070 JACK_INCLUDEDIR!$JACK_INCLUDEDIR$ac_delim
35071 _ACEOF
35072
35073   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35074     break
35075   elif $ac_last_try; then
35076     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35077 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35078    { (exit 1); exit 1; }; }
35079   else
35080     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35081   fi
35082 done
35083
35084 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35085 if test -n "$ac_eof"; then
35086   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35087   ac_eof=`expr $ac_eof + 1`
35088 fi
35089
35090 cat >>$CONFIG_STATUS <<_ACEOF
35091 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35093 _ACEOF
35094 sed '
35095 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35096 s/^/s,@/; s/!/@,|#_!!_#|/
35097 :n
35098 t n
35099 s/'"$ac_delim"'$/,g/; t
35100 s/$/\\/; p
35101 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35102 ' >>$CONFIG_STATUS <conf$$subs.sed
35103 rm -f conf$$subs.sed
35104 cat >>$CONFIG_STATUS <<_ACEOF
35105 CEOF$ac_eof
35106 _ACEOF
35107
35108
35109 ac_delim='%!_!# '
35110 for ac_last_try in false false false false false :; do
35111   cat >conf$$subs.sed <<_ACEOF
35112 OSS_LIBS!$OSS_LIBS$ac_delim
35113 PORTAUDIO_CFLAGS!$PORTAUDIO_CFLAGS$ac_delim
35114 PORTAUDIO_LIBS!$PORTAUDIO_LIBS$ac_delim
35115 PORTAUDIO_INCLUDEDIR!$PORTAUDIO_INCLUDEDIR$ac_delim
35116 WINAUDIO_LIBS!$WINAUDIO_LIBS$ac_delim
35117 SDL_CONFIG!$SDL_CONFIG$ac_delim
35118 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
35119 SDL_LIBS!$SDL_LIBS$ac_delim
35120 build_dirs!$build_dirs$ac_delim
35121 skipped_dirs!$skipped_dirs$ac_delim
35122 LTLIBOBJS!$LTLIBOBJS$ac_delim
35123 _ACEOF
35124
35125   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
35126     break
35127   elif $ac_last_try; then
35128     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35129 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35130    { (exit 1); exit 1; }; }
35131   else
35132     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35133   fi
35134 done
35135
35136 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35137 if test -n "$ac_eof"; then
35138   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35139   ac_eof=`expr $ac_eof + 1`
35140 fi
35141
35142 cat >>$CONFIG_STATUS <<_ACEOF
35143 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35144 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35145 _ACEOF
35146 sed '
35147 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35148 s/^/s,@/; s/!/@,|#_!!_#|/
35149 :n
35150 t n
35151 s/'"$ac_delim"'$/,g/; t
35152 s/$/\\/; p
35153 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35154 ' >>$CONFIG_STATUS <conf$$subs.sed
35155 rm -f conf$$subs.sed
35156 cat >>$CONFIG_STATUS <<_ACEOF
35157 :end
35158 s/|#_!!_#|//g
35159 CEOF$ac_eof
35160 _ACEOF
35161
35162
35163 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35164 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35165 # trailing colons and then remove the whole line if VPATH becomes empty
35166 # (actually we leave an empty line to preserve line numbers).
35167 if test "x$srcdir" = x.; then
35168   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35169 s/:*\$(srcdir):*/:/
35170 s/:*\${srcdir}:*/:/
35171 s/:*@srcdir@:*/:/
35172 s/^\([^=]*=[     ]*\):*/\1/
35173 s/:*$//
35174 s/^[^=]*=[       ]*$//
35175 }'
35176 fi
35177
35178 cat >>$CONFIG_STATUS <<\_ACEOF
35179 fi # test -n "$CONFIG_FILES"
35180
35181
35182 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35183 do
35184   case $ac_tag in
35185   :[FHLC]) ac_mode=$ac_tag; continue;;
35186   esac
35187   case $ac_mode$ac_tag in
35188   :[FHL]*:*);;
35189   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35190 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35191    { (exit 1); exit 1; }; };;
35192   :[FH]-) ac_tag=-:-;;
35193   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35194   esac
35195   ac_save_IFS=$IFS
35196   IFS=:
35197   set x $ac_tag
35198   IFS=$ac_save_IFS
35199   shift
35200   ac_file=$1
35201   shift
35202
35203   case $ac_mode in
35204   :L) ac_source=$1;;
35205   :[FH])
35206     ac_file_inputs=
35207     for ac_f
35208     do
35209       case $ac_f in
35210       -) ac_f="$tmp/stdin";;
35211       *) # Look for the file first in the build tree, then in the source tree
35212          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35213          # because $ac_f cannot contain `:'.
35214          test -f "$ac_f" ||
35215            case $ac_f in
35216            [\\/$]*) false;;
35217            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35218            esac ||
35219            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35220 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35221    { (exit 1); exit 1; }; };;
35222       esac
35223       ac_file_inputs="$ac_file_inputs $ac_f"
35224     done
35225
35226     # Let's still pretend it is `configure' which instantiates (i.e., don't
35227     # use $as_me), people would be surprised to read:
35228     #    /* config.h.  Generated by config.status.  */
35229     configure_input="Generated from "`IFS=:
35230           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35231     if test x"$ac_file" != x-; then
35232       configure_input="$ac_file.  $configure_input"
35233       { echo "$as_me:$LINENO: creating $ac_file" >&5
35234 echo "$as_me: creating $ac_file" >&6;}
35235     fi
35236
35237     case $ac_tag in
35238     *:-:* | *:-) cat >"$tmp/stdin";;
35239     esac
35240     ;;
35241   esac
35242
35243   ac_dir=`$as_dirname -- "$ac_file" ||
35244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35245          X"$ac_file" : 'X\(//\)[^/]' \| \
35246          X"$ac_file" : 'X\(//\)$' \| \
35247          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35248 echo X"$ac_file" |
35249     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35250             s//\1/
35251             q
35252           }
35253           /^X\(\/\/\)[^/].*/{
35254             s//\1/
35255             q
35256           }
35257           /^X\(\/\/\)$/{
35258             s//\1/
35259             q
35260           }
35261           /^X\(\/\).*/{
35262             s//\1/
35263             q
35264           }
35265           s/.*/./; q'`
35266   { as_dir="$ac_dir"
35267   case $as_dir in #(
35268   -*) as_dir=./$as_dir;;
35269   esac
35270   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35271     as_dirs=
35272     while :; do
35273       case $as_dir in #(
35274       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35275       *) as_qdir=$as_dir;;
35276       esac
35277       as_dirs="'$as_qdir' $as_dirs"
35278       as_dir=`$as_dirname -- "$as_dir" ||
35279 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35280          X"$as_dir" : 'X\(//\)[^/]' \| \
35281          X"$as_dir" : 'X\(//\)$' \| \
35282          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35283 echo X"$as_dir" |
35284     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35285             s//\1/
35286             q
35287           }
35288           /^X\(\/\/\)[^/].*/{
35289             s//\1/
35290             q
35291           }
35292           /^X\(\/\/\)$/{
35293             s//\1/
35294             q
35295           }
35296           /^X\(\/\).*/{
35297             s//\1/
35298             q
35299           }
35300           s/.*/./; q'`
35301       test -d "$as_dir" && break
35302     done
35303     test -z "$as_dirs" || eval "mkdir $as_dirs"
35304   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35305 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35306    { (exit 1); exit 1; }; }; }
35307   ac_builddir=.
35308
35309 case "$ac_dir" in
35310 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35311 *)
35312   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35313   # A ".." for each directory in $ac_dir_suffix.
35314   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35315   case $ac_top_builddir_sub in
35316   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35317   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35318   esac ;;
35319 esac
35320 ac_abs_top_builddir=$ac_pwd
35321 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35322 # for backward compatibility:
35323 ac_top_builddir=$ac_top_build_prefix
35324
35325 case $srcdir in
35326   .)  # We are building in place.
35327     ac_srcdir=.
35328     ac_top_srcdir=$ac_top_builddir_sub
35329     ac_abs_top_srcdir=$ac_pwd ;;
35330   [\\/]* | ?:[\\/]* )  # Absolute name.
35331     ac_srcdir=$srcdir$ac_dir_suffix;
35332     ac_top_srcdir=$srcdir
35333     ac_abs_top_srcdir=$srcdir ;;
35334   *) # Relative name.
35335     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35336     ac_top_srcdir=$ac_top_build_prefix$srcdir
35337     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35338 esac
35339 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35340
35341
35342   case $ac_mode in
35343   :F)
35344   #
35345   # CONFIG_FILE
35346   #
35347
35348   case $INSTALL in
35349   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35350   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35351   esac
35352 _ACEOF
35353
35354 cat >>$CONFIG_STATUS <<\_ACEOF
35355 # If the template does not know about datarootdir, expand it.
35356 # FIXME: This hack should be removed a few years after 2.60.
35357 ac_datarootdir_hack=; ac_datarootdir_seen=
35358
35359 case `sed -n '/datarootdir/ {
35360   p
35361   q
35362 }
35363 /@datadir@/p
35364 /@docdir@/p
35365 /@infodir@/p
35366 /@localedir@/p
35367 /@mandir@/p
35368 ' $ac_file_inputs` in
35369 *datarootdir*) ac_datarootdir_seen=yes;;
35370 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35371   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35372 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35373 _ACEOF
35374 cat >>$CONFIG_STATUS <<_ACEOF
35375   ac_datarootdir_hack='
35376   s&@datadir@&$datadir&g
35377   s&@docdir@&$docdir&g
35378   s&@infodir@&$infodir&g
35379   s&@localedir@&$localedir&g
35380   s&@mandir@&$mandir&g
35381     s&\\\${datarootdir}&$datarootdir&g' ;;
35382 esac
35383 _ACEOF
35384
35385 # Neutralize VPATH when `$srcdir' = `.'.
35386 # Shell code in configure.ac might set extrasub.
35387 # FIXME: do we really want to maintain this feature?
35388 cat >>$CONFIG_STATUS <<_ACEOF
35389   sed "$ac_vpsub
35390 $extrasub
35391 _ACEOF
35392 cat >>$CONFIG_STATUS <<\_ACEOF
35393 :t
35394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35395 s&@configure_input@&$configure_input&;t t
35396 s&@top_builddir@&$ac_top_builddir_sub&;t t
35397 s&@srcdir@&$ac_srcdir&;t t
35398 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35399 s&@top_srcdir@&$ac_top_srcdir&;t t
35400 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35401 s&@builddir@&$ac_builddir&;t t
35402 s&@abs_builddir@&$ac_abs_builddir&;t t
35403 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35404 s&@INSTALL@&$ac_INSTALL&;t t
35405 $ac_datarootdir_hack
35406 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35407
35408 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35409   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35410   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35411   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35412 which seems to be undefined.  Please make sure it is defined." >&5
35413 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35414 which seems to be undefined.  Please make sure it is defined." >&2;}
35415
35416   rm -f "$tmp/stdin"
35417   case $ac_file in
35418   -) cat "$tmp/out"; rm -f "$tmp/out";;
35419   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35420   esac
35421  ;;
35422   :H)
35423   #
35424   # CONFIG_HEADER
35425   #
35426 _ACEOF
35427
35428 # Transform confdefs.h into a sed script `conftest.defines', that
35429 # substitutes the proper values into config.h.in to produce config.h.
35430 rm -f conftest.defines conftest.tail
35431 # First, append a space to every undef/define line, to ease matching.
35432 echo 's/$/ /' >conftest.defines
35433 # Then, protect against being on the right side of a sed subst, or in
35434 # an unquoted here document, in config.status.  If some macros were
35435 # called several times there might be several #defines for the same
35436 # symbol, which is useless.  But do not sort them, since the last
35437 # AC_DEFINE must be honored.
35438 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35439 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35440 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35441 # PARAMS is the parameter list in the macro definition--in most cases, it's
35442 # just an empty string.
35443 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35444 ac_dB='\\)[      (].*,\\1define\\2'
35445 ac_dC=' '
35446 ac_dD=' ,'
35447
35448 uniq confdefs.h |
35449   sed -n '
35450         t rset
35451         :rset
35452         s/^[     ]*#[    ]*define[       ][      ]*//
35453         t ok
35454         d
35455         :ok
35456         s/[\\&,]/\\&/g
35457         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35458         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35459   ' >>conftest.defines
35460
35461 # Remove the space that was appended to ease matching.
35462 # Then replace #undef with comments.  This is necessary, for
35463 # example, in the case of _POSIX_SOURCE, which is predefined and required
35464 # on some systems where configure will not decide to define it.
35465 # (The regexp can be short, since the line contains either #define or #undef.)
35466 echo 's/ $//
35467 s,^[     #]*u.*,/* & */,' >>conftest.defines
35468
35469 # Break up conftest.defines:
35470 ac_max_sed_lines=50
35471
35472 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35473 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35474 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35475 # et cetera.
35476 ac_in='$ac_file_inputs'
35477 ac_out='"$tmp/out1"'
35478 ac_nxt='"$tmp/out2"'
35479
35480 while :
35481 do
35482   # Write a here document:
35483     cat >>$CONFIG_STATUS <<_ACEOF
35484     # First, check the format of the line:
35485     cat >"\$tmp/defines.sed" <<\\CEOF
35486 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35487 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35488 b
35489 :def
35490 _ACEOF
35491   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35492   echo 'CEOF
35493     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35494   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35495   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35496   grep . conftest.tail >/dev/null || break
35497   rm -f conftest.defines
35498   mv conftest.tail conftest.defines
35499 done
35500 rm -f conftest.defines conftest.tail
35501
35502 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35503 cat >>$CONFIG_STATUS <<\_ACEOF
35504   if test x"$ac_file" != x-; then
35505     echo "/* $configure_input  */" >"$tmp/config.h"
35506     cat "$ac_result" >>"$tmp/config.h"
35507     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35508       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35509 echo "$as_me: $ac_file is unchanged" >&6;}
35510     else
35511       rm -f $ac_file
35512       mv "$tmp/config.h" $ac_file
35513     fi
35514   else
35515     echo "/* $configure_input  */"
35516     cat "$ac_result"
35517   fi
35518   rm -f "$tmp/out12"
35519 # Compute $ac_file's index in $config_headers.
35520 _am_stamp_count=1
35521 for _am_header in $config_headers :; do
35522   case $_am_header in
35523     $ac_file | $ac_file:* )
35524       break ;;
35525     * )
35526       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35527   esac
35528 done
35529 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
35530 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35531          X$ac_file : 'X\(//\)[^/]' \| \
35532          X$ac_file : 'X\(//\)$' \| \
35533          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
35534 echo X$ac_file |
35535     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35536             s//\1/
35537             q
35538           }
35539           /^X\(\/\/\)[^/].*/{
35540             s//\1/
35541             q
35542           }
35543           /^X\(\/\/\)$/{
35544             s//\1/
35545             q
35546           }
35547           /^X\(\/\).*/{
35548             s//\1/
35549             q
35550           }
35551           s/.*/./; q'`/stamp-h$_am_stamp_count
35552  ;;
35553
35554   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35555 echo "$as_me: executing $ac_file commands" >&6;}
35556  ;;
35557   esac
35558
35559
35560   case $ac_file$ac_mode in
35561     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
35562   # Strip MF so we end up with the name of the file.
35563   mf=`echo "$mf" | sed -e 's/:.*$//'`
35564   # Check whether this is an Automake generated Makefile or not.
35565   # We used to match only the files named `Makefile.in', but
35566   # some people rename them; so instead we look at the file content.
35567   # Grep'ing the first line is not enough: some people post-process
35568   # each Makefile.in and add a new line on top of each file to say so.
35569   # So let's grep whole file.
35570   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
35571     dirpart=`$as_dirname -- "$mf" ||
35572 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35573          X"$mf" : 'X\(//\)[^/]' \| \
35574          X"$mf" : 'X\(//\)$' \| \
35575          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35576 echo X"$mf" |
35577     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35578             s//\1/
35579             q
35580           }
35581           /^X\(\/\/\)[^/].*/{
35582             s//\1/
35583             q
35584           }
35585           /^X\(\/\/\)$/{
35586             s//\1/
35587             q
35588           }
35589           /^X\(\/\).*/{
35590             s//\1/
35591             q
35592           }
35593           s/.*/./; q'`
35594   else
35595     continue
35596   fi
35597   # Extract the definition of DEPDIR, am__include, and am__quote
35598   # from the Makefile without running `make'.
35599   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35600   test -z "$DEPDIR" && continue
35601   am__include=`sed -n 's/^am__include = //p' < "$mf"`
35602   test -z "am__include" && continue
35603   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35604   # When using ansi2knr, U may be empty or an underscore; expand it
35605   U=`sed -n 's/^U = //p' < "$mf"`
35606   # Find all dependency output files, they are included files with
35607   # $(DEPDIR) in their names.  We invoke sed twice because it is the
35608   # simplest approach to changing $(DEPDIR) to its actual value in the
35609   # expansion.
35610   for file in `sed -n "
35611     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35612        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35613     # Make sure the directory exists.
35614     test -f "$dirpart/$file" && continue
35615     fdir=`$as_dirname -- "$file" ||
35616 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35617          X"$file" : 'X\(//\)[^/]' \| \
35618          X"$file" : 'X\(//\)$' \| \
35619          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35620 echo X"$file" |
35621     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35622             s//\1/
35623             q
35624           }
35625           /^X\(\/\/\)[^/].*/{
35626             s//\1/
35627             q
35628           }
35629           /^X\(\/\/\)$/{
35630             s//\1/
35631             q
35632           }
35633           /^X\(\/\).*/{
35634             s//\1/
35635             q
35636           }
35637           s/.*/./; q'`
35638     { as_dir=$dirpart/$fdir
35639   case $as_dir in #(
35640   -*) as_dir=./$as_dir;;
35641   esac
35642   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35643     as_dirs=
35644     while :; do
35645       case $as_dir in #(
35646       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35647       *) as_qdir=$as_dir;;
35648       esac
35649       as_dirs="'$as_qdir' $as_dirs"
35650       as_dir=`$as_dirname -- "$as_dir" ||
35651 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35652          X"$as_dir" : 'X\(//\)[^/]' \| \
35653          X"$as_dir" : 'X\(//\)$' \| \
35654          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35655 echo X"$as_dir" |
35656     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35657             s//\1/
35658             q
35659           }
35660           /^X\(\/\/\)[^/].*/{
35661             s//\1/
35662             q
35663           }
35664           /^X\(\/\/\)$/{
35665             s//\1/
35666             q
35667           }
35668           /^X\(\/\).*/{
35669             s//\1/
35670             q
35671           }
35672           s/.*/./; q'`
35673       test -d "$as_dir" && break
35674     done
35675     test -z "$as_dirs" || eval "mkdir $as_dirs"
35676   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35677 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35678    { (exit 1); exit 1; }; }; }
35679     # echo "creating $dirpart/$file"
35680     echo '# dummy' > "$dirpart/$file"
35681   done
35682 done
35683  ;;
35684     "run_tests_core":C) chmod +x gnuradio-core/src/python/gnuradio/gr/run_tests ;;
35685     "swig_deps":C) touch gnuradio-core/src/lib/swig/gnuradio_swig_python.d ;;
35686     "run_tests_usrp":C) chmod +x gr-usrp/src/run_tests ;;
35687     "run_tests_alsa":C) chmod +x gr-audio-alsa/src/run_tests ;;
35688     "run_tests_jack":C) chmod +x gr-audio-jack/src/run_tests ;;
35689     "run_tests_oss":C) chmod +x gr-audio-oss/src/run_tests ;;
35690     "run_tests_osx":C) chmod +x gr-audio-osx/src/run_tests ;;
35691     "run_tests_portaudio":C) chmod +x gr-audio-portaudio/src/run_tests ;;
35692     "run_tests_audio_windows":C) chmod +x gr-audio-windows/src/run_tests ;;
35693     "run_tests_gsm":C) chmod +x gr-gsm-fr-vocoder/src/python/run_tests ;;
35694     "run_tests_astronomy":C) chmod +x gr-radio-astronomy/src/python/run_tests ;;
35695     "run_tests_gr_trellis":C) chmod +x gr-trellis/src/python/run_tests ;;
35696     "run_tests_sdl":C) chmod +x gr-video-sdl/src/run_tests ;;
35697     "run_tests_build":C) chmod +x run_tests.sh ;;
35698
35699   esac
35700 done # for ac_tag
35701
35702
35703 { (exit 0); exit 0; }
35704 _ACEOF
35705 chmod +x $CONFIG_STATUS
35706 ac_clean_files=$ac_clean_files_save
35707
35708
35709 # configure is writing to config.log, and then calls config.status.
35710 # config.status does its own redirection, appending to config.log.
35711 # Unfortunately, on DOS this fails, as config.log is still kept open
35712 # by configure, so config.status won't be able to write to it; its
35713 # output is simply discarded.  So we exec the FD to /dev/null,
35714 # effectively closing config.log, so it can be properly (re)opened and
35715 # appended to by config.status.  When coming back to configure, we
35716 # need to make the FD available again.
35717 if test "$no_create" != yes; then
35718   ac_cs_success=:
35719   ac_config_status_args=
35720   test "$silent" = yes &&
35721     ac_config_status_args="$ac_config_status_args --quiet"
35722   exec 5>/dev/null
35723   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35724   exec 5>>config.log
35725   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35726   # would make configure fail if this is the last instruction.
35727   $ac_cs_success || { (exit 1); exit 1; }
35728 fi
35729
35730
35731 echo
35732 echo "*********************************************************************"
35733 echo The following GNU Radio components have been successfully configured:
35734 echo
35735 for dir in $build_dirs
35736 do
35737     echo $dir
35738 done
35739 echo
35740 echo You my now run the 'make' command to build these components.
35741 echo
35742 if test "$skipped_dirs" != ""; then
35743     echo "*********************************************************************"
35744     echo The following components were skipped either because you asked not
35745     echo to build them or they didn\'t pass configuration checks:
35746     echo
35747     for dir in $skipped_dirs
35748     do
35749         echo $dir
35750     done
35751     echo
35752     echo These components will not be built.
35753     echo
35754 fi