Imported Upstream version 3.0.2
[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.2
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 <math.h>
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         # Check for Python include path
22063         { echo "$as_me:$LINENO: checking for Python include path" >&5
22064 echo $ECHO_N "checking for Python include path... $ECHO_C" >&6; }
22065         if test -z "$PYTHON" ; then
22066                 { { echo "$as_me:$LINENO: error: cannot find Python path" >&5
22067 echo "$as_me: error: cannot find Python path" >&2;}
22068    { (exit 1); exit 1; }; }
22069         fi
22070
22071         # ask distutils which include path we should use
22072         python_cmd='
22073 import distutils.sysconfig
22074 import os
22075 path = distutils.sysconfig.get_python_inc(plat_specific=False)
22076 if os.sep == "\\":
22077   path = path.replace("\\", "/")
22078 print path
22079 '
22080         python_path=`$PYTHON -c "$python_cmd"`
22081         { echo "$as_me:$LINENO: result: $python_path" >&5
22082 echo "${ECHO_T}$python_path" >&6; }
22083         if test -z "$python_path" ; then
22084                 { { echo "$as_me:$LINENO: error: cannot find Python include path" >&5
22085 echo "$as_me: error: cannot find Python include path" >&2;}
22086    { (exit 1); exit 1; }; }
22087         fi
22088
22089         PYTHON_CPPFLAGS=-I$python_path
22090
22091
22092         # Check for Python headers usability
22093         python_save_CPPFLAGS=$CPPFLAGS
22094         CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
22095
22096 for ac_header in Python.h
22097 do
22098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22100   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22103   echo $ECHO_N "(cached) $ECHO_C" >&6
22104 fi
22105 ac_res=`eval echo '${'$as_ac_Header'}'`
22106                { echo "$as_me:$LINENO: result: $ac_res" >&5
22107 echo "${ECHO_T}$ac_res" >&6; }
22108 else
22109   # Is the header compilable?
22110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22112 cat >conftest.$ac_ext <<_ACEOF
22113 /* confdefs.h.  */
22114 _ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h.  */
22118 $ac_includes_default
22119 #include <$ac_header>
22120 _ACEOF
22121 rm -f conftest.$ac_objext
22122 if { (ac_try="$ac_compile"
22123 case "(($ac_try" in
22124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125   *) ac_try_echo=$ac_try;;
22126 esac
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128   (eval "$ac_compile") 2>conftest.er1
22129   ac_status=$?
22130   grep -v '^ *+' conftest.er1 >conftest.err
22131   rm -f conftest.er1
22132   cat conftest.err >&5
22133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134   (exit $ac_status); } &&
22135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22136   { (case "(($ac_try" in
22137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22138   *) ac_try_echo=$ac_try;;
22139 esac
22140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22141   (eval "$ac_try") 2>&5
22142   ac_status=$?
22143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144   (exit $ac_status); }; } &&
22145          { ac_try='test -s conftest.$ac_objext'
22146   { (case "(($ac_try" in
22147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22148   *) ac_try_echo=$ac_try;;
22149 esac
22150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22151   (eval "$ac_try") 2>&5
22152   ac_status=$?
22153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154   (exit $ac_status); }; }; then
22155   ac_header_compiler=yes
22156 else
22157   echo "$as_me: failed program was:" >&5
22158 sed 's/^/| /' conftest.$ac_ext >&5
22159
22160         ac_header_compiler=no
22161 fi
22162
22163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22165 echo "${ECHO_T}$ac_header_compiler" >&6; }
22166
22167 # Is the header present?
22168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22170 cat >conftest.$ac_ext <<_ACEOF
22171 /* confdefs.h.  */
22172 _ACEOF
22173 cat confdefs.h >>conftest.$ac_ext
22174 cat >>conftest.$ac_ext <<_ACEOF
22175 /* end confdefs.h.  */
22176 #include <$ac_header>
22177 _ACEOF
22178 if { (ac_try="$ac_cpp conftest.$ac_ext"
22179 case "(($ac_try" in
22180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22181   *) ac_try_echo=$ac_try;;
22182 esac
22183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22184   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22185   ac_status=$?
22186   grep -v '^ *+' conftest.er1 >conftest.err
22187   rm -f conftest.er1
22188   cat conftest.err >&5
22189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190   (exit $ac_status); } >/dev/null; then
22191   if test -s conftest.err; then
22192     ac_cpp_err=$ac_c_preproc_warn_flag
22193     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22194   else
22195     ac_cpp_err=
22196   fi
22197 else
22198   ac_cpp_err=yes
22199 fi
22200 if test -z "$ac_cpp_err"; then
22201   ac_header_preproc=yes
22202 else
22203   echo "$as_me: failed program was:" >&5
22204 sed 's/^/| /' conftest.$ac_ext >&5
22205
22206   ac_header_preproc=no
22207 fi
22208
22209 rm -f conftest.err conftest.$ac_ext
22210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22211 echo "${ECHO_T}$ac_header_preproc" >&6; }
22212
22213 # So?  What about this header?
22214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22215   yes:no: )
22216     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22220     ac_header_preproc=yes
22221     ;;
22222   no:yes:* )
22223     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22225     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22226 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22227     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22229     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22230 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22233     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22235
22236     ;;
22237 esac
22238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22241   echo $ECHO_N "(cached) $ECHO_C" >&6
22242 else
22243   eval "$as_ac_Header=\$ac_header_preproc"
22244 fi
22245 ac_res=`eval echo '${'$as_ac_Header'}'`
22246                { echo "$as_me:$LINENO: result: $ac_res" >&5
22247 echo "${ECHO_T}$ac_res" >&6; }
22248
22249 fi
22250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22251   cat >>confdefs.h <<_ACEOF
22252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22253 _ACEOF
22254
22255 else
22256   { { echo "$as_me:$LINENO: error: cannot find usable Python headers" >&5
22257 echo "$as_me: error: cannot find usable Python headers" >&2;}
22258    { (exit 1); exit 1; }; }
22259 fi
22260
22261 done
22262
22263         CPPFLAGS="$python_save_CPPFLAGS"
22264
22265         # Only set this on mingw and cygwin hosts, (only implemented
22266         # for mingw host, for crosscompiling you need to trick this)
22267
22268         PYTHON_LDFLAGS=""
22269         case $host_os in
22270              *mingw* | *cygwin* )
22271           { echo "$as_me:$LINENO: checking for Python LDFLAGS" >&5
22272 echo $ECHO_N "checking for Python LDFLAGS... $ECHO_C" >&6; }
22273
22274         python_cmd='
22275 import distutils.sysconfig
22276 import os
22277 path = distutils.sysconfig.get_config_var("LIBPL")
22278 if path == None:
22279   path = distutils.sysconfig.PREFIX + "/libs"
22280 if os.sep == "\\":
22281   path = path.replace("\\", "/")
22282 print path
22283 '
22284           python_stdlib_path=`$PYTHON -c "$python_cmd"`
22285
22286           python_version_nodot=`echo $PYTHON_VERSION | sed "s,\.,,"`
22287           libpython_name="python$PYTHON_VERSION"
22288
22289           # Standard install of python for win32 has libpython24.a
22290           # instead of libpython2.4.a so we check for the library
22291           # without the dot in the version number.
22292
22293           python_stdlib_filename=`find $python_stdlib_path -type f -name libpython$python_version_nodot.* -print | sed "1q"`
22294           if test -n "$python_stdlib_filename" ; then
22295                 libpython_name="python$python_version_nodot"
22296           fi
22297
22298           PYTHON_LDFLAGS="-L$python_stdlib_path -l$libpython_name"
22299           { echo "$as_me:$LINENO: result: $PYTHON_LDFLAGS" >&5
22300 echo "${ECHO_T}$PYTHON_LDFLAGS" >&6; }
22301           # Replace all backslashes in PYTHON Paths with forward slashes
22302           { echo "$as_me:$LINENO: checking for pythondir" >&5
22303 echo $ECHO_N "checking for pythondir... $ECHO_C" >&6; }
22304           pythondir=`echo $pythondir |sed 's,\\\\,/,g'`
22305           { echo "$as_me:$LINENO: result: $pythondir" >&5
22306 echo "${ECHO_T}$pythondir" >&6; }
22307
22308           { echo "$as_me:$LINENO: checking for pkgpythondir" >&5
22309 echo $ECHO_N "checking for pkgpythondir... $ECHO_C" >&6; }
22310           pkgpythondir=`echo $pkgpythondir |sed 's,\\\\,/,g'`
22311           { echo "$as_me:$LINENO: result: $pkgpythondir" >&5
22312 echo "${ECHO_T}$pkgpythondir" >&6; }
22313
22314           { echo "$as_me:$LINENO: checking for pyexecdir" >&5
22315 echo $ECHO_N "checking for pyexecdir... $ECHO_C" >&6; }
22316           pyexecdir=`echo $pyexecdir |sed 's,\\\\,/,g'`
22317           { echo "$as_me:$LINENO: result: $pyexecdir" >&5
22318 echo "${ECHO_T}$pyexecdir" >&6; }
22319
22320           { echo "$as_me:$LINENO: checking for pkgpyexecdir" >&5
22321 echo $ECHO_N "checking for pkgpyexecdir... $ECHO_C" >&6; }
22322           pkgpyexecdir=`echo $pkgpyexecdir |sed 's,\\\\,/,g'`
22323           { echo "$as_me:$LINENO: result: $pkgpyexecdir" >&5
22324 echo "${ECHO_T}$pkgpyexecdir" >&6; }
22325
22326           ;;
22327         esac
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338         # Extract the first word of "swig", so it can be a program name with args.
22339 set dummy swig; ac_word=$2
22340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22342 if test "${ac_cv_prog_SWIG+set}" = set; then
22343   echo $ECHO_N "(cached) $ECHO_C" >&6
22344 else
22345   if test -n "$SWIG"; then
22346   ac_cv_prog_SWIG="$SWIG" # Let the user override the test.
22347 else
22348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22349 for as_dir in $PATH
22350 do
22351   IFS=$as_save_IFS
22352   test -z "$as_dir" && as_dir=.
22353   for ac_exec_ext in '' $ac_executable_extensions; do
22354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22355     ac_cv_prog_SWIG="`which swig`"
22356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22357     break 2
22358   fi
22359 done
22360 done
22361 IFS=$as_save_IFS
22362
22363 fi
22364 fi
22365 SWIG=$ac_cv_prog_SWIG
22366 if test -n "$SWIG"; then
22367   { echo "$as_me:$LINENO: result: $SWIG" >&5
22368 echo "${ECHO_T}$SWIG" >&6; }
22369 else
22370   { echo "$as_me:$LINENO: result: no" >&5
22371 echo "${ECHO_T}no" >&6; }
22372 fi
22373
22374
22375         if test -z "$SWIG" ; then
22376                 { { echo "$as_me:$LINENO: error: Cannot find 'swig' program.  SWIG version >= 1.3.23 required" >&5
22377 echo "$as_me: error: Cannot find 'swig' program.  SWIG version >= 1.3.23 required" >&2;}
22378    { (exit 1); exit 1; }; }
22379                 SWIG=false
22380         elif test -n "1.3.23" ; then
22381                 { echo "$as_me:$LINENO: checking for SWIG version" >&5
22382 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
22383                 swig_version=`$SWIG -version 2>&1 | \
22384                         awk '/^SWIG Version [0-9]+\.[0-9]+\.[0-9]+.*$/ { split($3,a,"[^.0-9]"); print a[1] }'`
22385                 { echo "$as_me:$LINENO: result: $swig_version" >&5
22386 echo "${ECHO_T}$swig_version" >&6; }
22387                 if test -n "$swig_version" ; then
22388                         swig_version=`echo $swig_version | \
22389                                 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
22390                         swig_required_version=`echo 1.3.23 | \
22391                                 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
22392                         if test $swig_required_version -gt $swig_version ; then
22393                                 { { echo "$as_me:$LINENO: error: SWIG version >= 1.3.23 required" >&5
22394 echo "$as_me: error: SWIG version >= 1.3.23 required" >&2;}
22395    { (exit 1); exit 1; }; }
22396                         fi
22397                 else
22398                         { { echo "$as_me:$LINENO: error: cannot determine SWIG version" >&5
22399 echo "$as_me: error: cannot determine SWIG version" >&2;}
22400    { (exit 1); exit 1; }; }
22401                 fi
22402         fi
22403
22404
22405
22406
22407         if test "$SWIG" != "false" ; then
22408                 SWIG="$SWIG -c++"
22409         fi
22410
22411
22412
22413
22414         if test "$SWIG" != "false" ; then
22415                 SWIG_PYTHON_LIB=-lswigpy
22416
22417                 SWIG_PYTHON_OPT=-python
22418
22419         fi
22420         SWIG_PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
22421
22422
22423
22424
22425 # Extract the first word of "xmlto", so it can be a program name with args.
22426 set dummy xmlto; ac_word=$2
22427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22429 if test "${ac_cv_prog_XMLTO+set}" = set; then
22430   echo $ECHO_N "(cached) $ECHO_C" >&6
22431 else
22432   if test -n "$XMLTO"; then
22433   ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
22434 else
22435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22436 for as_dir in $PATH
22437 do
22438   IFS=$as_save_IFS
22439   test -z "$as_dir" && as_dir=.
22440   for ac_exec_ext in '' $ac_executable_extensions; do
22441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22442     ac_cv_prog_XMLTO="yes"
22443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22444     break 2
22445   fi
22446 done
22447 done
22448 IFS=$as_save_IFS
22449
22450 fi
22451 fi
22452 XMLTO=$ac_cv_prog_XMLTO
22453 if test -n "$XMLTO"; then
22454   { echo "$as_me:$LINENO: result: $XMLTO" >&5
22455 echo "${ECHO_T}$XMLTO" >&6; }
22456 else
22457   { echo "$as_me:$LINENO: result: no" >&5
22458 echo "${ECHO_T}no" >&6; }
22459 fi
22460
22461
22462
22463
22464 if test x$XMLTO = xyes; then
22465   HAS_XMLTO_TRUE=
22466   HAS_XMLTO_FALSE='#'
22467 else
22468   HAS_XMLTO_TRUE='#'
22469   HAS_XMLTO_FALSE=
22470 fi
22471
22472
22473
22474 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
22475 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
22476 if test "${ac_cv_lib_socket_socket+set}" = set; then
22477   echo $ECHO_N "(cached) $ECHO_C" >&6
22478 else
22479   ac_check_lib_save_LIBS=$LIBS
22480 LIBS="-lsocket  $LIBS"
22481 cat >conftest.$ac_ext <<_ACEOF
22482 /* confdefs.h.  */
22483 _ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h.  */
22487
22488 /* Override any GCC internal prototype to avoid an error.
22489    Use char because int might match the return type of a GCC
22490    builtin and then its argument prototype would still apply.  */
22491 #ifdef __cplusplus
22492 extern "C"
22493 #endif
22494 char socket ();
22495 int
22496 main ()
22497 {
22498 return socket ();
22499   ;
22500   return 0;
22501 }
22502 _ACEOF
22503 rm -f conftest.$ac_objext conftest$ac_exeext
22504 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
22511   ac_status=$?
22512   grep -v '^ *+' conftest.er1 >conftest.err
22513   rm -f conftest.er1
22514   cat conftest.err >&5
22515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516   (exit $ac_status); } &&
22517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22518   { (case "(($ac_try" in
22519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520   *) ac_try_echo=$ac_try;;
22521 esac
22522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22523   (eval "$ac_try") 2>&5
22524   ac_status=$?
22525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526   (exit $ac_status); }; } &&
22527          { ac_try='test -s conftest$ac_exeext'
22528   { (case "(($ac_try" in
22529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530   *) ac_try_echo=$ac_try;;
22531 esac
22532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22533   (eval "$ac_try") 2>&5
22534   ac_status=$?
22535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536   (exit $ac_status); }; }; then
22537   ac_cv_lib_socket_socket=yes
22538 else
22539   echo "$as_me: failed program was:" >&5
22540 sed 's/^/| /' conftest.$ac_ext >&5
22541
22542         ac_cv_lib_socket_socket=no
22543 fi
22544
22545 rm -f core conftest.err conftest.$ac_objext \
22546       conftest$ac_exeext conftest.$ac_ext
22547 LIBS=$ac_check_lib_save_LIBS
22548 fi
22549 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
22550 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
22551 if test $ac_cv_lib_socket_socket = yes; then
22552   cat >>confdefs.h <<_ACEOF
22553 #define HAVE_LIBSOCKET 1
22554 _ACEOF
22555
22556   LIBS="-lsocket $LIBS"
22557
22558 fi
22559
22560
22561
22562   # Check first for POSIX
22563
22564
22565
22566 ac_ext=c
22567 ac_cpp='$CPP $CPPFLAGS'
22568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22571
22572 acx_pthread_ok=no
22573
22574 # We used to check for pthread.h first, but this fails if pthread.h
22575 # requires special compiler flags (e.g. on True64 or Sequent).
22576 # It gets checked for in the link test anyway.
22577
22578 # First of all, check if the user has set any of the PTHREAD_LIBS,
22579 # etcetera environment variables, and if threads linking works using
22580 # them:
22581 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22582         save_CFLAGS="$CFLAGS"
22583         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22584         save_LIBS="$LIBS"
22585         LIBS="$PTHREAD_LIBS $LIBS"
22586         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22587 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
22588         cat >conftest.$ac_ext <<_ACEOF
22589 /* confdefs.h.  */
22590 _ACEOF
22591 cat confdefs.h >>conftest.$ac_ext
22592 cat >>conftest.$ac_ext <<_ACEOF
22593 /* end confdefs.h.  */
22594
22595 /* Override any GCC internal prototype to avoid an error.
22596    Use char because int might match the return type of a GCC
22597    builtin and then its argument prototype would still apply.  */
22598 #ifdef __cplusplus
22599 extern "C"
22600 #endif
22601 char pthread_join ();
22602 int
22603 main ()
22604 {
22605 return pthread_join ();
22606   ;
22607   return 0;
22608 }
22609 _ACEOF
22610 rm -f conftest.$ac_objext conftest$ac_exeext
22611 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
22618   ac_status=$?
22619   grep -v '^ *+' conftest.er1 >conftest.err
22620   rm -f conftest.er1
22621   cat conftest.err >&5
22622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); } &&
22624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22625   { (case "(($ac_try" in
22626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22627   *) ac_try_echo=$ac_try;;
22628 esac
22629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22630   (eval "$ac_try") 2>&5
22631   ac_status=$?
22632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633   (exit $ac_status); }; } &&
22634          { ac_try='test -s conftest$ac_exeext'
22635   { (case "(($ac_try" in
22636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22637   *) ac_try_echo=$ac_try;;
22638 esac
22639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22640   (eval "$ac_try") 2>&5
22641   ac_status=$?
22642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643   (exit $ac_status); }; }; then
22644   acx_pthread_ok=yes
22645 else
22646   echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22648
22649
22650 fi
22651
22652 rm -f core conftest.err conftest.$ac_objext \
22653       conftest$ac_exeext conftest.$ac_ext
22654         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22655 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22656         if test x"$acx_pthread_ok" = xno; then
22657                 PTHREAD_LIBS=""
22658                 PTHREAD_CFLAGS=""
22659         fi
22660         LIBS="$save_LIBS"
22661         CFLAGS="$save_CFLAGS"
22662 fi
22663
22664 # We must check for the threads library under a number of different
22665 # names; the ordering is very important because some systems
22666 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22667 # libraries is broken (non-POSIX).
22668
22669 # Create a list of thread flags to try.  Items starting with a "-" are
22670 # C compiler flags, and other items are library names, except for "none"
22671 # which indicates that we try without any flags at all.
22672
22673 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
22674
22675 # The ordering *is* (sometimes) important.  Some notes on the
22676 # individual items follow:
22677
22678 # pthreads: AIX (must check this before -lpthread)
22679 # none: in case threads are in libc; should be tried before -Kthread and
22680 #       other compiler flags to prevent continual compiler warnings
22681 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22682 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22683 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22684 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22685 # -pthreads: Solaris/gcc
22686 # -mthreads: Mingw32/gcc, Lynx/gcc
22687 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22688 #      doesn't hurt to check since this sometimes defines pthreads too;
22689 #      also defines -D_REENTRANT)
22690 # pthread: Linux, etcetera
22691 # --thread-safe: KAI C++
22692
22693 case "${host_cpu}-${host_os}" in
22694         *solaris*)
22695
22696         # On Solaris (at least, for some versions), libc contains stubbed
22697         # (non-functional) versions of the pthreads routines, so link-based
22698         # tests will erroneously succeed.  (We need to link with -pthread or
22699         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22700         # a function called by this macro, so we could check for that, but
22701         # who knows whether they'll stub that too in a future libc.)  So,
22702         # we'll just look for -pthreads and -lpthread first:
22703
22704         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22705         ;;
22706 esac
22707
22708 if test x"$acx_pthread_ok" = xno; then
22709 for flag in $acx_pthread_flags; do
22710
22711         case $flag in
22712                 none)
22713                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22714 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
22715                 ;;
22716
22717                 -*)
22718                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22719 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
22720                 PTHREAD_CFLAGS="$flag"
22721                 ;;
22722
22723                 *)
22724                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22725 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
22726                 PTHREAD_LIBS="-l$flag"
22727                 ;;
22728         esac
22729
22730         save_LIBS="$LIBS"
22731         save_CFLAGS="$CFLAGS"
22732         LIBS="$PTHREAD_LIBS $LIBS"
22733         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22734
22735         # Check for various functions.  We must include pthread.h,
22736         # since some functions may be macros.  (On the Sequent, we
22737         # need a special flag -Kthread to make this header compile.)
22738         # We check for pthread_join because it is in -lpthread on IRIX
22739         # while pthread_create is in libc.  We check for pthread_attr_init
22740         # due to DEC craziness with -lpthreads.  We check for
22741         # pthread_cleanup_push because it is one of the few pthread
22742         # functions on Solaris that doesn't have a non-functional libc stub.
22743         # We try pthread_create on general principles.
22744         cat >conftest.$ac_ext <<_ACEOF
22745 /* confdefs.h.  */
22746 _ACEOF
22747 cat confdefs.h >>conftest.$ac_ext
22748 cat >>conftest.$ac_ext <<_ACEOF
22749 /* end confdefs.h.  */
22750 #include <pthread.h>
22751 int
22752 main ()
22753 {
22754 pthread_t th; pthread_join(th, 0);
22755                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22756                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22757   ;
22758   return 0;
22759 }
22760 _ACEOF
22761 rm -f conftest.$ac_objext conftest$ac_exeext
22762 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
22769   ac_status=$?
22770   grep -v '^ *+' conftest.er1 >conftest.err
22771   rm -f conftest.er1
22772   cat conftest.err >&5
22773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774   (exit $ac_status); } &&
22775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22776   { (case "(($ac_try" in
22777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778   *) ac_try_echo=$ac_try;;
22779 esac
22780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22781   (eval "$ac_try") 2>&5
22782   ac_status=$?
22783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784   (exit $ac_status); }; } &&
22785          { ac_try='test -s conftest$ac_exeext'
22786   { (case "(($ac_try" in
22787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22788   *) ac_try_echo=$ac_try;;
22789 esac
22790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22791   (eval "$ac_try") 2>&5
22792   ac_status=$?
22793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22794   (exit $ac_status); }; }; then
22795   acx_pthread_ok=yes
22796 else
22797   echo "$as_me: failed program was:" >&5
22798 sed 's/^/| /' conftest.$ac_ext >&5
22799
22800
22801 fi
22802
22803 rm -f core conftest.err conftest.$ac_objext \
22804       conftest$ac_exeext conftest.$ac_ext
22805
22806         LIBS="$save_LIBS"
22807         CFLAGS="$save_CFLAGS"
22808
22809         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22810 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22811         if test "x$acx_pthread_ok" = xyes; then
22812                 break;
22813         fi
22814
22815         PTHREAD_LIBS=""
22816         PTHREAD_CFLAGS=""
22817 done
22818 fi
22819
22820 # Various other checks:
22821 if test "x$acx_pthread_ok" = xyes; then
22822         save_LIBS="$LIBS"
22823         LIBS="$PTHREAD_LIBS $LIBS"
22824         save_CFLAGS="$CFLAGS"
22825         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22826
22827         # Detect AIX lossage: threads are created detached by default
22828         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22829         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22830 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
22831         cat >conftest.$ac_ext <<_ACEOF
22832 /* confdefs.h.  */
22833 _ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h.  */
22837 #include <pthread.h>
22838 int
22839 main ()
22840 {
22841 int attr=PTHREAD_CREATE_JOINABLE;
22842   ;
22843   return 0;
22844 }
22845 _ACEOF
22846 rm -f conftest.$ac_objext conftest$ac_exeext
22847 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
22854   ac_status=$?
22855   grep -v '^ *+' conftest.er1 >conftest.err
22856   rm -f conftest.er1
22857   cat conftest.err >&5
22858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22859   (exit $ac_status); } &&
22860          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22861   { (case "(($ac_try" in
22862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22863   *) ac_try_echo=$ac_try;;
22864 esac
22865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22866   (eval "$ac_try") 2>&5
22867   ac_status=$?
22868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869   (exit $ac_status); }; } &&
22870          { ac_try='test -s conftest$ac_exeext'
22871   { (case "(($ac_try" in
22872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873   *) ac_try_echo=$ac_try;;
22874 esac
22875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22876   (eval "$ac_try") 2>&5
22877   ac_status=$?
22878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879   (exit $ac_status); }; }; then
22880   ok=PTHREAD_CREATE_JOINABLE
22881 else
22882   echo "$as_me: failed program was:" >&5
22883 sed 's/^/| /' conftest.$ac_ext >&5
22884
22885         ok=unknown
22886 fi
22887
22888 rm -f core conftest.err conftest.$ac_objext \
22889       conftest$ac_exeext conftest.$ac_ext
22890         if test x"$ok" = xunknown; then
22891                 cat >conftest.$ac_ext <<_ACEOF
22892 /* confdefs.h.  */
22893 _ACEOF
22894 cat confdefs.h >>conftest.$ac_ext
22895 cat >>conftest.$ac_ext <<_ACEOF
22896 /* end confdefs.h.  */
22897 #include <pthread.h>
22898 int
22899 main ()
22900 {
22901 int attr=PTHREAD_CREATE_UNDETACHED;
22902   ;
22903   return 0;
22904 }
22905 _ACEOF
22906 rm -f conftest.$ac_objext conftest$ac_exeext
22907 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
22914   ac_status=$?
22915   grep -v '^ *+' conftest.er1 >conftest.err
22916   rm -f conftest.er1
22917   cat conftest.err >&5
22918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22919   (exit $ac_status); } &&
22920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22921   { (case "(($ac_try" in
22922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923   *) ac_try_echo=$ac_try;;
22924 esac
22925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22926   (eval "$ac_try") 2>&5
22927   ac_status=$?
22928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929   (exit $ac_status); }; } &&
22930          { ac_try='test -s conftest$ac_exeext'
22931   { (case "(($ac_try" in
22932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22933   *) ac_try_echo=$ac_try;;
22934 esac
22935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22936   (eval "$ac_try") 2>&5
22937   ac_status=$?
22938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939   (exit $ac_status); }; }; then
22940   ok=PTHREAD_CREATE_UNDETACHED
22941 else
22942   echo "$as_me: failed program was:" >&5
22943 sed 's/^/| /' conftest.$ac_ext >&5
22944
22945         ok=unknown
22946 fi
22947
22948 rm -f core conftest.err conftest.$ac_objext \
22949       conftest$ac_exeext conftest.$ac_ext
22950         fi
22951         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22952
22953 cat >>confdefs.h <<\_ACEOF
22954 #define PTHREAD_CREATE_JOINABLE $ok
22955 _ACEOF
22956
22957         fi
22958         { echo "$as_me:$LINENO: result: ${ok}" >&5
22959 echo "${ECHO_T}${ok}" >&6; }
22960         if test x"$ok" = xunknown; then
22961                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22962 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22963         fi
22964
22965         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22966 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
22967         flag=no
22968         case "${host_cpu}-${host_os}" in
22969                 *-aix* | *-freebsd*)     flag="-D_THREAD_SAFE";;
22970                 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22971         esac
22972         { echo "$as_me:$LINENO: result: ${flag}" >&5
22973 echo "${ECHO_T}${flag}" >&6; }
22974         if test "x$flag" != xno; then
22975                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22976         fi
22977
22978         LIBS="$save_LIBS"
22979         CFLAGS="$save_CFLAGS"
22980
22981         # More AIX lossage: must compile with cc_r
22982         # Extract the first word of "cc_r", so it can be a program name with args.
22983 set dummy cc_r; ac_word=$2
22984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22986 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22987   echo $ECHO_N "(cached) $ECHO_C" >&6
22988 else
22989   if test -n "$PTHREAD_CC"; then
22990   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22991 else
22992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22993 for as_dir in $PATH
22994 do
22995   IFS=$as_save_IFS
22996   test -z "$as_dir" && as_dir=.
22997   for ac_exec_ext in '' $ac_executable_extensions; do
22998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22999     ac_cv_prog_PTHREAD_CC="cc_r"
23000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23001     break 2
23002   fi
23003 done
23004 done
23005 IFS=$as_save_IFS
23006
23007   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23008 fi
23009 fi
23010 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23011 if test -n "$PTHREAD_CC"; then
23012   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23013 echo "${ECHO_T}$PTHREAD_CC" >&6; }
23014 else
23015   { echo "$as_me:$LINENO: result: no" >&5
23016 echo "${ECHO_T}no" >&6; }
23017 fi
23018
23019
23020 else
23021         PTHREAD_CC="$CC"
23022 fi
23023
23024
23025
23026
23027
23028 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23029 if test x"$acx_pthread_ok" = xyes; then
23030          ot_posix="yes"
23031
23032 cat >>confdefs.h <<\_ACEOF
23033 #define OMNITHREAD_POSIX 1
23034 _ACEOF
23035
23036
23037         :
23038 else
23039         acx_pthread_ok=no
23040
23041     # If no POSIX support found, then check for NT threads
23042     { echo "$as_me:$LINENO: checking for NT threads" >&5
23043 echo $ECHO_N "checking for NT threads... $ECHO_C" >&6; }
23044
23045     cat >conftest.$ac_ext <<_ACEOF
23046
23047         #include <windows.h>
23048         #include <winbase.h>
23049         int main() { InitializeCriticalSection(NULL); return 0; }
23050
23051 _ACEOF
23052 rm -f conftest.$ac_objext conftest$ac_exeext
23053 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
23060   ac_status=$?
23061   grep -v '^ *+' conftest.er1 >conftest.err
23062   rm -f conftest.er1
23063   cat conftest.err >&5
23064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065   (exit $ac_status); } &&
23066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23067   { (case "(($ac_try" in
23068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23069   *) ac_try_echo=$ac_try;;
23070 esac
23071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23072   (eval "$ac_try") 2>&5
23073   ac_status=$?
23074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075   (exit $ac_status); }; } &&
23076          { ac_try='test -s conftest$ac_exeext'
23077   { (case "(($ac_try" in
23078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23079   *) ac_try_echo=$ac_try;;
23080 esac
23081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23082   (eval "$ac_try") 2>&5
23083   ac_status=$?
23084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085   (exit $ac_status); }; }; then
23086
23087         ot_nt="yes"
23088
23089 cat >>confdefs.h <<\_ACEOF
23090 #define OMNITHREAD_NT 1
23091 _ACEOF
23092
23093
23094 else
23095   echo "$as_me: failed program was:" >&5
23096 sed 's/^/| /' conftest.$ac_ext >&5
23097
23098         { { echo "$as_me:$LINENO: error: GNU Radio requires POSIX threads.  pthreads not found.
23099 See \`config.log' for more details." >&5
23100 echo "$as_me: error: GNU Radio requires POSIX threads.  pthreads not found.
23101 See \`config.log' for more details." >&2;}
23102    { (exit 1); exit 1; }; }
23103
23104 fi
23105
23106 rm -f core conftest.err conftest.$ac_objext \
23107       conftest$ac_exeext conftest.$ac_ext
23108     { echo "$as_me:$LINENO: result: yes" >&5
23109 echo "${ECHO_T}yes" >&6; }
23110
23111 fi
23112 ac_ext=c
23113 ac_cpp='$CPP $CPPFLAGS'
23114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23117
23118
23119
23120
23121 if test "x$ot_posix" = xyes; then
23122   OMNITHREAD_POSIX_TRUE=
23123   OMNITHREAD_POSIX_FALSE='#'
23124 else
23125   OMNITHREAD_POSIX_TRUE='#'
23126   OMNITHREAD_POSIX_FALSE=
23127 fi
23128
23129
23130
23131 if test "x$ot_nt" = xyes; then
23132   OMNITHREAD_NT_TRUE=
23133   OMNITHREAD_NT_FALSE='#'
23134 else
23135   OMNITHREAD_NT_TRUE='#'
23136   OMNITHREAD_NT_FALSE=
23137 fi
23138
23139
23140   save_LIBS="$LIBS"
23141   { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
23142 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
23143 if test "${ac_cv_search_clock_gettime+set}" = set; then
23144   echo $ECHO_N "(cached) $ECHO_C" >&6
23145 else
23146   ac_func_search_save_LIBS=$LIBS
23147 cat >conftest.$ac_ext <<_ACEOF
23148 /* confdefs.h.  */
23149 _ACEOF
23150 cat confdefs.h >>conftest.$ac_ext
23151 cat >>conftest.$ac_ext <<_ACEOF
23152 /* end confdefs.h.  */
23153
23154 /* Override any GCC internal prototype to avoid an error.
23155    Use char because int might match the return type of a GCC
23156    builtin and then its argument prototype would still apply.  */
23157 #ifdef __cplusplus
23158 extern "C"
23159 #endif
23160 char clock_gettime ();
23161 int
23162 main ()
23163 {
23164 return clock_gettime ();
23165   ;
23166   return 0;
23167 }
23168 _ACEOF
23169 for ac_lib in '' rt; do
23170   if test -z "$ac_lib"; then
23171     ac_res="none required"
23172   else
23173     ac_res=-l$ac_lib
23174     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23175   fi
23176   rm -f conftest.$ac_objext conftest$ac_exeext
23177 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
23184   ac_status=$?
23185   grep -v '^ *+' conftest.er1 >conftest.err
23186   rm -f conftest.er1
23187   cat conftest.err >&5
23188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189   (exit $ac_status); } &&
23190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23191   { (case "(($ac_try" in
23192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193   *) ac_try_echo=$ac_try;;
23194 esac
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196   (eval "$ac_try") 2>&5
23197   ac_status=$?
23198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199   (exit $ac_status); }; } &&
23200          { ac_try='test -s conftest$ac_exeext'
23201   { (case "(($ac_try" in
23202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23203   *) ac_try_echo=$ac_try;;
23204 esac
23205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23206   (eval "$ac_try") 2>&5
23207   ac_status=$?
23208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209   (exit $ac_status); }; }; then
23210   ac_cv_search_clock_gettime=$ac_res
23211 else
23212   echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.$ac_ext >&5
23214
23215
23216 fi
23217
23218 rm -f core conftest.err conftest.$ac_objext \
23219       conftest$ac_exeext
23220   if test "${ac_cv_search_clock_gettime+set}" = set; then
23221   break
23222 fi
23223 done
23224 if test "${ac_cv_search_clock_gettime+set}" = set; then
23225   :
23226 else
23227   ac_cv_search_clock_gettime=no
23228 fi
23229 rm conftest.$ac_ext
23230 LIBS=$ac_func_search_save_LIBS
23231 fi
23232 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
23233 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
23234 ac_res=$ac_cv_search_clock_gettime
23235 if test "$ac_res" != no; then
23236   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23237   PTHREAD_LIBS="$PTHREAD_LIBS $LIBS"
23238 fi
23239
23240
23241
23242
23243 for ac_func in clock_gettime gettimeofday nanosleep
23244 do
23245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23249   echo $ECHO_N "(cached) $ECHO_C" >&6
23250 else
23251   cat >conftest.$ac_ext <<_ACEOF
23252 /* confdefs.h.  */
23253 _ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h.  */
23257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23259 #define $ac_func innocuous_$ac_func
23260
23261 /* System header to define __stub macros and hopefully few prototypes,
23262     which can conflict with char $ac_func (); below.
23263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23264     <limits.h> exists even on freestanding compilers.  */
23265
23266 #ifdef __STDC__
23267 # include <limits.h>
23268 #else
23269 # include <assert.h>
23270 #endif
23271
23272 #undef $ac_func
23273
23274 /* Override any GCC internal prototype to avoid an error.
23275    Use char because int might match the return type of a GCC
23276    builtin and then its argument prototype would still apply.  */
23277 #ifdef __cplusplus
23278 extern "C"
23279 #endif
23280 char $ac_func ();
23281 /* The GNU C library defines this for functions which it implements
23282     to always fail with ENOSYS.  Some functions are actually named
23283     something starting with __ and the normal name is an alias.  */
23284 #if defined __stub_$ac_func || defined __stub___$ac_func
23285 choke me
23286 #endif
23287
23288 int
23289 main ()
23290 {
23291 return $ac_func ();
23292   ;
23293   return 0;
23294 }
23295 _ACEOF
23296 rm -f conftest.$ac_objext conftest$ac_exeext
23297 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
23304   ac_status=$?
23305   grep -v '^ *+' conftest.er1 >conftest.err
23306   rm -f conftest.er1
23307   cat conftest.err >&5
23308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309   (exit $ac_status); } &&
23310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23311   { (case "(($ac_try" in
23312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23313   *) ac_try_echo=$ac_try;;
23314 esac
23315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23316   (eval "$ac_try") 2>&5
23317   ac_status=$?
23318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319   (exit $ac_status); }; } &&
23320          { ac_try='test -s conftest$ac_exeext'
23321   { (case "(($ac_try" in
23322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323   *) ac_try_echo=$ac_try;;
23324 esac
23325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23326   (eval "$ac_try") 2>&5
23327   ac_status=$?
23328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329   (exit $ac_status); }; }; then
23330   eval "$as_ac_var=yes"
23331 else
23332   echo "$as_me: failed program was:" >&5
23333 sed 's/^/| /' conftest.$ac_ext >&5
23334
23335         eval "$as_ac_var=no"
23336 fi
23337
23338 rm -f core conftest.err conftest.$ac_objext \
23339       conftest$ac_exeext conftest.$ac_ext
23340 fi
23341 ac_res=`eval echo '${'$as_ac_var'}'`
23342                { echo "$as_me:$LINENO: result: $ac_res" >&5
23343 echo "${ECHO_T}$ac_res" >&6; }
23344 if test `eval echo '${'$as_ac_var'}'` = yes; then
23345   cat >>confdefs.h <<_ACEOF
23346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23347 _ACEOF
23348
23349 fi
23350 done
23351
23352   LIBS="$save_LIBS"
23353
23354 #AC_SUBST(PTHREAD_CFLAGS)
23355 CFLAGS="${CFLAGS} $PTHREAD_CFLAGS"
23356 CXXFLAGS="${CXXFLAGS} $PTHREAD_CFLAGS"
23357
23358 if test "x$CXX_FOR_BUILD" = x
23359 then
23360   CXX_FOR_BUILD=${CXX}
23361 fi
23362
23363
23364
23365
23366         ac_ext=c
23367 ac_cpp='$CPP $CPPFLAGS'
23368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23371
23372
23373
23374
23375 for ac_header in sys/ipc.h sys/shm.h
23376 do
23377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23379   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23382   echo $ECHO_N "(cached) $ECHO_C" >&6
23383 fi
23384 ac_res=`eval echo '${'$as_ac_Header'}'`
23385                { echo "$as_me:$LINENO: result: $ac_res" >&5
23386 echo "${ECHO_T}$ac_res" >&6; }
23387 else
23388   # Is the header compilable?
23389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23391 cat >conftest.$ac_ext <<_ACEOF
23392 /* confdefs.h.  */
23393 _ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h.  */
23397 $ac_includes_default
23398 #include <$ac_header>
23399 _ACEOF
23400 rm -f conftest.$ac_objext
23401 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23408   ac_status=$?
23409   grep -v '^ *+' conftest.er1 >conftest.err
23410   rm -f conftest.er1
23411   cat conftest.err >&5
23412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413   (exit $ac_status); } &&
23414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23415   { (case "(($ac_try" in
23416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23417   *) ac_try_echo=$ac_try;;
23418 esac
23419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23420   (eval "$ac_try") 2>&5
23421   ac_status=$?
23422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423   (exit $ac_status); }; } &&
23424          { ac_try='test -s conftest.$ac_objext'
23425   { (case "(($ac_try" in
23426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23427   *) ac_try_echo=$ac_try;;
23428 esac
23429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23430   (eval "$ac_try") 2>&5
23431   ac_status=$?
23432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433   (exit $ac_status); }; }; then
23434   ac_header_compiler=yes
23435 else
23436   echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23438
23439         ac_header_compiler=no
23440 fi
23441
23442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23444 echo "${ECHO_T}$ac_header_compiler" >&6; }
23445
23446 # Is the header present?
23447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23449 cat >conftest.$ac_ext <<_ACEOF
23450 /* confdefs.h.  */
23451 _ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h.  */
23455 #include <$ac_header>
23456 _ACEOF
23457 if { (ac_try="$ac_cpp conftest.$ac_ext"
23458 case "(($ac_try" in
23459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23460   *) ac_try_echo=$ac_try;;
23461 esac
23462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23463   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23464   ac_status=$?
23465   grep -v '^ *+' conftest.er1 >conftest.err
23466   rm -f conftest.er1
23467   cat conftest.err >&5
23468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469   (exit $ac_status); } >/dev/null; then
23470   if test -s conftest.err; then
23471     ac_cpp_err=$ac_c_preproc_warn_flag
23472     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23473   else
23474     ac_cpp_err=
23475   fi
23476 else
23477   ac_cpp_err=yes
23478 fi
23479 if test -z "$ac_cpp_err"; then
23480   ac_header_preproc=yes
23481 else
23482   echo "$as_me: failed program was:" >&5
23483 sed 's/^/| /' conftest.$ac_ext >&5
23484
23485   ac_header_preproc=no
23486 fi
23487
23488 rm -f conftest.err conftest.$ac_ext
23489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23490 echo "${ECHO_T}$ac_header_preproc" >&6; }
23491
23492 # So?  What about this header?
23493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23494   yes:no: )
23495     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23499     ac_header_preproc=yes
23500     ;;
23501   no:yes:* )
23502     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23504     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23505 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23506     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23508     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23509 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23512     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23514
23515     ;;
23516 esac
23517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23520   echo $ECHO_N "(cached) $ECHO_C" >&6
23521 else
23522   eval "$as_ac_Header=\$ac_header_preproc"
23523 fi
23524 ac_res=`eval echo '${'$as_ac_Header'}'`
23525                { echo "$as_me:$LINENO: result: $ac_res" >&5
23526 echo "${ECHO_T}$ac_res" >&6; }
23527
23528 fi
23529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23530   cat >>confdefs.h <<_ACEOF
23531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23532 _ACEOF
23533
23534 fi
23535
23536 done
23537
23538
23539         save_LIBS="$LIBS"
23540         { echo "$as_me:$LINENO: checking for library containing shmat" >&5
23541 echo $ECHO_N "checking for library containing shmat... $ECHO_C" >&6; }
23542 if test "${ac_cv_search_shmat+set}" = set; then
23543   echo $ECHO_N "(cached) $ECHO_C" >&6
23544 else
23545   ac_func_search_save_LIBS=$LIBS
23546 cat >conftest.$ac_ext <<_ACEOF
23547 /* confdefs.h.  */
23548 _ACEOF
23549 cat confdefs.h >>conftest.$ac_ext
23550 cat >>conftest.$ac_ext <<_ACEOF
23551 /* end confdefs.h.  */
23552
23553 /* Override any GCC internal prototype to avoid an error.
23554    Use char because int might match the return type of a GCC
23555    builtin and then its argument prototype would still apply.  */
23556 #ifdef __cplusplus
23557 extern "C"
23558 #endif
23559 char shmat ();
23560 int
23561 main ()
23562 {
23563 return shmat ();
23564   ;
23565   return 0;
23566 }
23567 _ACEOF
23568 for ac_lib in '' cygipc ipc; do
23569   if test -z "$ac_lib"; then
23570     ac_res="none required"
23571   else
23572     ac_res=-l$ac_lib
23573     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23574   fi
23575   rm -f conftest.$ac_objext conftest$ac_exeext
23576 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
23583   ac_status=$?
23584   grep -v '^ *+' conftest.er1 >conftest.err
23585   rm -f conftest.er1
23586   cat conftest.err >&5
23587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588   (exit $ac_status); } &&
23589          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23590   { (case "(($ac_try" in
23591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23592   *) ac_try_echo=$ac_try;;
23593 esac
23594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23595   (eval "$ac_try") 2>&5
23596   ac_status=$?
23597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598   (exit $ac_status); }; } &&
23599          { ac_try='test -s conftest$ac_exeext'
23600   { (case "(($ac_try" in
23601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23602   *) ac_try_echo=$ac_try;;
23603 esac
23604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23605   (eval "$ac_try") 2>&5
23606   ac_status=$?
23607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608   (exit $ac_status); }; }; then
23609   ac_cv_search_shmat=$ac_res
23610 else
23611   echo "$as_me: failed program was:" >&5
23612 sed 's/^/| /' conftest.$ac_ext >&5
23613
23614
23615 fi
23616
23617 rm -f core conftest.err conftest.$ac_objext \
23618       conftest$ac_exeext
23619   if test "${ac_cv_search_shmat+set}" = set; then
23620   break
23621 fi
23622 done
23623 if test "${ac_cv_search_shmat+set}" = set; then
23624   :
23625 else
23626   ac_cv_search_shmat=no
23627 fi
23628 rm conftest.$ac_ext
23629 LIBS=$ac_func_search_save_LIBS
23630 fi
23631 { echo "$as_me:$LINENO: result: $ac_cv_search_shmat" >&5
23632 echo "${ECHO_T}$ac_cv_search_shmat" >&6; }
23633 ac_res=$ac_cv_search_shmat
23634 if test "$ac_res" != no; then
23635   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23636    IPC_LIBS="$LIBS"
23637 else
23638    { echo "$as_me:$LINENO: WARNING: SystemV IPC support not found. " >&5
23639 echo "$as_me: WARNING: SystemV IPC support not found. " >&2;}
23640
23641 fi
23642
23643         LIBS="$save_LIBS"
23644
23645         ac_ext=c
23646 ac_cpp='$CPP $CPPFLAGS'
23647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23650
23651
23652
23653
23654 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23655 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
23656 if test "${ac_cv_header_stdc+set}" = set; then
23657   echo $ECHO_N "(cached) $ECHO_C" >&6
23658 else
23659   cat >conftest.$ac_ext <<_ACEOF
23660 /* confdefs.h.  */
23661 _ACEOF
23662 cat confdefs.h >>conftest.$ac_ext
23663 cat >>conftest.$ac_ext <<_ACEOF
23664 /* end confdefs.h.  */
23665 #include <stdlib.h>
23666 #include <stdarg.h>
23667 #include <string.h>
23668 #include <float.h>
23669
23670 int
23671 main ()
23672 {
23673
23674   ;
23675   return 0;
23676 }
23677 _ACEOF
23678 rm -f conftest.$ac_objext
23679 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23686   ac_status=$?
23687   grep -v '^ *+' conftest.er1 >conftest.err
23688   rm -f conftest.er1
23689   cat conftest.err >&5
23690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691   (exit $ac_status); } &&
23692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23693   { (case "(($ac_try" in
23694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23695   *) ac_try_echo=$ac_try;;
23696 esac
23697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23698   (eval "$ac_try") 2>&5
23699   ac_status=$?
23700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701   (exit $ac_status); }; } &&
23702          { ac_try='test -s conftest.$ac_objext'
23703   { (case "(($ac_try" in
23704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23705   *) ac_try_echo=$ac_try;;
23706 esac
23707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23708   (eval "$ac_try") 2>&5
23709   ac_status=$?
23710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711   (exit $ac_status); }; }; then
23712   ac_cv_header_stdc=yes
23713 else
23714   echo "$as_me: failed program was:" >&5
23715 sed 's/^/| /' conftest.$ac_ext >&5
23716
23717         ac_cv_header_stdc=no
23718 fi
23719
23720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23721
23722 if test $ac_cv_header_stdc = yes; then
23723   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23724   cat >conftest.$ac_ext <<_ACEOF
23725 /* confdefs.h.  */
23726 _ACEOF
23727 cat confdefs.h >>conftest.$ac_ext
23728 cat >>conftest.$ac_ext <<_ACEOF
23729 /* end confdefs.h.  */
23730 #include <string.h>
23731
23732 _ACEOF
23733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23734   $EGREP "memchr" >/dev/null 2>&1; then
23735   :
23736 else
23737   ac_cv_header_stdc=no
23738 fi
23739 rm -f conftest*
23740
23741 fi
23742
23743 if test $ac_cv_header_stdc = yes; then
23744   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23745   cat >conftest.$ac_ext <<_ACEOF
23746 /* confdefs.h.  */
23747 _ACEOF
23748 cat confdefs.h >>conftest.$ac_ext
23749 cat >>conftest.$ac_ext <<_ACEOF
23750 /* end confdefs.h.  */
23751 #include <stdlib.h>
23752
23753 _ACEOF
23754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23755   $EGREP "free" >/dev/null 2>&1; then
23756   :
23757 else
23758   ac_cv_header_stdc=no
23759 fi
23760 rm -f conftest*
23761
23762 fi
23763
23764 if test $ac_cv_header_stdc = yes; then
23765   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23766   if test "$cross_compiling" = yes; then
23767   :
23768 else
23769   cat >conftest.$ac_ext <<_ACEOF
23770 /* confdefs.h.  */
23771 _ACEOF
23772 cat confdefs.h >>conftest.$ac_ext
23773 cat >>conftest.$ac_ext <<_ACEOF
23774 /* end confdefs.h.  */
23775 #include <ctype.h>
23776 #include <stdlib.h>
23777 #if ((' ' & 0x0FF) == 0x020)
23778 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23779 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23780 #else
23781 # define ISLOWER(c) \
23782                    (('a' <= (c) && (c) <= 'i') \
23783                      || ('j' <= (c) && (c) <= 'r') \
23784                      || ('s' <= (c) && (c) <= 'z'))
23785 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23786 #endif
23787
23788 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23789 int
23790 main ()
23791 {
23792   int i;
23793   for (i = 0; i < 256; i++)
23794     if (XOR (islower (i), ISLOWER (i))
23795         || toupper (i) != TOUPPER (i))
23796       return 2;
23797   return 0;
23798 }
23799 _ACEOF
23800 rm -f conftest$ac_exeext
23801 if { (ac_try="$ac_link"
23802 case "(($ac_try" in
23803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23804   *) ac_try_echo=$ac_try;;
23805 esac
23806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23807   (eval "$ac_link") 2>&5
23808   ac_status=$?
23809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23810   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23811   { (case "(($ac_try" in
23812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23813   *) ac_try_echo=$ac_try;;
23814 esac
23815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23816   (eval "$ac_try") 2>&5
23817   ac_status=$?
23818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819   (exit $ac_status); }; }; then
23820   :
23821 else
23822   echo "$as_me: program exited with status $ac_status" >&5
23823 echo "$as_me: failed program was:" >&5
23824 sed 's/^/| /' conftest.$ac_ext >&5
23825
23826 ( exit $ac_status )
23827 ac_cv_header_stdc=no
23828 fi
23829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23830 fi
23831
23832
23833 fi
23834 fi
23835 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23836 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
23837 if test $ac_cv_header_stdc = yes; then
23838
23839 cat >>confdefs.h <<\_ACEOF
23840 #define STDC_HEADERS 1
23841 _ACEOF
23842
23843 fi
23844
23845 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23846 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
23847 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23848   echo $ECHO_N "(cached) $ECHO_C" >&6
23849 else
23850   cat >conftest.$ac_ext <<_ACEOF
23851 /* confdefs.h.  */
23852 _ACEOF
23853 cat confdefs.h >>conftest.$ac_ext
23854 cat >>conftest.$ac_ext <<_ACEOF
23855 /* end confdefs.h.  */
23856 #include <sys/types.h>
23857 #include <sys/wait.h>
23858 #ifndef WEXITSTATUS
23859 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
23860 #endif
23861 #ifndef WIFEXITED
23862 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23863 #endif
23864
23865 int
23866 main ()
23867 {
23868   int s;
23869   wait (&s);
23870   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23871   ;
23872   return 0;
23873 }
23874 _ACEOF
23875 rm -f conftest.$ac_objext
23876 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23883   ac_status=$?
23884   grep -v '^ *+' conftest.er1 >conftest.err
23885   rm -f conftest.er1
23886   cat conftest.err >&5
23887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888   (exit $ac_status); } &&
23889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23890   { (case "(($ac_try" in
23891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23892   *) ac_try_echo=$ac_try;;
23893 esac
23894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23895   (eval "$ac_try") 2>&5
23896   ac_status=$?
23897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898   (exit $ac_status); }; } &&
23899          { ac_try='test -s conftest.$ac_objext'
23900   { (case "(($ac_try" in
23901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23902   *) ac_try_echo=$ac_try;;
23903 esac
23904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23905   (eval "$ac_try") 2>&5
23906   ac_status=$?
23907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908   (exit $ac_status); }; }; then
23909   ac_cv_header_sys_wait_h=yes
23910 else
23911   echo "$as_me: failed program was:" >&5
23912 sed 's/^/| /' conftest.$ac_ext >&5
23913
23914         ac_cv_header_sys_wait_h=no
23915 fi
23916
23917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23918 fi
23919 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23920 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
23921 if test $ac_cv_header_sys_wait_h = yes; then
23922
23923 cat >>confdefs.h <<\_ACEOF
23924 #define HAVE_SYS_WAIT_H 1
23925 _ACEOF
23926
23927 fi
23928
23929
23930
23931
23932
23933
23934
23935
23936 for ac_header in fcntl.h limits.h strings.h time.h sys/ioctl.h sys/time.h unistd.h
23937 do
23938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23940   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23943   echo $ECHO_N "(cached) $ECHO_C" >&6
23944 fi
23945 ac_res=`eval echo '${'$as_ac_Header'}'`
23946                { echo "$as_me:$LINENO: result: $ac_res" >&5
23947 echo "${ECHO_T}$ac_res" >&6; }
23948 else
23949   # Is the header compilable?
23950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23952 cat >conftest.$ac_ext <<_ACEOF
23953 /* confdefs.h.  */
23954 _ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h.  */
23958 $ac_includes_default
23959 #include <$ac_header>
23960 _ACEOF
23961 rm -f conftest.$ac_objext
23962 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23969   ac_status=$?
23970   grep -v '^ *+' conftest.er1 >conftest.err
23971   rm -f conftest.er1
23972   cat conftest.err >&5
23973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974   (exit $ac_status); } &&
23975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23976   { (case "(($ac_try" in
23977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23978   *) ac_try_echo=$ac_try;;
23979 esac
23980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23981   (eval "$ac_try") 2>&5
23982   ac_status=$?
23983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984   (exit $ac_status); }; } &&
23985          { ac_try='test -s conftest.$ac_objext'
23986   { (case "(($ac_try" in
23987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23988   *) ac_try_echo=$ac_try;;
23989 esac
23990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23991   (eval "$ac_try") 2>&5
23992   ac_status=$?
23993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994   (exit $ac_status); }; }; then
23995   ac_header_compiler=yes
23996 else
23997   echo "$as_me: failed program was:" >&5
23998 sed 's/^/| /' conftest.$ac_ext >&5
23999
24000         ac_header_compiler=no
24001 fi
24002
24003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24005 echo "${ECHO_T}$ac_header_compiler" >&6; }
24006
24007 # Is the header present?
24008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24010 cat >conftest.$ac_ext <<_ACEOF
24011 /* confdefs.h.  */
24012 _ACEOF
24013 cat confdefs.h >>conftest.$ac_ext
24014 cat >>conftest.$ac_ext <<_ACEOF
24015 /* end confdefs.h.  */
24016 #include <$ac_header>
24017 _ACEOF
24018 if { (ac_try="$ac_cpp conftest.$ac_ext"
24019 case "(($ac_try" in
24020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24021   *) ac_try_echo=$ac_try;;
24022 esac
24023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24025   ac_status=$?
24026   grep -v '^ *+' conftest.er1 >conftest.err
24027   rm -f conftest.er1
24028   cat conftest.err >&5
24029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030   (exit $ac_status); } >/dev/null; then
24031   if test -s conftest.err; then
24032     ac_cpp_err=$ac_c_preproc_warn_flag
24033     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24034   else
24035     ac_cpp_err=
24036   fi
24037 else
24038   ac_cpp_err=yes
24039 fi
24040 if test -z "$ac_cpp_err"; then
24041   ac_header_preproc=yes
24042 else
24043   echo "$as_me: failed program was:" >&5
24044 sed 's/^/| /' conftest.$ac_ext >&5
24045
24046   ac_header_preproc=no
24047 fi
24048
24049 rm -f conftest.err conftest.$ac_ext
24050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24051 echo "${ECHO_T}$ac_header_preproc" >&6; }
24052
24053 # So?  What about this header?
24054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24055   yes:no: )
24056     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24060     ac_header_preproc=yes
24061     ;;
24062   no:yes:* )
24063     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24065     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24066 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24067     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24069     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24070 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24073     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24075
24076     ;;
24077 esac
24078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24081   echo $ECHO_N "(cached) $ECHO_C" >&6
24082 else
24083   eval "$as_ac_Header=\$ac_header_preproc"
24084 fi
24085 ac_res=`eval echo '${'$as_ac_Header'}'`
24086                { echo "$as_me:$LINENO: result: $ac_res" >&5
24087 echo "${ECHO_T}$ac_res" >&6; }
24088
24089 fi
24090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24091   cat >>confdefs.h <<_ACEOF
24092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24093 _ACEOF
24094
24095 fi
24096
24097 done
24098
24099
24100
24101
24102
24103 for ac_header in linux/ppdev.h sys/mman.h sys/select.h sys/types.h
24104 do
24105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24107   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24110   echo $ECHO_N "(cached) $ECHO_C" >&6
24111 fi
24112 ac_res=`eval echo '${'$as_ac_Header'}'`
24113                { echo "$as_me:$LINENO: result: $ac_res" >&5
24114 echo "${ECHO_T}$ac_res" >&6; }
24115 else
24116   # Is the header compilable?
24117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24119 cat >conftest.$ac_ext <<_ACEOF
24120 /* confdefs.h.  */
24121 _ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h.  */
24125 $ac_includes_default
24126 #include <$ac_header>
24127 _ACEOF
24128 rm -f conftest.$ac_objext
24129 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24136   ac_status=$?
24137   grep -v '^ *+' conftest.er1 >conftest.err
24138   rm -f conftest.er1
24139   cat conftest.err >&5
24140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141   (exit $ac_status); } &&
24142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24143   { (case "(($ac_try" in
24144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24145   *) ac_try_echo=$ac_try;;
24146 esac
24147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24148   (eval "$ac_try") 2>&5
24149   ac_status=$?
24150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151   (exit $ac_status); }; } &&
24152          { ac_try='test -s conftest.$ac_objext'
24153   { (case "(($ac_try" in
24154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24155   *) ac_try_echo=$ac_try;;
24156 esac
24157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24158   (eval "$ac_try") 2>&5
24159   ac_status=$?
24160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24161   (exit $ac_status); }; }; then
24162   ac_header_compiler=yes
24163 else
24164   echo "$as_me: failed program was:" >&5
24165 sed 's/^/| /' conftest.$ac_ext >&5
24166
24167         ac_header_compiler=no
24168 fi
24169
24170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24172 echo "${ECHO_T}$ac_header_compiler" >&6; }
24173
24174 # Is the header present?
24175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24177 cat >conftest.$ac_ext <<_ACEOF
24178 /* confdefs.h.  */
24179 _ACEOF
24180 cat confdefs.h >>conftest.$ac_ext
24181 cat >>conftest.$ac_ext <<_ACEOF
24182 /* end confdefs.h.  */
24183 #include <$ac_header>
24184 _ACEOF
24185 if { (ac_try="$ac_cpp conftest.$ac_ext"
24186 case "(($ac_try" in
24187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24188   *) ac_try_echo=$ac_try;;
24189 esac
24190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24191   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24192   ac_status=$?
24193   grep -v '^ *+' conftest.er1 >conftest.err
24194   rm -f conftest.er1
24195   cat conftest.err >&5
24196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197   (exit $ac_status); } >/dev/null; then
24198   if test -s conftest.err; then
24199     ac_cpp_err=$ac_c_preproc_warn_flag
24200     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24201   else
24202     ac_cpp_err=
24203   fi
24204 else
24205   ac_cpp_err=yes
24206 fi
24207 if test -z "$ac_cpp_err"; then
24208   ac_header_preproc=yes
24209 else
24210   echo "$as_me: failed program was:" >&5
24211 sed 's/^/| /' conftest.$ac_ext >&5
24212
24213   ac_header_preproc=no
24214 fi
24215
24216 rm -f conftest.err conftest.$ac_ext
24217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24218 echo "${ECHO_T}$ac_header_preproc" >&6; }
24219
24220 # So?  What about this header?
24221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24222   yes:no: )
24223     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24225     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24227     ac_header_preproc=yes
24228     ;;
24229   no:yes:* )
24230     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24232     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24233 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24234     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24236     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24237 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24238     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24240     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24242
24243     ;;
24244 esac
24245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24248   echo $ECHO_N "(cached) $ECHO_C" >&6
24249 else
24250   eval "$as_ac_Header=\$ac_header_preproc"
24251 fi
24252 ac_res=`eval echo '${'$as_ac_Header'}'`
24253                { echo "$as_me:$LINENO: result: $ac_res" >&5
24254 echo "${ECHO_T}$ac_res" >&6; }
24255
24256 fi
24257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24258   cat >>confdefs.h <<_ACEOF
24259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24260 _ACEOF
24261
24262 fi
24263
24264 done
24265
24266
24267
24268
24269 for ac_header in sys/resource.h stdint.h sched.h
24270 do
24271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24273   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24276   echo $ECHO_N "(cached) $ECHO_C" >&6
24277 fi
24278 ac_res=`eval echo '${'$as_ac_Header'}'`
24279                { echo "$as_me:$LINENO: result: $ac_res" >&5
24280 echo "${ECHO_T}$ac_res" >&6; }
24281 else
24282   # Is the header compilable?
24283 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24285 cat >conftest.$ac_ext <<_ACEOF
24286 /* confdefs.h.  */
24287 _ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h.  */
24291 $ac_includes_default
24292 #include <$ac_header>
24293 _ACEOF
24294 rm -f conftest.$ac_objext
24295 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24302   ac_status=$?
24303   grep -v '^ *+' conftest.er1 >conftest.err
24304   rm -f conftest.er1
24305   cat conftest.err >&5
24306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24307   (exit $ac_status); } &&
24308          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24309   { (case "(($ac_try" in
24310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24311   *) ac_try_echo=$ac_try;;
24312 esac
24313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24314   (eval "$ac_try") 2>&5
24315   ac_status=$?
24316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317   (exit $ac_status); }; } &&
24318          { ac_try='test -s conftest.$ac_objext'
24319   { (case "(($ac_try" in
24320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24321   *) ac_try_echo=$ac_try;;
24322 esac
24323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24324   (eval "$ac_try") 2>&5
24325   ac_status=$?
24326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327   (exit $ac_status); }; }; then
24328   ac_header_compiler=yes
24329 else
24330   echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24332
24333         ac_header_compiler=no
24334 fi
24335
24336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24338 echo "${ECHO_T}$ac_header_compiler" >&6; }
24339
24340 # Is the header present?
24341 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24343 cat >conftest.$ac_ext <<_ACEOF
24344 /* confdefs.h.  */
24345 _ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h.  */
24349 #include <$ac_header>
24350 _ACEOF
24351 if { (ac_try="$ac_cpp conftest.$ac_ext"
24352 case "(($ac_try" in
24353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24354   *) ac_try_echo=$ac_try;;
24355 esac
24356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24357   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24358   ac_status=$?
24359   grep -v '^ *+' conftest.er1 >conftest.err
24360   rm -f conftest.er1
24361   cat conftest.err >&5
24362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363   (exit $ac_status); } >/dev/null; then
24364   if test -s conftest.err; then
24365     ac_cpp_err=$ac_c_preproc_warn_flag
24366     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24367   else
24368     ac_cpp_err=
24369   fi
24370 else
24371   ac_cpp_err=yes
24372 fi
24373 if test -z "$ac_cpp_err"; then
24374   ac_header_preproc=yes
24375 else
24376   echo "$as_me: failed program was:" >&5
24377 sed 's/^/| /' conftest.$ac_ext >&5
24378
24379   ac_header_preproc=no
24380 fi
24381
24382 rm -f conftest.err conftest.$ac_ext
24383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24384 echo "${ECHO_T}$ac_header_preproc" >&6; }
24385
24386 # So?  What about this header?
24387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24388   yes:no: )
24389     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24391     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24393     ac_header_preproc=yes
24394     ;;
24395   no:yes:* )
24396     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24398     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24399 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24400     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24402     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24403 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24404     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24406     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24408
24409     ;;
24410 esac
24411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24414   echo $ECHO_N "(cached) $ECHO_C" >&6
24415 else
24416   eval "$as_ac_Header=\$ac_header_preproc"
24417 fi
24418 ac_res=`eval echo '${'$as_ac_Header'}'`
24419                { echo "$as_me:$LINENO: result: $ac_res" >&5
24420 echo "${ECHO_T}$ac_res" >&6; }
24421
24422 fi
24423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24424   cat >>confdefs.h <<_ACEOF
24425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24426 _ACEOF
24427
24428 fi
24429
24430 done
24431
24432
24433 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24434 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24435 if test "${ac_cv_c_const+set}" = set; then
24436   echo $ECHO_N "(cached) $ECHO_C" >&6
24437 else
24438   cat >conftest.$ac_ext <<_ACEOF
24439 /* confdefs.h.  */
24440 _ACEOF
24441 cat confdefs.h >>conftest.$ac_ext
24442 cat >>conftest.$ac_ext <<_ACEOF
24443 /* end confdefs.h.  */
24444
24445 int
24446 main ()
24447 {
24448 /* FIXME: Include the comments suggested by Paul. */
24449 #ifndef __cplusplus
24450   /* Ultrix mips cc rejects this.  */
24451   typedef int charset[2];
24452   const charset x;
24453   /* SunOS 4.1.1 cc rejects this.  */
24454   char const *const *ccp;
24455   char **p;
24456   /* NEC SVR4.0.2 mips cc rejects this.  */
24457   struct point {int x, y;};
24458   static struct point const zero = {0,0};
24459   /* AIX XL C 1.02.0.0 rejects this.
24460      It does not let you subtract one const X* pointer from another in
24461      an arm of an if-expression whose if-part is not a constant
24462      expression */
24463   const char *g = "string";
24464   ccp = &g + (g ? g-g : 0);
24465   /* HPUX 7.0 cc rejects these. */
24466   ++ccp;
24467   p = (char**) ccp;
24468   ccp = (char const *const *) p;
24469   { /* SCO 3.2v4 cc rejects this.  */
24470     char *t;
24471     char const *s = 0 ? (char *) 0 : (char const *) 0;
24472
24473     *t++ = 0;
24474     if (s) return 0;
24475   }
24476   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24477     int x[] = {25, 17};
24478     const int *foo = &x[0];
24479     ++foo;
24480   }
24481   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24482     typedef const int *iptr;
24483     iptr p = 0;
24484     ++p;
24485   }
24486   { /* AIX XL C 1.02.0.0 rejects this saying
24487        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24488     struct s { int j; const int *ap[3]; };
24489     struct s *b; b->j = 5;
24490   }
24491   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24492     const int foo = 10;
24493     if (!foo) return 0;
24494   }
24495   return !x[0] && !zero.x;
24496 #endif
24497
24498   ;
24499   return 0;
24500 }
24501 _ACEOF
24502 rm -f conftest.$ac_objext
24503 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24510   ac_status=$?
24511   grep -v '^ *+' conftest.er1 >conftest.err
24512   rm -f conftest.er1
24513   cat conftest.err >&5
24514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515   (exit $ac_status); } &&
24516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24517   { (case "(($ac_try" in
24518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519   *) ac_try_echo=$ac_try;;
24520 esac
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522   (eval "$ac_try") 2>&5
24523   ac_status=$?
24524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525   (exit $ac_status); }; } &&
24526          { ac_try='test -s conftest.$ac_objext'
24527   { (case "(($ac_try" in
24528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24529   *) ac_try_echo=$ac_try;;
24530 esac
24531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24532   (eval "$ac_try") 2>&5
24533   ac_status=$?
24534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535   (exit $ac_status); }; }; then
24536   ac_cv_c_const=yes
24537 else
24538   echo "$as_me: failed program was:" >&5
24539 sed 's/^/| /' conftest.$ac_ext >&5
24540
24541         ac_cv_c_const=no
24542 fi
24543
24544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24545 fi
24546 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24547 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24548 if test $ac_cv_c_const = no; then
24549
24550 cat >>confdefs.h <<\_ACEOF
24551 #define const
24552 _ACEOF
24553
24554 fi
24555
24556 { echo "$as_me:$LINENO: checking for inline" >&5
24557 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24558 if test "${ac_cv_c_inline+set}" = set; then
24559   echo $ECHO_N "(cached) $ECHO_C" >&6
24560 else
24561   ac_cv_c_inline=no
24562 for ac_kw in inline __inline__ __inline; do
24563   cat >conftest.$ac_ext <<_ACEOF
24564 /* confdefs.h.  */
24565 _ACEOF
24566 cat confdefs.h >>conftest.$ac_ext
24567 cat >>conftest.$ac_ext <<_ACEOF
24568 /* end confdefs.h.  */
24569 #ifndef __cplusplus
24570 typedef int foo_t;
24571 static $ac_kw foo_t static_foo () {return 0; }
24572 $ac_kw foo_t foo () {return 0; }
24573 #endif
24574
24575 _ACEOF
24576 rm -f conftest.$ac_objext
24577 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24584   ac_status=$?
24585   grep -v '^ *+' conftest.er1 >conftest.err
24586   rm -f conftest.er1
24587   cat conftest.err >&5
24588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589   (exit $ac_status); } &&
24590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24591   { (case "(($ac_try" in
24592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24593   *) ac_try_echo=$ac_try;;
24594 esac
24595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24596   (eval "$ac_try") 2>&5
24597   ac_status=$?
24598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599   (exit $ac_status); }; } &&
24600          { ac_try='test -s conftest.$ac_objext'
24601   { (case "(($ac_try" in
24602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24603   *) ac_try_echo=$ac_try;;
24604 esac
24605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24606   (eval "$ac_try") 2>&5
24607   ac_status=$?
24608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609   (exit $ac_status); }; }; then
24610   ac_cv_c_inline=$ac_kw
24611 else
24612   echo "$as_me: failed program was:" >&5
24613 sed 's/^/| /' conftest.$ac_ext >&5
24614
24615
24616 fi
24617
24618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24619   test "$ac_cv_c_inline" != no && break
24620 done
24621
24622 fi
24623 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24624 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24625
24626
24627 case $ac_cv_c_inline in
24628   inline | yes) ;;
24629   *)
24630     case $ac_cv_c_inline in
24631       no) ac_val=;;
24632       *) ac_val=$ac_cv_c_inline;;
24633     esac
24634     cat >>confdefs.h <<_ACEOF
24635 #ifndef __cplusplus
24636 #define inline $ac_val
24637 #endif
24638 _ACEOF
24639     ;;
24640 esac
24641
24642 { echo "$as_me:$LINENO: checking for size_t" >&5
24643 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24644 if test "${ac_cv_type_size_t+set}" = set; then
24645   echo $ECHO_N "(cached) $ECHO_C" >&6
24646 else
24647   cat >conftest.$ac_ext <<_ACEOF
24648 /* confdefs.h.  */
24649 _ACEOF
24650 cat confdefs.h >>conftest.$ac_ext
24651 cat >>conftest.$ac_ext <<_ACEOF
24652 /* end confdefs.h.  */
24653 $ac_includes_default
24654 typedef size_t ac__type_new_;
24655 int
24656 main ()
24657 {
24658 if ((ac__type_new_ *) 0)
24659   return 0;
24660 if (sizeof (ac__type_new_))
24661   return 0;
24662   ;
24663   return 0;
24664 }
24665 _ACEOF
24666 rm -f conftest.$ac_objext
24667 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24674   ac_status=$?
24675   grep -v '^ *+' conftest.er1 >conftest.err
24676   rm -f conftest.er1
24677   cat conftest.err >&5
24678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679   (exit $ac_status); } &&
24680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24681   { (case "(($ac_try" in
24682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24683   *) ac_try_echo=$ac_try;;
24684 esac
24685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24686   (eval "$ac_try") 2>&5
24687   ac_status=$?
24688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689   (exit $ac_status); }; } &&
24690          { ac_try='test -s conftest.$ac_objext'
24691   { (case "(($ac_try" in
24692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24693   *) ac_try_echo=$ac_try;;
24694 esac
24695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24696   (eval "$ac_try") 2>&5
24697   ac_status=$?
24698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699   (exit $ac_status); }; }; then
24700   ac_cv_type_size_t=yes
24701 else
24702   echo "$as_me: failed program was:" >&5
24703 sed 's/^/| /' conftest.$ac_ext >&5
24704
24705         ac_cv_type_size_t=no
24706 fi
24707
24708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24709 fi
24710 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24711 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24712 if test $ac_cv_type_size_t = yes; then
24713   :
24714 else
24715
24716 cat >>confdefs.h <<_ACEOF
24717 #define size_t unsigned int
24718 _ACEOF
24719
24720 fi
24721
24722 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24723 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24724 if test "${ac_cv_header_time+set}" = set; then
24725   echo $ECHO_N "(cached) $ECHO_C" >&6
24726 else
24727   cat >conftest.$ac_ext <<_ACEOF
24728 /* confdefs.h.  */
24729 _ACEOF
24730 cat confdefs.h >>conftest.$ac_ext
24731 cat >>conftest.$ac_ext <<_ACEOF
24732 /* end confdefs.h.  */
24733 #include <sys/types.h>
24734 #include <sys/time.h>
24735 #include <time.h>
24736
24737 int
24738 main ()
24739 {
24740 if ((struct tm *) 0)
24741 return 0;
24742   ;
24743   return 0;
24744 }
24745 _ACEOF
24746 rm -f conftest.$ac_objext
24747 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24754   ac_status=$?
24755   grep -v '^ *+' conftest.er1 >conftest.err
24756   rm -f conftest.er1
24757   cat conftest.err >&5
24758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759   (exit $ac_status); } &&
24760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24761   { (case "(($ac_try" in
24762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24763   *) ac_try_echo=$ac_try;;
24764 esac
24765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24766   (eval "$ac_try") 2>&5
24767   ac_status=$?
24768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769   (exit $ac_status); }; } &&
24770          { ac_try='test -s conftest.$ac_objext'
24771   { (case "(($ac_try" in
24772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773   *) ac_try_echo=$ac_try;;
24774 esac
24775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776   (eval "$ac_try") 2>&5
24777   ac_status=$?
24778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779   (exit $ac_status); }; }; then
24780   ac_cv_header_time=yes
24781 else
24782   echo "$as_me: failed program was:" >&5
24783 sed 's/^/| /' conftest.$ac_ext >&5
24784
24785         ac_cv_header_time=no
24786 fi
24787
24788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24789 fi
24790 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24791 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24792 if test $ac_cv_header_time = yes; then
24793
24794 cat >>confdefs.h <<\_ACEOF
24795 #define TIME_WITH_SYS_TIME 1
24796 _ACEOF
24797
24798 fi
24799
24800 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24801 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24802 if test "${ac_cv_c_bigendian+set}" = set; then
24803   echo $ECHO_N "(cached) $ECHO_C" >&6
24804 else
24805   # See if sys/param.h defines the BYTE_ORDER macro.
24806 cat >conftest.$ac_ext <<_ACEOF
24807 /* confdefs.h.  */
24808 _ACEOF
24809 cat confdefs.h >>conftest.$ac_ext
24810 cat >>conftest.$ac_ext <<_ACEOF
24811 /* end confdefs.h.  */
24812 #include <sys/types.h>
24813 #include <sys/param.h>
24814
24815 int
24816 main ()
24817 {
24818 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24819  bogus endian macros
24820 #endif
24821
24822   ;
24823   return 0;
24824 }
24825 _ACEOF
24826 rm -f conftest.$ac_objext
24827 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24834   ac_status=$?
24835   grep -v '^ *+' conftest.er1 >conftest.err
24836   rm -f conftest.er1
24837   cat conftest.err >&5
24838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839   (exit $ac_status); } &&
24840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24841   { (case "(($ac_try" in
24842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24843   *) ac_try_echo=$ac_try;;
24844 esac
24845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24846   (eval "$ac_try") 2>&5
24847   ac_status=$?
24848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849   (exit $ac_status); }; } &&
24850          { ac_try='test -s conftest.$ac_objext'
24851   { (case "(($ac_try" in
24852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24853   *) ac_try_echo=$ac_try;;
24854 esac
24855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24856   (eval "$ac_try") 2>&5
24857   ac_status=$?
24858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859   (exit $ac_status); }; }; then
24860   # It does; now see whether it defined to BIG_ENDIAN or not.
24861 cat >conftest.$ac_ext <<_ACEOF
24862 /* confdefs.h.  */
24863 _ACEOF
24864 cat confdefs.h >>conftest.$ac_ext
24865 cat >>conftest.$ac_ext <<_ACEOF
24866 /* end confdefs.h.  */
24867 #include <sys/types.h>
24868 #include <sys/param.h>
24869
24870 int
24871 main ()
24872 {
24873 #if BYTE_ORDER != BIG_ENDIAN
24874  not big endian
24875 #endif
24876
24877   ;
24878   return 0;
24879 }
24880 _ACEOF
24881 rm -f conftest.$ac_objext
24882 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24889   ac_status=$?
24890   grep -v '^ *+' conftest.er1 >conftest.err
24891   rm -f conftest.er1
24892   cat conftest.err >&5
24893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894   (exit $ac_status); } &&
24895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24896   { (case "(($ac_try" in
24897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24898   *) ac_try_echo=$ac_try;;
24899 esac
24900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24901   (eval "$ac_try") 2>&5
24902   ac_status=$?
24903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904   (exit $ac_status); }; } &&
24905          { ac_try='test -s conftest.$ac_objext'
24906   { (case "(($ac_try" in
24907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24908   *) ac_try_echo=$ac_try;;
24909 esac
24910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24911   (eval "$ac_try") 2>&5
24912   ac_status=$?
24913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914   (exit $ac_status); }; }; then
24915   ac_cv_c_bigendian=yes
24916 else
24917   echo "$as_me: failed program was:" >&5
24918 sed 's/^/| /' conftest.$ac_ext >&5
24919
24920         ac_cv_c_bigendian=no
24921 fi
24922
24923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24924 else
24925   echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24927
24928         # It does not; compile a test program.
24929 if test "$cross_compiling" = yes; then
24930   # try to guess the endianness by grepping values into an object file
24931   ac_cv_c_bigendian=unknown
24932   cat >conftest.$ac_ext <<_ACEOF
24933 /* confdefs.h.  */
24934 _ACEOF
24935 cat confdefs.h >>conftest.$ac_ext
24936 cat >>conftest.$ac_ext <<_ACEOF
24937 /* end confdefs.h.  */
24938 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24939 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24940 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24941 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24942 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24943 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
24944 int
24945 main ()
24946 {
24947  _ascii (); _ebcdic ();
24948   ;
24949   return 0;
24950 }
24951 _ACEOF
24952 rm -f conftest.$ac_objext
24953 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24960   ac_status=$?
24961   grep -v '^ *+' conftest.er1 >conftest.err
24962   rm -f conftest.er1
24963   cat conftest.err >&5
24964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965   (exit $ac_status); } &&
24966          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24967   { (case "(($ac_try" in
24968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24969   *) ac_try_echo=$ac_try;;
24970 esac
24971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24972   (eval "$ac_try") 2>&5
24973   ac_status=$?
24974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975   (exit $ac_status); }; } &&
24976          { ac_try='test -s conftest.$ac_objext'
24977   { (case "(($ac_try" in
24978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24979   *) ac_try_echo=$ac_try;;
24980 esac
24981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24982   (eval "$ac_try") 2>&5
24983   ac_status=$?
24984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985   (exit $ac_status); }; }; then
24986   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
24987   ac_cv_c_bigendian=yes
24988 fi
24989 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24990   if test "$ac_cv_c_bigendian" = unknown; then
24991     ac_cv_c_bigendian=no
24992   else
24993     # finding both strings is unlikely to happen, but who knows?
24994     ac_cv_c_bigendian=unknown
24995   fi
24996 fi
24997 else
24998   echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25000
25001
25002 fi
25003
25004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25005 else
25006   cat >conftest.$ac_ext <<_ACEOF
25007 /* confdefs.h.  */
25008 _ACEOF
25009 cat confdefs.h >>conftest.$ac_ext
25010 cat >>conftest.$ac_ext <<_ACEOF
25011 /* end confdefs.h.  */
25012 $ac_includes_default
25013 int
25014 main ()
25015 {
25016
25017   /* Are we little or big endian?  From Harbison&Steele.  */
25018   union
25019   {
25020     long int l;
25021     char c[sizeof (long int)];
25022   } u;
25023   u.l = 1;
25024   return u.c[sizeof (long int) - 1] == 1;
25025
25026   ;
25027   return 0;
25028 }
25029 _ACEOF
25030 rm -f conftest$ac_exeext
25031 if { (ac_try="$ac_link"
25032 case "(($ac_try" in
25033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034   *) ac_try_echo=$ac_try;;
25035 esac
25036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25037   (eval "$ac_link") 2>&5
25038   ac_status=$?
25039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25041   { (case "(($ac_try" in
25042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25043   *) ac_try_echo=$ac_try;;
25044 esac
25045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25046   (eval "$ac_try") 2>&5
25047   ac_status=$?
25048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049   (exit $ac_status); }; }; then
25050   ac_cv_c_bigendian=no
25051 else
25052   echo "$as_me: program exited with status $ac_status" >&5
25053 echo "$as_me: failed program was:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25055
25056 ( exit $ac_status )
25057 ac_cv_c_bigendian=yes
25058 fi
25059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25060 fi
25061
25062
25063 fi
25064
25065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25066 fi
25067 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25068 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25069 case $ac_cv_c_bigendian in
25070   yes)
25071
25072 cat >>confdefs.h <<\_ACEOF
25073 #define WORDS_BIGENDIAN 1
25074 _ACEOF
25075  ;;
25076   no)
25077      ;;
25078   *)
25079     { { echo "$as_me:$LINENO: error: unknown endianness
25080 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
25081 echo "$as_me: error: unknown endianness
25082 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
25083    { (exit 1); exit 1; }; } ;;
25084 esac
25085
25086 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25087 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25088 if test "${ac_cv_struct_tm+set}" = set; then
25089   echo $ECHO_N "(cached) $ECHO_C" >&6
25090 else
25091   cat >conftest.$ac_ext <<_ACEOF
25092 /* confdefs.h.  */
25093 _ACEOF
25094 cat confdefs.h >>conftest.$ac_ext
25095 cat >>conftest.$ac_ext <<_ACEOF
25096 /* end confdefs.h.  */
25097 #include <sys/types.h>
25098 #include <time.h>
25099
25100 int
25101 main ()
25102 {
25103 struct tm *tp; tp->tm_sec;
25104   ;
25105   return 0;
25106 }
25107 _ACEOF
25108 rm -f conftest.$ac_objext
25109 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
25116   ac_status=$?
25117   grep -v '^ *+' conftest.er1 >conftest.err
25118   rm -f conftest.er1
25119   cat conftest.err >&5
25120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121   (exit $ac_status); } &&
25122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25123   { (case "(($ac_try" in
25124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25125   *) ac_try_echo=$ac_try;;
25126 esac
25127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25128   (eval "$ac_try") 2>&5
25129   ac_status=$?
25130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131   (exit $ac_status); }; } &&
25132          { ac_try='test -s conftest.$ac_objext'
25133   { (case "(($ac_try" in
25134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25135   *) ac_try_echo=$ac_try;;
25136 esac
25137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25138   (eval "$ac_try") 2>&5
25139   ac_status=$?
25140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141   (exit $ac_status); }; }; then
25142   ac_cv_struct_tm=time.h
25143 else
25144   echo "$as_me: failed program was:" >&5
25145 sed 's/^/| /' conftest.$ac_ext >&5
25146
25147         ac_cv_struct_tm=sys/time.h
25148 fi
25149
25150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25151 fi
25152 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25153 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25154 if test $ac_cv_struct_tm = sys/time.h; then
25155
25156 cat >>confdefs.h <<\_ACEOF
25157 #define TM_IN_SYS_TIME 1
25158 _ACEOF
25159
25160 fi
25161
25162
25163 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
25164 # for constant arguments.  Useless!
25165 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
25166 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
25167 if test "${ac_cv_working_alloca_h+set}" = set; then
25168   echo $ECHO_N "(cached) $ECHO_C" >&6
25169 else
25170   cat >conftest.$ac_ext <<_ACEOF
25171 /* confdefs.h.  */
25172 _ACEOF
25173 cat confdefs.h >>conftest.$ac_ext
25174 cat >>conftest.$ac_ext <<_ACEOF
25175 /* end confdefs.h.  */
25176 #include <alloca.h>
25177 int
25178 main ()
25179 {
25180 char *p = (char *) alloca (2 * sizeof (int));
25181                           if (p) return 0;
25182   ;
25183   return 0;
25184 }
25185 _ACEOF
25186 rm -f conftest.$ac_objext conftest$ac_exeext
25187 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
25194   ac_status=$?
25195   grep -v '^ *+' conftest.er1 >conftest.err
25196   rm -f conftest.er1
25197   cat conftest.err >&5
25198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25199   (exit $ac_status); } &&
25200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25201   { (case "(($ac_try" in
25202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25203   *) ac_try_echo=$ac_try;;
25204 esac
25205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25206   (eval "$ac_try") 2>&5
25207   ac_status=$?
25208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209   (exit $ac_status); }; } &&
25210          { ac_try='test -s conftest$ac_exeext'
25211   { (case "(($ac_try" in
25212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25213   *) ac_try_echo=$ac_try;;
25214 esac
25215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25216   (eval "$ac_try") 2>&5
25217   ac_status=$?
25218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219   (exit $ac_status); }; }; then
25220   ac_cv_working_alloca_h=yes
25221 else
25222   echo "$as_me: failed program was:" >&5
25223 sed 's/^/| /' conftest.$ac_ext >&5
25224
25225         ac_cv_working_alloca_h=no
25226 fi
25227
25228 rm -f core conftest.err conftest.$ac_objext \
25229       conftest$ac_exeext conftest.$ac_ext
25230 fi
25231 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
25232 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
25233 if test $ac_cv_working_alloca_h = yes; then
25234
25235 cat >>confdefs.h <<\_ACEOF
25236 #define HAVE_ALLOCA_H 1
25237 _ACEOF
25238
25239 fi
25240
25241 { echo "$as_me:$LINENO: checking for alloca" >&5
25242 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
25243 if test "${ac_cv_func_alloca_works+set}" = set; then
25244   echo $ECHO_N "(cached) $ECHO_C" >&6
25245 else
25246   cat >conftest.$ac_ext <<_ACEOF
25247 /* confdefs.h.  */
25248 _ACEOF
25249 cat confdefs.h >>conftest.$ac_ext
25250 cat >>conftest.$ac_ext <<_ACEOF
25251 /* end confdefs.h.  */
25252 #ifdef __GNUC__
25253 # define alloca __builtin_alloca
25254 #else
25255 # ifdef _MSC_VER
25256 #  include <malloc.h>
25257 #  define alloca _alloca
25258 # else
25259 #  if HAVE_ALLOCA_H
25260 #   include <alloca.h>
25261 #  else
25262 #   ifdef _AIX
25263  #pragma alloca
25264 #   else
25265 #    ifndef alloca /* predefined by HP cc +Olibcalls */
25266 char *alloca ();
25267 #    endif
25268 #   endif
25269 #  endif
25270 # endif
25271 #endif
25272
25273 int
25274 main ()
25275 {
25276 char *p = (char *) alloca (1);
25277                                     if (p) return 0;
25278   ;
25279   return 0;
25280 }
25281 _ACEOF
25282 rm -f conftest.$ac_objext conftest$ac_exeext
25283 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
25290   ac_status=$?
25291   grep -v '^ *+' conftest.er1 >conftest.err
25292   rm -f conftest.er1
25293   cat conftest.err >&5
25294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295   (exit $ac_status); } &&
25296          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25297   { (case "(($ac_try" in
25298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25299   *) ac_try_echo=$ac_try;;
25300 esac
25301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25302   (eval "$ac_try") 2>&5
25303   ac_status=$?
25304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305   (exit $ac_status); }; } &&
25306          { ac_try='test -s conftest$ac_exeext'
25307   { (case "(($ac_try" in
25308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25309   *) ac_try_echo=$ac_try;;
25310 esac
25311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25312   (eval "$ac_try") 2>&5
25313   ac_status=$?
25314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315   (exit $ac_status); }; }; then
25316   ac_cv_func_alloca_works=yes
25317 else
25318   echo "$as_me: failed program was:" >&5
25319 sed 's/^/| /' conftest.$ac_ext >&5
25320
25321         ac_cv_func_alloca_works=no
25322 fi
25323
25324 rm -f core conftest.err conftest.$ac_objext \
25325       conftest$ac_exeext conftest.$ac_ext
25326 fi
25327 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
25328 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
25329
25330 if test $ac_cv_func_alloca_works = yes; then
25331
25332 cat >>confdefs.h <<\_ACEOF
25333 #define HAVE_ALLOCA 1
25334 _ACEOF
25335
25336 else
25337   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25338 # that cause trouble.  Some versions do not even contain alloca or
25339 # contain a buggy version.  If you still want to use their alloca,
25340 # use ar to extract alloca.o from them instead of compiling alloca.c.
25341
25342 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25343
25344 cat >>confdefs.h <<\_ACEOF
25345 #define C_ALLOCA 1
25346 _ACEOF
25347
25348
25349 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25350 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25351 if test "${ac_cv_os_cray+set}" = set; then
25352   echo $ECHO_N "(cached) $ECHO_C" >&6
25353 else
25354   cat >conftest.$ac_ext <<_ACEOF
25355 /* confdefs.h.  */
25356 _ACEOF
25357 cat confdefs.h >>conftest.$ac_ext
25358 cat >>conftest.$ac_ext <<_ACEOF
25359 /* end confdefs.h.  */
25360 #if defined CRAY && ! defined CRAY2
25361 webecray
25362 #else
25363 wenotbecray
25364 #endif
25365
25366 _ACEOF
25367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25368   $EGREP "webecray" >/dev/null 2>&1; then
25369   ac_cv_os_cray=yes
25370 else
25371   ac_cv_os_cray=no
25372 fi
25373 rm -f conftest*
25374
25375 fi
25376 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25377 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25378 if test $ac_cv_os_cray = yes; then
25379   for ac_func in _getb67 GETB67 getb67; do
25380     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25381 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25384   echo $ECHO_N "(cached) $ECHO_C" >&6
25385 else
25386   cat >conftest.$ac_ext <<_ACEOF
25387 /* confdefs.h.  */
25388 _ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h.  */
25392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25394 #define $ac_func innocuous_$ac_func
25395
25396 /* System header to define __stub macros and hopefully few prototypes,
25397     which can conflict with char $ac_func (); below.
25398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25399     <limits.h> exists even on freestanding compilers.  */
25400
25401 #ifdef __STDC__
25402 # include <limits.h>
25403 #else
25404 # include <assert.h>
25405 #endif
25406
25407 #undef $ac_func
25408
25409 /* Override any GCC internal prototype to avoid an error.
25410    Use char because int might match the return type of a GCC
25411    builtin and then its argument prototype would still apply.  */
25412 #ifdef __cplusplus
25413 extern "C"
25414 #endif
25415 char $ac_func ();
25416 /* The GNU C library defines this for functions which it implements
25417     to always fail with ENOSYS.  Some functions are actually named
25418     something starting with __ and the normal name is an alias.  */
25419 #if defined __stub_$ac_func || defined __stub___$ac_func
25420 choke me
25421 #endif
25422
25423 int
25424 main ()
25425 {
25426 return $ac_func ();
25427   ;
25428   return 0;
25429 }
25430 _ACEOF
25431 rm -f conftest.$ac_objext conftest$ac_exeext
25432 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
25439   ac_status=$?
25440   grep -v '^ *+' conftest.er1 >conftest.err
25441   rm -f conftest.er1
25442   cat conftest.err >&5
25443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444   (exit $ac_status); } &&
25445          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25446   { (case "(($ac_try" in
25447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25448   *) ac_try_echo=$ac_try;;
25449 esac
25450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25451   (eval "$ac_try") 2>&5
25452   ac_status=$?
25453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454   (exit $ac_status); }; } &&
25455          { ac_try='test -s conftest$ac_exeext'
25456   { (case "(($ac_try" in
25457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25458   *) ac_try_echo=$ac_try;;
25459 esac
25460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25461   (eval "$ac_try") 2>&5
25462   ac_status=$?
25463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464   (exit $ac_status); }; }; then
25465   eval "$as_ac_var=yes"
25466 else
25467   echo "$as_me: failed program was:" >&5
25468 sed 's/^/| /' conftest.$ac_ext >&5
25469
25470         eval "$as_ac_var=no"
25471 fi
25472
25473 rm -f core conftest.err conftest.$ac_objext \
25474       conftest$ac_exeext conftest.$ac_ext
25475 fi
25476 ac_res=`eval echo '${'$as_ac_var'}'`
25477                { echo "$as_me:$LINENO: result: $ac_res" >&5
25478 echo "${ECHO_T}$ac_res" >&6; }
25479 if test `eval echo '${'$as_ac_var'}'` = yes; then
25480
25481 cat >>confdefs.h <<_ACEOF
25482 #define CRAY_STACKSEG_END $ac_func
25483 _ACEOF
25484
25485     break
25486 fi
25487
25488   done
25489 fi
25490
25491 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25492 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25493 if test "${ac_cv_c_stack_direction+set}" = set; then
25494   echo $ECHO_N "(cached) $ECHO_C" >&6
25495 else
25496   if test "$cross_compiling" = yes; then
25497   ac_cv_c_stack_direction=0
25498 else
25499   cat >conftest.$ac_ext <<_ACEOF
25500 /* confdefs.h.  */
25501 _ACEOF
25502 cat confdefs.h >>conftest.$ac_ext
25503 cat >>conftest.$ac_ext <<_ACEOF
25504 /* end confdefs.h.  */
25505 $ac_includes_default
25506 int
25507 find_stack_direction ()
25508 {
25509   static char *addr = 0;
25510   auto char dummy;
25511   if (addr == 0)
25512     {
25513       addr = &dummy;
25514       return find_stack_direction ();
25515     }
25516   else
25517     return (&dummy > addr) ? 1 : -1;
25518 }
25519
25520 int
25521 main ()
25522 {
25523   return find_stack_direction () < 0;
25524 }
25525 _ACEOF
25526 rm -f conftest$ac_exeext
25527 if { (ac_try="$ac_link"
25528 case "(($ac_try" in
25529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25530   *) ac_try_echo=$ac_try;;
25531 esac
25532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25533   (eval "$ac_link") 2>&5
25534   ac_status=$?
25535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25537   { (case "(($ac_try" in
25538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25539   *) ac_try_echo=$ac_try;;
25540 esac
25541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25542   (eval "$ac_try") 2>&5
25543   ac_status=$?
25544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545   (exit $ac_status); }; }; then
25546   ac_cv_c_stack_direction=1
25547 else
25548   echo "$as_me: program exited with status $ac_status" >&5
25549 echo "$as_me: failed program was:" >&5
25550 sed 's/^/| /' conftest.$ac_ext >&5
25551
25552 ( exit $ac_status )
25553 ac_cv_c_stack_direction=-1
25554 fi
25555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25556 fi
25557
25558
25559 fi
25560 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25561 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25562
25563 cat >>confdefs.h <<_ACEOF
25564 #define STACK_DIRECTION $ac_cv_c_stack_direction
25565 _ACEOF
25566
25567
25568 fi
25569
25570 { echo "$as_me:$LINENO: checking for function prototypes" >&5
25571 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
25572 if test "$ac_cv_prog_cc_c89" != no; then
25573   { echo "$as_me:$LINENO: result: yes" >&5
25574 echo "${ECHO_T}yes" >&6; }
25575
25576 cat >>confdefs.h <<\_ACEOF
25577 #define PROTOTYPES 1
25578 _ACEOF
25579
25580
25581 cat >>confdefs.h <<\_ACEOF
25582 #define __PROTOTYPES 1
25583 _ACEOF
25584
25585 else
25586   { echo "$as_me:$LINENO: result: no" >&5
25587 echo "${ECHO_T}no" >&6; }
25588 fi
25589
25590 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
25591 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
25592 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
25593   echo $ECHO_N "(cached) $ECHO_C" >&6
25594 else
25595   ac_cv_func_setvbuf_reversed=no
25596    cat >conftest.$ac_ext <<_ACEOF
25597 /* confdefs.h.  */
25598 _ACEOF
25599 cat confdefs.h >>conftest.$ac_ext
25600 cat >>conftest.$ac_ext <<_ACEOF
25601 /* end confdefs.h.  */
25602 #include <stdio.h>
25603 #         if PROTOTYPES
25604            int (setvbuf) (FILE *, int, char *, size_t);
25605 #         endif
25606 int
25607 main ()
25608 {
25609 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
25610   ;
25611   return 0;
25612 }
25613 _ACEOF
25614 rm -f conftest.$ac_objext conftest$ac_exeext
25615 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
25622   ac_status=$?
25623   grep -v '^ *+' conftest.er1 >conftest.err
25624   rm -f conftest.er1
25625   cat conftest.err >&5
25626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627   (exit $ac_status); } &&
25628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25629   { (case "(($ac_try" in
25630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25631   *) ac_try_echo=$ac_try;;
25632 esac
25633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25634   (eval "$ac_try") 2>&5
25635   ac_status=$?
25636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637   (exit $ac_status); }; } &&
25638          { ac_try='test -s conftest$ac_exeext'
25639   { (case "(($ac_try" in
25640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641   *) ac_try_echo=$ac_try;;
25642 esac
25643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25644   (eval "$ac_try") 2>&5
25645   ac_status=$?
25646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647   (exit $ac_status); }; }; then
25648   cat >conftest.$ac_ext <<_ACEOF
25649 /* confdefs.h.  */
25650 _ACEOF
25651 cat confdefs.h >>conftest.$ac_ext
25652 cat >>conftest.$ac_ext <<_ACEOF
25653 /* end confdefs.h.  */
25654 #include <stdio.h>
25655 #            if PROTOTYPES
25656               int (setvbuf) (FILE *, int, char *, size_t);
25657 #            endif
25658 int
25659 main ()
25660 {
25661 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
25662   ;
25663   return 0;
25664 }
25665 _ACEOF
25666 rm -f conftest.$ac_objext conftest$ac_exeext
25667 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
25674   ac_status=$?
25675   grep -v '^ *+' conftest.er1 >conftest.err
25676   rm -f conftest.er1
25677   cat conftest.err >&5
25678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679   (exit $ac_status); } &&
25680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25681   { (case "(($ac_try" in
25682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25683   *) ac_try_echo=$ac_try;;
25684 esac
25685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25686   (eval "$ac_try") 2>&5
25687   ac_status=$?
25688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689   (exit $ac_status); }; } &&
25690          { ac_try='test -s conftest$ac_exeext'
25691   { (case "(($ac_try" in
25692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25693   *) ac_try_echo=$ac_try;;
25694 esac
25695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25696   (eval "$ac_try") 2>&5
25697   ac_status=$?
25698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699   (exit $ac_status); }; }; then
25700   # It compiles and links either way, so it must not be declared
25701          # with a prototype and most likely this is a K&R C compiler.
25702          # Try running it.
25703          if test "$cross_compiling" = yes; then
25704   : # Assume setvbuf is not reversed when cross-compiling.
25705 else
25706   cat >conftest.$ac_ext <<_ACEOF
25707 /* confdefs.h.  */
25708 _ACEOF
25709 cat confdefs.h >>conftest.$ac_ext
25710 cat >>conftest.$ac_ext <<_ACEOF
25711 /* end confdefs.h.  */
25712 $ac_includes_default
25713 int
25714 main ()
25715 {
25716 /* This call has the arguments reversed.
25717                    A reversed system may check and see that the address of buf
25718                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
25719                 char buf;
25720                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
25721                   return 1;
25722                 putchar ('\r');
25723                 return 0; /* Non-reversed systems SEGV here.  */
25724   ;
25725   return 0;
25726 }
25727 _ACEOF
25728 rm -f conftest$ac_exeext
25729 if { (ac_try="$ac_link"
25730 case "(($ac_try" in
25731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25732   *) ac_try_echo=$ac_try;;
25733 esac
25734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25735   (eval "$ac_link") 2>&5
25736   ac_status=$?
25737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25739   { (case "(($ac_try" in
25740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25741   *) ac_try_echo=$ac_try;;
25742 esac
25743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25744   (eval "$ac_try") 2>&5
25745   ac_status=$?
25746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747   (exit $ac_status); }; }; then
25748   ac_cv_func_setvbuf_reversed=yes
25749 else
25750   echo "$as_me: program exited with status $ac_status" >&5
25751 echo "$as_me: failed program was:" >&5
25752 sed 's/^/| /' conftest.$ac_ext >&5
25753
25754 fi
25755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25756 fi
25757
25758
25759         ac_cv_func_setvbuf_reversed=yes
25760 else
25761   echo "$as_me: failed program was:" >&5
25762 sed 's/^/| /' conftest.$ac_ext >&5
25763
25764
25765 fi
25766
25767 rm -f core conftest.err conftest.$ac_objext \
25768       conftest$ac_exeext conftest.$ac_ext
25769 else
25770   echo "$as_me: failed program was:" >&5
25771 sed 's/^/| /' conftest.$ac_ext >&5
25772
25773
25774 fi
25775
25776 rm -f core conftest.err conftest.$ac_objext \
25777       conftest$ac_exeext conftest.$ac_ext
25778 fi
25779 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
25780 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
25781 if test $ac_cv_func_setvbuf_reversed = yes; then
25782
25783 cat >>confdefs.h <<\_ACEOF
25784 #define SETVBUF_REVERSED 1
25785 _ACEOF
25786
25787 fi
25788
25789
25790 for ac_func in vprintf
25791 do
25792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25793 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25795 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25796   echo $ECHO_N "(cached) $ECHO_C" >&6
25797 else
25798   cat >conftest.$ac_ext <<_ACEOF
25799 /* confdefs.h.  */
25800 _ACEOF
25801 cat confdefs.h >>conftest.$ac_ext
25802 cat >>conftest.$ac_ext <<_ACEOF
25803 /* end confdefs.h.  */
25804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25806 #define $ac_func innocuous_$ac_func
25807
25808 /* System header to define __stub macros and hopefully few prototypes,
25809     which can conflict with char $ac_func (); below.
25810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25811     <limits.h> exists even on freestanding compilers.  */
25812
25813 #ifdef __STDC__
25814 # include <limits.h>
25815 #else
25816 # include <assert.h>
25817 #endif
25818
25819 #undef $ac_func
25820
25821 /* Override any GCC internal prototype to avoid an error.
25822    Use char because int might match the return type of a GCC
25823    builtin and then its argument prototype would still apply.  */
25824 #ifdef __cplusplus
25825 extern "C"
25826 #endif
25827 char $ac_func ();
25828 /* The GNU C library defines this for functions which it implements
25829     to always fail with ENOSYS.  Some functions are actually named
25830     something starting with __ and the normal name is an alias.  */
25831 #if defined __stub_$ac_func || defined __stub___$ac_func
25832 choke me
25833 #endif
25834
25835 int
25836 main ()
25837 {
25838 return $ac_func ();
25839   ;
25840   return 0;
25841 }
25842 _ACEOF
25843 rm -f conftest.$ac_objext conftest$ac_exeext
25844 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
25851   ac_status=$?
25852   grep -v '^ *+' conftest.er1 >conftest.err
25853   rm -f conftest.er1
25854   cat conftest.err >&5
25855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856   (exit $ac_status); } &&
25857          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25858   { (case "(($ac_try" in
25859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25860   *) ac_try_echo=$ac_try;;
25861 esac
25862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25863   (eval "$ac_try") 2>&5
25864   ac_status=$?
25865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25866   (exit $ac_status); }; } &&
25867          { ac_try='test -s conftest$ac_exeext'
25868   { (case "(($ac_try" in
25869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25870   *) ac_try_echo=$ac_try;;
25871 esac
25872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25873   (eval "$ac_try") 2>&5
25874   ac_status=$?
25875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25876   (exit $ac_status); }; }; then
25877   eval "$as_ac_var=yes"
25878 else
25879   echo "$as_me: failed program was:" >&5
25880 sed 's/^/| /' conftest.$ac_ext >&5
25881
25882         eval "$as_ac_var=no"
25883 fi
25884
25885 rm -f core conftest.err conftest.$ac_objext \
25886       conftest$ac_exeext conftest.$ac_ext
25887 fi
25888 ac_res=`eval echo '${'$as_ac_var'}'`
25889                { echo "$as_me:$LINENO: result: $ac_res" >&5
25890 echo "${ECHO_T}$ac_res" >&6; }
25891 if test `eval echo '${'$as_ac_var'}'` = yes; then
25892   cat >>confdefs.h <<_ACEOF
25893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25894 _ACEOF
25895
25896 { echo "$as_me:$LINENO: checking for _doprnt" >&5
25897 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
25898 if test "${ac_cv_func__doprnt+set}" = set; then
25899   echo $ECHO_N "(cached) $ECHO_C" >&6
25900 else
25901   cat >conftest.$ac_ext <<_ACEOF
25902 /* confdefs.h.  */
25903 _ACEOF
25904 cat confdefs.h >>conftest.$ac_ext
25905 cat >>conftest.$ac_ext <<_ACEOF
25906 /* end confdefs.h.  */
25907 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25909 #define _doprnt innocuous__doprnt
25910
25911 /* System header to define __stub macros and hopefully few prototypes,
25912     which can conflict with char _doprnt (); below.
25913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25914     <limits.h> exists even on freestanding compilers.  */
25915
25916 #ifdef __STDC__
25917 # include <limits.h>
25918 #else
25919 # include <assert.h>
25920 #endif
25921
25922 #undef _doprnt
25923
25924 /* Override any GCC internal prototype to avoid an error.
25925    Use char because int might match the return type of a GCC
25926    builtin and then its argument prototype would still apply.  */
25927 #ifdef __cplusplus
25928 extern "C"
25929 #endif
25930 char _doprnt ();
25931 /* The GNU C library defines this for functions which it implements
25932     to always fail with ENOSYS.  Some functions are actually named
25933     something starting with __ and the normal name is an alias.  */
25934 #if defined __stub__doprnt || defined __stub____doprnt
25935 choke me
25936 #endif
25937
25938 int
25939 main ()
25940 {
25941 return _doprnt ();
25942   ;
25943   return 0;
25944 }
25945 _ACEOF
25946 rm -f conftest.$ac_objext conftest$ac_exeext
25947 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
25954   ac_status=$?
25955   grep -v '^ *+' conftest.er1 >conftest.err
25956   rm -f conftest.er1
25957   cat conftest.err >&5
25958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959   (exit $ac_status); } &&
25960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25961   { (case "(($ac_try" in
25962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25963   *) ac_try_echo=$ac_try;;
25964 esac
25965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25966   (eval "$ac_try") 2>&5
25967   ac_status=$?
25968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969   (exit $ac_status); }; } &&
25970          { ac_try='test -s conftest$ac_exeext'
25971   { (case "(($ac_try" in
25972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25973   *) ac_try_echo=$ac_try;;
25974 esac
25975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25976   (eval "$ac_try") 2>&5
25977   ac_status=$?
25978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979   (exit $ac_status); }; }; then
25980   ac_cv_func__doprnt=yes
25981 else
25982   echo "$as_me: failed program was:" >&5
25983 sed 's/^/| /' conftest.$ac_ext >&5
25984
25985         ac_cv_func__doprnt=no
25986 fi
25987
25988 rm -f core conftest.err conftest.$ac_objext \
25989       conftest$ac_exeext conftest.$ac_ext
25990 fi
25991 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25992 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
25993 if test $ac_cv_func__doprnt = yes; then
25994
25995 cat >>confdefs.h <<\_ACEOF
25996 #define HAVE_DOPRNT 1
25997 _ACEOF
25998
25999 fi
26000
26001 fi
26002 done
26003
26004
26005
26006
26007
26008
26009
26010
26011
26012
26013 for ac_func in mmap select socket strcspn strerror strspn getpagesize sysconf
26014 do
26015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26019   echo $ECHO_N "(cached) $ECHO_C" >&6
26020 else
26021   cat >conftest.$ac_ext <<_ACEOF
26022 /* confdefs.h.  */
26023 _ACEOF
26024 cat confdefs.h >>conftest.$ac_ext
26025 cat >>conftest.$ac_ext <<_ACEOF
26026 /* end confdefs.h.  */
26027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26029 #define $ac_func innocuous_$ac_func
26030
26031 /* System header to define __stub macros and hopefully few prototypes,
26032     which can conflict with char $ac_func (); below.
26033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26034     <limits.h> exists even on freestanding compilers.  */
26035
26036 #ifdef __STDC__
26037 # include <limits.h>
26038 #else
26039 # include <assert.h>
26040 #endif
26041
26042 #undef $ac_func
26043
26044 /* Override any GCC internal prototype to avoid an error.
26045    Use char because int might match the return type of a GCC
26046    builtin and then its argument prototype would still apply.  */
26047 #ifdef __cplusplus
26048 extern "C"
26049 #endif
26050 char $ac_func ();
26051 /* The GNU C library defines this for functions which it implements
26052     to always fail with ENOSYS.  Some functions are actually named
26053     something starting with __ and the normal name is an alias.  */
26054 #if defined __stub_$ac_func || defined __stub___$ac_func
26055 choke me
26056 #endif
26057
26058 int
26059 main ()
26060 {
26061 return $ac_func ();
26062   ;
26063   return 0;
26064 }
26065 _ACEOF
26066 rm -f conftest.$ac_objext conftest$ac_exeext
26067 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
26074   ac_status=$?
26075   grep -v '^ *+' conftest.er1 >conftest.err
26076   rm -f conftest.er1
26077   cat conftest.err >&5
26078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079   (exit $ac_status); } &&
26080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26081   { (case "(($ac_try" in
26082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26083   *) ac_try_echo=$ac_try;;
26084 esac
26085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26086   (eval "$ac_try") 2>&5
26087   ac_status=$?
26088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089   (exit $ac_status); }; } &&
26090          { ac_try='test -s conftest$ac_exeext'
26091   { (case "(($ac_try" in
26092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26093   *) ac_try_echo=$ac_try;;
26094 esac
26095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26096   (eval "$ac_try") 2>&5
26097   ac_status=$?
26098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099   (exit $ac_status); }; }; then
26100   eval "$as_ac_var=yes"
26101 else
26102   echo "$as_me: failed program was:" >&5
26103 sed 's/^/| /' conftest.$ac_ext >&5
26104
26105         eval "$as_ac_var=no"
26106 fi
26107
26108 rm -f core conftest.err conftest.$ac_objext \
26109       conftest$ac_exeext conftest.$ac_ext
26110 fi
26111 ac_res=`eval echo '${'$as_ac_var'}'`
26112                { echo "$as_me:$LINENO: result: $ac_res" >&5
26113 echo "${ECHO_T}$ac_res" >&6; }
26114 if test `eval echo '${'$as_ac_var'}'` = yes; then
26115   cat >>confdefs.h <<_ACEOF
26116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26117 _ACEOF
26118
26119 fi
26120 done
26121
26122
26123
26124
26125
26126 for ac_func in snprintf gettimeofday nanosleep sched_setscheduler
26127 do
26128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26129 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26132   echo $ECHO_N "(cached) $ECHO_C" >&6
26133 else
26134   cat >conftest.$ac_ext <<_ACEOF
26135 /* confdefs.h.  */
26136 _ACEOF
26137 cat confdefs.h >>conftest.$ac_ext
26138 cat >>conftest.$ac_ext <<_ACEOF
26139 /* end confdefs.h.  */
26140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26142 #define $ac_func innocuous_$ac_func
26143
26144 /* System header to define __stub macros and hopefully few prototypes,
26145     which can conflict with char $ac_func (); below.
26146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26147     <limits.h> exists even on freestanding compilers.  */
26148
26149 #ifdef __STDC__
26150 # include <limits.h>
26151 #else
26152 # include <assert.h>
26153 #endif
26154
26155 #undef $ac_func
26156
26157 /* Override any GCC internal prototype to avoid an error.
26158    Use char because int might match the return type of a GCC
26159    builtin and then its argument prototype would still apply.  */
26160 #ifdef __cplusplus
26161 extern "C"
26162 #endif
26163 char $ac_func ();
26164 /* The GNU C library defines this for functions which it implements
26165     to always fail with ENOSYS.  Some functions are actually named
26166     something starting with __ and the normal name is an alias.  */
26167 #if defined __stub_$ac_func || defined __stub___$ac_func
26168 choke me
26169 #endif
26170
26171 int
26172 main ()
26173 {
26174 return $ac_func ();
26175   ;
26176   return 0;
26177 }
26178 _ACEOF
26179 rm -f conftest.$ac_objext conftest$ac_exeext
26180 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
26187   ac_status=$?
26188   grep -v '^ *+' conftest.er1 >conftest.err
26189   rm -f conftest.er1
26190   cat conftest.err >&5
26191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192   (exit $ac_status); } &&
26193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26194   { (case "(($ac_try" in
26195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26196   *) ac_try_echo=$ac_try;;
26197 esac
26198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26199   (eval "$ac_try") 2>&5
26200   ac_status=$?
26201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202   (exit $ac_status); }; } &&
26203          { ac_try='test -s conftest$ac_exeext'
26204   { (case "(($ac_try" in
26205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26206   *) ac_try_echo=$ac_try;;
26207 esac
26208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26209   (eval "$ac_try") 2>&5
26210   ac_status=$?
26211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212   (exit $ac_status); }; }; then
26213   eval "$as_ac_var=yes"
26214 else
26215   echo "$as_me: failed program was:" >&5
26216 sed 's/^/| /' conftest.$ac_ext >&5
26217
26218         eval "$as_ac_var=no"
26219 fi
26220
26221 rm -f core conftest.err conftest.$ac_objext \
26222       conftest$ac_exeext conftest.$ac_ext
26223 fi
26224 ac_res=`eval echo '${'$as_ac_var'}'`
26225                { echo "$as_me:$LINENO: result: $ac_res" >&5
26226 echo "${ECHO_T}$ac_res" >&6; }
26227 if test `eval echo '${'$as_ac_var'}'` = yes; then
26228   cat >>confdefs.h <<_ACEOF
26229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26230 _ACEOF
26231
26232 fi
26233 done
26234
26235
26236
26237 for ac_func in modf sqrt
26238 do
26239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26240 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26242 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26243   echo $ECHO_N "(cached) $ECHO_C" >&6
26244 else
26245   cat >conftest.$ac_ext <<_ACEOF
26246 /* confdefs.h.  */
26247 _ACEOF
26248 cat confdefs.h >>conftest.$ac_ext
26249 cat >>conftest.$ac_ext <<_ACEOF
26250 /* end confdefs.h.  */
26251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26252    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26253 #define $ac_func innocuous_$ac_func
26254
26255 /* System header to define __stub macros and hopefully few prototypes,
26256     which can conflict with char $ac_func (); below.
26257     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26258     <limits.h> exists even on freestanding compilers.  */
26259
26260 #ifdef __STDC__
26261 # include <limits.h>
26262 #else
26263 # include <assert.h>
26264 #endif
26265
26266 #undef $ac_func
26267
26268 /* Override any GCC internal prototype to avoid an error.
26269    Use char because int might match the return type of a GCC
26270    builtin and then its argument prototype would still apply.  */
26271 #ifdef __cplusplus
26272 extern "C"
26273 #endif
26274 char $ac_func ();
26275 /* The GNU C library defines this for functions which it implements
26276     to always fail with ENOSYS.  Some functions are actually named
26277     something starting with __ and the normal name is an alias.  */
26278 #if defined __stub_$ac_func || defined __stub___$ac_func
26279 choke me
26280 #endif
26281
26282 int
26283 main ()
26284 {
26285 return $ac_func ();
26286   ;
26287   return 0;
26288 }
26289 _ACEOF
26290 rm -f conftest.$ac_objext conftest$ac_exeext
26291 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
26298   ac_status=$?
26299   grep -v '^ *+' conftest.er1 >conftest.err
26300   rm -f conftest.er1
26301   cat conftest.err >&5
26302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303   (exit $ac_status); } &&
26304          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26305   { (case "(($ac_try" in
26306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26307   *) ac_try_echo=$ac_try;;
26308 esac
26309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26310   (eval "$ac_try") 2>&5
26311   ac_status=$?
26312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313   (exit $ac_status); }; } &&
26314          { ac_try='test -s conftest$ac_exeext'
26315   { (case "(($ac_try" in
26316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26317   *) ac_try_echo=$ac_try;;
26318 esac
26319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26320   (eval "$ac_try") 2>&5
26321   ac_status=$?
26322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323   (exit $ac_status); }; }; then
26324   eval "$as_ac_var=yes"
26325 else
26326   echo "$as_me: failed program was:" >&5
26327 sed 's/^/| /' conftest.$ac_ext >&5
26328
26329         eval "$as_ac_var=no"
26330 fi
26331
26332 rm -f core conftest.err conftest.$ac_objext \
26333       conftest$ac_exeext conftest.$ac_ext
26334 fi
26335 ac_res=`eval echo '${'$as_ac_var'}'`
26336                { echo "$as_me:$LINENO: result: $ac_res" >&5
26337 echo "${ECHO_T}$ac_res" >&6; }
26338 if test `eval echo '${'$as_ac_var'}'` = yes; then
26339   cat >>confdefs.h <<_ACEOF
26340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26341 _ACEOF
26342
26343 fi
26344 done
26345
26346
26347 { echo "$as_me:$LINENO: checking for sincos in -lm" >&5
26348 echo $ECHO_N "checking for sincos in -lm... $ECHO_C" >&6; }
26349 if test "${ac_cv_lib_m_sincos+set}" = set; then
26350   echo $ECHO_N "(cached) $ECHO_C" >&6
26351 else
26352   ac_check_lib_save_LIBS=$LIBS
26353 LIBS="-lm  $LIBS"
26354 cat >conftest.$ac_ext <<_ACEOF
26355 /* confdefs.h.  */
26356 _ACEOF
26357 cat confdefs.h >>conftest.$ac_ext
26358 cat >>conftest.$ac_ext <<_ACEOF
26359 /* end confdefs.h.  */
26360
26361 /* Override any GCC internal prototype to avoid an error.
26362    Use char because int might match the return type of a GCC
26363    builtin and then its argument prototype would still apply.  */
26364 #ifdef __cplusplus
26365 extern "C"
26366 #endif
26367 char sincos ();
26368 int
26369 main ()
26370 {
26371 return sincos ();
26372   ;
26373   return 0;
26374 }
26375 _ACEOF
26376 rm -f conftest.$ac_objext conftest$ac_exeext
26377 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
26384   ac_status=$?
26385   grep -v '^ *+' conftest.er1 >conftest.err
26386   rm -f conftest.er1
26387   cat conftest.err >&5
26388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389   (exit $ac_status); } &&
26390          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26391   { (case "(($ac_try" in
26392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26393   *) ac_try_echo=$ac_try;;
26394 esac
26395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26396   (eval "$ac_try") 2>&5
26397   ac_status=$?
26398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26399   (exit $ac_status); }; } &&
26400          { ac_try='test -s conftest$ac_exeext'
26401   { (case "(($ac_try" in
26402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26403   *) ac_try_echo=$ac_try;;
26404 esac
26405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26406   (eval "$ac_try") 2>&5
26407   ac_status=$?
26408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409   (exit $ac_status); }; }; then
26410   ac_cv_lib_m_sincos=yes
26411 else
26412   echo "$as_me: failed program was:" >&5
26413 sed 's/^/| /' conftest.$ac_ext >&5
26414
26415         ac_cv_lib_m_sincos=no
26416 fi
26417
26418 rm -f core conftest.err conftest.$ac_objext \
26419       conftest$ac_exeext conftest.$ac_ext
26420 LIBS=$ac_check_lib_save_LIBS
26421 fi
26422 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sincos" >&5
26423 echo "${ECHO_T}$ac_cv_lib_m_sincos" >&6; }
26424 if test $ac_cv_lib_m_sincos = yes; then
26425
26426 cat >>confdefs.h <<\_ACEOF
26427 #define HAVE_SINCOS 1
26428 _ACEOF
26429
26430 fi
26431
26432 { echo "$as_me:$LINENO: checking for sincosf in -lm" >&5
26433 echo $ECHO_N "checking for sincosf in -lm... $ECHO_C" >&6; }
26434 if test "${ac_cv_lib_m_sincosf+set}" = set; then
26435   echo $ECHO_N "(cached) $ECHO_C" >&6
26436 else
26437   ac_check_lib_save_LIBS=$LIBS
26438 LIBS="-lm  $LIBS"
26439 cat >conftest.$ac_ext <<_ACEOF
26440 /* confdefs.h.  */
26441 _ACEOF
26442 cat confdefs.h >>conftest.$ac_ext
26443 cat >>conftest.$ac_ext <<_ACEOF
26444 /* end confdefs.h.  */
26445
26446 /* Override any GCC internal prototype to avoid an error.
26447    Use char because int might match the return type of a GCC
26448    builtin and then its argument prototype would still apply.  */
26449 #ifdef __cplusplus
26450 extern "C"
26451 #endif
26452 char sincosf ();
26453 int
26454 main ()
26455 {
26456 return sincosf ();
26457   ;
26458   return 0;
26459 }
26460 _ACEOF
26461 rm -f conftest.$ac_objext conftest$ac_exeext
26462 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
26469   ac_status=$?
26470   grep -v '^ *+' conftest.er1 >conftest.err
26471   rm -f conftest.er1
26472   cat conftest.err >&5
26473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26474   (exit $ac_status); } &&
26475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26476   { (case "(($ac_try" in
26477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26478   *) ac_try_echo=$ac_try;;
26479 esac
26480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26481   (eval "$ac_try") 2>&5
26482   ac_status=$?
26483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484   (exit $ac_status); }; } &&
26485          { ac_try='test -s conftest$ac_exeext'
26486   { (case "(($ac_try" in
26487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26488   *) ac_try_echo=$ac_try;;
26489 esac
26490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26491   (eval "$ac_try") 2>&5
26492   ac_status=$?
26493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494   (exit $ac_status); }; }; then
26495   ac_cv_lib_m_sincosf=yes
26496 else
26497   echo "$as_me: failed program was:" >&5
26498 sed 's/^/| /' conftest.$ac_ext >&5
26499
26500         ac_cv_lib_m_sincosf=no
26501 fi
26502
26503 rm -f core conftest.err conftest.$ac_objext \
26504       conftest$ac_exeext conftest.$ac_ext
26505 LIBS=$ac_check_lib_save_LIBS
26506 fi
26507 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sincosf" >&5
26508 echo "${ECHO_T}$ac_cv_lib_m_sincosf" >&6; }
26509 if test $ac_cv_lib_m_sincosf = yes; then
26510
26511 cat >>confdefs.h <<\_ACEOF
26512 #define HAVE_SINCOSF 1
26513 _ACEOF
26514
26515 fi
26516
26517 { echo "$as_me:$LINENO: checking for sinf in -lm" >&5
26518 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6; }
26519 if test "${ac_cv_lib_m_sinf+set}" = set; then
26520   echo $ECHO_N "(cached) $ECHO_C" >&6
26521 else
26522   ac_check_lib_save_LIBS=$LIBS
26523 LIBS="-lm  $LIBS"
26524 cat >conftest.$ac_ext <<_ACEOF
26525 /* confdefs.h.  */
26526 _ACEOF
26527 cat confdefs.h >>conftest.$ac_ext
26528 cat >>conftest.$ac_ext <<_ACEOF
26529 /* end confdefs.h.  */
26530
26531 /* Override any GCC internal prototype to avoid an error.
26532    Use char because int might match the return type of a GCC
26533    builtin and then its argument prototype would still apply.  */
26534 #ifdef __cplusplus
26535 extern "C"
26536 #endif
26537 char sinf ();
26538 int
26539 main ()
26540 {
26541 return sinf ();
26542   ;
26543   return 0;
26544 }
26545 _ACEOF
26546 rm -f conftest.$ac_objext conftest$ac_exeext
26547 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
26554   ac_status=$?
26555   grep -v '^ *+' conftest.er1 >conftest.err
26556   rm -f conftest.er1
26557   cat conftest.err >&5
26558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559   (exit $ac_status); } &&
26560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26561   { (case "(($ac_try" in
26562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26563   *) ac_try_echo=$ac_try;;
26564 esac
26565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26566   (eval "$ac_try") 2>&5
26567   ac_status=$?
26568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569   (exit $ac_status); }; } &&
26570          { ac_try='test -s conftest$ac_exeext'
26571   { (case "(($ac_try" in
26572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26573   *) ac_try_echo=$ac_try;;
26574 esac
26575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26576   (eval "$ac_try") 2>&5
26577   ac_status=$?
26578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579   (exit $ac_status); }; }; then
26580   ac_cv_lib_m_sinf=yes
26581 else
26582   echo "$as_me: failed program was:" >&5
26583 sed 's/^/| /' conftest.$ac_ext >&5
26584
26585         ac_cv_lib_m_sinf=no
26586 fi
26587
26588 rm -f core conftest.err conftest.$ac_objext \
26589       conftest$ac_exeext conftest.$ac_ext
26590 LIBS=$ac_check_lib_save_LIBS
26591 fi
26592 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
26593 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6; }
26594 if test $ac_cv_lib_m_sinf = yes; then
26595
26596 cat >>confdefs.h <<\_ACEOF
26597 #define HAVE_SINF 1
26598 _ACEOF
26599
26600 fi
26601
26602 { echo "$as_me:$LINENO: checking for cosf in -lm" >&5
26603 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6; }
26604 if test "${ac_cv_lib_m_cosf+set}" = set; then
26605   echo $ECHO_N "(cached) $ECHO_C" >&6
26606 else
26607   ac_check_lib_save_LIBS=$LIBS
26608 LIBS="-lm  $LIBS"
26609 cat >conftest.$ac_ext <<_ACEOF
26610 /* confdefs.h.  */
26611 _ACEOF
26612 cat confdefs.h >>conftest.$ac_ext
26613 cat >>conftest.$ac_ext <<_ACEOF
26614 /* end confdefs.h.  */
26615
26616 /* Override any GCC internal prototype to avoid an error.
26617    Use char because int might match the return type of a GCC
26618    builtin and then its argument prototype would still apply.  */
26619 #ifdef __cplusplus
26620 extern "C"
26621 #endif
26622 char cosf ();
26623 int
26624 main ()
26625 {
26626 return cosf ();
26627   ;
26628   return 0;
26629 }
26630 _ACEOF
26631 rm -f conftest.$ac_objext conftest$ac_exeext
26632 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
26639   ac_status=$?
26640   grep -v '^ *+' conftest.er1 >conftest.err
26641   rm -f conftest.er1
26642   cat conftest.err >&5
26643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644   (exit $ac_status); } &&
26645          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26646   { (case "(($ac_try" in
26647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26648   *) ac_try_echo=$ac_try;;
26649 esac
26650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26651   (eval "$ac_try") 2>&5
26652   ac_status=$?
26653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654   (exit $ac_status); }; } &&
26655          { ac_try='test -s conftest$ac_exeext'
26656   { (case "(($ac_try" in
26657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26658   *) ac_try_echo=$ac_try;;
26659 esac
26660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26661   (eval "$ac_try") 2>&5
26662   ac_status=$?
26663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664   (exit $ac_status); }; }; then
26665   ac_cv_lib_m_cosf=yes
26666 else
26667   echo "$as_me: failed program was:" >&5
26668 sed 's/^/| /' conftest.$ac_ext >&5
26669
26670         ac_cv_lib_m_cosf=no
26671 fi
26672
26673 rm -f core conftest.err conftest.$ac_objext \
26674       conftest$ac_exeext conftest.$ac_ext
26675 LIBS=$ac_check_lib_save_LIBS
26676 fi
26677 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
26678 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6; }
26679 if test $ac_cv_lib_m_cosf = yes; then
26680
26681 cat >>confdefs.h <<\_ACEOF
26682 #define HAVE_COSF 1
26683 _ACEOF
26684
26685 fi
26686
26687 { echo "$as_me:$LINENO: checking for trunc in -lm" >&5
26688 echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6; }
26689 if test "${ac_cv_lib_m_trunc+set}" = set; then
26690   echo $ECHO_N "(cached) $ECHO_C" >&6
26691 else
26692   ac_check_lib_save_LIBS=$LIBS
26693 LIBS="-lm  $LIBS"
26694 cat >conftest.$ac_ext <<_ACEOF
26695 /* confdefs.h.  */
26696 _ACEOF
26697 cat confdefs.h >>conftest.$ac_ext
26698 cat >>conftest.$ac_ext <<_ACEOF
26699 /* end confdefs.h.  */
26700
26701 /* Override any GCC internal prototype to avoid an error.
26702    Use char because int might match the return type of a GCC
26703    builtin and then its argument prototype would still apply.  */
26704 #ifdef __cplusplus
26705 extern "C"
26706 #endif
26707 char trunc ();
26708 int
26709 main ()
26710 {
26711 return trunc ();
26712   ;
26713   return 0;
26714 }
26715 _ACEOF
26716 rm -f conftest.$ac_objext conftest$ac_exeext
26717 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
26724   ac_status=$?
26725   grep -v '^ *+' conftest.er1 >conftest.err
26726   rm -f conftest.er1
26727   cat conftest.err >&5
26728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729   (exit $ac_status); } &&
26730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26731   { (case "(($ac_try" in
26732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26733   *) ac_try_echo=$ac_try;;
26734 esac
26735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26736   (eval "$ac_try") 2>&5
26737   ac_status=$?
26738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739   (exit $ac_status); }; } &&
26740          { ac_try='test -s conftest$ac_exeext'
26741   { (case "(($ac_try" in
26742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26743   *) ac_try_echo=$ac_try;;
26744 esac
26745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26746   (eval "$ac_try") 2>&5
26747   ac_status=$?
26748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26749   (exit $ac_status); }; }; then
26750   ac_cv_lib_m_trunc=yes
26751 else
26752   echo "$as_me: failed program was:" >&5
26753 sed 's/^/| /' conftest.$ac_ext >&5
26754
26755         ac_cv_lib_m_trunc=no
26756 fi
26757
26758 rm -f core conftest.err conftest.$ac_objext \
26759       conftest$ac_exeext conftest.$ac_ext
26760 LIBS=$ac_check_lib_save_LIBS
26761 fi
26762 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5
26763 echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6; }
26764 if test $ac_cv_lib_m_trunc = yes; then
26765
26766 cat >>confdefs.h <<\_ACEOF
26767 #define HAVE_TRUNC 1
26768 _ACEOF
26769
26770 fi
26771
26772 { echo "$as_me:$LINENO: checking for exp10 in -lm" >&5
26773 echo $ECHO_N "checking for exp10 in -lm... $ECHO_C" >&6; }
26774 if test "${ac_cv_lib_m_exp10+set}" = set; then
26775   echo $ECHO_N "(cached) $ECHO_C" >&6
26776 else
26777   ac_check_lib_save_LIBS=$LIBS
26778 LIBS="-lm  $LIBS"
26779 cat >conftest.$ac_ext <<_ACEOF
26780 /* confdefs.h.  */
26781 _ACEOF
26782 cat confdefs.h >>conftest.$ac_ext
26783 cat >>conftest.$ac_ext <<_ACEOF
26784 /* end confdefs.h.  */
26785
26786 /* Override any GCC internal prototype to avoid an error.
26787    Use char because int might match the return type of a GCC
26788    builtin and then its argument prototype would still apply.  */
26789 #ifdef __cplusplus
26790 extern "C"
26791 #endif
26792 char exp10 ();
26793 int
26794 main ()
26795 {
26796 return exp10 ();
26797   ;
26798   return 0;
26799 }
26800 _ACEOF
26801 rm -f conftest.$ac_objext conftest$ac_exeext
26802 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
26809   ac_status=$?
26810   grep -v '^ *+' conftest.er1 >conftest.err
26811   rm -f conftest.er1
26812   cat conftest.err >&5
26813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814   (exit $ac_status); } &&
26815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26816   { (case "(($ac_try" in
26817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26818   *) ac_try_echo=$ac_try;;
26819 esac
26820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26821   (eval "$ac_try") 2>&5
26822   ac_status=$?
26823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824   (exit $ac_status); }; } &&
26825          { ac_try='test -s conftest$ac_exeext'
26826   { (case "(($ac_try" in
26827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26828   *) ac_try_echo=$ac_try;;
26829 esac
26830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26831   (eval "$ac_try") 2>&5
26832   ac_status=$?
26833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26834   (exit $ac_status); }; }; then
26835   ac_cv_lib_m_exp10=yes
26836 else
26837   echo "$as_me: failed program was:" >&5
26838 sed 's/^/| /' conftest.$ac_ext >&5
26839
26840         ac_cv_lib_m_exp10=no
26841 fi
26842
26843 rm -f core conftest.err conftest.$ac_objext \
26844       conftest$ac_exeext conftest.$ac_ext
26845 LIBS=$ac_check_lib_save_LIBS
26846 fi
26847 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp10" >&5
26848 echo "${ECHO_T}$ac_cv_lib_m_exp10" >&6; }
26849 if test $ac_cv_lib_m_exp10 = yes; then
26850
26851 cat >>confdefs.h <<\_ACEOF
26852 #define HAVE_EXP10 1
26853 _ACEOF
26854
26855 fi
26856
26857 #AC_FUNC_MKTIME
26858
26859
26860
26861
26862
26863   SHM_OPEN_LIBS=""
26864   save_LIBS="$LIBS"
26865   { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26866 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26867 if test "${ac_cv_search_shm_open+set}" = set; then
26868   echo $ECHO_N "(cached) $ECHO_C" >&6
26869 else
26870   ac_func_search_save_LIBS=$LIBS
26871 cat >conftest.$ac_ext <<_ACEOF
26872 /* confdefs.h.  */
26873 _ACEOF
26874 cat confdefs.h >>conftest.$ac_ext
26875 cat >>conftest.$ac_ext <<_ACEOF
26876 /* end confdefs.h.  */
26877
26878 /* Override any GCC internal prototype to avoid an error.
26879    Use char because int might match the return type of a GCC
26880    builtin and then its argument prototype would still apply.  */
26881 #ifdef __cplusplus
26882 extern "C"
26883 #endif
26884 char shm_open ();
26885 int
26886 main ()
26887 {
26888 return shm_open ();
26889   ;
26890   return 0;
26891 }
26892 _ACEOF
26893 for ac_lib in '' rt; do
26894   if test -z "$ac_lib"; then
26895     ac_res="none required"
26896   else
26897     ac_res=-l$ac_lib
26898     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26899   fi
26900   rm -f conftest.$ac_objext conftest$ac_exeext
26901 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
26908   ac_status=$?
26909   grep -v '^ *+' conftest.er1 >conftest.err
26910   rm -f conftest.er1
26911   cat conftest.err >&5
26912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913   (exit $ac_status); } &&
26914          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26915   { (case "(($ac_try" in
26916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26917   *) ac_try_echo=$ac_try;;
26918 esac
26919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26920   (eval "$ac_try") 2>&5
26921   ac_status=$?
26922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923   (exit $ac_status); }; } &&
26924          { ac_try='test -s conftest$ac_exeext'
26925   { (case "(($ac_try" in
26926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26927   *) ac_try_echo=$ac_try;;
26928 esac
26929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26930   (eval "$ac_try") 2>&5
26931   ac_status=$?
26932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933   (exit $ac_status); }; }; then
26934   ac_cv_search_shm_open=$ac_res
26935 else
26936   echo "$as_me: failed program was:" >&5
26937 sed 's/^/| /' conftest.$ac_ext >&5
26938
26939
26940 fi
26941
26942 rm -f core conftest.err conftest.$ac_objext \
26943       conftest$ac_exeext
26944   if test "${ac_cv_search_shm_open+set}" = set; then
26945   break
26946 fi
26947 done
26948 if test "${ac_cv_search_shm_open+set}" = set; then
26949   :
26950 else
26951   ac_cv_search_shm_open=no
26952 fi
26953 rm conftest.$ac_ext
26954 LIBS=$ac_func_search_save_LIBS
26955 fi
26956 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26957 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26958 ac_res=$ac_cv_search_shm_open
26959 if test "$ac_res" != no; then
26960   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26961   SHM_OPEN_LIBS="$LIBS"
26962 fi
26963
26964
26965 for ac_func in shm_open
26966 do
26967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26968 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26970 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26971   echo $ECHO_N "(cached) $ECHO_C" >&6
26972 else
26973   cat >conftest.$ac_ext <<_ACEOF
26974 /* confdefs.h.  */
26975 _ACEOF
26976 cat confdefs.h >>conftest.$ac_ext
26977 cat >>conftest.$ac_ext <<_ACEOF
26978 /* end confdefs.h.  */
26979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26981 #define $ac_func innocuous_$ac_func
26982
26983 /* System header to define __stub macros and hopefully few prototypes,
26984     which can conflict with char $ac_func (); below.
26985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26986     <limits.h> exists even on freestanding compilers.  */
26987
26988 #ifdef __STDC__
26989 # include <limits.h>
26990 #else
26991 # include <assert.h>
26992 #endif
26993
26994 #undef $ac_func
26995
26996 /* Override any GCC internal prototype to avoid an error.
26997    Use char because int might match the return type of a GCC
26998    builtin and then its argument prototype would still apply.  */
26999 #ifdef __cplusplus
27000 extern "C"
27001 #endif
27002 char $ac_func ();
27003 /* The GNU C library defines this for functions which it implements
27004     to always fail with ENOSYS.  Some functions are actually named
27005     something starting with __ and the normal name is an alias.  */
27006 #if defined __stub_$ac_func || defined __stub___$ac_func
27007 choke me
27008 #endif
27009
27010 int
27011 main ()
27012 {
27013 return $ac_func ();
27014   ;
27015   return 0;
27016 }
27017 _ACEOF
27018 rm -f conftest.$ac_objext conftest$ac_exeext
27019 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
27026   ac_status=$?
27027   grep -v '^ *+' conftest.er1 >conftest.err
27028   rm -f conftest.er1
27029   cat conftest.err >&5
27030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031   (exit $ac_status); } &&
27032          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27033   { (case "(($ac_try" in
27034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035   *) ac_try_echo=$ac_try;;
27036 esac
27037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27038   (eval "$ac_try") 2>&5
27039   ac_status=$?
27040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041   (exit $ac_status); }; } &&
27042          { ac_try='test -s conftest$ac_exeext'
27043   { (case "(($ac_try" in
27044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27045   *) ac_try_echo=$ac_try;;
27046 esac
27047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27048   (eval "$ac_try") 2>&5
27049   ac_status=$?
27050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27051   (exit $ac_status); }; }; then
27052   eval "$as_ac_var=yes"
27053 else
27054   echo "$as_me: failed program was:" >&5
27055 sed 's/^/| /' conftest.$ac_ext >&5
27056
27057         eval "$as_ac_var=no"
27058 fi
27059
27060 rm -f core conftest.err conftest.$ac_objext \
27061       conftest$ac_exeext conftest.$ac_ext
27062 fi
27063 ac_res=`eval echo '${'$as_ac_var'}'`
27064                { echo "$as_me:$LINENO: result: $ac_res" >&5
27065 echo "${ECHO_T}$ac_res" >&6; }
27066 if test `eval echo '${'$as_ac_var'}'` = yes; then
27067   cat >>confdefs.h <<_ACEOF
27068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27069 _ACEOF
27070
27071 fi
27072 done
27073
27074   LIBS="$save_LIBS"
27075
27076
27077
27078
27079 # on Mingw32 extra LDFLAGS are required to ease global variable linking
27080 LIBGNURADIO_CORE_EXTRA_LDFLAGS=""
27081
27082 { echo "$as_me:$LINENO: checking whether $LD accepts --enable-runtime-pseudo-reloc" >&5
27083 echo $ECHO_N "checking whether $LD accepts --enable-runtime-pseudo-reloc... $ECHO_C" >&6; }
27084 if ${LD} --enable-runtime-pseudo-reloc --version >/dev/null 2>&1
27085 then
27086         # libtool requires the quotes
27087         LIBGNURADIO_CORE_EXTRA_LDFLAGS="\"-Wl,--enable-runtime-pseudo-reloc\""
27088         { echo "$as_me:$LINENO: result: yes" >&5
27089 echo "${ECHO_T}yes" >&6; }
27090 else
27091         { echo "$as_me:$LINENO: result: no" >&5
27092 echo "${ECHO_T}no" >&6; }
27093 fi
27094
27095
27096
27097
27098
27099   { echo "$as_me:$LINENO: checking for CreateFileMapping function" >&5
27100 echo $ECHO_N "checking for CreateFileMapping function... $ECHO_C" >&6; }
27101   cat >conftest.$ac_ext <<_ACEOF
27102
27103 #include <windows.h>
27104 int main (int argc, char **argv)
27105 {
27106     HANDLE handle;
27107     int size;
27108     char                seg_name[1024];
27109     handle = CreateFileMapping(
27110                      INVALID_HANDLE_VALUE,    // use paging file
27111                      NULL,                    // default security
27112                      PAGE_READWRITE,          // read/write access
27113                      0,                       // max. object size
27114                      size,                // buffer size
27115                      seg_name);                 // name of mapping object
27116     return 0;
27117 }
27118
27119 _ACEOF
27120 rm -f conftest.$ac_objext
27121 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27128   ac_status=$?
27129   grep -v '^ *+' conftest.er1 >conftest.err
27130   rm -f conftest.er1
27131   cat conftest.err >&5
27132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133   (exit $ac_status); } &&
27134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27135   { (case "(($ac_try" in
27136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27137   *) ac_try_echo=$ac_try;;
27138 esac
27139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27140   (eval "$ac_try") 2>&5
27141   ac_status=$?
27142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143   (exit $ac_status); }; } &&
27144          { ac_try='test -s conftest.$ac_objext'
27145   { (case "(($ac_try" in
27146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27147   *) ac_try_echo=$ac_try;;
27148 esac
27149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27150   (eval "$ac_try") 2>&5
27151   ac_status=$?
27152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153   (exit $ac_status); }; }; then
27154   HAVE_CREATEFILEMAPPING=yes
27155
27156 cat >>confdefs.h <<\_ACEOF
27157 #define HAVE_CREATEFILEMAPPING 1
27158 _ACEOF
27159
27160 else
27161   echo "$as_me: failed program was:" >&5
27162 sed 's/^/| /' conftest.$ac_ext >&5
27163
27164         HAVE_CREATEFILEMAPPING=no
27165 fi
27166
27167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27168
27169   { echo "$as_me:$LINENO: result: $HAVE_CREATEFILEMAPPING" >&5
27170 echo "${ECHO_T}$HAVE_CREATEFILEMAPPING" >&6; }
27171
27172
27173 if test x$HAVE_CREATEFILEMAPPING = xyes; then
27174   HAVE_CREATEFILEMAPPING_TRUE=
27175   HAVE_CREATEFILEMAPPING_FALSE='#'
27176 else
27177   HAVE_CREATEFILEMAPPING_TRUE='#'
27178   HAVE_CREATEFILEMAPPING_FALSE=
27179 fi
27180
27181
27182
27183
27184
27185
27186
27187
27188 for ac_header in sys/types.h fcntl.h io.h
27189 do
27190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27192   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27195   echo $ECHO_N "(cached) $ECHO_C" >&6
27196 fi
27197 ac_res=`eval echo '${'$as_ac_Header'}'`
27198                { echo "$as_me:$LINENO: result: $ac_res" >&5
27199 echo "${ECHO_T}$ac_res" >&6; }
27200 else
27201   # Is the header compilable?
27202 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27204 cat >conftest.$ac_ext <<_ACEOF
27205 /* confdefs.h.  */
27206 _ACEOF
27207 cat confdefs.h >>conftest.$ac_ext
27208 cat >>conftest.$ac_ext <<_ACEOF
27209 /* end confdefs.h.  */
27210 $ac_includes_default
27211 #include <$ac_header>
27212 _ACEOF
27213 rm -f conftest.$ac_objext
27214 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27221   ac_status=$?
27222   grep -v '^ *+' conftest.er1 >conftest.err
27223   rm -f conftest.er1
27224   cat conftest.err >&5
27225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226   (exit $ac_status); } &&
27227          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27228   { (case "(($ac_try" in
27229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27230   *) ac_try_echo=$ac_try;;
27231 esac
27232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27233   (eval "$ac_try") 2>&5
27234   ac_status=$?
27235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236   (exit $ac_status); }; } &&
27237          { ac_try='test -s conftest.$ac_objext'
27238   { (case "(($ac_try" in
27239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27240   *) ac_try_echo=$ac_try;;
27241 esac
27242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27243   (eval "$ac_try") 2>&5
27244   ac_status=$?
27245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246   (exit $ac_status); }; }; then
27247   ac_header_compiler=yes
27248 else
27249   echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27251
27252         ac_header_compiler=no
27253 fi
27254
27255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27257 echo "${ECHO_T}$ac_header_compiler" >&6; }
27258
27259 # Is the header present?
27260 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27262 cat >conftest.$ac_ext <<_ACEOF
27263 /* confdefs.h.  */
27264 _ACEOF
27265 cat confdefs.h >>conftest.$ac_ext
27266 cat >>conftest.$ac_ext <<_ACEOF
27267 /* end confdefs.h.  */
27268 #include <$ac_header>
27269 _ACEOF
27270 if { (ac_try="$ac_cpp conftest.$ac_ext"
27271 case "(($ac_try" in
27272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27273   *) ac_try_echo=$ac_try;;
27274 esac
27275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27276   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27277   ac_status=$?
27278   grep -v '^ *+' conftest.er1 >conftest.err
27279   rm -f conftest.er1
27280   cat conftest.err >&5
27281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27282   (exit $ac_status); } >/dev/null; then
27283   if test -s conftest.err; then
27284     ac_cpp_err=$ac_c_preproc_warn_flag
27285     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27286   else
27287     ac_cpp_err=
27288   fi
27289 else
27290   ac_cpp_err=yes
27291 fi
27292 if test -z "$ac_cpp_err"; then
27293   ac_header_preproc=yes
27294 else
27295   echo "$as_me: failed program was:" >&5
27296 sed 's/^/| /' conftest.$ac_ext >&5
27297
27298   ac_header_preproc=no
27299 fi
27300
27301 rm -f conftest.err conftest.$ac_ext
27302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27303 echo "${ECHO_T}$ac_header_preproc" >&6; }
27304
27305 # So?  What about this header?
27306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27307   yes:no: )
27308     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27312     ac_header_preproc=yes
27313     ;;
27314   no:yes:* )
27315     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27317     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27318 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27319     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27321     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27322 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27323     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27325     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27327
27328     ;;
27329 esac
27330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27333   echo $ECHO_N "(cached) $ECHO_C" >&6
27334 else
27335   eval "$as_ac_Header=\$ac_header_preproc"
27336 fi
27337 ac_res=`eval echo '${'$as_ac_Header'}'`
27338                { echo "$as_me:$LINENO: result: $ac_res" >&5
27339 echo "${ECHO_T}$ac_res" >&6; }
27340
27341 fi
27342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27343   cat >>confdefs.h <<_ACEOF
27344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27345 _ACEOF
27346
27347 fi
27348
27349 done
27350
27351
27352 for ac_header in windows.h
27353 do
27354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27356   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27359   echo $ECHO_N "(cached) $ECHO_C" >&6
27360 fi
27361 ac_res=`eval echo '${'$as_ac_Header'}'`
27362                { echo "$as_me:$LINENO: result: $ac_res" >&5
27363 echo "${ECHO_T}$ac_res" >&6; }
27364 else
27365   # Is the header compilable?
27366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27368 cat >conftest.$ac_ext <<_ACEOF
27369 /* confdefs.h.  */
27370 _ACEOF
27371 cat confdefs.h >>conftest.$ac_ext
27372 cat >>conftest.$ac_ext <<_ACEOF
27373 /* end confdefs.h.  */
27374 $ac_includes_default
27375 #include <$ac_header>
27376 _ACEOF
27377 rm -f conftest.$ac_objext
27378 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27385   ac_status=$?
27386   grep -v '^ *+' conftest.er1 >conftest.err
27387   rm -f conftest.er1
27388   cat conftest.err >&5
27389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390   (exit $ac_status); } &&
27391          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27392   { (case "(($ac_try" in
27393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27394   *) ac_try_echo=$ac_try;;
27395 esac
27396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27397   (eval "$ac_try") 2>&5
27398   ac_status=$?
27399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400   (exit $ac_status); }; } &&
27401          { ac_try='test -s conftest.$ac_objext'
27402   { (case "(($ac_try" in
27403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27404   *) ac_try_echo=$ac_try;;
27405 esac
27406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27407   (eval "$ac_try") 2>&5
27408   ac_status=$?
27409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27410   (exit $ac_status); }; }; then
27411   ac_header_compiler=yes
27412 else
27413   echo "$as_me: failed program was:" >&5
27414 sed 's/^/| /' conftest.$ac_ext >&5
27415
27416         ac_header_compiler=no
27417 fi
27418
27419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27420 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27421 echo "${ECHO_T}$ac_header_compiler" >&6; }
27422
27423 # Is the header present?
27424 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27426 cat >conftest.$ac_ext <<_ACEOF
27427 /* confdefs.h.  */
27428 _ACEOF
27429 cat confdefs.h >>conftest.$ac_ext
27430 cat >>conftest.$ac_ext <<_ACEOF
27431 /* end confdefs.h.  */
27432 #include <$ac_header>
27433 _ACEOF
27434 if { (ac_try="$ac_cpp conftest.$ac_ext"
27435 case "(($ac_try" in
27436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27437   *) ac_try_echo=$ac_try;;
27438 esac
27439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27440   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27441   ac_status=$?
27442   grep -v '^ *+' conftest.er1 >conftest.err
27443   rm -f conftest.er1
27444   cat conftest.err >&5
27445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446   (exit $ac_status); } >/dev/null; then
27447   if test -s conftest.err; then
27448     ac_cpp_err=$ac_c_preproc_warn_flag
27449     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27450   else
27451     ac_cpp_err=
27452   fi
27453 else
27454   ac_cpp_err=yes
27455 fi
27456 if test -z "$ac_cpp_err"; then
27457   ac_header_preproc=yes
27458 else
27459   echo "$as_me: failed program was:" >&5
27460 sed 's/^/| /' conftest.$ac_ext >&5
27461
27462   ac_header_preproc=no
27463 fi
27464
27465 rm -f conftest.err conftest.$ac_ext
27466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27467 echo "${ECHO_T}$ac_header_preproc" >&6; }
27468
27469 # So?  What about this header?
27470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27471   yes:no: )
27472     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27476     ac_header_preproc=yes
27477     ;;
27478   no:yes:* )
27479     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27481     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27482 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27483     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27485     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27486 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27489     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27491
27492     ;;
27493 esac
27494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27497   echo $ECHO_N "(cached) $ECHO_C" >&6
27498 else
27499   eval "$as_ac_Header=\$ac_header_preproc"
27500 fi
27501 ac_res=`eval echo '${'$as_ac_Header'}'`
27502                { echo "$as_me:$LINENO: result: $ac_res" >&5
27503 echo "${ECHO_T}$ac_res" >&6; }
27504
27505 fi
27506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27507   cat >>confdefs.h <<_ACEOF
27508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27509 _ACEOF
27510
27511 fi
27512
27513 done
27514
27515
27516
27517 for ac_header in winioctl.h winbase.h
27518 do
27519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27523   echo $ECHO_N "(cached) $ECHO_C" >&6
27524 else
27525   cat >conftest.$ac_ext <<_ACEOF
27526 /* confdefs.h.  */
27527 _ACEOF
27528 cat confdefs.h >>conftest.$ac_ext
27529 cat >>conftest.$ac_ext <<_ACEOF
27530 /* end confdefs.h.  */
27531
27532         #if HAVE_WINDOWS_H
27533         #include <windows.h>
27534         #endif
27535
27536
27537 #include <$ac_header>
27538 _ACEOF
27539 rm -f conftest.$ac_objext
27540 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27547   ac_status=$?
27548   grep -v '^ *+' conftest.er1 >conftest.err
27549   rm -f conftest.er1
27550   cat conftest.err >&5
27551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552   (exit $ac_status); } &&
27553          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27554   { (case "(($ac_try" in
27555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556   *) ac_try_echo=$ac_try;;
27557 esac
27558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27559   (eval "$ac_try") 2>&5
27560   ac_status=$?
27561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562   (exit $ac_status); }; } &&
27563          { ac_try='test -s conftest.$ac_objext'
27564   { (case "(($ac_try" in
27565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27566   *) ac_try_echo=$ac_try;;
27567 esac
27568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27569   (eval "$ac_try") 2>&5
27570   ac_status=$?
27571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572   (exit $ac_status); }; }; then
27573   eval "$as_ac_Header=yes"
27574 else
27575   echo "$as_me: failed program was:" >&5
27576 sed 's/^/| /' conftest.$ac_ext >&5
27577
27578         eval "$as_ac_Header=no"
27579 fi
27580
27581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27582 fi
27583 ac_res=`eval echo '${'$as_ac_Header'}'`
27584                { echo "$as_me:$LINENO: result: $ac_res" >&5
27585 echo "${ECHO_T}$ac_res" >&6; }
27586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27587   cat >>confdefs.h <<_ACEOF
27588 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27589 _ACEOF
27590
27591 fi
27592
27593 done
27594
27595
27596
27597
27598
27599
27600
27601
27602
27603
27604
27605
27606 for ac_func in getopt usleep gettimeofday nanosleep rand srand random srandom sleep sigaction
27607 do
27608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27612   echo $ECHO_N "(cached) $ECHO_C" >&6
27613 else
27614   cat >conftest.$ac_ext <<_ACEOF
27615 /* confdefs.h.  */
27616 _ACEOF
27617 cat confdefs.h >>conftest.$ac_ext
27618 cat >>conftest.$ac_ext <<_ACEOF
27619 /* end confdefs.h.  */
27620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27621    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27622 #define $ac_func innocuous_$ac_func
27623
27624 /* System header to define __stub macros and hopefully few prototypes,
27625     which can conflict with char $ac_func (); below.
27626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27627     <limits.h> exists even on freestanding compilers.  */
27628
27629 #ifdef __STDC__
27630 # include <limits.h>
27631 #else
27632 # include <assert.h>
27633 #endif
27634
27635 #undef $ac_func
27636
27637 /* Override any GCC internal prototype to avoid an error.
27638    Use char because int might match the return type of a GCC
27639    builtin and then its argument prototype would still apply.  */
27640 #ifdef __cplusplus
27641 extern "C"
27642 #endif
27643 char $ac_func ();
27644 /* The GNU C library defines this for functions which it implements
27645     to always fail with ENOSYS.  Some functions are actually named
27646     something starting with __ and the normal name is an alias.  */
27647 #if defined __stub_$ac_func || defined __stub___$ac_func
27648 choke me
27649 #endif
27650
27651 int
27652 main ()
27653 {
27654 return $ac_func ();
27655   ;
27656   return 0;
27657 }
27658 _ACEOF
27659 rm -f conftest.$ac_objext conftest$ac_exeext
27660 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
27667   ac_status=$?
27668   grep -v '^ *+' conftest.er1 >conftest.err
27669   rm -f conftest.er1
27670   cat conftest.err >&5
27671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672   (exit $ac_status); } &&
27673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27674   { (case "(($ac_try" in
27675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27676   *) ac_try_echo=$ac_try;;
27677 esac
27678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27679   (eval "$ac_try") 2>&5
27680   ac_status=$?
27681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682   (exit $ac_status); }; } &&
27683          { ac_try='test -s conftest$ac_exeext'
27684   { (case "(($ac_try" in
27685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27686   *) ac_try_echo=$ac_try;;
27687 esac
27688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27689   (eval "$ac_try") 2>&5
27690   ac_status=$?
27691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692   (exit $ac_status); }; }; then
27693   eval "$as_ac_var=yes"
27694 else
27695   echo "$as_me: failed program was:" >&5
27696 sed 's/^/| /' conftest.$ac_ext >&5
27697
27698         eval "$as_ac_var=no"
27699 fi
27700
27701 rm -f core conftest.err conftest.$ac_objext \
27702       conftest$ac_exeext conftest.$ac_ext
27703 fi
27704 ac_res=`eval echo '${'$as_ac_var'}'`
27705                { echo "$as_me:$LINENO: result: $ac_res" >&5
27706 echo "${ECHO_T}$ac_res" >&6; }
27707 if test `eval echo '${'$as_ac_var'}'` = yes; then
27708   cat >>confdefs.h <<_ACEOF
27709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27710 _ACEOF
27711
27712 fi
27713 done
27714
27715 { echo "$as_me:$LINENO: checking for struct timezone" >&5
27716 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6; }
27717 if test "${ac_cv_type_struct_timezone+set}" = set; then
27718   echo $ECHO_N "(cached) $ECHO_C" >&6
27719 else
27720   cat >conftest.$ac_ext <<_ACEOF
27721 /* confdefs.h.  */
27722 _ACEOF
27723 cat confdefs.h >>conftest.$ac_ext
27724 cat >>conftest.$ac_ext <<_ACEOF
27725 /* end confdefs.h.  */
27726
27727      #if HAVE_SYS_TYPES_H
27728      # include <sys/types.h>
27729      #endif
27730      #if TIME_WITH_SYS_TIME
27731      # include <sys/time.h>
27732      # include <time.h>
27733      #else
27734      # if HAVE_SYS_TIME_H
27735      #  include <sys/time.h>
27736      # else
27737      #  include <time.h>
27738      # endif
27739      #endif
27740
27741
27742 typedef struct timezone ac__type_new_;
27743 int
27744 main ()
27745 {
27746 if ((ac__type_new_ *) 0)
27747   return 0;
27748 if (sizeof (ac__type_new_))
27749   return 0;
27750   ;
27751   return 0;
27752 }
27753 _ACEOF
27754 rm -f conftest.$ac_objext
27755 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27762   ac_status=$?
27763   grep -v '^ *+' conftest.er1 >conftest.err
27764   rm -f conftest.er1
27765   cat conftest.err >&5
27766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767   (exit $ac_status); } &&
27768          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27769   { (case "(($ac_try" in
27770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27771   *) ac_try_echo=$ac_try;;
27772 esac
27773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27774   (eval "$ac_try") 2>&5
27775   ac_status=$?
27776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777   (exit $ac_status); }; } &&
27778          { ac_try='test -s conftest.$ac_objext'
27779   { (case "(($ac_try" in
27780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781   *) ac_try_echo=$ac_try;;
27782 esac
27783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784   (eval "$ac_try") 2>&5
27785   ac_status=$?
27786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787   (exit $ac_status); }; }; then
27788   ac_cv_type_struct_timezone=yes
27789 else
27790   echo "$as_me: failed program was:" >&5
27791 sed 's/^/| /' conftest.$ac_ext >&5
27792
27793         ac_cv_type_struct_timezone=no
27794 fi
27795
27796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27797 fi
27798 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timezone" >&5
27799 echo "${ECHO_T}$ac_cv_type_struct_timezone" >&6; }
27800 if test $ac_cv_type_struct_timezone = yes; then
27801
27802 cat >>confdefs.h <<_ACEOF
27803 #define HAVE_STRUCT_TIMEZONE 1
27804 _ACEOF
27805
27806
27807 fi
27808 { echo "$as_me:$LINENO: checking for struct timespec" >&5
27809 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
27810 if test "${ac_cv_type_struct_timespec+set}" = set; then
27811   echo $ECHO_N "(cached) $ECHO_C" >&6
27812 else
27813   cat >conftest.$ac_ext <<_ACEOF
27814 /* confdefs.h.  */
27815 _ACEOF
27816 cat confdefs.h >>conftest.$ac_ext
27817 cat >>conftest.$ac_ext <<_ACEOF
27818 /* end confdefs.h.  */
27819
27820      #if HAVE_SYS_TYPES_H
27821      # include <sys/types.h>
27822      #endif
27823      #if TIME_WITH_SYS_TIME
27824      # include <sys/time.h>
27825      # include <time.h>
27826      #else
27827      # if HAVE_SYS_TIME_H
27828      #  include <sys/time.h>
27829      # else
27830      #  include <time.h>
27831      # endif
27832      #endif
27833
27834
27835 typedef struct timespec ac__type_new_;
27836 int
27837 main ()
27838 {
27839 if ((ac__type_new_ *) 0)
27840   return 0;
27841 if (sizeof (ac__type_new_))
27842   return 0;
27843   ;
27844   return 0;
27845 }
27846 _ACEOF
27847 rm -f conftest.$ac_objext
27848 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27855   ac_status=$?
27856   grep -v '^ *+' conftest.er1 >conftest.err
27857   rm -f conftest.er1
27858   cat conftest.err >&5
27859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860   (exit $ac_status); } &&
27861          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27862   { (case "(($ac_try" in
27863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27864   *) ac_try_echo=$ac_try;;
27865 esac
27866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27867   (eval "$ac_try") 2>&5
27868   ac_status=$?
27869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870   (exit $ac_status); }; } &&
27871          { ac_try='test -s conftest.$ac_objext'
27872   { (case "(($ac_try" in
27873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27874   *) ac_try_echo=$ac_try;;
27875 esac
27876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27877   (eval "$ac_try") 2>&5
27878   ac_status=$?
27879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880   (exit $ac_status); }; }; then
27881   ac_cv_type_struct_timespec=yes
27882 else
27883   echo "$as_me: failed program was:" >&5
27884 sed 's/^/| /' conftest.$ac_ext >&5
27885
27886         ac_cv_type_struct_timespec=no
27887 fi
27888
27889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27890 fi
27891 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
27892 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
27893 if test $ac_cv_type_struct_timespec = yes; then
27894
27895 cat >>confdefs.h <<_ACEOF
27896 #define HAVE_STRUCT_TIMESPEC 1
27897 _ACEOF
27898
27899
27900 fi
27901 { echo "$as_me:$LINENO: checking for ssize_t" >&5
27902 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
27903 if test "${ac_cv_type_ssize_t+set}" = set; then
27904   echo $ECHO_N "(cached) $ECHO_C" >&6
27905 else
27906   cat >conftest.$ac_ext <<_ACEOF
27907 /* confdefs.h.  */
27908 _ACEOF
27909 cat confdefs.h >>conftest.$ac_ext
27910 cat >>conftest.$ac_ext <<_ACEOF
27911 /* end confdefs.h.  */
27912
27913      #if HAVE_SYS_TYPES_H
27914      # include <sys/types.h>
27915      #endif
27916      #if TIME_WITH_SYS_TIME
27917      # include <sys/time.h>
27918      # include <time.h>
27919      #else
27920      # if HAVE_SYS_TIME_H
27921      #  include <sys/time.h>
27922      # else
27923      #  include <time.h>
27924      # endif
27925      #endif
27926
27927
27928 typedef ssize_t ac__type_new_;
27929 int
27930 main ()
27931 {
27932 if ((ac__type_new_ *) 0)
27933   return 0;
27934 if (sizeof (ac__type_new_))
27935   return 0;
27936   ;
27937   return 0;
27938 }
27939 _ACEOF
27940 rm -f conftest.$ac_objext
27941 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27948   ac_status=$?
27949   grep -v '^ *+' conftest.er1 >conftest.err
27950   rm -f conftest.er1
27951   cat conftest.err >&5
27952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953   (exit $ac_status); } &&
27954          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27955   { (case "(($ac_try" in
27956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27957   *) ac_try_echo=$ac_try;;
27958 esac
27959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27960   (eval "$ac_try") 2>&5
27961   ac_status=$?
27962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963   (exit $ac_status); }; } &&
27964          { ac_try='test -s conftest.$ac_objext'
27965   { (case "(($ac_try" in
27966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27967   *) ac_try_echo=$ac_try;;
27968 esac
27969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27970   (eval "$ac_try") 2>&5
27971   ac_status=$?
27972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973   (exit $ac_status); }; }; then
27974   ac_cv_type_ssize_t=yes
27975 else
27976   echo "$as_me: failed program was:" >&5
27977 sed 's/^/| /' conftest.$ac_ext >&5
27978
27979         ac_cv_type_ssize_t=no
27980 fi
27981
27982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27983 fi
27984 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
27985 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
27986 if test $ac_cv_type_ssize_t = yes; then
27987
27988 cat >>confdefs.h <<_ACEOF
27989 #define HAVE_SSIZE_T 1
27990 _ACEOF
27991
27992
27993 fi
27994
27995
27996
27997
27998
27999 for ac_func in getopt usleep gettimeofday
28000 do
28001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28002 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28004 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28005   echo $ECHO_N "(cached) $ECHO_C" >&6
28006 else
28007   cat >conftest.$ac_ext <<_ACEOF
28008 /* confdefs.h.  */
28009 _ACEOF
28010 cat confdefs.h >>conftest.$ac_ext
28011 cat >>conftest.$ac_ext <<_ACEOF
28012 /* end confdefs.h.  */
28013 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28014    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28015 #define $ac_func innocuous_$ac_func
28016
28017 /* System header to define __stub macros and hopefully few prototypes,
28018     which can conflict with char $ac_func (); below.
28019     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28020     <limits.h> exists even on freestanding compilers.  */
28021
28022 #ifdef __STDC__
28023 # include <limits.h>
28024 #else
28025 # include <assert.h>
28026 #endif
28027
28028 #undef $ac_func
28029
28030 /* Override any GCC internal prototype to avoid an error.
28031    Use char because int might match the return type of a GCC
28032    builtin and then its argument prototype would still apply.  */
28033 #ifdef __cplusplus
28034 extern "C"
28035 #endif
28036 char $ac_func ();
28037 /* The GNU C library defines this for functions which it implements
28038     to always fail with ENOSYS.  Some functions are actually named
28039     something starting with __ and the normal name is an alias.  */
28040 #if defined __stub_$ac_func || defined __stub___$ac_func
28041 choke me
28042 #endif
28043
28044 int
28045 main ()
28046 {
28047 return $ac_func ();
28048   ;
28049   return 0;
28050 }
28051 _ACEOF
28052 rm -f conftest.$ac_objext conftest$ac_exeext
28053 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
28060   ac_status=$?
28061   grep -v '^ *+' conftest.er1 >conftest.err
28062   rm -f conftest.er1
28063   cat conftest.err >&5
28064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065   (exit $ac_status); } &&
28066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28067   { (case "(($ac_try" in
28068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069   *) ac_try_echo=$ac_try;;
28070 esac
28071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072   (eval "$ac_try") 2>&5
28073   ac_status=$?
28074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075   (exit $ac_status); }; } &&
28076          { ac_try='test -s conftest$ac_exeext'
28077   { (case "(($ac_try" in
28078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079   *) ac_try_echo=$ac_try;;
28080 esac
28081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082   (eval "$ac_try") 2>&5
28083   ac_status=$?
28084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085   (exit $ac_status); }; }; then
28086   eval "$as_ac_var=yes"
28087 else
28088   echo "$as_me: failed program was:" >&5
28089 sed 's/^/| /' conftest.$ac_ext >&5
28090
28091         eval "$as_ac_var=no"
28092 fi
28093
28094 rm -f core conftest.err conftest.$ac_objext \
28095       conftest$ac_exeext conftest.$ac_ext
28096 fi
28097 ac_res=`eval echo '${'$as_ac_var'}'`
28098                { echo "$as_me:$LINENO: result: $ac_res" >&5
28099 echo "${ECHO_T}$ac_res" >&6; }
28100 if test `eval echo '${'$as_ac_var'}'` = yes; then
28101   cat >>confdefs.h <<_ACEOF
28102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28103 _ACEOF
28104
28105 else
28106   case " $LIBOBJS " in
28107   *" $ac_func.$ac_objext "* ) ;;
28108   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
28109  ;;
28110 esac
28111
28112 fi
28113 done
28114
28115
28116
28117
28118 { echo "$as_me:$LINENO: checking for Sleep" >&5
28119 echo $ECHO_N "checking for Sleep... $ECHO_C" >&6; }
28120 cat >conftest.$ac_ext <<_ACEOF
28121 /* confdefs.h.  */
28122 _ACEOF
28123 cat confdefs.h >>conftest.$ac_ext
28124 cat >>conftest.$ac_ext <<_ACEOF
28125 /* end confdefs.h.  */
28126    #include <windows.h>
28127                 #include <winbase.h>
28128
28129 int
28130 main ()
28131 {
28132  Sleep(0);
28133   ;
28134   return 0;
28135 }
28136 _ACEOF
28137 rm -f conftest.$ac_objext conftest$ac_exeext
28138 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
28145   ac_status=$?
28146   grep -v '^ *+' conftest.er1 >conftest.err
28147   rm -f conftest.er1
28148   cat conftest.err >&5
28149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150   (exit $ac_status); } &&
28151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28152   { (case "(($ac_try" in
28153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28154   *) ac_try_echo=$ac_try;;
28155 esac
28156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28157   (eval "$ac_try") 2>&5
28158   ac_status=$?
28159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160   (exit $ac_status); }; } &&
28161          { ac_try='test -s conftest$ac_exeext'
28162   { (case "(($ac_try" in
28163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28164   *) ac_try_echo=$ac_try;;
28165 esac
28166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28167   (eval "$ac_try") 2>&5
28168   ac_status=$?
28169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170   (exit $ac_status); }; }; then
28171
28172 cat >>confdefs.h <<\_ACEOF
28173 #define HAVE_SSLEEP 1
28174 _ACEOF
28175
28176                 { echo "$as_me:$LINENO: result: yes" >&5
28177 echo "${ECHO_T}yes" >&6; }
28178 else
28179   echo "$as_me: failed program was:" >&5
28180 sed 's/^/| /' conftest.$ac_ext >&5
28181
28182         { echo "$as_me:$LINENO: result: no" >&5
28183 echo "${ECHO_T}no" >&6; }
28184
28185 fi
28186
28187 rm -f core conftest.err conftest.$ac_objext \
28188       conftest$ac_exeext conftest.$ac_ext
28189
28190 { echo "$as_me:$LINENO: checking whether mkdir accepts only one arg" >&5
28191 echo $ECHO_N "checking whether mkdir accepts only one arg... $ECHO_C" >&6; }
28192 cat >conftest.$ac_ext <<_ACEOF
28193 /* confdefs.h.  */
28194 _ACEOF
28195 cat confdefs.h >>conftest.$ac_ext
28196 cat >>conftest.$ac_ext <<_ACEOF
28197 /* end confdefs.h.  */
28198 #include <sys/types.h>
28199        #include <sys/stat.h>
28200        #include <fcntl.h>
28201 int
28202 main ()
28203 {
28204
28205        mkdir("")
28206
28207   ;
28208   return 0;
28209 }
28210 _ACEOF
28211 rm -f conftest.$ac_objext
28212 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28219   ac_status=$?
28220   grep -v '^ *+' conftest.er1 >conftest.err
28221   rm -f conftest.er1
28222   cat conftest.err >&5
28223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224   (exit $ac_status); } &&
28225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28226   { (case "(($ac_try" in
28227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28228   *) ac_try_echo=$ac_try;;
28229 esac
28230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28231   (eval "$ac_try") 2>&5
28232   ac_status=$?
28233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234   (exit $ac_status); }; } &&
28235          { ac_try='test -s conftest.$ac_objext'
28236   { (case "(($ac_try" in
28237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28238   *) ac_try_echo=$ac_try;;
28239 esac
28240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28241   (eval "$ac_try") 2>&5
28242   ac_status=$?
28243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244   (exit $ac_status); }; }; then
28245    { echo "$as_me:$LINENO: result: yes" >&5
28246 echo "${ECHO_T}yes" >&6; }
28247
28248 cat >>confdefs.h <<\_ACEOF
28249 #define MKDIR_TAKES_ONE_ARG
28250 _ACEOF
28251
28252 else
28253   echo "$as_me: failed program was:" >&5
28254 sed 's/^/| /' conftest.$ac_ext >&5
28255
28256          { echo "$as_me:$LINENO: result: no" >&5
28257 echo "${ECHO_T}no" >&6; }
28258
28259 fi
28260
28261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28262
28263
28264
28265
28266
28267
28268
28269 # Extract the first word of "dot", so it can be a program name with args.
28270 set dummy dot; ac_word=$2
28271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28273 if test "${ac_cv_prog_HAVE_DOT+set}" = set; then
28274   echo $ECHO_N "(cached) $ECHO_C" >&6
28275 else
28276   if test -n "$HAVE_DOT"; then
28277   ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
28278 else
28279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28280 for as_dir in $PATH
28281 do
28282   IFS=$as_save_IFS
28283   test -z "$as_dir" && as_dir=.
28284   for ac_exec_ext in '' $ac_executable_extensions; do
28285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28286     ac_cv_prog_HAVE_DOT="YES"
28287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28288     break 2
28289   fi
28290 done
28291 done
28292 IFS=$as_save_IFS
28293
28294   test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="NO"
28295 fi
28296 fi
28297 HAVE_DOT=$ac_cv_prog_HAVE_DOT
28298 if test -n "$HAVE_DOT"; then
28299   { echo "$as_me:$LINENO: result: $HAVE_DOT" >&5
28300 echo "${ECHO_T}$HAVE_DOT" >&6; }
28301 else
28302   { echo "$as_me:$LINENO: result: no" >&5
28303 echo "${ECHO_T}no" >&6; }
28304 fi
28305
28306
28307
28308
28309   succeeded=no
28310
28311   if test -z "$PKG_CONFIG"; then
28312     # Extract the first word of "pkg-config", so it can be a program name with args.
28313 set dummy pkg-config; ac_word=$2
28314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28316 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28317   echo $ECHO_N "(cached) $ECHO_C" >&6
28318 else
28319   case $PKG_CONFIG in
28320   [\\/]* | ?:[\\/]*)
28321   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28322   ;;
28323   *)
28324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28325 for as_dir in $PATH
28326 do
28327   IFS=$as_save_IFS
28328   test -z "$as_dir" && as_dir=.
28329   for ac_exec_ext in '' $ac_executable_extensions; do
28330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28331     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28333     break 2
28334   fi
28335 done
28336 done
28337 IFS=$as_save_IFS
28338
28339   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28340   ;;
28341 esac
28342 fi
28343 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28344 if test -n "$PKG_CONFIG"; then
28345   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28346 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28347 else
28348   { echo "$as_me:$LINENO: result: no" >&5
28349 echo "${ECHO_T}no" >&6; }
28350 fi
28351
28352
28353   fi
28354
28355   if test "$PKG_CONFIG" = "no" ; then
28356      echo "*** The pkg-config script could not be found. Make sure it is"
28357      echo "*** in your path, or set the PKG_CONFIG environment variable"
28358      echo "*** to the full path to pkg-config."
28359      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28360   else
28361                     if test -z "$PKG_CONFIG_PATH"; then
28362         export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
28363      fi
28364
28365      PKG_CONFIG_MIN_VERSION=0.9.0
28366      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28367         { echo "$as_me:$LINENO: checking for fftw3f >= 3.0" >&5
28368 echo $ECHO_N "checking for fftw3f >= 3.0... $ECHO_C" >&6; }
28369
28370         if $PKG_CONFIG --exists "fftw3f >= 3.0" ; then
28371             { echo "$as_me:$LINENO: result: yes" >&5
28372 echo "${ECHO_T}yes" >&6; }
28373             succeeded=yes
28374
28375             { echo "$as_me:$LINENO: checking FFTW3F_CFLAGS" >&5
28376 echo $ECHO_N "checking FFTW3F_CFLAGS... $ECHO_C" >&6; }
28377             FFTW3F_CFLAGS=`$PKG_CONFIG --cflags "fftw3f >= 3.0"`
28378             { echo "$as_me:$LINENO: result: $FFTW3F_CFLAGS" >&5
28379 echo "${ECHO_T}$FFTW3F_CFLAGS" >&6; }
28380
28381             { echo "$as_me:$LINENO: checking FFTW3F_LIBS" >&5
28382 echo $ECHO_N "checking FFTW3F_LIBS... $ECHO_C" >&6; }
28383             FFTW3F_LIBS=`$PKG_CONFIG --libs "fftw3f >= 3.0"`
28384             { echo "$as_me:$LINENO: result: $FFTW3F_LIBS" >&5
28385 echo "${ECHO_T}$FFTW3F_LIBS" >&6; }
28386
28387             { echo "$as_me:$LINENO: checking FFTW3F_INCLUDEDIR" >&5
28388 echo $ECHO_N "checking FFTW3F_INCLUDEDIR... $ECHO_C" >&6; }
28389             FFTW3F_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "fftw3f >= 3.0"`
28390             { echo "$as_me:$LINENO: result: $FFTW3F_INCLUDEDIR" >&5
28391 echo "${ECHO_T}$FFTW3F_INCLUDEDIR" >&6; }
28392         else
28393             FFTW3F_CFLAGS=""
28394             FFTW3F_LIBS=""
28395             ## If we have a custom action on failure, don't print errors, but
28396             ## do set a variable so people can do so.
28397             FFTW3F_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3f >= 3.0"`
28398             echo $FFTW3F_PKG_ERRORS
28399         fi
28400
28401
28402
28403
28404      else
28405         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28406         echo "*** See http://www.freedesktop.org/software/pkgconfig"
28407      fi
28408   fi
28409
28410   if test $succeeded = yes; then
28411      :
28412   else
28413      { { 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
28414 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;}
28415    { (exit 1); exit 1; }; }
28416   fi
28417
28418
28419
28420
28421   # Check whether --enable-doxygen was given.
28422 if test "${enable_doxygen+set}" = set; then
28423   enableval=$enable_doxygen;
28424 fi
28425
28426   # Check whether --enable-dot was given.
28427 if test "${enable_dot+set}" = set; then
28428   enableval=$enable_dot;
28429 fi
28430
28431   # Check whether --enable-html-docs was given.
28432 if test "${enable_html_docs+set}" = set; then
28433   enableval=$enable_html_docs;
28434 else
28435    enable_html_docs=yes
28436 fi
28437
28438   # Check whether --enable-latex-docs was given.
28439 if test "${enable_latex_docs+set}" = set; then
28440   enableval=$enable_latex_docs;
28441 else
28442    enable_latex_docs=no
28443 fi
28444
28445
28446   if test "x$enable_doxygen" = xyes; then
28447         # Extract the first word of "doxygen", so it can be a program name with args.
28448 set dummy doxygen; ac_word=$2
28449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28451 if test "${ac_cv_path_DOXYGEN+set}" = set; then
28452   echo $ECHO_N "(cached) $ECHO_C" >&6
28453 else
28454   case $DOXYGEN in
28455   [\\/]* | ?:[\\/]*)
28456   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
28457   ;;
28458   *)
28459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28460 for as_dir in $PATH
28461 do
28462   IFS=$as_save_IFS
28463   test -z "$as_dir" && as_dir=.
28464   for ac_exec_ext in '' $ac_executable_extensions; do
28465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28466     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
28467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28468     break 2
28469   fi
28470 done
28471 done
28472 IFS=$as_save_IFS
28473
28474   ;;
28475 esac
28476 fi
28477 DOXYGEN=$ac_cv_path_DOXYGEN
28478 if test -n "$DOXYGEN"; then
28479   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
28480 echo "${ECHO_T}$DOXYGEN" >&6; }
28481 else
28482   { echo "$as_me:$LINENO: result: no" >&5
28483 echo "${ECHO_T}no" >&6; }
28484 fi
28485
28486
28487         if test x$DOXYGEN = x; then
28488                 if test "x$enable_doxygen" = xyes; then
28489                         { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
28490 echo "$as_me: error: could not find doxygen" >&2;}
28491    { (exit 1); exit 1; }; }
28492                 fi
28493                 enable_doc=no
28494                 generate_docs=
28495         else
28496                 enable_doc=yes
28497                 generate_docs=docs
28498                 # Extract the first word of "dot", so it can be a program name with args.
28499 set dummy dot; ac_word=$2
28500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28502 if test "${ac_cv_path_DOT+set}" = set; then
28503   echo $ECHO_N "(cached) $ECHO_C" >&6
28504 else
28505   case $DOT in
28506   [\\/]* | ?:[\\/]*)
28507   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
28508   ;;
28509   *)
28510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28511 for as_dir in $PATH
28512 do
28513   IFS=$as_save_IFS
28514   test -z "$as_dir" && as_dir=.
28515   for ac_exec_ext in '' $ac_executable_extensions; do
28516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28517     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
28518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28519     break 2
28520   fi
28521 done
28522 done
28523 IFS=$as_save_IFS
28524
28525   ;;
28526 esac
28527 fi
28528 DOT=$ac_cv_path_DOT
28529 if test -n "$DOT"; then
28530   { echo "$as_me:$LINENO: result: $DOT" >&5
28531 echo "${ECHO_T}$DOT" >&6; }
28532 else
28533   { echo "$as_me:$LINENO: result: no" >&5
28534 echo "${ECHO_T}no" >&6; }
28535 fi
28536
28537
28538         fi
28539   else
28540         enable_doc=no
28541   fi
28542
28543
28544
28545 if test x$enable_doc = xyes; then
28546   DOC_TRUE=
28547   DOC_FALSE='#'
28548 else
28549   DOC_TRUE='#'
28550   DOC_FALSE=
28551 fi
28552
28553
28554   if test x$DOT = x; then
28555         if test "x$enable_dot" = xyes; then
28556                 { { echo "$as_me:$LINENO: error: could not find dot" >&5
28557 echo "$as_me: error: could not find dot" >&2;}
28558    { (exit 1); exit 1; }; }
28559         fi
28560         enable_dot=no
28561   else
28562         enable_dot=yes
28563   fi
28564
28565
28566
28567
28568
28569
28570
28571
28572 # Check whether --with-md-cpu was given.
28573 if test "${with_md_cpu+set}" = set; then
28574   withval=$with_md_cpu; cf_with_md_cpu="$withval"
28575 else
28576   cf_with_md_cpu="$host_cpu"
28577 fi
28578
28579
28580   { echo "$as_me:$LINENO: checking for machine dependent speedups" >&5
28581 echo $ECHO_N "checking for machine dependent speedups... $ECHO_C" >&6; }
28582   case "$cf_with_md_cpu" in
28583    x86 | i[3-7]86)      MD_CPU=x86      MD_SUBCPU=x86   ;;
28584    x86_64)              MD_CPU=x86      MD_SUBCPU=x86_64        ;;
28585 #  sparc)       MD_CPU=sparc     ;;
28586    *)           MD_CPU=generic   ;;
28587   esac
28588   { echo "$as_me:$LINENO: result: $MD_CPU" >&5
28589 echo "${ECHO_T}$MD_CPU" >&6; }
28590
28591
28592
28593
28594
28595 if test "$MD_CPU" = "x86"; then
28596   MD_CPU_x86_TRUE=
28597   MD_CPU_x86_FALSE='#'
28598 else
28599   MD_CPU_x86_TRUE='#'
28600   MD_CPU_x86_FALSE=
28601 fi
28602
28603
28604
28605 if test "$MD_SUBCPU" = "x86_64"; then
28606   MD_SUBCPU_x86_64_TRUE=
28607   MD_SUBCPU_x86_64_FALSE='#'
28608 else
28609   MD_SUBCPU_x86_64_TRUE='#'
28610   MD_SUBCPU_x86_64_FALSE=
28611 fi
28612
28613
28614
28615 if test "$MD_CPU" = "generic"; then
28616   MD_CPU_generic_TRUE=
28617   MD_CPU_generic_FALSE='#'
28618 else
28619   MD_CPU_generic_TRUE='#'
28620   MD_CPU_generic_FALSE=
28621 fi
28622
28623
28624
28625
28626
28627
28628 # Check whether --with-cppunit-prefix was given.
28629 if test "${with_cppunit_prefix+set}" = set; then
28630   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
28631 else
28632   cppunit_config_prefix=""
28633 fi
28634
28635
28636 # Check whether --with-cppunit-exec-prefix was given.
28637 if test "${with_cppunit_exec_prefix+set}" = set; then
28638   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
28639 else
28640   cppunit_config_exec_prefix=""
28641 fi
28642
28643
28644   if test x$cppunit_config_exec_prefix != x ; then
28645      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
28646      if test x${CPPUNIT_CONFIG+set} != xset ; then
28647         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
28648      fi
28649   fi
28650   if test x$cppunit_config_prefix != x ; then
28651      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
28652      if test x${CPPUNIT_CONFIG+set} != xset ; then
28653         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
28654      fi
28655   fi
28656
28657   # Extract the first word of "cppunit-config", so it can be a program name with args.
28658 set dummy cppunit-config; ac_word=$2
28659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28661 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
28662   echo $ECHO_N "(cached) $ECHO_C" >&6
28663 else
28664   case $CPPUNIT_CONFIG in
28665   [\\/]* | ?:[\\/]*)
28666   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
28667   ;;
28668   *)
28669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28670 for as_dir in $PATH
28671 do
28672   IFS=$as_save_IFS
28673   test -z "$as_dir" && as_dir=.
28674   for ac_exec_ext in '' $ac_executable_extensions; do
28675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28676     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28678     break 2
28679   fi
28680 done
28681 done
28682 IFS=$as_save_IFS
28683
28684   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
28685   ;;
28686 esac
28687 fi
28688 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
28689 if test -n "$CPPUNIT_CONFIG"; then
28690   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
28691 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
28692 else
28693   { echo "$as_me:$LINENO: result: no" >&5
28694 echo "${ECHO_T}no" >&6; }
28695 fi
28696
28697
28698   cppunit_version_min=1.9.14
28699
28700   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
28701 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
28702   no_cppunit=""
28703   if test "$CPPUNIT_CONFIG" = "no" ; then
28704     no_cppunit=yes
28705   else
28706     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
28707     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
28708     cppunit_version=`$CPPUNIT_CONFIG --version`
28709
28710     cppunit_major_version=`echo $cppunit_version | \
28711            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28712     cppunit_minor_version=`echo $cppunit_version | \
28713            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28714     cppunit_micro_version=`echo $cppunit_version | \
28715            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28716
28717     cppunit_major_min=`echo $cppunit_version_min | \
28718            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28719     cppunit_minor_min=`echo $cppunit_version_min | \
28720            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28721     cppunit_micro_min=`echo $cppunit_version_min | \
28722            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28723
28724     cppunit_version_proper=`expr \
28725         $cppunit_major_version \> $cppunit_major_min \| \
28726         $cppunit_major_version \= $cppunit_major_min \& \
28727         $cppunit_minor_version \> $cppunit_minor_min \| \
28728         $cppunit_major_version \= $cppunit_major_min \& \
28729         $cppunit_minor_version \= $cppunit_minor_min \& \
28730         $cppunit_micro_version \>= $cppunit_micro_min `
28731
28732     if test "$cppunit_version_proper" = "1" ; then
28733       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
28734 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
28735     else
28736       { echo "$as_me:$LINENO: result: no" >&5
28737 echo "${ECHO_T}no" >&6; }
28738       no_cppunit=yes
28739     fi
28740   fi
28741
28742   if test "x$no_cppunit" = x ; then
28743      :
28744   else
28745      CPPUNIT_CFLAGS=""
28746      CPPUNIT_LIBS=""
28747      { { echo "$as_me:$LINENO: error: GNU Radio requires cppunit.  Stop" >&5
28748 echo "$as_me: error: GNU Radio requires cppunit.  Stop" >&2;}
28749    { (exit 1); exit 1; }; }
28750   fi
28751
28752
28753
28754
28755
28756 CPPUNIT_INCLUDES=$CPPUNIT_CFLAGS
28757
28758
28759
28760
28761   ac_ext=cpp
28762 ac_cpp='$CXXCPP $CPPFLAGS'
28763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28766
28767   gr_boost_include_dir=
28768
28769 # Check whether --with-boost-include-dir was given.
28770 if test "${with_boost_include_dir+set}" = set; then
28771   withval=$with_boost_include_dir;
28772       # "yes" and "no" are bogus answers
28773       if test x"$with_boost_include_dir" = xyes ||
28774          test x"$with_boost_include_dir" = xno; then
28775         gr_boost_include_dir=
28776       else
28777         gr_boost_include_dir=$with_boost_include_dir
28778       fi
28779
28780 fi
28781
28782   echo "gr_boost_include_dir = $gr_boost_include_dir"
28783   if test x$gr_boost_include_dir != x; then
28784     #
28785     # If the user specified a directory, then we use it
28786     #
28787     OLD_CPPFLAGS=$CPPFLAGS
28788     CPPFLAGS="$CPPFLAGS -I$gr_boost_include_dir"
28789     if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28790   { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
28791 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
28792 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28793   echo $ECHO_N "(cached) $ECHO_C" >&6
28794 fi
28795 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
28796 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
28797 else
28798   # Is the header compilable?
28799 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
28800 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
28801 cat >conftest.$ac_ext <<_ACEOF
28802 /* confdefs.h.  */
28803 _ACEOF
28804 cat confdefs.h >>conftest.$ac_ext
28805 cat >>conftest.$ac_ext <<_ACEOF
28806 /* end confdefs.h.  */
28807 $ac_includes_default
28808 #include <boost/shared_ptr.hpp>
28809 _ACEOF
28810 rm -f conftest.$ac_objext
28811 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28818   ac_status=$?
28819   grep -v '^ *+' conftest.er1 >conftest.err
28820   rm -f conftest.er1
28821   cat conftest.err >&5
28822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823   (exit $ac_status); } &&
28824          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28825   { (case "(($ac_try" in
28826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28827   *) ac_try_echo=$ac_try;;
28828 esac
28829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28830   (eval "$ac_try") 2>&5
28831   ac_status=$?
28832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833   (exit $ac_status); }; } &&
28834          { ac_try='test -s conftest.$ac_objext'
28835   { (case "(($ac_try" in
28836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28837   *) ac_try_echo=$ac_try;;
28838 esac
28839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28840   (eval "$ac_try") 2>&5
28841   ac_status=$?
28842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843   (exit $ac_status); }; }; then
28844   ac_header_compiler=yes
28845 else
28846   echo "$as_me: failed program was:" >&5
28847 sed 's/^/| /' conftest.$ac_ext >&5
28848
28849         ac_header_compiler=no
28850 fi
28851
28852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28854 echo "${ECHO_T}$ac_header_compiler" >&6; }
28855
28856 # Is the header present?
28857 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
28858 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
28859 cat >conftest.$ac_ext <<_ACEOF
28860 /* confdefs.h.  */
28861 _ACEOF
28862 cat confdefs.h >>conftest.$ac_ext
28863 cat >>conftest.$ac_ext <<_ACEOF
28864 /* end confdefs.h.  */
28865 #include <boost/shared_ptr.hpp>
28866 _ACEOF
28867 if { (ac_try="$ac_cpp conftest.$ac_ext"
28868 case "(($ac_try" in
28869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28870   *) ac_try_echo=$ac_try;;
28871 esac
28872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28873   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28874   ac_status=$?
28875   grep -v '^ *+' conftest.er1 >conftest.err
28876   rm -f conftest.er1
28877   cat conftest.err >&5
28878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879   (exit $ac_status); } >/dev/null; then
28880   if test -s conftest.err; then
28881     ac_cpp_err=$ac_cxx_preproc_warn_flag
28882     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28883   else
28884     ac_cpp_err=
28885   fi
28886 else
28887   ac_cpp_err=yes
28888 fi
28889 if test -z "$ac_cpp_err"; then
28890   ac_header_preproc=yes
28891 else
28892   echo "$as_me: failed program was:" >&5
28893 sed 's/^/| /' conftest.$ac_ext >&5
28894
28895   ac_header_preproc=no
28896 fi
28897
28898 rm -f conftest.err conftest.$ac_ext
28899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28900 echo "${ECHO_T}$ac_header_preproc" >&6; }
28901
28902 # So?  What about this header?
28903 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28904   yes:no: )
28905     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
28906 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
28907     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
28908 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
28909     ac_header_preproc=yes
28910     ;;
28911   no:yes:* )
28912     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
28913 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
28914     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&5
28915 echo "$as_me: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&2;}
28916     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
28917 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
28918     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&5
28919 echo "$as_me: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
28920     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
28921 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
28922     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
28923 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
28924
28925     ;;
28926 esac
28927 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
28928 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
28929 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28930   echo $ECHO_N "(cached) $ECHO_C" >&6
28931 else
28932   ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
28933 fi
28934 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
28935 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
28936
28937 fi
28938 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
28939   BOOST_CFLAGS="-I$gr_boost_include_dir"
28940 else
28941   { { echo "$as_me:$LINENO: error: Failed to locate boost/shared_ptr.hpp.
28942 Try using --with-boost-include-dir=<path>,
28943 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&5
28944 echo "$as_me: error: Failed to locate boost/shared_ptr.hpp.
28945 Try using --with-boost-include-dir=<path>,
28946 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&2;}
28947    { (exit 1); exit 1; }; }
28948 fi
28949
28950
28951     CPPFLAGS=$OLD_CPPFLAGS
28952   else
28953     #
28954     # Otherwise we check in the default places
28955     #
28956     if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28957   { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
28958 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
28959 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28960   echo $ECHO_N "(cached) $ECHO_C" >&6
28961 fi
28962 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
28963 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
28964 else
28965   # Is the header compilable?
28966 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
28967 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
28968 cat >conftest.$ac_ext <<_ACEOF
28969 /* confdefs.h.  */
28970 _ACEOF
28971 cat confdefs.h >>conftest.$ac_ext
28972 cat >>conftest.$ac_ext <<_ACEOF
28973 /* end confdefs.h.  */
28974 $ac_includes_default
28975 #include <boost/shared_ptr.hpp>
28976 _ACEOF
28977 rm -f conftest.$ac_objext
28978 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28985   ac_status=$?
28986   grep -v '^ *+' conftest.er1 >conftest.err
28987   rm -f conftest.er1
28988   cat conftest.err >&5
28989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990   (exit $ac_status); } &&
28991          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28992   { (case "(($ac_try" in
28993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28994   *) ac_try_echo=$ac_try;;
28995 esac
28996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28997   (eval "$ac_try") 2>&5
28998   ac_status=$?
28999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29000   (exit $ac_status); }; } &&
29001          { ac_try='test -s conftest.$ac_objext'
29002   { (case "(($ac_try" in
29003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29004   *) ac_try_echo=$ac_try;;
29005 esac
29006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29007   (eval "$ac_try") 2>&5
29008   ac_status=$?
29009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010   (exit $ac_status); }; }; then
29011   ac_header_compiler=yes
29012 else
29013   echo "$as_me: failed program was:" >&5
29014 sed 's/^/| /' conftest.$ac_ext >&5
29015
29016         ac_header_compiler=no
29017 fi
29018
29019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29021 echo "${ECHO_T}$ac_header_compiler" >&6; }
29022
29023 # Is the header present?
29024 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
29025 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
29026 cat >conftest.$ac_ext <<_ACEOF
29027 /* confdefs.h.  */
29028 _ACEOF
29029 cat confdefs.h >>conftest.$ac_ext
29030 cat >>conftest.$ac_ext <<_ACEOF
29031 /* end confdefs.h.  */
29032 #include <boost/shared_ptr.hpp>
29033 _ACEOF
29034 if { (ac_try="$ac_cpp conftest.$ac_ext"
29035 case "(($ac_try" in
29036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29037   *) ac_try_echo=$ac_try;;
29038 esac
29039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29040   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29041   ac_status=$?
29042   grep -v '^ *+' conftest.er1 >conftest.err
29043   rm -f conftest.er1
29044   cat conftest.err >&5
29045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046   (exit $ac_status); } >/dev/null; then
29047   if test -s conftest.err; then
29048     ac_cpp_err=$ac_cxx_preproc_warn_flag
29049     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29050   else
29051     ac_cpp_err=
29052   fi
29053 else
29054   ac_cpp_err=yes
29055 fi
29056 if test -z "$ac_cpp_err"; then
29057   ac_header_preproc=yes
29058 else
29059   echo "$as_me: failed program was:" >&5
29060 sed 's/^/| /' conftest.$ac_ext >&5
29061
29062   ac_header_preproc=no
29063 fi
29064
29065 rm -f conftest.err conftest.$ac_ext
29066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29067 echo "${ECHO_T}$ac_header_preproc" >&6; }
29068
29069 # So?  What about this header?
29070 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29071   yes:no: )
29072     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
29073 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
29074     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
29075 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
29076     ac_header_preproc=yes
29077     ;;
29078   no:yes:* )
29079     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
29080 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
29081     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&5
29082 echo "$as_me: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&2;}
29083     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
29084 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
29085     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&5
29086 echo "$as_me: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
29087     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
29088 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
29089     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
29090 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
29091
29092     ;;
29093 esac
29094 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
29095 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
29096 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29097   echo $ECHO_N "(cached) $ECHO_C" >&6
29098 else
29099   ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
29100 fi
29101 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
29102 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
29103
29104 fi
29105 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
29106   BOOST_CFLAGS=""
29107 else
29108    # Nope, look for latest version if any in $prefix/include/boost-*
29109
29110         # Wipe out cached value.  KLUDGE: AC should have API for this
29111         unset ac_cv_header_boost_shared_ptr_hpp
29112
29113         boost_last_match(){
29114           #echo "boost_last_match: [$]*"
29115           pattern="$1"
29116           shift
29117           if test "$pattern" = "$1"
29118           then
29119             LM=''
29120           else
29121             shift `expr $# - 1`
29122             LM=$1
29123           fi
29124           #echo "LM(1)='[$]LM'"
29125         }
29126
29127         pattern="/usr/local/include/boost-*"
29128         boost_last_match "$pattern" $pattern
29129         #echo "LM(2)='$LM'"
29130
29131         OLD_CPPFLAGS=$CPP_FLAGS
29132         CPPFLAGS="$CPPFLAGS -I$LM"
29133         if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29134   { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
29135 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
29136 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29137   echo $ECHO_N "(cached) $ECHO_C" >&6
29138 fi
29139 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
29140 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
29141 else
29142   # Is the header compilable?
29143 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
29144 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
29145 cat >conftest.$ac_ext <<_ACEOF
29146 /* confdefs.h.  */
29147 _ACEOF
29148 cat confdefs.h >>conftest.$ac_ext
29149 cat >>conftest.$ac_ext <<_ACEOF
29150 /* end confdefs.h.  */
29151 $ac_includes_default
29152 #include <boost/shared_ptr.hpp>
29153 _ACEOF
29154 rm -f conftest.$ac_objext
29155 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
29162   ac_status=$?
29163   grep -v '^ *+' conftest.er1 >conftest.err
29164   rm -f conftest.er1
29165   cat conftest.err >&5
29166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167   (exit $ac_status); } &&
29168          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29169   { (case "(($ac_try" in
29170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29171   *) ac_try_echo=$ac_try;;
29172 esac
29173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29174   (eval "$ac_try") 2>&5
29175   ac_status=$?
29176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29177   (exit $ac_status); }; } &&
29178          { ac_try='test -s conftest.$ac_objext'
29179   { (case "(($ac_try" in
29180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29181   *) ac_try_echo=$ac_try;;
29182 esac
29183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29184   (eval "$ac_try") 2>&5
29185   ac_status=$?
29186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187   (exit $ac_status); }; }; then
29188   ac_header_compiler=yes
29189 else
29190   echo "$as_me: failed program was:" >&5
29191 sed 's/^/| /' conftest.$ac_ext >&5
29192
29193         ac_header_compiler=no
29194 fi
29195
29196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29198 echo "${ECHO_T}$ac_header_compiler" >&6; }
29199
29200 # Is the header present?
29201 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
29202 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
29203 cat >conftest.$ac_ext <<_ACEOF
29204 /* confdefs.h.  */
29205 _ACEOF
29206 cat confdefs.h >>conftest.$ac_ext
29207 cat >>conftest.$ac_ext <<_ACEOF
29208 /* end confdefs.h.  */
29209 #include <boost/shared_ptr.hpp>
29210 _ACEOF
29211 if { (ac_try="$ac_cpp conftest.$ac_ext"
29212 case "(($ac_try" in
29213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29214   *) ac_try_echo=$ac_try;;
29215 esac
29216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29217   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29218   ac_status=$?
29219   grep -v '^ *+' conftest.er1 >conftest.err
29220   rm -f conftest.er1
29221   cat conftest.err >&5
29222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223   (exit $ac_status); } >/dev/null; then
29224   if test -s conftest.err; then
29225     ac_cpp_err=$ac_cxx_preproc_warn_flag
29226     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29227   else
29228     ac_cpp_err=
29229   fi
29230 else
29231   ac_cpp_err=yes
29232 fi
29233 if test -z "$ac_cpp_err"; then
29234   ac_header_preproc=yes
29235 else
29236   echo "$as_me: failed program was:" >&5
29237 sed 's/^/| /' conftest.$ac_ext >&5
29238
29239   ac_header_preproc=no
29240 fi
29241
29242 rm -f conftest.err conftest.$ac_ext
29243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29244 echo "${ECHO_T}$ac_header_preproc" >&6; }
29245
29246 # So?  What about this header?
29247 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29248   yes:no: )
29249     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
29250 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
29251     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
29252 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
29253     ac_header_preproc=yes
29254     ;;
29255   no:yes:* )
29256     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
29257 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
29258     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&5
29259 echo "$as_me: WARNING: boost/shared_ptr.hpp:     check for missing prerequisite headers?" >&2;}
29260     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
29261 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
29262     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&5
29263 echo "$as_me: WARNING: boost/shared_ptr.hpp:     section \"Present But Cannot Be Compiled\"" >&2;}
29264     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
29265 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
29266     { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
29267 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
29268
29269     ;;
29270 esac
29271 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
29272 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
29273 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29274   echo $ECHO_N "(cached) $ECHO_C" >&6
29275 else
29276   ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
29277 fi
29278 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
29279 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
29280
29281 fi
29282 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
29283   BOOST_CFLAGS="-I$LM"
29284 else
29285   { { echo "$as_me:$LINENO: error: Failed to locate boost/shared_ptr.hpp.
29286 Try using --with-boost-include-dir=<path>,
29287 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&5
29288 echo "$as_me: error: Failed to locate boost/shared_ptr.hpp.
29289 Try using --with-boost-include-dir=<path>,
29290 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&2;}
29291    { (exit 1); exit 1; }; }
29292 fi
29293
29294
29295         CPPFLAGS=$OLD_CPPFLAGS
29296
29297 fi
29298
29299
29300
29301    fi
29302    unset boost_last_match LM
29303    ac_ext=c
29304 ac_cpp='$CPP $CPPFLAGS'
29305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29308
29309
29310
29311
29312 DEFINES=""
29313
29314
29315 # Check whether --enable-all-components was given.
29316 if test "${enable_all_components+set}" = set; then
29317   enableval=$enable_all_components;
29318 fi
29319
29320
29321 build_dirs="config"
29322
29323
29324     # Check whether --enable-gnuradio-core was given.
29325 if test "${enable_gnuradio_core+set}" = set; then
29326   enableval=$enable_gnuradio_core;
29327 else
29328   enable_gnuradio_core=$enable_all_components
29329 fi
29330
29331
29332
29333     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"
29334
29335
29336     passed=yes
29337
29338     if test x$passed = xno; then
29339         skipped_dirs="$skipped_dirs gnuradio-core"
29340         if test x$enable_gnuradio_core = xyes; then
29341             { { echo "$as_me:$LINENO: error: Component gnuradio-core has errors, stopping." >&5
29342 echo "$as_me: error: Component gnuradio-core has errors, stopping." >&2;}
29343    { (exit 1); exit 1; }; }
29344         else
29345             { echo "$as_me:$LINENO: result: Not building component gnuradio-core." >&5
29346 echo "${ECHO_T}Not building component gnuradio-core." >&6; }
29347         fi
29348     else
29349         if test x$enable_gnuradio_core != xno; then
29350
29351                 ac_config_commands="$ac_config_commands run_tests_core"
29352
29353
29354                 ac_config_commands="$ac_config_commands swig_deps"
29355
29356
29357             build_dirs="$build_dirs gnuradio-core"
29358             { echo "$as_me:$LINENO: result: Component gnuradio-core passed configuration checks, building." >&5
29359 echo "${ECHO_T}Component gnuradio-core passed configuration checks, building." >&6; }
29360         else
29361             skipped_dirs="$skipped_dirs gnuradio-core"
29362             { echo "$as_me:$LINENO: result: Component gnuradio-core passed configuration checks, but not building." >&5
29363 echo "${ECHO_T}Component gnuradio-core passed configuration checks, but not building." >&6; }
29364         fi
29365     fi
29366
29367
29368
29369
29370     # Check whether --enable-gnuradio-examples was given.
29371 if test "${enable_gnuradio_examples+set}" = set; then
29372   enableval=$enable_gnuradio_examples;
29373 else
29374   enable_gnuradio_examples=$enable_all_components
29375 fi
29376
29377
29378
29379     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"
29380
29381
29382     passed=yes
29383
29384     if test x$passed = xno; then
29385         skipped_dirs="$skipped_dirs gnuradio-examples"
29386         if test x$enable_gnuradio_examples = xyes; then
29387             { { echo "$as_me:$LINENO: error: Component gnuradio-examples has errors, stopping." >&5
29388 echo "$as_me: error: Component gnuradio-examples has errors, stopping." >&2;}
29389    { (exit 1); exit 1; }; }
29390         else
29391             { echo "$as_me:$LINENO: result: Not building component gnuradio-examples." >&5
29392 echo "${ECHO_T}Not building component gnuradio-examples." >&6; }
29393         fi
29394     else
29395         if test x$enable_gnuradio_examples != xno; then
29396
29397             build_dirs="$build_dirs gnuradio-examples"
29398             { echo "$as_me:$LINENO: result: Component gnuradio-examples passed configuration checks, building." >&5
29399 echo "${ECHO_T}Component gnuradio-examples passed configuration checks, building." >&6; }
29400         else
29401             skipped_dirs="$skipped_dirs gnuradio-examples"
29402             { echo "$as_me:$LINENO: result: Component gnuradio-examples passed configuration checks, but not building." >&5
29403 echo "${ECHO_T}Component gnuradio-examples passed configuration checks, but not building." >&6; }
29404         fi
29405     fi
29406
29407
29408 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29409 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29410 if test "${ac_cv_header_stat_broken+set}" = set; then
29411   echo $ECHO_N "(cached) $ECHO_C" >&6
29412 else
29413   cat >conftest.$ac_ext <<_ACEOF
29414 /* confdefs.h.  */
29415 _ACEOF
29416 cat confdefs.h >>conftest.$ac_ext
29417 cat >>conftest.$ac_ext <<_ACEOF
29418 /* end confdefs.h.  */
29419 #include <sys/types.h>
29420 #include <sys/stat.h>
29421
29422 #if defined S_ISBLK && defined S_IFDIR
29423 # if S_ISBLK (S_IFDIR)
29424 You lose.
29425 # endif
29426 #endif
29427
29428 #if defined S_ISBLK && defined S_IFCHR
29429 # if S_ISBLK (S_IFCHR)
29430 You lose.
29431 # endif
29432 #endif
29433
29434 #if defined S_ISLNK && defined S_IFREG
29435 # if S_ISLNK (S_IFREG)
29436 You lose.
29437 # endif
29438 #endif
29439
29440 #if defined S_ISSOCK && defined S_IFREG
29441 # if S_ISSOCK (S_IFREG)
29442 You lose.
29443 # endif
29444 #endif
29445
29446 _ACEOF
29447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29448   $EGREP "You lose" >/dev/null 2>&1; then
29449   ac_cv_header_stat_broken=yes
29450 else
29451   ac_cv_header_stat_broken=no
29452 fi
29453 rm -f conftest*
29454
29455 fi
29456 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29457 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29458 if test $ac_cv_header_stat_broken = yes; then
29459
29460 cat >>confdefs.h <<\_ACEOF
29461 #define STAT_MACROS_BROKEN 1
29462 _ACEOF
29463
29464 fi
29465
29466
29467
29468 for ac_header in fcntl.h
29469 do
29470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29472   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29475   echo $ECHO_N "(cached) $ECHO_C" >&6
29476 fi
29477 ac_res=`eval echo '${'$as_ac_Header'}'`
29478                { echo "$as_me:$LINENO: result: $ac_res" >&5
29479 echo "${ECHO_T}$ac_res" >&6; }
29480 else
29481   # Is the header compilable?
29482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29484 cat >conftest.$ac_ext <<_ACEOF
29485 /* confdefs.h.  */
29486 _ACEOF
29487 cat confdefs.h >>conftest.$ac_ext
29488 cat >>conftest.$ac_ext <<_ACEOF
29489 /* end confdefs.h.  */
29490 $ac_includes_default
29491 #include <$ac_header>
29492 _ACEOF
29493 rm -f conftest.$ac_objext
29494 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
29501   ac_status=$?
29502   grep -v '^ *+' conftest.er1 >conftest.err
29503   rm -f conftest.er1
29504   cat conftest.err >&5
29505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506   (exit $ac_status); } &&
29507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29508   { (case "(($ac_try" in
29509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29510   *) ac_try_echo=$ac_try;;
29511 esac
29512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29513   (eval "$ac_try") 2>&5
29514   ac_status=$?
29515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516   (exit $ac_status); }; } &&
29517          { ac_try='test -s conftest.$ac_objext'
29518   { (case "(($ac_try" in
29519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29520   *) ac_try_echo=$ac_try;;
29521 esac
29522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29523   (eval "$ac_try") 2>&5
29524   ac_status=$?
29525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526   (exit $ac_status); }; }; then
29527   ac_header_compiler=yes
29528 else
29529   echo "$as_me: failed program was:" >&5
29530 sed 's/^/| /' conftest.$ac_ext >&5
29531
29532         ac_header_compiler=no
29533 fi
29534
29535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29537 echo "${ECHO_T}$ac_header_compiler" >&6; }
29538
29539 # Is the header present?
29540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29542 cat >conftest.$ac_ext <<_ACEOF
29543 /* confdefs.h.  */
29544 _ACEOF
29545 cat confdefs.h >>conftest.$ac_ext
29546 cat >>conftest.$ac_ext <<_ACEOF
29547 /* end confdefs.h.  */
29548 #include <$ac_header>
29549 _ACEOF
29550 if { (ac_try="$ac_cpp conftest.$ac_ext"
29551 case "(($ac_try" in
29552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29553   *) ac_try_echo=$ac_try;;
29554 esac
29555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29556   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29557   ac_status=$?
29558   grep -v '^ *+' conftest.er1 >conftest.err
29559   rm -f conftest.er1
29560   cat conftest.err >&5
29561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562   (exit $ac_status); } >/dev/null; then
29563   if test -s conftest.err; then
29564     ac_cpp_err=$ac_c_preproc_warn_flag
29565     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29566   else
29567     ac_cpp_err=
29568   fi
29569 else
29570   ac_cpp_err=yes
29571 fi
29572 if test -z "$ac_cpp_err"; then
29573   ac_header_preproc=yes
29574 else
29575   echo "$as_me: failed program was:" >&5
29576 sed 's/^/| /' conftest.$ac_ext >&5
29577
29578   ac_header_preproc=no
29579 fi
29580
29581 rm -f conftest.err conftest.$ac_ext
29582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29583 echo "${ECHO_T}$ac_header_preproc" >&6; }
29584
29585 # So?  What about this header?
29586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29587   yes:no: )
29588     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29592     ac_header_preproc=yes
29593     ;;
29594   no:yes:* )
29595     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29597     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29598 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29599     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29601     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29602 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29603     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29605     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29607
29608     ;;
29609 esac
29610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29613   echo $ECHO_N "(cached) $ECHO_C" >&6
29614 else
29615   eval "$as_ac_Header=\$ac_header_preproc"
29616 fi
29617 ac_res=`eval echo '${'$as_ac_Header'}'`
29618                { echo "$as_me:$LINENO: result: $ac_res" >&5
29619 echo "${ECHO_T}$ac_res" >&6; }
29620
29621 fi
29622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29623   cat >>confdefs.h <<_ACEOF
29624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29625 _ACEOF
29626
29627 fi
29628
29629 done
29630
29631
29632
29633
29634 for ac_header in sys/time.h
29635 do
29636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29638   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29641   echo $ECHO_N "(cached) $ECHO_C" >&6
29642 fi
29643 ac_res=`eval echo '${'$as_ac_Header'}'`
29644                { echo "$as_me:$LINENO: result: $ac_res" >&5
29645 echo "${ECHO_T}$ac_res" >&6; }
29646 else
29647   # Is the header compilable?
29648 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29650 cat >conftest.$ac_ext <<_ACEOF
29651 /* confdefs.h.  */
29652 _ACEOF
29653 cat confdefs.h >>conftest.$ac_ext
29654 cat >>conftest.$ac_ext <<_ACEOF
29655 /* end confdefs.h.  */
29656 $ac_includes_default
29657 #include <$ac_header>
29658 _ACEOF
29659 rm -f conftest.$ac_objext
29660 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
29667   ac_status=$?
29668   grep -v '^ *+' conftest.er1 >conftest.err
29669   rm -f conftest.er1
29670   cat conftest.err >&5
29671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29672   (exit $ac_status); } &&
29673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29674   { (case "(($ac_try" in
29675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29676   *) ac_try_echo=$ac_try;;
29677 esac
29678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29679   (eval "$ac_try") 2>&5
29680   ac_status=$?
29681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29682   (exit $ac_status); }; } &&
29683          { ac_try='test -s conftest.$ac_objext'
29684   { (case "(($ac_try" in
29685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29686   *) ac_try_echo=$ac_try;;
29687 esac
29688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29689   (eval "$ac_try") 2>&5
29690   ac_status=$?
29691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692   (exit $ac_status); }; }; then
29693   ac_header_compiler=yes
29694 else
29695   echo "$as_me: failed program was:" >&5
29696 sed 's/^/| /' conftest.$ac_ext >&5
29697
29698         ac_header_compiler=no
29699 fi
29700
29701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29703 echo "${ECHO_T}$ac_header_compiler" >&6; }
29704
29705 # Is the header present?
29706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29708 cat >conftest.$ac_ext <<_ACEOF
29709 /* confdefs.h.  */
29710 _ACEOF
29711 cat confdefs.h >>conftest.$ac_ext
29712 cat >>conftest.$ac_ext <<_ACEOF
29713 /* end confdefs.h.  */
29714 #include <$ac_header>
29715 _ACEOF
29716 if { (ac_try="$ac_cpp conftest.$ac_ext"
29717 case "(($ac_try" in
29718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29719   *) ac_try_echo=$ac_try;;
29720 esac
29721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29722   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29723   ac_status=$?
29724   grep -v '^ *+' conftest.er1 >conftest.err
29725   rm -f conftest.er1
29726   cat conftest.err >&5
29727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728   (exit $ac_status); } >/dev/null; then
29729   if test -s conftest.err; then
29730     ac_cpp_err=$ac_c_preproc_warn_flag
29731     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29732   else
29733     ac_cpp_err=
29734   fi
29735 else
29736   ac_cpp_err=yes
29737 fi
29738 if test -z "$ac_cpp_err"; then
29739   ac_header_preproc=yes
29740 else
29741   echo "$as_me: failed program was:" >&5
29742 sed 's/^/| /' conftest.$ac_ext >&5
29743
29744   ac_header_preproc=no
29745 fi
29746
29747 rm -f conftest.err conftest.$ac_ext
29748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29749 echo "${ECHO_T}$ac_header_preproc" >&6; }
29750
29751 # So?  What about this header?
29752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29753   yes:no: )
29754     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29756     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29758     ac_header_preproc=yes
29759     ;;
29760   no:yes:* )
29761     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29763     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29764 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29765     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29767     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29768 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29769     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29771     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29773
29774     ;;
29775 esac
29776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29779   echo $ECHO_N "(cached) $ECHO_C" >&6
29780 else
29781   eval "$as_ac_Header=\$ac_header_preproc"
29782 fi
29783 ac_res=`eval echo '${'$as_ac_Header'}'`
29784                { echo "$as_me:$LINENO: result: $ac_res" >&5
29785 echo "${ECHO_T}$ac_res" >&6; }
29786
29787 fi
29788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29789   cat >>confdefs.h <<_ACEOF
29790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29791 _ACEOF
29792
29793 fi
29794
29795 done
29796
29797
29798
29799
29800 for ac_header in unistd.h
29801 do
29802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29804   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29807   echo $ECHO_N "(cached) $ECHO_C" >&6
29808 fi
29809 ac_res=`eval echo '${'$as_ac_Header'}'`
29810                { echo "$as_me:$LINENO: result: $ac_res" >&5
29811 echo "${ECHO_T}$ac_res" >&6; }
29812 else
29813   # Is the header compilable?
29814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29816 cat >conftest.$ac_ext <<_ACEOF
29817 /* confdefs.h.  */
29818 _ACEOF
29819 cat confdefs.h >>conftest.$ac_ext
29820 cat >>conftest.$ac_ext <<_ACEOF
29821 /* end confdefs.h.  */
29822 $ac_includes_default
29823 #include <$ac_header>
29824 _ACEOF
29825 rm -f conftest.$ac_objext
29826 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
29833   ac_status=$?
29834   grep -v '^ *+' conftest.er1 >conftest.err
29835   rm -f conftest.er1
29836   cat conftest.err >&5
29837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838   (exit $ac_status); } &&
29839          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29840   { (case "(($ac_try" in
29841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29842   *) ac_try_echo=$ac_try;;
29843 esac
29844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29845   (eval "$ac_try") 2>&5
29846   ac_status=$?
29847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848   (exit $ac_status); }; } &&
29849          { ac_try='test -s conftest.$ac_objext'
29850   { (case "(($ac_try" in
29851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29852   *) ac_try_echo=$ac_try;;
29853 esac
29854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29855   (eval "$ac_try") 2>&5
29856   ac_status=$?
29857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858   (exit $ac_status); }; }; then
29859   ac_header_compiler=yes
29860 else
29861   echo "$as_me: failed program was:" >&5
29862 sed 's/^/| /' conftest.$ac_ext >&5
29863
29864         ac_header_compiler=no
29865 fi
29866
29867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29869 echo "${ECHO_T}$ac_header_compiler" >&6; }
29870
29871 # Is the header present?
29872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29874 cat >conftest.$ac_ext <<_ACEOF
29875 /* confdefs.h.  */
29876 _ACEOF
29877 cat confdefs.h >>conftest.$ac_ext
29878 cat >>conftest.$ac_ext <<_ACEOF
29879 /* end confdefs.h.  */
29880 #include <$ac_header>
29881 _ACEOF
29882 if { (ac_try="$ac_cpp conftest.$ac_ext"
29883 case "(($ac_try" in
29884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29885   *) ac_try_echo=$ac_try;;
29886 esac
29887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29888   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29889   ac_status=$?
29890   grep -v '^ *+' conftest.er1 >conftest.err
29891   rm -f conftest.er1
29892   cat conftest.err >&5
29893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894   (exit $ac_status); } >/dev/null; then
29895   if test -s conftest.err; then
29896     ac_cpp_err=$ac_c_preproc_warn_flag
29897     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29898   else
29899     ac_cpp_err=
29900   fi
29901 else
29902   ac_cpp_err=yes
29903 fi
29904 if test -z "$ac_cpp_err"; then
29905   ac_header_preproc=yes
29906 else
29907   echo "$as_me: failed program was:" >&5
29908 sed 's/^/| /' conftest.$ac_ext >&5
29909
29910   ac_header_preproc=no
29911 fi
29912
29913 rm -f conftest.err conftest.$ac_ext
29914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29915 echo "${ECHO_T}$ac_header_preproc" >&6; }
29916
29917 # So?  What about this header?
29918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29919   yes:no: )
29920     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29924     ac_header_preproc=yes
29925     ;;
29926   no:yes:* )
29927     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29929     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29930 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29931     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29933     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29934 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29935     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29937     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29939
29940     ;;
29941 esac
29942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29945   echo $ECHO_N "(cached) $ECHO_C" >&6
29946 else
29947   eval "$as_ac_Header=\$ac_header_preproc"
29948 fi
29949 ac_res=`eval echo '${'$as_ac_Header'}'`
29950                { echo "$as_me:$LINENO: result: $ac_res" >&5
29951 echo "${ECHO_T}$ac_res" >&6; }
29952
29953 fi
29954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29955   cat >>confdefs.h <<_ACEOF
29956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29957 _ACEOF
29958
29959 fi
29960
29961 done
29962
29963
29964
29965       { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
29966 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
29967 if test "${ac_cv_have_decl_getenv+set}" = set; then
29968   echo $ECHO_N "(cached) $ECHO_C" >&6
29969 else
29970   cat >conftest.$ac_ext <<_ACEOF
29971 /* confdefs.h.  */
29972 _ACEOF
29973 cat confdefs.h >>conftest.$ac_ext
29974 cat >>conftest.$ac_ext <<_ACEOF
29975 /* end confdefs.h.  */
29976 $ac_includes_default
29977 int
29978 main ()
29979 {
29980 #ifndef getenv
29981   char *p = (char *) getenv;
29982   return !p;
29983 #endif
29984
29985   ;
29986   return 0;
29987 }
29988 _ACEOF
29989 rm -f conftest.$ac_objext
29990 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
29997   ac_status=$?
29998   grep -v '^ *+' conftest.er1 >conftest.err
29999   rm -f conftest.er1
30000   cat conftest.err >&5
30001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002   (exit $ac_status); } &&
30003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30004   { (case "(($ac_try" in
30005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30006   *) ac_try_echo=$ac_try;;
30007 esac
30008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30009   (eval "$ac_try") 2>&5
30010   ac_status=$?
30011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012   (exit $ac_status); }; } &&
30013          { ac_try='test -s conftest.$ac_objext'
30014   { (case "(($ac_try" in
30015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30016   *) ac_try_echo=$ac_try;;
30017 esac
30018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30019   (eval "$ac_try") 2>&5
30020   ac_status=$?
30021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022   (exit $ac_status); }; }; then
30023   ac_cv_have_decl_getenv=yes
30024 else
30025   echo "$as_me: failed program was:" >&5
30026 sed 's/^/| /' conftest.$ac_ext >&5
30027
30028         ac_cv_have_decl_getenv=no
30029 fi
30030
30031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30032 fi
30033 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
30034 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
30035 if test $ac_cv_have_decl_getenv = yes; then
30036
30037 cat >>confdefs.h <<_ACEOF
30038 #define HAVE_DECL_GETENV 1
30039 _ACEOF
30040
30041
30042 else
30043   cat >>confdefs.h <<_ACEOF
30044 #define HAVE_DECL_GETENV 0
30045 _ACEOF
30046
30047
30048 fi
30049
30050
30051
30052
30053
30054     # Check whether --enable-usrp was given.
30055 if test "${enable_usrp+set}" = set; then
30056   enableval=$enable_usrp;
30057 else
30058   enable_usrp=$enable_all_components
30059 fi
30060
30061
30062
30063     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"
30064
30065
30066     # gnulib.
30067     # FIXME: this needs to fail gracefully and continue, not implemented yet
30068
30069 for ac_func in mkstemp
30070 do
30071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30075   echo $ECHO_N "(cached) $ECHO_C" >&6
30076 else
30077   cat >conftest.$ac_ext <<_ACEOF
30078 /* confdefs.h.  */
30079 _ACEOF
30080 cat confdefs.h >>conftest.$ac_ext
30081 cat >>conftest.$ac_ext <<_ACEOF
30082 /* end confdefs.h.  */
30083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30085 #define $ac_func innocuous_$ac_func
30086
30087 /* System header to define __stub macros and hopefully few prototypes,
30088     which can conflict with char $ac_func (); below.
30089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30090     <limits.h> exists even on freestanding compilers.  */
30091
30092 #ifdef __STDC__
30093 # include <limits.h>
30094 #else
30095 # include <assert.h>
30096 #endif
30097
30098 #undef $ac_func
30099
30100 /* Override any GCC internal prototype to avoid an error.
30101    Use char because int might match the return type of a GCC
30102    builtin and then its argument prototype would still apply.  */
30103 #ifdef __cplusplus
30104 extern "C"
30105 #endif
30106 char $ac_func ();
30107 /* The GNU C library defines this for functions which it implements
30108     to always fail with ENOSYS.  Some functions are actually named
30109     something starting with __ and the normal name is an alias.  */
30110 #if defined __stub_$ac_func || defined __stub___$ac_func
30111 choke me
30112 #endif
30113
30114 int
30115 main ()
30116 {
30117 return $ac_func ();
30118   ;
30119   return 0;
30120 }
30121 _ACEOF
30122 rm -f conftest.$ac_objext conftest$ac_exeext
30123 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
30130   ac_status=$?
30131   grep -v '^ *+' conftest.er1 >conftest.err
30132   rm -f conftest.er1
30133   cat conftest.err >&5
30134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135   (exit $ac_status); } &&
30136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30137   { (case "(($ac_try" in
30138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30139   *) ac_try_echo=$ac_try;;
30140 esac
30141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30142   (eval "$ac_try") 2>&5
30143   ac_status=$?
30144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145   (exit $ac_status); }; } &&
30146          { ac_try='test -s conftest$ac_exeext'
30147   { (case "(($ac_try" in
30148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30149   *) ac_try_echo=$ac_try;;
30150 esac
30151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30152   (eval "$ac_try") 2>&5
30153   ac_status=$?
30154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30155   (exit $ac_status); }; }; then
30156   eval "$as_ac_var=yes"
30157 else
30158   echo "$as_me: failed program was:" >&5
30159 sed 's/^/| /' conftest.$ac_ext >&5
30160
30161         eval "$as_ac_var=no"
30162 fi
30163
30164 rm -f core conftest.err conftest.$ac_objext \
30165       conftest$ac_exeext conftest.$ac_ext
30166 fi
30167 ac_res=`eval echo '${'$as_ac_var'}'`
30168                { echo "$as_me:$LINENO: result: $ac_res" >&5
30169 echo "${ECHO_T}$ac_res" >&6; }
30170 if test `eval echo '${'$as_ac_var'}'` = yes; then
30171   cat >>confdefs.h <<_ACEOF
30172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30173 _ACEOF
30174
30175 else
30176   case " $LIBOBJS " in
30177   *" $ac_func.$ac_objext "* ) ;;
30178   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
30179  ;;
30180 esac
30181
30182 fi
30183 done
30184
30185
30186   if test $ac_cv_func_mkstemp = no; then
30187     utils_cv_func_mkstemp_limitations=yes
30188   else
30189     { echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
30190 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6; }
30191 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
30192   echo $ECHO_N "(cached) $ECHO_C" >&6
30193 else
30194
30195         if test "$cross_compiling" = yes; then
30196   utils_cv_func_mkstemp_limitations=yes
30197
30198 else
30199   cat >conftest.$ac_ext <<_ACEOF
30200 /* confdefs.h.  */
30201 _ACEOF
30202 cat confdefs.h >>conftest.$ac_ext
30203 cat >>conftest.$ac_ext <<_ACEOF
30204 /* end confdefs.h.  */
30205
30206 #         include <stdlib.h>
30207           int main ()
30208           {
30209             int i;
30210             for (i = 0; i < 70; i++)
30211               {
30212                 char template[] = "conftestXXXXXX";
30213                 int fd = mkstemp (template);
30214                 if (fd == -1)
30215                   exit (1);
30216                 close (fd);
30217               }
30218             exit (0);
30219           }
30220
30221 _ACEOF
30222 rm -f conftest$ac_exeext
30223 if { (ac_try="$ac_link"
30224 case "(($ac_try" in
30225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30226   *) ac_try_echo=$ac_try;;
30227 esac
30228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30229   (eval "$ac_link") 2>&5
30230   ac_status=$?
30231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30233   { (case "(($ac_try" in
30234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30235   *) ac_try_echo=$ac_try;;
30236 esac
30237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30238   (eval "$ac_try") 2>&5
30239   ac_status=$?
30240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241   (exit $ac_status); }; }; then
30242   utils_cv_func_mkstemp_limitations=no
30243 else
30244   echo "$as_me: program exited with status $ac_status" >&5
30245 echo "$as_me: failed program was:" >&5
30246 sed 's/^/| /' conftest.$ac_ext >&5
30247
30248 ( exit $ac_status )
30249 utils_cv_func_mkstemp_limitations=yes
30250 fi
30251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30252 fi
30253
30254
30255
30256
30257 fi
30258 { echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
30259 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6; }
30260   fi
30261
30262   if test $utils_cv_func_mkstemp_limitations = yes; then
30263     case " $LIBOBJS " in
30264   *" mkstemp.$ac_objext "* ) ;;
30265   *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
30266  ;;
30267 esac
30268
30269     case " $LIBOBJS " in
30270   *" tempname.$ac_objext "* ) ;;
30271   *) LIBOBJS="$LIBOBJS tempname.$ac_objext"
30272  ;;
30273 esac
30274
30275
30276 cat >>confdefs.h <<\_ACEOF
30277 #define mkstemp rpl_mkstemp
30278 _ACEOF
30279
30280
30281
30282
30283
30284
30285
30286
30287   :
30288
30289
30290
30291
30292
30293
30294
30295
30296
30297
30298
30299
30300 for ac_header in stdint.h
30301 do
30302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30304   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30307   echo $ECHO_N "(cached) $ECHO_C" >&6
30308 fi
30309 ac_res=`eval echo '${'$as_ac_Header'}'`
30310                { echo "$as_me:$LINENO: result: $ac_res" >&5
30311 echo "${ECHO_T}$ac_res" >&6; }
30312 else
30313   # Is the header compilable?
30314 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30316 cat >conftest.$ac_ext <<_ACEOF
30317 /* confdefs.h.  */
30318 _ACEOF
30319 cat confdefs.h >>conftest.$ac_ext
30320 cat >>conftest.$ac_ext <<_ACEOF
30321 /* end confdefs.h.  */
30322 $ac_includes_default
30323 #include <$ac_header>
30324 _ACEOF
30325 rm -f conftest.$ac_objext
30326 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30333   ac_status=$?
30334   grep -v '^ *+' conftest.er1 >conftest.err
30335   rm -f conftest.er1
30336   cat conftest.err >&5
30337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30338   (exit $ac_status); } &&
30339          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30340   { (case "(($ac_try" in
30341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30342   *) ac_try_echo=$ac_try;;
30343 esac
30344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30345   (eval "$ac_try") 2>&5
30346   ac_status=$?
30347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30348   (exit $ac_status); }; } &&
30349          { ac_try='test -s conftest.$ac_objext'
30350   { (case "(($ac_try" in
30351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30352   *) ac_try_echo=$ac_try;;
30353 esac
30354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30355   (eval "$ac_try") 2>&5
30356   ac_status=$?
30357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358   (exit $ac_status); }; }; then
30359   ac_header_compiler=yes
30360 else
30361   echo "$as_me: failed program was:" >&5
30362 sed 's/^/| /' conftest.$ac_ext >&5
30363
30364         ac_header_compiler=no
30365 fi
30366
30367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30369 echo "${ECHO_T}$ac_header_compiler" >&6; }
30370
30371 # Is the header present?
30372 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30374 cat >conftest.$ac_ext <<_ACEOF
30375 /* confdefs.h.  */
30376 _ACEOF
30377 cat confdefs.h >>conftest.$ac_ext
30378 cat >>conftest.$ac_ext <<_ACEOF
30379 /* end confdefs.h.  */
30380 #include <$ac_header>
30381 _ACEOF
30382 if { (ac_try="$ac_cpp conftest.$ac_ext"
30383 case "(($ac_try" in
30384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30385   *) ac_try_echo=$ac_try;;
30386 esac
30387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30388   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30389   ac_status=$?
30390   grep -v '^ *+' conftest.er1 >conftest.err
30391   rm -f conftest.er1
30392   cat conftest.err >&5
30393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394   (exit $ac_status); } >/dev/null; then
30395   if test -s conftest.err; then
30396     ac_cpp_err=$ac_c_preproc_warn_flag
30397     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30398   else
30399     ac_cpp_err=
30400   fi
30401 else
30402   ac_cpp_err=yes
30403 fi
30404 if test -z "$ac_cpp_err"; then
30405   ac_header_preproc=yes
30406 else
30407   echo "$as_me: failed program was:" >&5
30408 sed 's/^/| /' conftest.$ac_ext >&5
30409
30410   ac_header_preproc=no
30411 fi
30412
30413 rm -f conftest.err conftest.$ac_ext
30414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30415 echo "${ECHO_T}$ac_header_preproc" >&6; }
30416
30417 # So?  What about this header?
30418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30419   yes:no: )
30420     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30424     ac_header_preproc=yes
30425     ;;
30426   no:yes:* )
30427     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30429     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30430 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30431     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30433     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30434 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30435     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30437     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30439
30440     ;;
30441 esac
30442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30445   echo $ECHO_N "(cached) $ECHO_C" >&6
30446 else
30447   eval "$as_ac_Header=\$ac_header_preproc"
30448 fi
30449 ac_res=`eval echo '${'$as_ac_Header'}'`
30450                { echo "$as_me:$LINENO: result: $ac_res" >&5
30451 echo "${ECHO_T}$ac_res" >&6; }
30452
30453 fi
30454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30455   cat >>confdefs.h <<_ACEOF
30456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30457 _ACEOF
30458
30459 fi
30460
30461 done
30462
30463
30464
30465
30466 for ac_func in __secure_getenv gettimeofday lstat
30467 do
30468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30469 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30471 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30472   echo $ECHO_N "(cached) $ECHO_C" >&6
30473 else
30474   cat >conftest.$ac_ext <<_ACEOF
30475 /* confdefs.h.  */
30476 _ACEOF
30477 cat confdefs.h >>conftest.$ac_ext
30478 cat >>conftest.$ac_ext <<_ACEOF
30479 /* end confdefs.h.  */
30480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30482 #define $ac_func innocuous_$ac_func
30483
30484 /* System header to define __stub macros and hopefully few prototypes,
30485     which can conflict with char $ac_func (); below.
30486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30487     <limits.h> exists even on freestanding compilers.  */
30488
30489 #ifdef __STDC__
30490 # include <limits.h>
30491 #else
30492 # include <assert.h>
30493 #endif
30494
30495 #undef $ac_func
30496
30497 /* Override any GCC internal prototype to avoid an error.
30498    Use char because int might match the return type of a GCC
30499    builtin and then its argument prototype would still apply.  */
30500 #ifdef __cplusplus
30501 extern "C"
30502 #endif
30503 char $ac_func ();
30504 /* The GNU C library defines this for functions which it implements
30505     to always fail with ENOSYS.  Some functions are actually named
30506     something starting with __ and the normal name is an alias.  */
30507 #if defined __stub_$ac_func || defined __stub___$ac_func
30508 choke me
30509 #endif
30510
30511 int
30512 main ()
30513 {
30514 return $ac_func ();
30515   ;
30516   return 0;
30517 }
30518 _ACEOF
30519 rm -f conftest.$ac_objext conftest$ac_exeext
30520 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
30527   ac_status=$?
30528   grep -v '^ *+' conftest.er1 >conftest.err
30529   rm -f conftest.er1
30530   cat conftest.err >&5
30531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532   (exit $ac_status); } &&
30533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30534   { (case "(($ac_try" in
30535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30536   *) ac_try_echo=$ac_try;;
30537 esac
30538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30539   (eval "$ac_try") 2>&5
30540   ac_status=$?
30541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542   (exit $ac_status); }; } &&
30543          { ac_try='test -s conftest$ac_exeext'
30544   { (case "(($ac_try" in
30545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30546   *) ac_try_echo=$ac_try;;
30547 esac
30548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30549   (eval "$ac_try") 2>&5
30550   ac_status=$?
30551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552   (exit $ac_status); }; }; then
30553   eval "$as_ac_var=yes"
30554 else
30555   echo "$as_me: failed program was:" >&5
30556 sed 's/^/| /' conftest.$ac_ext >&5
30557
30558         eval "$as_ac_var=no"
30559 fi
30560
30561 rm -f core conftest.err conftest.$ac_objext \
30562       conftest$ac_exeext conftest.$ac_ext
30563 fi
30564 ac_res=`eval echo '${'$as_ac_var'}'`
30565                { echo "$as_me:$LINENO: result: $ac_res" >&5
30566 echo "${ECHO_T}$ac_res" >&6; }
30567 if test `eval echo '${'$as_ac_var'}'` = yes; then
30568   cat >>confdefs.h <<_ACEOF
30569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30570 _ACEOF
30571
30572 fi
30573 done
30574
30575
30576   :
30577
30578
30579
30580
30581
30582   # AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
30583
30584     { echo "$as_me:$LINENO: checking whether mkdir accepts only one arg" >&5
30585 echo $ECHO_N "checking whether mkdir accepts only one arg... $ECHO_C" >&6; }
30586   cat >conftest.$ac_ext <<_ACEOF
30587 /* confdefs.h.  */
30588 _ACEOF
30589 cat confdefs.h >>conftest.$ac_ext
30590 cat >>conftest.$ac_ext <<_ACEOF
30591 /* end confdefs.h.  */
30592 #include <sys/types.h>
30593        #include <sys/stat.h>
30594        #include <fcntl.h>
30595 int
30596 main ()
30597 {
30598
30599        mkdir("")
30600
30601   ;
30602   return 0;
30603 }
30604 _ACEOF
30605 rm -f conftest.$ac_objext
30606 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30613   ac_status=$?
30614   grep -v '^ *+' conftest.er1 >conftest.err
30615   rm -f conftest.er1
30616   cat conftest.err >&5
30617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618   (exit $ac_status); } &&
30619          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30620   { (case "(($ac_try" in
30621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30622   *) ac_try_echo=$ac_try;;
30623 esac
30624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30625   (eval "$ac_try") 2>&5
30626   ac_status=$?
30627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628   (exit $ac_status); }; } &&
30629          { ac_try='test -s conftest.$ac_objext'
30630   { (case "(($ac_try" in
30631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30632   *) ac_try_echo=$ac_try;;
30633 esac
30634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30635   (eval "$ac_try") 2>&5
30636   ac_status=$?
30637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30638   (exit $ac_status); }; }; then
30639    { echo "$as_me:$LINENO: result: yes" >&5
30640 echo "${ECHO_T}yes" >&6; }
30641
30642 cat >>confdefs.h <<\_ACEOF
30643 #define MKDIR_TAKES_ONE_ARG
30644 _ACEOF
30645
30646 else
30647   echo "$as_me: failed program was:" >&5
30648 sed 's/^/| /' conftest.$ac_ext >&5
30649
30650          { echo "$as_me:$LINENO: result: no" >&5
30651 echo "${ECHO_T}no" >&6; }
30652
30653 fi
30654
30655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30656
30657   fi
30658
30659
30660     # These checks don't fail
30661     { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
30662 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
30663 if test "${ac_cv_c_bigendian+set}" = set; then
30664   echo $ECHO_N "(cached) $ECHO_C" >&6
30665 else
30666   # See if sys/param.h defines the BYTE_ORDER macro.
30667 cat >conftest.$ac_ext <<_ACEOF
30668 /* confdefs.h.  */
30669 _ACEOF
30670 cat confdefs.h >>conftest.$ac_ext
30671 cat >>conftest.$ac_ext <<_ACEOF
30672 /* end confdefs.h.  */
30673 #include <sys/types.h>
30674 #include <sys/param.h>
30675
30676 int
30677 main ()
30678 {
30679 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
30680  bogus endian macros
30681 #endif
30682
30683   ;
30684   return 0;
30685 }
30686 _ACEOF
30687 rm -f conftest.$ac_objext
30688 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30695   ac_status=$?
30696   grep -v '^ *+' conftest.er1 >conftest.err
30697   rm -f conftest.er1
30698   cat conftest.err >&5
30699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30700   (exit $ac_status); } &&
30701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30702   { (case "(($ac_try" in
30703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30704   *) ac_try_echo=$ac_try;;
30705 esac
30706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30707   (eval "$ac_try") 2>&5
30708   ac_status=$?
30709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710   (exit $ac_status); }; } &&
30711          { ac_try='test -s conftest.$ac_objext'
30712   { (case "(($ac_try" in
30713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30714   *) ac_try_echo=$ac_try;;
30715 esac
30716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30717   (eval "$ac_try") 2>&5
30718   ac_status=$?
30719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720   (exit $ac_status); }; }; then
30721   # It does; now see whether it defined to BIG_ENDIAN or not.
30722 cat >conftest.$ac_ext <<_ACEOF
30723 /* confdefs.h.  */
30724 _ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h.  */
30728 #include <sys/types.h>
30729 #include <sys/param.h>
30730
30731 int
30732 main ()
30733 {
30734 #if BYTE_ORDER != BIG_ENDIAN
30735  not big endian
30736 #endif
30737
30738   ;
30739   return 0;
30740 }
30741 _ACEOF
30742 rm -f conftest.$ac_objext
30743 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30750   ac_status=$?
30751   grep -v '^ *+' conftest.er1 >conftest.err
30752   rm -f conftest.er1
30753   cat conftest.err >&5
30754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755   (exit $ac_status); } &&
30756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30757   { (case "(($ac_try" in
30758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30759   *) ac_try_echo=$ac_try;;
30760 esac
30761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30762   (eval "$ac_try") 2>&5
30763   ac_status=$?
30764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765   (exit $ac_status); }; } &&
30766          { ac_try='test -s conftest.$ac_objext'
30767   { (case "(($ac_try" in
30768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30769   *) ac_try_echo=$ac_try;;
30770 esac
30771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30772   (eval "$ac_try") 2>&5
30773   ac_status=$?
30774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30775   (exit $ac_status); }; }; then
30776   ac_cv_c_bigendian=yes
30777 else
30778   echo "$as_me: failed program was:" >&5
30779 sed 's/^/| /' conftest.$ac_ext >&5
30780
30781         ac_cv_c_bigendian=no
30782 fi
30783
30784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30785 else
30786   echo "$as_me: failed program was:" >&5
30787 sed 's/^/| /' conftest.$ac_ext >&5
30788
30789         # It does not; compile a test program.
30790 if test "$cross_compiling" = yes; then
30791   # try to guess the endianness by grepping values into an object file
30792   ac_cv_c_bigendian=unknown
30793   cat >conftest.$ac_ext <<_ACEOF
30794 /* confdefs.h.  */
30795 _ACEOF
30796 cat confdefs.h >>conftest.$ac_ext
30797 cat >>conftest.$ac_ext <<_ACEOF
30798 /* end confdefs.h.  */
30799 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
30800 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
30801 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
30802 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
30803 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
30804 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
30805 int
30806 main ()
30807 {
30808  _ascii (); _ebcdic ();
30809   ;
30810   return 0;
30811 }
30812 _ACEOF
30813 rm -f conftest.$ac_objext
30814 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30821   ac_status=$?
30822   grep -v '^ *+' conftest.er1 >conftest.err
30823   rm -f conftest.er1
30824   cat conftest.err >&5
30825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826   (exit $ac_status); } &&
30827          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30828   { (case "(($ac_try" in
30829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30830   *) ac_try_echo=$ac_try;;
30831 esac
30832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30833   (eval "$ac_try") 2>&5
30834   ac_status=$?
30835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836   (exit $ac_status); }; } &&
30837          { ac_try='test -s conftest.$ac_objext'
30838   { (case "(($ac_try" in
30839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30840   *) ac_try_echo=$ac_try;;
30841 esac
30842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30843   (eval "$ac_try") 2>&5
30844   ac_status=$?
30845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846   (exit $ac_status); }; }; then
30847   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
30848   ac_cv_c_bigendian=yes
30849 fi
30850 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
30851   if test "$ac_cv_c_bigendian" = unknown; then
30852     ac_cv_c_bigendian=no
30853   else
30854     # finding both strings is unlikely to happen, but who knows?
30855     ac_cv_c_bigendian=unknown
30856   fi
30857 fi
30858 else
30859   echo "$as_me: failed program was:" >&5
30860 sed 's/^/| /' conftest.$ac_ext >&5
30861
30862
30863 fi
30864
30865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30866 else
30867   cat >conftest.$ac_ext <<_ACEOF
30868 /* confdefs.h.  */
30869 _ACEOF
30870 cat confdefs.h >>conftest.$ac_ext
30871 cat >>conftest.$ac_ext <<_ACEOF
30872 /* end confdefs.h.  */
30873 $ac_includes_default
30874 int
30875 main ()
30876 {
30877
30878   /* Are we little or big endian?  From Harbison&Steele.  */
30879   union
30880   {
30881     long int l;
30882     char c[sizeof (long int)];
30883   } u;
30884   u.l = 1;
30885   return u.c[sizeof (long int) - 1] == 1;
30886
30887   ;
30888   return 0;
30889 }
30890 _ACEOF
30891 rm -f conftest$ac_exeext
30892 if { (ac_try="$ac_link"
30893 case "(($ac_try" in
30894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30895   *) ac_try_echo=$ac_try;;
30896 esac
30897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30898   (eval "$ac_link") 2>&5
30899   ac_status=$?
30900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30902   { (case "(($ac_try" in
30903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30904   *) ac_try_echo=$ac_try;;
30905 esac
30906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30907   (eval "$ac_try") 2>&5
30908   ac_status=$?
30909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910   (exit $ac_status); }; }; then
30911   ac_cv_c_bigendian=no
30912 else
30913   echo "$as_me: program exited with status $ac_status" >&5
30914 echo "$as_me: failed program was:" >&5
30915 sed 's/^/| /' conftest.$ac_ext >&5
30916
30917 ( exit $ac_status )
30918 ac_cv_c_bigendian=yes
30919 fi
30920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30921 fi
30922
30923
30924 fi
30925
30926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30927 fi
30928 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
30929 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
30930 case $ac_cv_c_bigendian in
30931   yes)
30932
30933 cat >>confdefs.h <<\_ACEOF
30934 #define WORDS_BIGENDIAN 1
30935 _ACEOF
30936  ;;
30937   no)
30938      ;;
30939   *)
30940     { { echo "$as_me:$LINENO: error: unknown endianness
30941 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
30942 echo "$as_me: error: unknown endianness
30943 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
30944    { (exit 1); exit 1; }; } ;;
30945 esac
30946
30947
30948
30949 for ac_header in byteswap.h linux/compiler.h
30950 do
30951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30953   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30956   echo $ECHO_N "(cached) $ECHO_C" >&6
30957 fi
30958 ac_res=`eval echo '${'$as_ac_Header'}'`
30959                { echo "$as_me:$LINENO: result: $ac_res" >&5
30960 echo "${ECHO_T}$ac_res" >&6; }
30961 else
30962   # Is the header compilable?
30963 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30965 cat >conftest.$ac_ext <<_ACEOF
30966 /* confdefs.h.  */
30967 _ACEOF
30968 cat confdefs.h >>conftest.$ac_ext
30969 cat >>conftest.$ac_ext <<_ACEOF
30970 /* end confdefs.h.  */
30971 $ac_includes_default
30972 #include <$ac_header>
30973 _ACEOF
30974 rm -f conftest.$ac_objext
30975 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
30982   ac_status=$?
30983   grep -v '^ *+' conftest.er1 >conftest.err
30984   rm -f conftest.er1
30985   cat conftest.err >&5
30986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987   (exit $ac_status); } &&
30988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30989   { (case "(($ac_try" in
30990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30991   *) ac_try_echo=$ac_try;;
30992 esac
30993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30994   (eval "$ac_try") 2>&5
30995   ac_status=$?
30996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30997   (exit $ac_status); }; } &&
30998          { ac_try='test -s conftest.$ac_objext'
30999   { (case "(($ac_try" in
31000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31001   *) ac_try_echo=$ac_try;;
31002 esac
31003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31004   (eval "$ac_try") 2>&5
31005   ac_status=$?
31006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31007   (exit $ac_status); }; }; then
31008   ac_header_compiler=yes
31009 else
31010   echo "$as_me: failed program was:" >&5
31011 sed 's/^/| /' conftest.$ac_ext >&5
31012
31013         ac_header_compiler=no
31014 fi
31015
31016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31017 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31018 echo "${ECHO_T}$ac_header_compiler" >&6; }
31019
31020 # Is the header present?
31021 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31023 cat >conftest.$ac_ext <<_ACEOF
31024 /* confdefs.h.  */
31025 _ACEOF
31026 cat confdefs.h >>conftest.$ac_ext
31027 cat >>conftest.$ac_ext <<_ACEOF
31028 /* end confdefs.h.  */
31029 #include <$ac_header>
31030 _ACEOF
31031 if { (ac_try="$ac_cpp conftest.$ac_ext"
31032 case "(($ac_try" in
31033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31034   *) ac_try_echo=$ac_try;;
31035 esac
31036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31037   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31038   ac_status=$?
31039   grep -v '^ *+' conftest.er1 >conftest.err
31040   rm -f conftest.er1
31041   cat conftest.err >&5
31042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31043   (exit $ac_status); } >/dev/null; then
31044   if test -s conftest.err; then
31045     ac_cpp_err=$ac_c_preproc_warn_flag
31046     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31047   else
31048     ac_cpp_err=
31049   fi
31050 else
31051   ac_cpp_err=yes
31052 fi
31053 if test -z "$ac_cpp_err"; then
31054   ac_header_preproc=yes
31055 else
31056   echo "$as_me: failed program was:" >&5
31057 sed 's/^/| /' conftest.$ac_ext >&5
31058
31059   ac_header_preproc=no
31060 fi
31061
31062 rm -f conftest.err conftest.$ac_ext
31063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31064 echo "${ECHO_T}$ac_header_preproc" >&6; }
31065
31066 # So?  What about this header?
31067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31068   yes:no: )
31069     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31071     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31073     ac_header_preproc=yes
31074     ;;
31075   no:yes:* )
31076     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31078     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31079 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31080     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31082     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31083 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31084     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31086     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31088
31089     ;;
31090 esac
31091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31094   echo $ECHO_N "(cached) $ECHO_C" >&6
31095 else
31096   eval "$as_ac_Header=\$ac_header_preproc"
31097 fi
31098 ac_res=`eval echo '${'$as_ac_Header'}'`
31099                { echo "$as_me:$LINENO: result: $ac_res" >&5
31100 echo "${ECHO_T}$ac_res" >&6; }
31101
31102 fi
31103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31104   cat >>confdefs.h <<_ACEOF
31105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31106 _ACEOF
31107
31108 fi
31109
31110 done
31111
31112
31113
31114 for ac_func in getrusage sched_setscheduler
31115 do
31116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31117 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31120   echo $ECHO_N "(cached) $ECHO_C" >&6
31121 else
31122   cat >conftest.$ac_ext <<_ACEOF
31123 /* confdefs.h.  */
31124 _ACEOF
31125 cat confdefs.h >>conftest.$ac_ext
31126 cat >>conftest.$ac_ext <<_ACEOF
31127 /* end confdefs.h.  */
31128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31130 #define $ac_func innocuous_$ac_func
31131
31132 /* System header to define __stub macros and hopefully few prototypes,
31133     which can conflict with char $ac_func (); below.
31134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31135     <limits.h> exists even on freestanding compilers.  */
31136
31137 #ifdef __STDC__
31138 # include <limits.h>
31139 #else
31140 # include <assert.h>
31141 #endif
31142
31143 #undef $ac_func
31144
31145 /* Override any GCC internal prototype to avoid an error.
31146    Use char because int might match the return type of a GCC
31147    builtin and then its argument prototype would still apply.  */
31148 #ifdef __cplusplus
31149 extern "C"
31150 #endif
31151 char $ac_func ();
31152 /* The GNU C library defines this for functions which it implements
31153     to always fail with ENOSYS.  Some functions are actually named
31154     something starting with __ and the normal name is an alias.  */
31155 #if defined __stub_$ac_func || defined __stub___$ac_func
31156 choke me
31157 #endif
31158
31159 int
31160 main ()
31161 {
31162 return $ac_func ();
31163   ;
31164   return 0;
31165 }
31166 _ACEOF
31167 rm -f conftest.$ac_objext conftest$ac_exeext
31168 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
31175   ac_status=$?
31176   grep -v '^ *+' conftest.er1 >conftest.err
31177   rm -f conftest.er1
31178   cat conftest.err >&5
31179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180   (exit $ac_status); } &&
31181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31182   { (case "(($ac_try" in
31183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31184   *) ac_try_echo=$ac_try;;
31185 esac
31186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31187   (eval "$ac_try") 2>&5
31188   ac_status=$?
31189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31190   (exit $ac_status); }; } &&
31191          { ac_try='test -s conftest$ac_exeext'
31192   { (case "(($ac_try" in
31193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31194   *) ac_try_echo=$ac_try;;
31195 esac
31196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31197   (eval "$ac_try") 2>&5
31198   ac_status=$?
31199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31200   (exit $ac_status); }; }; then
31201   eval "$as_ac_var=yes"
31202 else
31203   echo "$as_me: failed program was:" >&5
31204 sed 's/^/| /' conftest.$ac_ext >&5
31205
31206         eval "$as_ac_var=no"
31207 fi
31208
31209 rm -f core conftest.err conftest.$ac_objext \
31210       conftest$ac_exeext conftest.$ac_ext
31211 fi
31212 ac_res=`eval echo '${'$as_ac_var'}'`
31213                { echo "$as_me:$LINENO: result: $ac_res" >&5
31214 echo "${ECHO_T}$ac_res" >&6; }
31215 if test `eval echo '${'$as_ac_var'}'` = yes; then
31216   cat >>confdefs.h <<_ACEOF
31217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31218 _ACEOF
31219
31220 fi
31221 done
31222
31223
31224
31225 for ac_func in sigaction snprintf
31226 do
31227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31228 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31231   echo $ECHO_N "(cached) $ECHO_C" >&6
31232 else
31233   cat >conftest.$ac_ext <<_ACEOF
31234 /* confdefs.h.  */
31235 _ACEOF
31236 cat confdefs.h >>conftest.$ac_ext
31237 cat >>conftest.$ac_ext <<_ACEOF
31238 /* end confdefs.h.  */
31239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31241 #define $ac_func innocuous_$ac_func
31242
31243 /* System header to define __stub macros and hopefully few prototypes,
31244     which can conflict with char $ac_func (); below.
31245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31246     <limits.h> exists even on freestanding compilers.  */
31247
31248 #ifdef __STDC__
31249 # include <limits.h>
31250 #else
31251 # include <assert.h>
31252 #endif
31253
31254 #undef $ac_func
31255
31256 /* Override any GCC internal prototype to avoid an error.
31257    Use char because int might match the return type of a GCC
31258    builtin and then its argument prototype would still apply.  */
31259 #ifdef __cplusplus
31260 extern "C"
31261 #endif
31262 char $ac_func ();
31263 /* The GNU C library defines this for functions which it implements
31264     to always fail with ENOSYS.  Some functions are actually named
31265     something starting with __ and the normal name is an alias.  */
31266 #if defined __stub_$ac_func || defined __stub___$ac_func
31267 choke me
31268 #endif
31269
31270 int
31271 main ()
31272 {
31273 return $ac_func ();
31274   ;
31275   return 0;
31276 }
31277 _ACEOF
31278 rm -f conftest.$ac_objext conftest$ac_exeext
31279 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
31286   ac_status=$?
31287   grep -v '^ *+' conftest.er1 >conftest.err
31288   rm -f conftest.er1
31289   cat conftest.err >&5
31290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31291   (exit $ac_status); } &&
31292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31293   { (case "(($ac_try" in
31294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31295   *) ac_try_echo=$ac_try;;
31296 esac
31297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31298   (eval "$ac_try") 2>&5
31299   ac_status=$?
31300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31301   (exit $ac_status); }; } &&
31302          { ac_try='test -s conftest$ac_exeext'
31303   { (case "(($ac_try" in
31304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31305   *) ac_try_echo=$ac_try;;
31306 esac
31307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31308   (eval "$ac_try") 2>&5
31309   ac_status=$?
31310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311   (exit $ac_status); }; }; then
31312   eval "$as_ac_var=yes"
31313 else
31314   echo "$as_me: failed program was:" >&5
31315 sed 's/^/| /' conftest.$ac_ext >&5
31316
31317         eval "$as_ac_var=no"
31318 fi
31319
31320 rm -f core conftest.err conftest.$ac_objext \
31321       conftest$ac_exeext conftest.$ac_ext
31322 fi
31323 ac_res=`eval echo '${'$as_ac_var'}'`
31324                { echo "$as_me:$LINENO: result: $ac_res" >&5
31325 echo "${ECHO_T}$ac_res" >&6; }
31326 if test `eval echo '${'$as_ac_var'}'` = yes; then
31327   cat >>confdefs.h <<_ACEOF
31328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31329 _ACEOF
31330
31331 fi
31332 done
31333
31334
31335     passed=yes
31336
31337         ac_ext=c
31338 ac_cpp='$CPP $CPPFLAGS'
31339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31342
31343
31344         libusbok=yes
31345
31346 for ac_header in usb.h
31347 do
31348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31350   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31353   echo $ECHO_N "(cached) $ECHO_C" >&6
31354 fi
31355 ac_res=`eval echo '${'$as_ac_Header'}'`
31356                { echo "$as_me:$LINENO: result: $ac_res" >&5
31357 echo "${ECHO_T}$ac_res" >&6; }
31358 else
31359   # Is the header compilable?
31360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31362 cat >conftest.$ac_ext <<_ACEOF
31363 /* confdefs.h.  */
31364 _ACEOF
31365 cat confdefs.h >>conftest.$ac_ext
31366 cat >>conftest.$ac_ext <<_ACEOF
31367 /* end confdefs.h.  */
31368 $ac_includes_default
31369 #include <$ac_header>
31370 _ACEOF
31371 rm -f conftest.$ac_objext
31372 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
31379   ac_status=$?
31380   grep -v '^ *+' conftest.er1 >conftest.err
31381   rm -f conftest.er1
31382   cat conftest.err >&5
31383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31384   (exit $ac_status); } &&
31385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31386   { (case "(($ac_try" in
31387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31388   *) ac_try_echo=$ac_try;;
31389 esac
31390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31391   (eval "$ac_try") 2>&5
31392   ac_status=$?
31393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394   (exit $ac_status); }; } &&
31395          { ac_try='test -s conftest.$ac_objext'
31396   { (case "(($ac_try" in
31397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31398   *) ac_try_echo=$ac_try;;
31399 esac
31400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31401   (eval "$ac_try") 2>&5
31402   ac_status=$?
31403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404   (exit $ac_status); }; }; then
31405   ac_header_compiler=yes
31406 else
31407   echo "$as_me: failed program was:" >&5
31408 sed 's/^/| /' conftest.$ac_ext >&5
31409
31410         ac_header_compiler=no
31411 fi
31412
31413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31415 echo "${ECHO_T}$ac_header_compiler" >&6; }
31416
31417 # Is the header present?
31418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31420 cat >conftest.$ac_ext <<_ACEOF
31421 /* confdefs.h.  */
31422 _ACEOF
31423 cat confdefs.h >>conftest.$ac_ext
31424 cat >>conftest.$ac_ext <<_ACEOF
31425 /* end confdefs.h.  */
31426 #include <$ac_header>
31427 _ACEOF
31428 if { (ac_try="$ac_cpp conftest.$ac_ext"
31429 case "(($ac_try" in
31430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431   *) ac_try_echo=$ac_try;;
31432 esac
31433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31435   ac_status=$?
31436   grep -v '^ *+' conftest.er1 >conftest.err
31437   rm -f conftest.er1
31438   cat conftest.err >&5
31439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440   (exit $ac_status); } >/dev/null; then
31441   if test -s conftest.err; then
31442     ac_cpp_err=$ac_c_preproc_warn_flag
31443     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31444   else
31445     ac_cpp_err=
31446   fi
31447 else
31448   ac_cpp_err=yes
31449 fi
31450 if test -z "$ac_cpp_err"; then
31451   ac_header_preproc=yes
31452 else
31453   echo "$as_me: failed program was:" >&5
31454 sed 's/^/| /' conftest.$ac_ext >&5
31455
31456   ac_header_preproc=no
31457 fi
31458
31459 rm -f conftest.err conftest.$ac_ext
31460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31461 echo "${ECHO_T}$ac_header_preproc" >&6; }
31462
31463 # So?  What about this header?
31464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31465   yes:no: )
31466     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31470     ac_header_preproc=yes
31471     ;;
31472   no:yes:* )
31473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31475     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31476 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31477     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31479     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31480 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31483     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31485
31486     ;;
31487 esac
31488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31491   echo $ECHO_N "(cached) $ECHO_C" >&6
31492 else
31493   eval "$as_ac_Header=\$ac_header_preproc"
31494 fi
31495 ac_res=`eval echo '${'$as_ac_Header'}'`
31496                { echo "$as_me:$LINENO: result: $ac_res" >&5
31497 echo "${ECHO_T}$ac_res" >&6; }
31498
31499 fi
31500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31501   cat >>confdefs.h <<_ACEOF
31502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31503 _ACEOF
31504
31505 else
31506   libusbok=no,
31507            { echo "$as_me:$LINENO: result: USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&5
31508 echo "${ECHO_T}USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&6; }
31509
31510 fi
31511
31512 done
31513
31514
31515         save_LIBS="$LIBS"
31516         case "$host_os" in
31517             darwin*)    LIBS="$LIBS -lIOKit" ;;
31518             *) ;;
31519         esac
31520         { echo "$as_me:$LINENO: checking for library containing usb_bulk_write" >&5
31521 echo $ECHO_N "checking for library containing usb_bulk_write... $ECHO_C" >&6; }
31522 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
31523   echo $ECHO_N "(cached) $ECHO_C" >&6
31524 else
31525   ac_func_search_save_LIBS=$LIBS
31526 cat >conftest.$ac_ext <<_ACEOF
31527 /* confdefs.h.  */
31528 _ACEOF
31529 cat confdefs.h >>conftest.$ac_ext
31530 cat >>conftest.$ac_ext <<_ACEOF
31531 /* end confdefs.h.  */
31532
31533 /* Override any GCC internal prototype to avoid an error.
31534    Use char because int might match the return type of a GCC
31535    builtin and then its argument prototype would still apply.  */
31536 #ifdef __cplusplus
31537 extern "C"
31538 #endif
31539 char usb_bulk_write ();
31540 int
31541 main ()
31542 {
31543 return usb_bulk_write ();
31544   ;
31545   return 0;
31546 }
31547 _ACEOF
31548 for ac_lib in '' usb; do
31549   if test -z "$ac_lib"; then
31550     ac_res="none required"
31551   else
31552     ac_res=-l$ac_lib
31553     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31554   fi
31555   rm -f conftest.$ac_objext conftest$ac_exeext
31556 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
31563   ac_status=$?
31564   grep -v '^ *+' conftest.er1 >conftest.err
31565   rm -f conftest.er1
31566   cat conftest.err >&5
31567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568   (exit $ac_status); } &&
31569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31570   { (case "(($ac_try" in
31571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31572   *) ac_try_echo=$ac_try;;
31573 esac
31574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31575   (eval "$ac_try") 2>&5
31576   ac_status=$?
31577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31578   (exit $ac_status); }; } &&
31579          { ac_try='test -s conftest$ac_exeext'
31580   { (case "(($ac_try" in
31581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31582   *) ac_try_echo=$ac_try;;
31583 esac
31584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31585   (eval "$ac_try") 2>&5
31586   ac_status=$?
31587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588   (exit $ac_status); }; }; then
31589   ac_cv_search_usb_bulk_write=$ac_res
31590 else
31591   echo "$as_me: failed program was:" >&5
31592 sed 's/^/| /' conftest.$ac_ext >&5
31593
31594
31595 fi
31596
31597 rm -f core conftest.err conftest.$ac_objext \
31598       conftest$ac_exeext
31599   if test "${ac_cv_search_usb_bulk_write+set}" = set; then
31600   break
31601 fi
31602 done
31603 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
31604   :
31605 else
31606   ac_cv_search_usb_bulk_write=no
31607 fi
31608 rm conftest.$ac_ext
31609 LIBS=$ac_func_search_save_LIBS
31610 fi
31611 { echo "$as_me:$LINENO: result: $ac_cv_search_usb_bulk_write" >&5
31612 echo "${ECHO_T}$ac_cv_search_usb_bulk_write" >&6; }
31613 ac_res=$ac_cv_search_usb_bulk_write
31614 if test "$ac_res" != no; then
31615   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31616   USB_LIBS="$LIBS"
31617 else
31618   libusbok=no,
31619            { echo "$as_me:$LINENO: result: USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&5
31620 echo "${ECHO_T}USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&6; }
31621
31622 fi
31623
31624         LIBS="$save_LIBS"
31625
31626         ac_ext=c
31627 ac_cpp='$CPP $CPPFLAGS'
31628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31631
31632
31633         if test $libusbok = yes; then
31634
31635             :
31636         else
31637             passed=no;{ echo "$as_me:$LINENO: result: Unable to configure USB dependency." >&5
31638 echo "${ECHO_T}Unable to configure USB dependency." >&6; }
31639         fi
31640
31641
31642
31643 # Check whether --with-fusb-tech was given.
31644 if test "${with_fusb_tech+set}" = set; then
31645   withval=$with_fusb_tech; cf_with_fusb_tech="$withval"
31646 else
31647   cf_with_fusb_tech="$host_os"
31648 fi
31649
31650
31651
31652   if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
31653   { echo "$as_me:$LINENO: checking for linux/usbdevice_fs.h" >&5
31654 echo $ECHO_N "checking for linux/usbdevice_fs.h... $ECHO_C" >&6; }
31655 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
31656   echo $ECHO_N "(cached) $ECHO_C" >&6
31657 fi
31658 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_usbdevice_fs_h" >&5
31659 echo "${ECHO_T}$ac_cv_header_linux_usbdevice_fs_h" >&6; }
31660 else
31661   # Is the header compilable?
31662 { echo "$as_me:$LINENO: checking linux/usbdevice_fs.h usability" >&5
31663 echo $ECHO_N "checking linux/usbdevice_fs.h usability... $ECHO_C" >&6; }
31664 cat >conftest.$ac_ext <<_ACEOF
31665 /* confdefs.h.  */
31666 _ACEOF
31667 cat confdefs.h >>conftest.$ac_ext
31668 cat >>conftest.$ac_ext <<_ACEOF
31669 /* end confdefs.h.  */
31670 $ac_includes_default
31671 #include <linux/usbdevice_fs.h>
31672 _ACEOF
31673 rm -f conftest.$ac_objext
31674 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
31681   ac_status=$?
31682   grep -v '^ *+' conftest.er1 >conftest.err
31683   rm -f conftest.er1
31684   cat conftest.err >&5
31685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31686   (exit $ac_status); } &&
31687          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31688   { (case "(($ac_try" in
31689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31690   *) ac_try_echo=$ac_try;;
31691 esac
31692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31693   (eval "$ac_try") 2>&5
31694   ac_status=$?
31695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31696   (exit $ac_status); }; } &&
31697          { ac_try='test -s conftest.$ac_objext'
31698   { (case "(($ac_try" in
31699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31700   *) ac_try_echo=$ac_try;;
31701 esac
31702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31703   (eval "$ac_try") 2>&5
31704   ac_status=$?
31705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706   (exit $ac_status); }; }; then
31707   ac_header_compiler=yes
31708 else
31709   echo "$as_me: failed program was:" >&5
31710 sed 's/^/| /' conftest.$ac_ext >&5
31711
31712         ac_header_compiler=no
31713 fi
31714
31715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31717 echo "${ECHO_T}$ac_header_compiler" >&6; }
31718
31719 # Is the header present?
31720 { echo "$as_me:$LINENO: checking linux/usbdevice_fs.h presence" >&5
31721 echo $ECHO_N "checking linux/usbdevice_fs.h presence... $ECHO_C" >&6; }
31722 cat >conftest.$ac_ext <<_ACEOF
31723 /* confdefs.h.  */
31724 _ACEOF
31725 cat confdefs.h >>conftest.$ac_ext
31726 cat >>conftest.$ac_ext <<_ACEOF
31727 /* end confdefs.h.  */
31728 #include <linux/usbdevice_fs.h>
31729 _ACEOF
31730 if { (ac_try="$ac_cpp conftest.$ac_ext"
31731 case "(($ac_try" in
31732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31733   *) ac_try_echo=$ac_try;;
31734 esac
31735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31736   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31737   ac_status=$?
31738   grep -v '^ *+' conftest.er1 >conftest.err
31739   rm -f conftest.er1
31740   cat conftest.err >&5
31741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31742   (exit $ac_status); } >/dev/null; then
31743   if test -s conftest.err; then
31744     ac_cpp_err=$ac_c_preproc_warn_flag
31745     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31746   else
31747     ac_cpp_err=
31748   fi
31749 else
31750   ac_cpp_err=yes
31751 fi
31752 if test -z "$ac_cpp_err"; then
31753   ac_header_preproc=yes
31754 else
31755   echo "$as_me: failed program was:" >&5
31756 sed 's/^/| /' conftest.$ac_ext >&5
31757
31758   ac_header_preproc=no
31759 fi
31760
31761 rm -f conftest.err conftest.$ac_ext
31762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31763 echo "${ECHO_T}$ac_header_preproc" >&6; }
31764
31765 # So?  What about this header?
31766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31767   yes:no: )
31768     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
31769 echo "$as_me: WARNING: linux/usbdevice_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31770     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: proceeding with the compiler's result" >&5
31771 echo "$as_me: WARNING: linux/usbdevice_fs.h: proceeding with the compiler's result" >&2;}
31772     ac_header_preproc=yes
31773     ;;
31774   no:yes:* )
31775     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: present but cannot be compiled" >&5
31776 echo "$as_me: WARNING: linux/usbdevice_fs.h: present but cannot be compiled" >&2;}
31777     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h:     check for missing prerequisite headers?" >&5
31778 echo "$as_me: WARNING: linux/usbdevice_fs.h:     check for missing prerequisite headers?" >&2;}
31779     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: see the Autoconf documentation" >&5
31780 echo "$as_me: WARNING: linux/usbdevice_fs.h: see the Autoconf documentation" >&2;}
31781     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h:     section \"Present But Cannot Be Compiled\"" >&5
31782 echo "$as_me: WARNING: linux/usbdevice_fs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31783     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: proceeding with the preprocessor's result" >&5
31784 echo "$as_me: WARNING: linux/usbdevice_fs.h: proceeding with the preprocessor's result" >&2;}
31785     { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: in the future, the compiler will take precedence" >&5
31786 echo "$as_me: WARNING: linux/usbdevice_fs.h: in the future, the compiler will take precedence" >&2;}
31787
31788     ;;
31789 esac
31790 { echo "$as_me:$LINENO: checking for linux/usbdevice_fs.h" >&5
31791 echo $ECHO_N "checking for linux/usbdevice_fs.h... $ECHO_C" >&6; }
31792 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
31793   echo $ECHO_N "(cached) $ECHO_C" >&6
31794 else
31795   ac_cv_header_linux_usbdevice_fs_h=$ac_header_preproc
31796 fi
31797 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_usbdevice_fs_h" >&5
31798 echo "${ECHO_T}$ac_cv_header_linux_usbdevice_fs_h" >&6; }
31799
31800 fi
31801 if test $ac_cv_header_linux_usbdevice_fs_h = yes; then
31802   x_have_usbdevice_fs_h=yes
31803 else
31804   x_have_usbdevice_fs_h=no
31805 fi
31806
31807
31808
31809   { echo "$as_me:$LINENO: checking for fast usb technique to use" >&5
31810 echo $ECHO_N "checking for fast usb technique to use... $ECHO_C" >&6; }
31811   case "$cf_with_fusb_tech" in
31812     linux*)     if test x${x_have_usbdevice_fs_h} = xyes;
31813                 then
31814                   FUSB_TECH=linux
31815                 else
31816                   FUSB_TECH=generic
31817                 fi                      ;;
31818
31819     darwin*)    FUSB_TECH=darwin        ;;
31820     cygwin*|win*|mingw*)        FUSB_TECH=win32         ;;
31821     *bsd*)
31822                 { echo "$as_me:$LINENO: checking for RA/WB" >&5
31823 echo $ECHO_N "checking for RA/WB... $ECHO_C" >&6; }
31824                 cat >conftest.$ac_ext <<_ACEOF
31825 /* confdefs.h.  */
31826 _ACEOF
31827 cat confdefs.h >>conftest.$ac_ext
31828 cat >>conftest.$ac_ext <<_ACEOF
31829 /* end confdefs.h.  */
31830 #include <dev/usb/usb.h>
31831 int
31832 main ()
31833 {
31834 struct usb_bulk_ra_wb_opt o;
31835                                                      ioctl(0, USB_SET_BULK_RA, &o);
31836   ;
31837   return 0;
31838 }
31839 _ACEOF
31840 rm -f conftest.$ac_objext
31841 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
31848   ac_status=$?
31849   grep -v '^ *+' conftest.er1 >conftest.err
31850   rm -f conftest.er1
31851   cat conftest.err >&5
31852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31853   (exit $ac_status); } &&
31854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31855   { (case "(($ac_try" in
31856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31857   *) ac_try_echo=$ac_try;;
31858 esac
31859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31860   (eval "$ac_try") 2>&5
31861   ac_status=$?
31862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31863   (exit $ac_status); }; } &&
31864          { ac_try='test -s conftest.$ac_objext'
31865   { (case "(($ac_try" in
31866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31867   *) ac_try_echo=$ac_try;;
31868 esac
31869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31870   (eval "$ac_try") 2>&5
31871   ac_status=$?
31872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31873   (exit $ac_status); }; }; then
31874   FUSB_TECH=ra_wb
31875 else
31876   echo "$as_me: failed program was:" >&5
31877 sed 's/^/| /' conftest.$ac_ext >&5
31878
31879         FUSB_TECH=generic
31880 fi
31881
31882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext            ;;
31883     *)          FUSB_TECH=generic       ;;
31884   esac
31885
31886   { echo "$as_me:$LINENO: result: $FUSB_TECH" >&5
31887 echo "${ECHO_T}$FUSB_TECH" >&6; }
31888
31889
31890
31891
31892 if test $FUSB_TECH = darwin; then
31893   FUSB_TECH_darwin_TRUE=
31894   FUSB_TECH_darwin_FALSE='#'
31895 else
31896   FUSB_TECH_darwin_TRUE='#'
31897   FUSB_TECH_darwin_FALSE=
31898 fi
31899
31900
31901
31902 if test $FUSB_TECH = win32; then
31903   FUSB_TECH_win32_TRUE=
31904   FUSB_TECH_win32_FALSE='#'
31905 else
31906   FUSB_TECH_win32_TRUE='#'
31907   FUSB_TECH_win32_FALSE=
31908 fi
31909
31910
31911
31912 if test $FUSB_TECH = generic; then
31913   FUSB_TECH_generic_TRUE=
31914   FUSB_TECH_generic_FALSE='#'
31915 else
31916   FUSB_TECH_generic_TRUE='#'
31917   FUSB_TECH_generic_FALSE=
31918 fi
31919
31920
31921
31922 if test $FUSB_TECH = linux; then
31923   FUSB_TECH_linux_TRUE=
31924   FUSB_TECH_linux_FALSE='#'
31925 else
31926   FUSB_TECH_linux_TRUE='#'
31927   FUSB_TECH_linux_FALSE=
31928 fi
31929
31930
31931
31932 if test $FUSB_TECH = ra_wb; then
31933   FUSB_TECH_ra_wb_TRUE=
31934   FUSB_TECH_ra_wb_FALSE='#'
31935 else
31936   FUSB_TECH_ra_wb_TRUE='#'
31937   FUSB_TECH_ra_wb_FALSE=
31938 fi
31939
31940
31941
31942         sdccok=yes
31943         # Extract the first word of "sdcc", so it can be a program name with args.
31944 set dummy sdcc; ac_word=$2
31945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31947 if test "${ac_cv_prog_XCC+set}" = set; then
31948   echo $ECHO_N "(cached) $ECHO_C" >&6
31949 else
31950   if test -n "$XCC"; then
31951   ac_cv_prog_XCC="$XCC" # Let the user override the test.
31952 else
31953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31954 for as_dir in $PATH
31955 do
31956   IFS=$as_save_IFS
31957   test -z "$as_dir" && as_dir=.
31958   for ac_exec_ext in '' $ac_executable_extensions; do
31959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
31960     ac_cv_prog_XCC="sdcc -mmcs51 --no-xinit-opt"
31961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31962     break 2
31963   fi
31964 done
31965 done
31966 IFS=$as_save_IFS
31967
31968   test -z "$ac_cv_prog_XCC" && ac_cv_prog_XCC="no"
31969 fi
31970 fi
31971 XCC=$ac_cv_prog_XCC
31972 if test -n "$XCC"; then
31973   { echo "$as_me:$LINENO: result: $XCC" >&5
31974 echo "${ECHO_T}$XCC" >&6; }
31975 else
31976   { echo "$as_me:$LINENO: result: no" >&5
31977 echo "${ECHO_T}no" >&6; }
31978 fi
31979
31980
31981         # Extract the first word of "asx8051", so it can be a program name with args.
31982 set dummy asx8051; ac_word=$2
31983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31985 if test "${ac_cv_prog_XAS+set}" = set; then
31986   echo $ECHO_N "(cached) $ECHO_C" >&6
31987 else
31988   if test -n "$XAS"; then
31989   ac_cv_prog_XAS="$XAS" # Let the user override the test.
31990 else
31991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31992 for as_dir in $PATH
31993 do
31994   IFS=$as_save_IFS
31995   test -z "$as_dir" && as_dir=.
31996   for ac_exec_ext in '' $ac_executable_extensions; do
31997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
31998     ac_cv_prog_XAS="asx8051 -plosgff"
31999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32000     break 2
32001   fi
32002 done
32003 done
32004 IFS=$as_save_IFS
32005
32006   test -z "$ac_cv_prog_XAS" && ac_cv_prog_XAS="no"
32007 fi
32008 fi
32009 XAS=$ac_cv_prog_XAS
32010 if test -n "$XAS"; then
32011   { echo "$as_me:$LINENO: result: $XAS" >&5
32012 echo "${ECHO_T}$XAS" >&6; }
32013 else
32014   { echo "$as_me:$LINENO: result: no" >&5
32015 echo "${ECHO_T}no" >&6; }
32016 fi
32017
32018
32019
32020         if test "$XCC" = "no" -o "$XAS" = "no" ; then
32021                 { echo "$as_me:$LINENO: result: USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&5
32022 echo "${ECHO_T}USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&6; }
32023                 sdccok=no
32024         else
32025                 sdcc_version_min=2.4.0
32026
32027                 sdcc_version=`sdcc --version 2>&1 | \
32028                         sed  's/\(SDCC.* \)\([0-9]*\.[0-9]*\.[0-9]*\)\( .*$\)/\2/'`
32029
32030                 { echo "$as_me:$LINENO: checking sdcc_version \"$sdcc_version\"" >&5
32031 echo $ECHO_N "checking sdcc_version \"$sdcc_version\"... $ECHO_C" >&6; }
32032
32033                 sdcc_major_version=`echo $sdcc_version | \
32034                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
32035                 sdcc_minor_version=`echo $sdcc_version | \
32036                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
32037                 sdcc_micro_version=`echo $sdcc_version | \
32038                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
32039
32040                 sdcc_major_min=`echo $sdcc_version_min | \
32041                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
32042                 sdcc_minor_min=`echo $sdcc_version_min | \
32043                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
32044                 sdcc_micro_min=`echo $sdcc_version_min | \
32045                         sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
32046
32047                 sdcc_version_proper=`expr \
32048                         "$sdcc_major_version" \> "$sdcc_major_min" \| \
32049                         "$sdcc_major_version" \= "$sdcc_major_min" \& \
32050                         "$sdcc_minor_version" \> "$sdcc_minor_min" \| \
32051                         "$sdcc_major_version" \= "$sdcc_major_min" \& \
32052                         "$sdcc_minor_version" \= "$sdcc_minor_min" \& \
32053                         "$sdcc_micro_version" \>= "$sdcc_micro_min" `
32054
32055                 if test "$sdcc_version_proper" = "1" ; then
32056                         { echo "$as_me:$LINENO: result: $sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&5
32057 echo "${ECHO_T}$sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&6; }
32058                 else
32059                         sdccok=no
32060                         { echo "$as_me:$LINENO: result: USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net\"" >&5
32061 echo "${ECHO_T}USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net\"" >&6; }
32062                 fi
32063
32064
32065
32066         fi
32067
32068         if test $sdccok = yes; then
32069                 :
32070         else
32071                 passed=no;{ echo "$as_me:$LINENO: result: Unable to find firmware compiler." >&5
32072 echo "${ECHO_T}Unable to find firmware compiler." >&6; }
32073         fi
32074
32075
32076
32077     if test x$passed = xno; then
32078         skipped_dirs="$skipped_dirs usrp"
32079         if test x$enable_usrp = xyes; then
32080             { { echo "$as_me:$LINENO: error: Component usrp has errors, stopping." >&5
32081 echo "$as_me: error: Component usrp has errors, stopping." >&2;}
32082    { (exit 1); exit 1; }; }
32083         else
32084             { echo "$as_me:$LINENO: result: Not building component usrp." >&5
32085 echo "${ECHO_T}Not building component usrp." >&6; }
32086         fi
32087     else
32088         if test x$enable_usrp != xno; then
32089
32090             build_dirs="$build_dirs usrp"
32091             { echo "$as_me:$LINENO: result: Component usrp passed configuration checks, building." >&5
32092 echo "${ECHO_T}Component usrp passed configuration checks, building." >&6; }
32093         else
32094             skipped_dirs="$skipped_dirs usrp"
32095             { echo "$as_me:$LINENO: result: Component usrp passed configuration checks, but not building." >&5
32096 echo "${ECHO_T}Component usrp passed configuration checks, but not building." >&6; }
32097         fi
32098     fi
32099
32100
32101
32102
32103     # Check whether --enable-gr-usrp was given.
32104 if test "${enable_gr_usrp+set}" = set; then
32105   enableval=$enable_gr_usrp;
32106 else
32107   enable_gr_usrp=$enable_all_components
32108 fi
32109
32110
32111
32112     ac_config_files="$ac_config_files gr-usrp/Makefile gr-usrp/src/Makefile gr-usrp/src/run_tests"
32113
32114
32115     passed=yes
32116     # Don't do gr-usrp if usrp skipped
32117     # There *has* to be a better way to check if a value is in a string
32118     for dir in $skipped_dirs
32119     do
32120         if test x$dir = xusrp; then
32121             { echo "$as_me:$LINENO: result: Component gr-usrp requires usrp, which is not being built." >&5
32122 echo "${ECHO_T}Component gr-usrp requires usrp, which is not being built." >&6; }
32123             passed=no
32124         fi
32125     done
32126
32127
32128     if test x$passed = xno; then
32129         skipped_dirs="$skipped_dirs gr-usrp"
32130         if test x$enable_gr_usrp = xyes; then
32131             { { echo "$as_me:$LINENO: error: Component gr-usrp has errors, stopping." >&5
32132 echo "$as_me: error: Component gr-usrp has errors, stopping." >&2;}
32133    { (exit 1); exit 1; }; }
32134         else
32135             { echo "$as_me:$LINENO: result: Not building component gr-usrp." >&5
32136 echo "${ECHO_T}Not building component gr-usrp." >&6; }
32137         fi
32138     else
32139         if test x$enable_gr_usrp != xno; then
32140
32141                 ac_config_commands="$ac_config_commands run_tests_usrp"
32142
32143
32144             build_dirs="$build_dirs gr-usrp"
32145             { echo "$as_me:$LINENO: result: Component gr-usrp passed configuration checks, building." >&5
32146 echo "${ECHO_T}Component gr-usrp passed configuration checks, building." >&6; }
32147         else
32148             skipped_dirs="$skipped_dirs gr-usrp"
32149             { echo "$as_me:$LINENO: result: Component gr-usrp passed configuration checks, but not building." >&5
32150 echo "${ECHO_T}Component gr-usrp passed configuration checks, but not building." >&6; }
32151         fi
32152     fi
32153
32154
32155
32156     # Check whether --enable-gr-audio-alsa was given.
32157 if test "${enable_gr_audio_alsa+set}" = set; then
32158   enableval=$enable_gr_audio_alsa;
32159 else
32160   enable_gr_audio_alsa=$enable_all_components
32161 fi
32162
32163
32164
32165     ac_config_files="$ac_config_files gr-audio-alsa/Makefile gr-audio-alsa/src/Makefile gr-audio-alsa/src/run_tests"
32166
32167
32168     passed=yes
32169
32170   succeeded=no
32171
32172   if test -z "$PKG_CONFIG"; then
32173     # Extract the first word of "pkg-config", so it can be a program name with args.
32174 set dummy pkg-config; ac_word=$2
32175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32177 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32178   echo $ECHO_N "(cached) $ECHO_C" >&6
32179 else
32180   case $PKG_CONFIG in
32181   [\\/]* | ?:[\\/]*)
32182   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32183   ;;
32184   *)
32185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32186 for as_dir in $PATH
32187 do
32188   IFS=$as_save_IFS
32189   test -z "$as_dir" && as_dir=.
32190   for ac_exec_ext in '' $ac_executable_extensions; do
32191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
32192     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32194     break 2
32195   fi
32196 done
32197 done
32198 IFS=$as_save_IFS
32199
32200   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
32201   ;;
32202 esac
32203 fi
32204 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32205 if test -n "$PKG_CONFIG"; then
32206   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32207 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32208 else
32209   { echo "$as_me:$LINENO: result: no" >&5
32210 echo "${ECHO_T}no" >&6; }
32211 fi
32212
32213
32214   fi
32215
32216   if test "$PKG_CONFIG" = "no" ; then
32217      echo "*** The pkg-config script could not be found. Make sure it is"
32218      echo "*** in your path, or set the PKG_CONFIG environment variable"
32219      echo "*** to the full path to pkg-config."
32220      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
32221   else
32222                     if test -z "$PKG_CONFIG_PATH"; then
32223         export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
32224      fi
32225
32226      PKG_CONFIG_MIN_VERSION=0.9.0
32227      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
32228         { echo "$as_me:$LINENO: checking for alsa >= 0.9" >&5
32229 echo $ECHO_N "checking for alsa >= 0.9... $ECHO_C" >&6; }
32230
32231         if $PKG_CONFIG --exists "alsa >= 0.9" ; then
32232             { echo "$as_me:$LINENO: result: yes" >&5
32233 echo "${ECHO_T}yes" >&6; }
32234             succeeded=yes
32235
32236             { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
32237 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
32238             ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 0.9"`
32239             { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
32240 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
32241
32242             { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
32243 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
32244             ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= 0.9"`
32245             { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
32246 echo "${ECHO_T}$ALSA_LIBS" >&6; }
32247
32248             { echo "$as_me:$LINENO: checking ALSA_INCLUDEDIR" >&5
32249 echo $ECHO_N "checking ALSA_INCLUDEDIR... $ECHO_C" >&6; }
32250             ALSA_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "alsa >= 0.9"`
32251             { echo "$as_me:$LINENO: result: $ALSA_INCLUDEDIR" >&5
32252 echo "${ECHO_T}$ALSA_INCLUDEDIR" >&6; }
32253         else
32254             ALSA_CFLAGS=""
32255             ALSA_LIBS=""
32256             ## If we have a custom action on failure, don't print errors, but
32257             ## do set a variable so people can do so.
32258             ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa >= 0.9"`
32259
32260         fi
32261
32262
32263
32264
32265      else
32266         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
32267         echo "*** See http://www.freedesktop.org/software/pkgconfig"
32268      fi
32269   fi
32270
32271   if test $succeeded = yes; then
32272      :
32273   else
32274      passed=no;{ echo "$as_me:$LINENO: result: gr-audio-alsa requires package alsa, not found." >&5
32275 echo "${ECHO_T}gr-audio-alsa requires package alsa, not found." >&6; }
32276   fi
32277
32278
32279
32280     if test x$passed = xno; then
32281         skipped_dirs="$skipped_dirs gr-audio-alsa"
32282         if test x$enable_gr_audio_alsa = xyes; then
32283             { { echo "$as_me:$LINENO: error: Component gr-audio-alsa has errors, stopping." >&5
32284 echo "$as_me: error: Component gr-audio-alsa has errors, stopping." >&2;}
32285    { (exit 1); exit 1; }; }
32286         else
32287             { echo "$as_me:$LINENO: result: Not building component gr-audio-alsa." >&5
32288 echo "${ECHO_T}Not building component gr-audio-alsa." >&6; }
32289         fi
32290     else
32291         if test x$enable_gr_audio_alsa != xno; then
32292
32293
32294                 ac_config_commands="$ac_config_commands run_tests_alsa"
32295
32296
32297             build_dirs="$build_dirs gr-audio-alsa"
32298             { echo "$as_me:$LINENO: result: Component gr-audio-alsa passed configuration checks, building." >&5
32299 echo "${ECHO_T}Component gr-audio-alsa passed configuration checks, building." >&6; }
32300         else
32301             skipped_dirs="$skipped_dirs gr-audio-alsa"
32302             { echo "$as_me:$LINENO: result: Component gr-audio-alsa passed configuration checks, but not building." >&5
32303 echo "${ECHO_T}Component gr-audio-alsa passed configuration checks, but not building." >&6; }
32304         fi
32305     fi
32306
32307
32308
32309
32310     # Check whether --enable-gr-audio-jack was given.
32311 if test "${enable_gr_audio_jack+set}" = set; then
32312   enableval=$enable_gr_audio_jack;
32313 else
32314   enable_gr_audio_jack=$enable_all_components
32315 fi
32316
32317
32318
32319     ac_config_files="$ac_config_files gr-audio-jack/Makefile gr-audio-jack/src/Makefile gr-audio-jack/src/run_tests"
32320
32321
32322     passed=yes
32323
32324   succeeded=no
32325
32326   if test -z "$PKG_CONFIG"; then
32327     # Extract the first word of "pkg-config", so it can be a program name with args.
32328 set dummy pkg-config; ac_word=$2
32329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32331 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32332   echo $ECHO_N "(cached) $ECHO_C" >&6
32333 else
32334   case $PKG_CONFIG in
32335   [\\/]* | ?:[\\/]*)
32336   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32337   ;;
32338   *)
32339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32340 for as_dir in $PATH
32341 do
32342   IFS=$as_save_IFS
32343   test -z "$as_dir" && as_dir=.
32344   for ac_exec_ext in '' $ac_executable_extensions; do
32345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
32346     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32348     break 2
32349   fi
32350 done
32351 done
32352 IFS=$as_save_IFS
32353
32354   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
32355   ;;
32356 esac
32357 fi
32358 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32359 if test -n "$PKG_CONFIG"; then
32360   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32361 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32362 else
32363   { echo "$as_me:$LINENO: result: no" >&5
32364 echo "${ECHO_T}no" >&6; }
32365 fi
32366
32367
32368   fi
32369
32370   if test "$PKG_CONFIG" = "no" ; then
32371      echo "*** The pkg-config script could not be found. Make sure it is"
32372      echo "*** in your path, or set the PKG_CONFIG environment variable"
32373      echo "*** to the full path to pkg-config."
32374      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
32375   else
32376                     if test -z "$PKG_CONFIG_PATH"; then
32377         export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
32378      fi
32379
32380      PKG_CONFIG_MIN_VERSION=0.9.0
32381      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
32382         { echo "$as_me:$LINENO: checking for jack >= 0.8" >&5
32383 echo $ECHO_N "checking for jack >= 0.8... $ECHO_C" >&6; }
32384
32385         if $PKG_CONFIG --exists "jack >= 0.8" ; then
32386             { echo "$as_me:$LINENO: result: yes" >&5
32387 echo "${ECHO_T}yes" >&6; }
32388             succeeded=yes
32389
32390             { echo "$as_me:$LINENO: checking JACK_CFLAGS" >&5
32391 echo $ECHO_N "checking JACK_CFLAGS... $ECHO_C" >&6; }
32392             JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.8"`
32393             { echo "$as_me:$LINENO: result: $JACK_CFLAGS" >&5
32394 echo "${ECHO_T}$JACK_CFLAGS" >&6; }
32395
32396             { echo "$as_me:$LINENO: checking JACK_LIBS" >&5
32397 echo $ECHO_N "checking JACK_LIBS... $ECHO_C" >&6; }
32398             JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.8"`
32399             { echo "$as_me:$LINENO: result: $JACK_LIBS" >&5
32400 echo "${ECHO_T}$JACK_LIBS" >&6; }
32401
32402             { echo "$as_me:$LINENO: checking JACK_INCLUDEDIR" >&5
32403 echo $ECHO_N "checking JACK_INCLUDEDIR... $ECHO_C" >&6; }
32404             JACK_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "jack >= 0.8"`
32405             { echo "$as_me:$LINENO: result: $JACK_INCLUDEDIR" >&5
32406 echo "${ECHO_T}$JACK_INCLUDEDIR" >&6; }
32407         else
32408             JACK_CFLAGS=""
32409             JACK_LIBS=""
32410             ## If we have a custom action on failure, don't print errors, but
32411             ## do set a variable so people can do so.
32412             JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack >= 0.8"`
32413
32414         fi
32415
32416
32417
32418
32419      else
32420         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
32421         echo "*** See http://www.freedesktop.org/software/pkgconfig"
32422      fi
32423   fi
32424
32425   if test $succeeded = yes; then
32426      :
32427   else
32428      passed=no;{ echo "$as_me:$LINENO: result: gr-audio-jack requires package jack, not found." >&5
32429 echo "${ECHO_T}gr-audio-jack requires package jack, not found." >&6; }
32430   fi
32431
32432
32433
32434     if test x$passed = xno; then
32435         skipped_dirs="$skipped_dirs gr-audio-jack"
32436         if test x$enable_gr_audio_jack = xyes; then
32437             { { echo "$as_me:$LINENO: error: Component gr-audio-jack has errors, stopping." >&5
32438 echo "$as_me: error: Component gr-audio-jack has errors, stopping." >&2;}
32439    { (exit 1); exit 1; }; }
32440         else
32441             { echo "$as_me:$LINENO: result: Not building component gr-audio-jack." >&5
32442 echo "${ECHO_T}Not building component gr-audio-jack." >&6; }
32443         fi
32444     else
32445         if test x$enable_gr_audio_jack != xno; then
32446
32447
32448                 ac_config_commands="$ac_config_commands run_tests_jack"
32449
32450
32451             build_dirs="$build_dirs gr-audio-jack"
32452             { echo "$as_me:$LINENO: result: Component gr-audio-jack passed configuration checks, building." >&5
32453 echo "${ECHO_T}Component gr-audio-jack passed configuration checks, building." >&6; }
32454         else
32455             skipped_dirs="$skipped_dirs gr-audio-jack"
32456             { echo "$as_me:$LINENO: result: Component gr-audio-jack passed configuration checks, but not building." >&5
32457 echo "${ECHO_T}Component gr-audio-jack passed configuration checks, but not building." >&6; }
32458         fi
32459     fi
32460
32461
32462
32463
32464     # Check whether --enable-gr-audio-oss was given.
32465 if test "${enable_gr_audio_oss+set}" = set; then
32466   enableval=$enable_gr_audio_oss;
32467 else
32468   enable_gr_audio_oss=$enable_all_components
32469 fi
32470
32471
32472
32473     ac_config_files="$ac_config_files gr-audio-oss/Makefile gr-audio-oss/src/Makefile gr-audio-oss/src/run_tests"
32474
32475
32476     passed=yes
32477     case $target in
32478         *-*-netbsd*)
32479
32480 { echo "$as_me:$LINENO: checking for main in -lossaudio" >&5
32481 echo $ECHO_N "checking for main in -lossaudio... $ECHO_C" >&6; }
32482 if test "${ac_cv_lib_ossaudio_main+set}" = set; then
32483   echo $ECHO_N "(cached) $ECHO_C" >&6
32484 else
32485   ac_check_lib_save_LIBS=$LIBS
32486 LIBS="-lossaudio  $LIBS"
32487 cat >conftest.$ac_ext <<_ACEOF
32488 /* confdefs.h.  */
32489 _ACEOF
32490 cat confdefs.h >>conftest.$ac_ext
32491 cat >>conftest.$ac_ext <<_ACEOF
32492 /* end confdefs.h.  */
32493
32494
32495 int
32496 main ()
32497 {
32498 return main ();
32499   ;
32500   return 0;
32501 }
32502 _ACEOF
32503 rm -f conftest.$ac_objext conftest$ac_exeext
32504 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
32511   ac_status=$?
32512   grep -v '^ *+' conftest.er1 >conftest.err
32513   rm -f conftest.er1
32514   cat conftest.err >&5
32515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32516   (exit $ac_status); } &&
32517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32518   { (case "(($ac_try" in
32519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32520   *) ac_try_echo=$ac_try;;
32521 esac
32522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32523   (eval "$ac_try") 2>&5
32524   ac_status=$?
32525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526   (exit $ac_status); }; } &&
32527          { ac_try='test -s conftest$ac_exeext'
32528   { (case "(($ac_try" in
32529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32530   *) ac_try_echo=$ac_try;;
32531 esac
32532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32533   (eval "$ac_try") 2>&5
32534   ac_status=$?
32535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536   (exit $ac_status); }; }; then
32537   ac_cv_lib_ossaudio_main=yes
32538 else
32539   echo "$as_me: failed program was:" >&5
32540 sed 's/^/| /' conftest.$ac_ext >&5
32541
32542         ac_cv_lib_ossaudio_main=no
32543 fi
32544
32545 rm -f core conftest.err conftest.$ac_objext \
32546       conftest$ac_exeext conftest.$ac_ext
32547 LIBS=$ac_check_lib_save_LIBS
32548 fi
32549 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_main" >&5
32550 echo "${ECHO_T}$ac_cv_lib_ossaudio_main" >&6; }
32551 if test $ac_cv_lib_ossaudio_main = yes; then
32552   cat >>confdefs.h <<_ACEOF
32553 #define HAVE_LIBOSSAUDIO 1
32554 _ACEOF
32555
32556   LIBS="-lossaudio $LIBS"
32557
32558 else
32559   passed=no;{ echo "$as_me:$LINENO: result: gr-audio-oss requires library ossaudio, not found." >&5
32560 echo "${ECHO_T}gr-audio-oss requires library ossaudio, not found." >&6; }
32561 fi
32562 ac_cv_lib_ossaudio=ac_cv_lib_ossaudio_main
32563
32564             if test x$passed != xno; then
32565                 OSS_LIBS=-lossaudio
32566                 { echo "$as_me:$LINENO: result: Using OSS library $OSS_LIBS" >&5
32567 echo "${ECHO_T}Using OSS library $OSS_LIBS" >&6; }
32568             fi
32569             ;;
32570         *)
32571             if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
32572   { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
32573 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
32574 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
32575   echo $ECHO_N "(cached) $ECHO_C" >&6
32576 fi
32577 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
32578 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
32579 else
32580   # Is the header compilable?
32581 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
32582 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
32583 cat >conftest.$ac_ext <<_ACEOF
32584 /* confdefs.h.  */
32585 _ACEOF
32586 cat confdefs.h >>conftest.$ac_ext
32587 cat >>conftest.$ac_ext <<_ACEOF
32588 /* end confdefs.h.  */
32589 $ac_includes_default
32590 #include <sys/soundcard.h>
32591 _ACEOF
32592 rm -f conftest.$ac_objext
32593 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
32600   ac_status=$?
32601   grep -v '^ *+' conftest.er1 >conftest.err
32602   rm -f conftest.er1
32603   cat conftest.err >&5
32604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605   (exit $ac_status); } &&
32606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32607   { (case "(($ac_try" in
32608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609   *) ac_try_echo=$ac_try;;
32610 esac
32611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612   (eval "$ac_try") 2>&5
32613   ac_status=$?
32614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615   (exit $ac_status); }; } &&
32616          { ac_try='test -s conftest.$ac_objext'
32617   { (case "(($ac_try" in
32618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32619   *) ac_try_echo=$ac_try;;
32620 esac
32621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32622   (eval "$ac_try") 2>&5
32623   ac_status=$?
32624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625   (exit $ac_status); }; }; then
32626   ac_header_compiler=yes
32627 else
32628   echo "$as_me: failed program was:" >&5
32629 sed 's/^/| /' conftest.$ac_ext >&5
32630
32631         ac_header_compiler=no
32632 fi
32633
32634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32636 echo "${ECHO_T}$ac_header_compiler" >&6; }
32637
32638 # Is the header present?
32639 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
32640 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
32641 cat >conftest.$ac_ext <<_ACEOF
32642 /* confdefs.h.  */
32643 _ACEOF
32644 cat confdefs.h >>conftest.$ac_ext
32645 cat >>conftest.$ac_ext <<_ACEOF
32646 /* end confdefs.h.  */
32647 #include <sys/soundcard.h>
32648 _ACEOF
32649 if { (ac_try="$ac_cpp conftest.$ac_ext"
32650 case "(($ac_try" in
32651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32652   *) ac_try_echo=$ac_try;;
32653 esac
32654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32655   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32656   ac_status=$?
32657   grep -v '^ *+' conftest.er1 >conftest.err
32658   rm -f conftest.er1
32659   cat conftest.err >&5
32660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32661   (exit $ac_status); } >/dev/null; then
32662   if test -s conftest.err; then
32663     ac_cpp_err=$ac_c_preproc_warn_flag
32664     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32665   else
32666     ac_cpp_err=
32667   fi
32668 else
32669   ac_cpp_err=yes
32670 fi
32671 if test -z "$ac_cpp_err"; then
32672   ac_header_preproc=yes
32673 else
32674   echo "$as_me: failed program was:" >&5
32675 sed 's/^/| /' conftest.$ac_ext >&5
32676
32677   ac_header_preproc=no
32678 fi
32679
32680 rm -f conftest.err conftest.$ac_ext
32681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32682 echo "${ECHO_T}$ac_header_preproc" >&6; }
32683
32684 # So?  What about this header?
32685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32686   yes:no: )
32687     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
32688 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32689     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
32690 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
32691     ac_header_preproc=yes
32692     ;;
32693   no:yes:* )
32694     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
32695 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
32696     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h:     check for missing prerequisite headers?" >&5
32697 echo "$as_me: WARNING: sys/soundcard.h:     check for missing prerequisite headers?" >&2;}
32698     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
32699 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
32700     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h:     section \"Present But Cannot Be Compiled\"" >&5
32701 echo "$as_me: WARNING: sys/soundcard.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32702     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
32703 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
32704     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
32705 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
32706
32707     ;;
32708 esac
32709 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
32710 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
32711 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
32712   echo $ECHO_N "(cached) $ECHO_C" >&6
32713 else
32714   ac_cv_header_sys_soundcard_h=$ac_header_preproc
32715 fi
32716 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
32717 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
32718
32719 fi
32720 if test $ac_cv_header_sys_soundcard_h = yes; then
32721   :
32722 else
32723   passed=no;{ echo "$as_me:$LINENO: result: gr-audio-oss requires sys/soundcard.h, not found." >&5
32724 echo "${ECHO_T}gr-audio-oss requires sys/soundcard.h, not found." >&6; }
32725 fi
32726
32727
32728     esac
32729
32730
32731     if test x$passed = xno; then
32732         skipped_dirs="$skipped_dirs gr-audio-oss"
32733         if test x$enable_gr_audio_oss = xyes; then
32734             { { echo "$as_me:$LINENO: error: Component gr-audio-oss has errors, stopping." >&5
32735 echo "$as_me: error: Component gr-audio-oss has errors, stopping." >&2;}
32736    { (exit 1); exit 1; }; }
32737         else
32738             { echo "$as_me:$LINENO: result: Not building component gr-audio-oss." >&5
32739 echo "${ECHO_T}Not building component gr-audio-oss." >&6; }
32740         fi
32741     else
32742         if test x$enable_gr_audio_oss != xno; then
32743
32744
32745                 ac_config_commands="$ac_config_commands run_tests_oss"
32746
32747
32748             build_dirs="$build_dirs gr-audio-oss"
32749             { echo "$as_me:$LINENO: result: Component gr-audio-oss passed configuration checks, building." >&5
32750 echo "${ECHO_T}Component gr-audio-oss passed configuration checks, building." >&6; }
32751         else
32752             skipped_dirs="$skipped_dirs gr-audio-oss"
32753             { echo "$as_me:$LINENO: result: Component gr-audio-oss passed configuration checks, but not building." >&5
32754 echo "${ECHO_T}Component gr-audio-oss passed configuration checks, but not building." >&6; }
32755         fi
32756     fi
32757
32758
32759
32760
32761     # Check whether --enable-gr-audio-osx was given.
32762 if test "${enable_gr_audio_osx+set}" = set; then
32763   enableval=$enable_gr_audio_osx;
32764 else
32765   enable_gr_audio_osx=$enable_all_components
32766 fi
32767
32768
32769
32770     ac_config_files="$ac_config_files gr-audio-osx/Makefile gr-audio-osx/src/Makefile gr-audio-osx/src/run_tests"
32771
32772
32773     passed=yes
32774
32775     audiounitok=yes
32776     case "$host_os" in
32777         darwin*);;
32778         *)
32779            audiounitok=no
32780            { echo "$as_me:$LINENO: result: gr-audio-osx requires darwin or MacOS X." >&5
32781 echo "${ECHO_T}gr-audio-osx requires darwin or MacOS X." >&6; }
32782     esac
32783
32784
32785 for ac_header in AudioUnit/AudioUnit.h
32786 do
32787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32789   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32792   echo $ECHO_N "(cached) $ECHO_C" >&6
32793 fi
32794 ac_res=`eval echo '${'$as_ac_Header'}'`
32795                { echo "$as_me:$LINENO: result: $ac_res" >&5
32796 echo "${ECHO_T}$ac_res" >&6; }
32797 else
32798   # Is the header compilable?
32799 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32801 cat >conftest.$ac_ext <<_ACEOF
32802 /* confdefs.h.  */
32803 _ACEOF
32804 cat confdefs.h >>conftest.$ac_ext
32805 cat >>conftest.$ac_ext <<_ACEOF
32806 /* end confdefs.h.  */
32807 $ac_includes_default
32808 #include <$ac_header>
32809 _ACEOF
32810 rm -f conftest.$ac_objext
32811 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
32818   ac_status=$?
32819   grep -v '^ *+' conftest.er1 >conftest.err
32820   rm -f conftest.er1
32821   cat conftest.err >&5
32822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823   (exit $ac_status); } &&
32824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32825   { (case "(($ac_try" in
32826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32827   *) ac_try_echo=$ac_try;;
32828 esac
32829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32830   (eval "$ac_try") 2>&5
32831   ac_status=$?
32832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833   (exit $ac_status); }; } &&
32834          { ac_try='test -s conftest.$ac_objext'
32835   { (case "(($ac_try" in
32836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32837   *) ac_try_echo=$ac_try;;
32838 esac
32839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32840   (eval "$ac_try") 2>&5
32841   ac_status=$?
32842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32843   (exit $ac_status); }; }; then
32844   ac_header_compiler=yes
32845 else
32846   echo "$as_me: failed program was:" >&5
32847 sed 's/^/| /' conftest.$ac_ext >&5
32848
32849         ac_header_compiler=no
32850 fi
32851
32852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32854 echo "${ECHO_T}$ac_header_compiler" >&6; }
32855
32856 # Is the header present?
32857 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32859 cat >conftest.$ac_ext <<_ACEOF
32860 /* confdefs.h.  */
32861 _ACEOF
32862 cat confdefs.h >>conftest.$ac_ext
32863 cat >>conftest.$ac_ext <<_ACEOF
32864 /* end confdefs.h.  */
32865 #include <$ac_header>
32866 _ACEOF
32867 if { (ac_try="$ac_cpp conftest.$ac_ext"
32868 case "(($ac_try" in
32869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32870   *) ac_try_echo=$ac_try;;
32871 esac
32872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32873   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32874   ac_status=$?
32875   grep -v '^ *+' conftest.er1 >conftest.err
32876   rm -f conftest.er1
32877   cat conftest.err >&5
32878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879   (exit $ac_status); } >/dev/null; then
32880   if test -s conftest.err; then
32881     ac_cpp_err=$ac_c_preproc_warn_flag
32882     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32883   else
32884     ac_cpp_err=
32885   fi
32886 else
32887   ac_cpp_err=yes
32888 fi
32889 if test -z "$ac_cpp_err"; then
32890   ac_header_preproc=yes
32891 else
32892   echo "$as_me: failed program was:" >&5
32893 sed 's/^/| /' conftest.$ac_ext >&5
32894
32895   ac_header_preproc=no
32896 fi
32897
32898 rm -f conftest.err conftest.$ac_ext
32899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32900 echo "${ECHO_T}$ac_header_preproc" >&6; }
32901
32902 # So?  What about this header?
32903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32904   yes:no: )
32905     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32909     ac_header_preproc=yes
32910     ;;
32911   no:yes:* )
32912     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32914     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32915 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32916     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32918     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32919 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32922     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32924
32925     ;;
32926 esac
32927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32930   echo $ECHO_N "(cached) $ECHO_C" >&6
32931 else
32932   eval "$as_ac_Header=\$ac_header_preproc"
32933 fi
32934 ac_res=`eval echo '${'$as_ac_Header'}'`
32935                { echo "$as_me:$LINENO: result: $ac_res" >&5
32936 echo "${ECHO_T}$ac_res" >&6; }
32937
32938 fi
32939 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32940   cat >>confdefs.h <<_ACEOF
32941 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32942 _ACEOF
32943
32944 else
32945   audiounitok=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&5
32946 echo "${ECHO_T}gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&6; }
32947 fi
32948
32949 done
32950
32951
32952
32953 for ac_header in AudioToolbox/AudioToolbox.h
32954 do
32955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32957   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32960   echo $ECHO_N "(cached) $ECHO_C" >&6
32961 fi
32962 ac_res=`eval echo '${'$as_ac_Header'}'`
32963                { echo "$as_me:$LINENO: result: $ac_res" >&5
32964 echo "${ECHO_T}$ac_res" >&6; }
32965 else
32966   # Is the header compilable?
32967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32969 cat >conftest.$ac_ext <<_ACEOF
32970 /* confdefs.h.  */
32971 _ACEOF
32972 cat confdefs.h >>conftest.$ac_ext
32973 cat >>conftest.$ac_ext <<_ACEOF
32974 /* end confdefs.h.  */
32975 $ac_includes_default
32976 #include <$ac_header>
32977 _ACEOF
32978 rm -f conftest.$ac_objext
32979 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
32986   ac_status=$?
32987   grep -v '^ *+' conftest.er1 >conftest.err
32988   rm -f conftest.er1
32989   cat conftest.err >&5
32990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991   (exit $ac_status); } &&
32992          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32993   { (case "(($ac_try" in
32994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32995   *) ac_try_echo=$ac_try;;
32996 esac
32997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32998   (eval "$ac_try") 2>&5
32999   ac_status=$?
33000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001   (exit $ac_status); }; } &&
33002          { ac_try='test -s conftest.$ac_objext'
33003   { (case "(($ac_try" in
33004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005   *) ac_try_echo=$ac_try;;
33006 esac
33007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008   (eval "$ac_try") 2>&5
33009   ac_status=$?
33010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011   (exit $ac_status); }; }; then
33012   ac_header_compiler=yes
33013 else
33014   echo "$as_me: failed program was:" >&5
33015 sed 's/^/| /' conftest.$ac_ext >&5
33016
33017         ac_header_compiler=no
33018 fi
33019
33020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33021 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33022 echo "${ECHO_T}$ac_header_compiler" >&6; }
33023
33024 # Is the header present?
33025 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33027 cat >conftest.$ac_ext <<_ACEOF
33028 /* confdefs.h.  */
33029 _ACEOF
33030 cat confdefs.h >>conftest.$ac_ext
33031 cat >>conftest.$ac_ext <<_ACEOF
33032 /* end confdefs.h.  */
33033 #include <$ac_header>
33034 _ACEOF
33035 if { (ac_try="$ac_cpp conftest.$ac_ext"
33036 case "(($ac_try" in
33037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038   *) ac_try_echo=$ac_try;;
33039 esac
33040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33042   ac_status=$?
33043   grep -v '^ *+' conftest.er1 >conftest.err
33044   rm -f conftest.er1
33045   cat conftest.err >&5
33046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047   (exit $ac_status); } >/dev/null; then
33048   if test -s conftest.err; then
33049     ac_cpp_err=$ac_c_preproc_warn_flag
33050     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33051   else
33052     ac_cpp_err=
33053   fi
33054 else
33055   ac_cpp_err=yes
33056 fi
33057 if test -z "$ac_cpp_err"; then
33058   ac_header_preproc=yes
33059 else
33060   echo "$as_me: failed program was:" >&5
33061 sed 's/^/| /' conftest.$ac_ext >&5
33062
33063   ac_header_preproc=no
33064 fi
33065
33066 rm -f conftest.err conftest.$ac_ext
33067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33068 echo "${ECHO_T}$ac_header_preproc" >&6; }
33069
33070 # So?  What about this header?
33071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33072   yes:no: )
33073     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33077     ac_header_preproc=yes
33078     ;;
33079   no:yes:* )
33080     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33082     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33083 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33084     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33086     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33087 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33088     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33090     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33092
33093     ;;
33094 esac
33095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33098   echo $ECHO_N "(cached) $ECHO_C" >&6
33099 else
33100   eval "$as_ac_Header=\$ac_header_preproc"
33101 fi
33102 ac_res=`eval echo '${'$as_ac_Header'}'`
33103                { echo "$as_me:$LINENO: result: $ac_res" >&5
33104 echo "${ECHO_T}$ac_res" >&6; }
33105
33106 fi
33107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33108   cat >>confdefs.h <<_ACEOF
33109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33110 _ACEOF
33111
33112 else
33113   audiounitok=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&5
33114 echo "${ECHO_T}gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&6; }
33115 fi
33116
33117 done
33118
33119
33120     if test $audiounitok = yes; then
33121         :
33122     else
33123         passed=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioUnit, not found." >&5
33124 echo "${ECHO_T}gr-audio-osx requires AudioUnit, not found." >&6; }
33125     fi
33126
33127
33128
33129     if test x$passed = xno; then
33130         skipped_dirs="$skipped_dirs gr-audio-osx"
33131         if test x$enable_gr_audio_osx = xyes; then
33132             { { echo "$as_me:$LINENO: error: Component gr-audio-osx has errors, stopping." >&5
33133 echo "$as_me: error: Component gr-audio-osx has errors, stopping." >&2;}
33134    { (exit 1); exit 1; }; }
33135         else
33136             { echo "$as_me:$LINENO: result: Not building component gr-audio-osx." >&5
33137 echo "${ECHO_T}Not building component gr-audio-osx." >&6; }
33138         fi
33139     else
33140         if test x$enable_gr_audio_osx != xno; then
33141
33142                 ac_config_commands="$ac_config_commands run_tests_osx"
33143
33144
33145             build_dirs="$build_dirs gr-audio-osx"
33146             { echo "$as_me:$LINENO: result: Component gr-audio-osx passed configuration checks, building." >&5
33147 echo "${ECHO_T}Component gr-audio-osx passed configuration checks, building." >&6; }
33148         else
33149             skipped_dirs="$skipped_dirs gr-audio-osx"
33150             { echo "$as_me:$LINENO: result: Component gr-audio-osx passed configuration checks, but not building." >&5
33151 echo "${ECHO_T}Component gr-audio-osx passed configuration checks, but not building." >&6; }
33152         fi
33153     fi
33154
33155
33156
33157
33158     # Check whether --enable-gr-audio-portaudio was given.
33159 if test "${enable_gr_audio_portaudio+set}" = set; then
33160   enableval=$enable_gr_audio_portaudio;
33161 else
33162   enable_gr_audio_portaudio=$enable_all_components
33163 fi
33164
33165
33166
33167     ac_config_files="$ac_config_files gr-audio-portaudio/Makefile gr-audio-portaudio/src/Makefile gr-audio-portaudio/src/run_tests"
33168
33169
33170     passed=yes
33171
33172   succeeded=no
33173
33174   if test -z "$PKG_CONFIG"; then
33175     # Extract the first word of "pkg-config", so it can be a program name with args.
33176 set dummy pkg-config; ac_word=$2
33177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33179 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33180   echo $ECHO_N "(cached) $ECHO_C" >&6
33181 else
33182   case $PKG_CONFIG in
33183   [\\/]* | ?:[\\/]*)
33184   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33185   ;;
33186   *)
33187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33188 for as_dir in $PATH
33189 do
33190   IFS=$as_save_IFS
33191   test -z "$as_dir" && as_dir=.
33192   for ac_exec_ext in '' $ac_executable_extensions; do
33193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
33194     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33196     break 2
33197   fi
33198 done
33199 done
33200 IFS=$as_save_IFS
33201
33202   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
33203   ;;
33204 esac
33205 fi
33206 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33207 if test -n "$PKG_CONFIG"; then
33208   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33209 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33210 else
33211   { echo "$as_me:$LINENO: result: no" >&5
33212 echo "${ECHO_T}no" >&6; }
33213 fi
33214
33215
33216   fi
33217
33218   if test "$PKG_CONFIG" = "no" ; then
33219      echo "*** The pkg-config script could not be found. Make sure it is"
33220      echo "*** in your path, or set the PKG_CONFIG environment variable"
33221      echo "*** to the full path to pkg-config."
33222      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
33223   else
33224                     if test -z "$PKG_CONFIG_PATH"; then
33225         export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
33226      fi
33227
33228      PKG_CONFIG_MIN_VERSION=0.9.0
33229      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
33230         { echo "$as_me:$LINENO: checking for portaudio-2.0 >= 19" >&5
33231 echo $ECHO_N "checking for portaudio-2.0 >= 19... $ECHO_C" >&6; }
33232
33233         if $PKG_CONFIG --exists "portaudio-2.0 >= 19" ; then
33234             { echo "$as_me:$LINENO: result: yes" >&5
33235 echo "${ECHO_T}yes" >&6; }
33236             succeeded=yes
33237
33238             { echo "$as_me:$LINENO: checking PORTAUDIO_CFLAGS" >&5
33239 echo $ECHO_N "checking PORTAUDIO_CFLAGS... $ECHO_C" >&6; }
33240             PORTAUDIO_CFLAGS=`$PKG_CONFIG --cflags "portaudio-2.0 >= 19"`
33241             { echo "$as_me:$LINENO: result: $PORTAUDIO_CFLAGS" >&5
33242 echo "${ECHO_T}$PORTAUDIO_CFLAGS" >&6; }
33243
33244             { echo "$as_me:$LINENO: checking PORTAUDIO_LIBS" >&5
33245 echo $ECHO_N "checking PORTAUDIO_LIBS... $ECHO_C" >&6; }
33246             PORTAUDIO_LIBS=`$PKG_CONFIG --libs "portaudio-2.0 >= 19"`
33247             { echo "$as_me:$LINENO: result: $PORTAUDIO_LIBS" >&5
33248 echo "${ECHO_T}$PORTAUDIO_LIBS" >&6; }
33249
33250             { echo "$as_me:$LINENO: checking PORTAUDIO_INCLUDEDIR" >&5
33251 echo $ECHO_N "checking PORTAUDIO_INCLUDEDIR... $ECHO_C" >&6; }
33252             PORTAUDIO_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "portaudio-2.0 >= 19"`
33253             { echo "$as_me:$LINENO: result: $PORTAUDIO_INCLUDEDIR" >&5
33254 echo "${ECHO_T}$PORTAUDIO_INCLUDEDIR" >&6; }
33255         else
33256             PORTAUDIO_CFLAGS=""
33257             PORTAUDIO_LIBS=""
33258             ## If we have a custom action on failure, don't print errors, but
33259             ## do set a variable so people can do so.
33260             PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "portaudio-2.0 >= 19"`
33261
33262         fi
33263
33264
33265
33266
33267      else
33268         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
33269         echo "*** See http://www.freedesktop.org/software/pkgconfig"
33270      fi
33271   fi
33272
33273   if test $succeeded = yes; then
33274      :
33275   else
33276      passed=no;{ echo "$as_me:$LINENO: result: gr-audio-portaudio requires package portaudio, not found." >&5
33277 echo "${ECHO_T}gr-audio-portaudio requires package portaudio, not found." >&6; }
33278   fi
33279
33280
33281
33282     if test x$passed = xno; then
33283         skipped_dirs="$skipped_dirs gr-audio-portaudio"
33284         if test x$enable_gr_audio_portaudio = xyes; then
33285             { { echo "$as_me:$LINENO: error: Component gr-audio-portaudio has errors, stopping." >&5
33286 echo "$as_me: error: Component gr-audio-portaudio has errors, stopping." >&2;}
33287    { (exit 1); exit 1; }; }
33288         else
33289             { echo "$as_me:$LINENO: result: Not building component gr-audio-portaudio." >&5
33290 echo "${ECHO_T}Not building component gr-audio-portaudio." >&6; }
33291         fi
33292     else
33293         if test x$enable_gr_audio_portaudio != xno; then
33294
33295
33296                 ac_config_commands="$ac_config_commands run_tests_portaudio"
33297
33298
33299             build_dirs="$build_dirs gr-audio-portaudio"
33300             { echo "$as_me:$LINENO: result: Component gr-audio-portaudio passed configuration checks, building." >&5
33301 echo "${ECHO_T}Component gr-audio-portaudio passed configuration checks, building." >&6; }
33302         else
33303             skipped_dirs="$skipped_dirs gr-audio-portaudio"
33304             { echo "$as_me:$LINENO: result: Component gr-audio-portaudio passed configuration checks, but not building." >&5
33305 echo "${ECHO_T}Component gr-audio-portaudio passed configuration checks, but not building." >&6; }
33306         fi
33307     fi
33308
33309
33310
33311
33312     # Check whether --enable-gr-audio-windows was given.
33313 if test "${enable_gr_audio_windows+set}" = set; then
33314   enableval=$enable_gr_audio_windows;
33315 else
33316   enable_gr_audio_windows=$enable_all_components
33317 fi
33318
33319
33320
33321     ac_config_files="$ac_config_files gr-audio-windows/Makefile gr-audio-windows/src/Makefile gr-audio-windows/src/run_tests"
33322
33323
33324     passed=yes
33325
33326 { echo "$as_me:$LINENO: checking for main in -lwinmm" >&5
33327 echo $ECHO_N "checking for main in -lwinmm... $ECHO_C" >&6; }
33328 if test "${ac_cv_lib_winmm_main+set}" = set; then
33329   echo $ECHO_N "(cached) $ECHO_C" >&6
33330 else
33331   ac_check_lib_save_LIBS=$LIBS
33332 LIBS="-lwinmm  $LIBS"
33333 cat >conftest.$ac_ext <<_ACEOF
33334 /* confdefs.h.  */
33335 _ACEOF
33336 cat confdefs.h >>conftest.$ac_ext
33337 cat >>conftest.$ac_ext <<_ACEOF
33338 /* end confdefs.h.  */
33339
33340
33341 int
33342 main ()
33343 {
33344 return main ();
33345   ;
33346   return 0;
33347 }
33348 _ACEOF
33349 rm -f conftest.$ac_objext conftest$ac_exeext
33350 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
33357   ac_status=$?
33358   grep -v '^ *+' conftest.er1 >conftest.err
33359   rm -f conftest.er1
33360   cat conftest.err >&5
33361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362   (exit $ac_status); } &&
33363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33364   { (case "(($ac_try" in
33365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33366   *) ac_try_echo=$ac_try;;
33367 esac
33368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33369   (eval "$ac_try") 2>&5
33370   ac_status=$?
33371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372   (exit $ac_status); }; } &&
33373          { ac_try='test -s conftest$ac_exeext'
33374   { (case "(($ac_try" in
33375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33376   *) ac_try_echo=$ac_try;;
33377 esac
33378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33379   (eval "$ac_try") 2>&5
33380   ac_status=$?
33381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382   (exit $ac_status); }; }; then
33383   ac_cv_lib_winmm_main=yes
33384 else
33385   echo "$as_me: failed program was:" >&5
33386 sed 's/^/| /' conftest.$ac_ext >&5
33387
33388         ac_cv_lib_winmm_main=no
33389 fi
33390
33391 rm -f core conftest.err conftest.$ac_objext \
33392       conftest$ac_exeext conftest.$ac_ext
33393 LIBS=$ac_check_lib_save_LIBS
33394 fi
33395 { echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_main" >&5
33396 echo "${ECHO_T}$ac_cv_lib_winmm_main" >&6; }
33397 if test $ac_cv_lib_winmm_main = yes; then
33398   cat >>confdefs.h <<_ACEOF
33399 #define HAVE_LIBWINMM 1
33400 _ACEOF
33401
33402   LIBS="-lwinmm $LIBS"
33403
33404 else
33405   passed=no;{ echo "$as_me:$LINENO: result: gr-audio-windows requires library winmm, not found." >&5
33406 echo "${ECHO_T}gr-audio-windows requires library winmm, not found." >&6; }
33407 fi
33408 ac_cv_lib_winmm=ac_cv_lib_winmm_main
33409
33410
33411
33412     if test x$passed = xno; then
33413         skipped_dirs="$skipped_dirs gr-audio-windows"
33414         if test x$enable_gr_audio_windows = xyes; then
33415             { { echo "$as_me:$LINENO: error: Component gr-audio-windows has errors, stopping." >&5
33416 echo "$as_me: error: Component gr-audio-windows has errors, stopping." >&2;}
33417    { (exit 1); exit 1; }; }
33418         else
33419             { echo "$as_me:$LINENO: result: Not building component gr-audio-windows." >&5
33420 echo "${ECHO_T}Not building component gr-audio-windows." >&6; }
33421         fi
33422     else
33423         if test x$enable_gr_audio_windows != xno; then
33424
33425         WINAUDIO_LIBS=-lwinmm
33426
33427                 ac_config_commands="$ac_config_commands run_tests_audio_windows"
33428
33429
33430             build_dirs="$build_dirs gr-audio-windows"
33431             { echo "$as_me:$LINENO: result: Component gr-audio-windows passed configuration checks, building." >&5
33432 echo "${ECHO_T}Component gr-audio-windows passed configuration checks, building." >&6; }
33433         else
33434             skipped_dirs="$skipped_dirs gr-audio-windows"
33435             { echo "$as_me:$LINENO: result: Component gr-audio-windows passed configuration checks, but not building." >&5
33436 echo "${ECHO_T}Component gr-audio-windows passed configuration checks, but not building." >&6; }
33437         fi
33438     fi
33439
33440
33441
33442
33443     # Check whether --enable-gr-gsm-fr-vocoder was given.
33444 if test "${enable_gr_gsm_fr_vocoder+set}" = set; then
33445   enableval=$enable_gr_gsm_fr_vocoder;
33446 else
33447   enable_gr_gsm_fr_vocoder=$enable_all_components
33448 fi
33449
33450
33451
33452     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"
33453
33454
33455     passed=yes
33456
33457     if test x$passed = xno; then
33458         skipped_dirs="$skipped_dirs gr-gsm-fr-vocoder"
33459         if test x$enable_gr_gsm_fr_vocoder = xyes; then
33460             { { echo "$as_me:$LINENO: error: Component gr-gsm-fr-vocoder has errors, stopping." >&5
33461 echo "$as_me: error: Component gr-gsm-fr-vocoder has errors, stopping." >&2;}
33462    { (exit 1); exit 1; }; }
33463         else
33464             { echo "$as_me:$LINENO: result: Not building component gr-gsm-fr-vocoder." >&5
33465 echo "${ECHO_T}Not building component gr-gsm-fr-vocoder." >&6; }
33466         fi
33467     else
33468         if test x$enable_gr_gsm_fr_vocoder != xno; then
33469
33470                 ac_config_commands="$ac_config_commands run_tests_gsm"
33471
33472
33473             build_dirs="$build_dirs gr-gsm-fr-vocoder"
33474             { echo "$as_me:$LINENO: result: Component gr-gsm-fr-vocoder passed configuration checks, building." >&5
33475 echo "${ECHO_T}Component gr-gsm-fr-vocoder passed configuration checks, building." >&6; }
33476         else
33477             skipped_dirs="$skipped_dirs gr-gsm-fr-vocoder"
33478             { echo "$as_me:$LINENO: result: Component gr-gsm-fr-vocoder passed configuration checks, but not building." >&5
33479 echo "${ECHO_T}Component gr-gsm-fr-vocoder passed configuration checks, but not building." >&6; }
33480         fi
33481     fi
33482
33483
33484
33485
33486     # Check whether --enable-gr-radio-astronomy was given.
33487 if test "${enable_gr_radio_astronomy+set}" = set; then
33488   enableval=$enable_gr_radio_astronomy;
33489 else
33490   enable_gr_radio_astronomy=$enable_all_components
33491 fi
33492
33493
33494
33495     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"
33496
33497
33498     passed=yes
33499
33500     if test x$passed = xno; then
33501         skipped_dirs="$skipped_dirs gr-radio-astronomy"
33502         if test x$enable_gr_radio_astronomy = xyes; then
33503             { { echo "$as_me:$LINENO: error: Component gr-radio-astronomy has errors, stopping." >&5
33504 echo "$as_me: error: Component gr-radio-astronomy has errors, stopping." >&2;}
33505    { (exit 1); exit 1; }; }
33506         else
33507             { echo "$as_me:$LINENO: result: Not building component gr-radio-astronomy." >&5
33508 echo "${ECHO_T}Not building component gr-radio-astronomy." >&6; }
33509         fi
33510     else
33511         if test x$enable_gr_radio_astronomy != xno; then
33512
33513                 ac_config_commands="$ac_config_commands run_tests_astronomy"
33514
33515
33516             build_dirs="$build_dirs gr-radio-astronomy"
33517             { echo "$as_me:$LINENO: result: Component gr-radio-astronomy passed configuration checks, building." >&5
33518 echo "${ECHO_T}Component gr-radio-astronomy passed configuration checks, building." >&6; }
33519         else
33520             skipped_dirs="$skipped_dirs gr-radio-astronomy"
33521             { echo "$as_me:$LINENO: result: Component gr-radio-astronomy passed configuration checks, but not building." >&5
33522 echo "${ECHO_T}Component gr-radio-astronomy passed configuration checks, but not building." >&6; }
33523         fi
33524     fi
33525
33526
33527
33528
33529     # Check whether --enable-gr-trellis was given.
33530 if test "${enable_gr_trellis+set}" = set; then
33531   enableval=$enable_gr_trellis;
33532 else
33533   enable_gr_trellis=$enable_all_components
33534 fi
33535
33536
33537
33538     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"
33539
33540
33541     passed=yes
33542
33543     if test x$passed = xno; then
33544         skipped_dirs="$skipped_dirs gr-trellis"
33545         if test x$enable_gr_trellis = xyes; then
33546             { { echo "$as_me:$LINENO: error: Component gr-trellis has errors, stopping." >&5
33547 echo "$as_me: error: Component gr-trellis has errors, stopping." >&2;}
33548    { (exit 1); exit 1; }; }
33549         else
33550             { echo "$as_me:$LINENO: result: Not building component gr-trellis." >&5
33551 echo "${ECHO_T}Not building component gr-trellis." >&6; }
33552         fi
33553     else
33554         if test x$enable_gr_trellis != xno; then
33555
33556                 ac_config_commands="$ac_config_commands run_tests_gr_trellis"
33557
33558
33559             build_dirs="$build_dirs gr-trellis"
33560             { echo "$as_me:$LINENO: result: Component gr-trellis passed configuration checks, building." >&5
33561 echo "${ECHO_T}Component gr-trellis passed configuration checks, building." >&6; }
33562         else
33563             skipped_dirs="$skipped_dirs gr-trellis"
33564             { echo "$as_me:$LINENO: result: Component gr-trellis passed configuration checks, but not building." >&5
33565 echo "${ECHO_T}Component gr-trellis passed configuration checks, but not building." >&6; }
33566         fi
33567     fi
33568
33569
33570
33571
33572     # Check whether --enable-gr-video-sdl was given.
33573 if test "${enable_gr_video_sdl+set}" = set; then
33574   enableval=$enable_gr_video_sdl;
33575 else
33576   enable_gr_video_sdl=$enable_all_components
33577 fi
33578
33579
33580
33581     ac_config_files="$ac_config_files gr-video-sdl/Makefile gr-video-sdl/src/Makefile gr-video-sdl/src/run_tests"
33582
33583
33584     passed=yes
33585     SDL_VERSION=1.2.0
33586
33587 # Check whether --with-sdl-prefix was given.
33588 if test "${with_sdl_prefix+set}" = set; then
33589   withval=$with_sdl_prefix; sdl_prefix="$withval"
33590 else
33591   sdl_prefix=""
33592 fi
33593
33594
33595 # Check whether --with-sdl-exec-prefix was given.
33596 if test "${with_sdl_exec_prefix+set}" = set; then
33597   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
33598 else
33599   sdl_exec_prefix=""
33600 fi
33601
33602 # Check whether --enable-sdltest was given.
33603 if test "${enable_sdltest+set}" = set; then
33604   enableval=$enable_sdltest;
33605 else
33606   enable_sdltest=yes
33607 fi
33608
33609
33610   if test x$sdl_exec_prefix != x ; then
33611      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
33612      if test x${SDL_CONFIG+set} != xset ; then
33613         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
33614      fi
33615   fi
33616   if test x$sdl_prefix != x ; then
33617      sdl_args="$sdl_args --prefix=$sdl_prefix"
33618      if test x${SDL_CONFIG+set} != xset ; then
33619         SDL_CONFIG=$sdl_prefix/bin/sdl-config
33620      fi
33621   fi
33622
33623
33624   PATH="$prefix/bin:$prefix/usr/bin:$PATH"
33625   # Extract the first word of "sdl-config", so it can be a program name with args.
33626 set dummy sdl-config; ac_word=$2
33627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33629 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
33630   echo $ECHO_N "(cached) $ECHO_C" >&6
33631 else
33632   case $SDL_CONFIG in
33633   [\\/]* | ?:[\\/]*)
33634   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
33635   ;;
33636   *)
33637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33638 for as_dir in $PATH
33639 do
33640   IFS=$as_save_IFS
33641   test -z "$as_dir" && as_dir=.
33642   for ac_exec_ext in '' $ac_executable_extensions; do
33643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
33644     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33646     break 2
33647   fi
33648 done
33649 done
33650 IFS=$as_save_IFS
33651
33652   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
33653   ;;
33654 esac
33655 fi
33656 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
33657 if test -n "$SDL_CONFIG"; then
33658   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
33659 echo "${ECHO_T}$SDL_CONFIG" >&6; }
33660 else
33661   { echo "$as_me:$LINENO: result: no" >&5
33662 echo "${ECHO_T}no" >&6; }
33663 fi
33664
33665
33666   min_sdl_version=$SDL_VERSION
33667   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
33668 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
33669   no_sdl=""
33670   if test "$SDL_CONFIG" = "no" ; then
33671     no_sdl=yes
33672   else
33673     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
33674     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
33675
33676     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
33677            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
33678     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
33679            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
33680     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
33681            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
33682     if test "x$enable_sdltest" = "xyes" ; then
33683       ac_save_CFLAGS="$CFLAGS"
33684       ac_save_LIBS="$LIBS"
33685       CFLAGS="$CFLAGS $SDL_CFLAGS"
33686       LIBS="$LIBS $SDL_LIBS"
33687       rm -f conf.sdltest
33688       if test "$cross_compiling" = yes; then
33689   echo $ac_n "cross compiling; assumed OK... $ac_c"
33690 else
33691   cat >conftest.$ac_ext <<_ACEOF
33692 /* confdefs.h.  */
33693 _ACEOF
33694 cat confdefs.h >>conftest.$ac_ext
33695 cat >>conftest.$ac_ext <<_ACEOF
33696 /* end confdefs.h.  */
33697
33698 #include <stdio.h>
33699 #include <stdlib.h>
33700 #include <string.h>
33701 #include "SDL.h"
33702
33703 char*
33704 my_strdup (char *str)
33705 {
33706   char *new_str;
33707
33708   if (str)
33709     {
33710       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
33711       strcpy (new_str, str);
33712     }
33713   else
33714     new_str = NULL;
33715
33716   return new_str;
33717 }
33718
33719 int main (int argc, char *argv[])
33720 {
33721   int major, minor, micro;
33722   char *tmp_version;
33723
33724   /* This hangs on some systems (?)
33725   system ("touch conf.sdltest");
33726   */
33727   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
33728
33729   /* HP/UX 9 (%@#!) writes to sscanf strings */
33730   tmp_version = my_strdup("$min_sdl_version");
33731   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
33732      printf("%s, bad version string\n", "$min_sdl_version");
33733      exit(1);
33734    }
33735
33736    if (($sdl_major_version > major) ||
33737       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
33738       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
33739     {
33740       return 0;
33741     }
33742   else
33743     {
33744       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
33745       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
33746       printf("*** best to upgrade to the required version.\n");
33747       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
33748       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
33749       printf("*** config.cache before re-running configure\n");
33750       return 1;
33751     }
33752 }
33753
33754
33755 _ACEOF
33756 rm -f conftest$ac_exeext
33757 if { (ac_try="$ac_link"
33758 case "(($ac_try" in
33759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33760   *) ac_try_echo=$ac_try;;
33761 esac
33762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33763   (eval "$ac_link") 2>&5
33764   ac_status=$?
33765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33766   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33767   { (case "(($ac_try" in
33768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33769   *) ac_try_echo=$ac_try;;
33770 esac
33771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33772   (eval "$ac_try") 2>&5
33773   ac_status=$?
33774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33775   (exit $ac_status); }; }; then
33776   :
33777 else
33778   echo "$as_me: program exited with status $ac_status" >&5
33779 echo "$as_me: failed program was:" >&5
33780 sed 's/^/| /' conftest.$ac_ext >&5
33781
33782 ( exit $ac_status )
33783 no_sdl=yes
33784 fi
33785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33786 fi
33787
33788
33789        CFLAGS="$ac_save_CFLAGS"
33790        LIBS="$ac_save_LIBS"
33791      fi
33792   fi
33793   if test "x$no_sdl" = x ; then
33794      { echo "$as_me:$LINENO: result: yes" >&5
33795 echo "${ECHO_T}yes" >&6; }
33796      :
33797   else
33798      { echo "$as_me:$LINENO: result: no" >&5
33799 echo "${ECHO_T}no" >&6; }
33800      if test "$SDL_CONFIG" = "no" ; then
33801        echo "*** The sdl-config script installed by SDL could not be found"
33802        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
33803        echo "*** your path, or set the SDL_CONFIG environment variable to the"
33804        echo "*** full path to sdl-config."
33805      else
33806        if test -f conf.sdltest ; then
33807         :
33808        else
33809           echo "*** Could not run SDL test program, checking why..."
33810           CFLAGS="$CFLAGS $SDL_CFLAGS"
33811           LIBS="$LIBS $SDL_LIBS"
33812           cat >conftest.$ac_ext <<_ACEOF
33813 /* confdefs.h.  */
33814 _ACEOF
33815 cat confdefs.h >>conftest.$ac_ext
33816 cat >>conftest.$ac_ext <<_ACEOF
33817 /* end confdefs.h.  */
33818
33819 #include <stdio.h>
33820 #include "SDL.h"
33821
33822 int main(int argc, char *argv[])
33823 { return 0; }
33824 #undef  main
33825 #define main K_and_R_C_main
33826
33827 int
33828 main ()
33829 {
33830  return 0;
33831   ;
33832   return 0;
33833 }
33834 _ACEOF
33835 rm -f conftest.$ac_objext conftest$ac_exeext
33836 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
33843   ac_status=$?
33844   grep -v '^ *+' conftest.er1 >conftest.err
33845   rm -f conftest.er1
33846   cat conftest.err >&5
33847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33848   (exit $ac_status); } &&
33849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33850   { (case "(($ac_try" in
33851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33852   *) ac_try_echo=$ac_try;;
33853 esac
33854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33855   (eval "$ac_try") 2>&5
33856   ac_status=$?
33857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33858   (exit $ac_status); }; } &&
33859          { ac_try='test -s conftest$ac_exeext'
33860   { (case "(($ac_try" in
33861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33862   *) ac_try_echo=$ac_try;;
33863 esac
33864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33865   (eval "$ac_try") 2>&5
33866   ac_status=$?
33867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33868   (exit $ac_status); }; }; then
33869    echo "*** The test program compiled, but did not run. This usually means"
33870           echo "*** that the run-time linker is not finding SDL or finding the wrong"
33871           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
33872           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
33873           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
33874           echo "*** is required on your system"
33875           echo "***"
33876           echo "*** If you have an old version installed, it is best to remove it, although"
33877           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
33878 else
33879   echo "$as_me: failed program was:" >&5
33880 sed 's/^/| /' conftest.$ac_ext >&5
33881
33882          echo "*** The test program failed to compile or link. See the file config.log for the"
33883           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
33884           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
33885           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
33886 fi
33887
33888 rm -f core conftest.err conftest.$ac_objext \
33889       conftest$ac_exeext conftest.$ac_ext
33890           CFLAGS="$ac_save_CFLAGS"
33891           LIBS="$ac_save_LIBS"
33892        fi
33893      fi
33894      SDL_CFLAGS=""
33895      SDL_LIBS=""
33896      passed=no;{ echo "$as_me:$LINENO: result: gr-video-sdl requires library sdl, not found or failed test." >&5
33897 echo "${ECHO_T}gr-video-sdl requires library sdl, not found or failed test." >&6; }
33898   fi
33899
33900
33901   rm -f conf.sdltest
33902
33903
33904
33905     if test x$passed = xno; then
33906         skipped_dirs="$skipped_dirs gr-video-sdl"
33907         if test x$enable_gr_video_sdl = xyes; then
33908             { { echo "$as_me:$LINENO: error: Component gr-video-sdl has errors, stopping." >&5
33909 echo "$as_me: error: Component gr-video-sdl has errors, stopping." >&2;}
33910    { (exit 1); exit 1; }; }
33911         else
33912             { echo "$as_me:$LINENO: result: Not building component gr-video-sdl." >&5
33913 echo "${ECHO_T}Not building component gr-video-sdl." >&6; }
33914         fi
33915     else
33916         if test x$enable_gr_video_sdl != xno; then
33917
33918
33919
33920                 ac_config_commands="$ac_config_commands run_tests_sdl"
33921
33922
33923             build_dirs="$build_dirs gr-video-sdl"
33924             { echo "$as_me:$LINENO: result: Component gr-video-sdl passed configuration checks, building." >&5
33925 echo "${ECHO_T}Component gr-video-sdl passed configuration checks, building." >&6; }
33926         else
33927             skipped_dirs="$skipped_dirs gr-video-sdl"
33928             { echo "$as_me:$LINENO: result: Component gr-video-sdl passed configuration checks, but not building." >&5
33929 echo "${ECHO_T}Component gr-video-sdl passed configuration checks, but not building." >&6; }
33930         fi
33931     fi
33932
33933
33934
33935
33936     # Check whether --enable-gr-wxgui was given.
33937 if test "${enable_gr_wxgui+set}" = set; then
33938   enableval=$enable_gr_wxgui;
33939 else
33940   enable_gr_wxgui=$enable_all_components
33941 fi
33942
33943
33944
33945     ac_config_files="$ac_config_files gr-wxgui/Makefile gr-wxgui/src/Makefile gr-wxgui/src/python/Makefile"
33946
33947
33948     # FIXME: this breaks pkgsrc by calling python without a version number
33949     # gdt--patch welcome :-)
33950     if python -c 'import wx'; then
33951         passed=yes
33952     else
33953         passed=no
33954     fi
33955
33956
33957     if test x$passed = xno; then
33958         skipped_dirs="$skipped_dirs gr-wxgui"
33959         if test x$enable_gr_wxgui = xyes; then
33960             { { echo "$as_me:$LINENO: error: Component gr-wxgui has errors, stopping." >&5
33961 echo "$as_me: error: Component gr-wxgui has errors, stopping." >&2;}
33962    { (exit 1); exit 1; }; }
33963         else
33964             { echo "$as_me:$LINENO: result: Not building component gr-wxgui." >&5
33965 echo "${ECHO_T}Not building component gr-wxgui." >&6; }
33966         fi
33967     else
33968         if test x$enable_gr_wxgui != xno; then
33969
33970             build_dirs="$build_dirs gr-wxgui"
33971             { echo "$as_me:$LINENO: result: Component gr-wxgui passed configuration checks, building." >&5
33972 echo "${ECHO_T}Component gr-wxgui passed configuration checks, building." >&6; }
33973         else
33974             skipped_dirs="$skipped_dirs gr-wxgui"
33975             { echo "$as_me:$LINENO: result: Component gr-wxgui passed configuration checks, but not building." >&5
33976 echo "${ECHO_T}Component gr-wxgui passed configuration checks, but not building." >&6; }
33977         fi
33978     fi
33979
33980
33981
33982 # Each component is now either to be built, was skipped, or failed dependencies
33983 build_dirs=$build_dirs
33984
33985 skipped_dirs=$skipped_dirs
33986
33987
33988 ac_config_files="$ac_config_files Makefile run_tests.sh config/Makefile"
33989
33990
33991 ac_config_commands="$ac_config_commands run_tests_build"
33992
33993
33994 cat >confcache <<\_ACEOF
33995 # This file is a shell script that caches the results of configure
33996 # tests run on this system so they can be shared between configure
33997 # scripts and configure runs, see configure's option --config-cache.
33998 # It is not useful on other systems.  If it contains results you don't
33999 # want to keep, you may remove or edit it.
34000 #
34001 # config.status only pays attention to the cache file if you give it
34002 # the --recheck option to rerun configure.
34003 #
34004 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34005 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34006 # following values.
34007
34008 _ACEOF
34009
34010 # The following way of writing the cache mishandles newlines in values,
34011 # but we know of no workaround that is simple, portable, and efficient.
34012 # So, we kill variables containing newlines.
34013 # Ultrix sh set writes to stderr and can't be redirected directly,
34014 # and sets the high bit in the cache file unless we assign to the vars.
34015 (
34016   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34017     eval ac_val=\$$ac_var
34018     case $ac_val in #(
34019     *${as_nl}*)
34020       case $ac_var in #(
34021       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34022 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34023       esac
34024       case $ac_var in #(
34025       _ | IFS | as_nl) ;; #(
34026       *) $as_unset $ac_var ;;
34027       esac ;;
34028     esac
34029   done
34030
34031   (set) 2>&1 |
34032     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34033     *${as_nl}ac_space=\ *)
34034       # `set' does not quote correctly, so add quotes (double-quote
34035       # substitution turns \\\\ into \\, and sed turns \\ into \).
34036       sed -n \
34037         "s/'/'\\\\''/g;
34038           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34039       ;; #(
34040     *)
34041       # `set' quotes correctly as required by POSIX, so do not add quotes.
34042       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34043       ;;
34044     esac |
34045     sort
34046 ) |
34047   sed '
34048      /^ac_cv_env_/b end
34049      t clear
34050      :clear
34051      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34052      t end
34053      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34054      :end' >>confcache
34055 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34056   if test -w "$cache_file"; then
34057     test "x$cache_file" != "x/dev/null" &&
34058       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34059 echo "$as_me: updating cache $cache_file" >&6;}
34060     cat confcache >$cache_file
34061   else
34062     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34063 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34064   fi
34065 fi
34066 rm -f confcache
34067
34068 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34069 # Let make expand exec_prefix.
34070 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34071
34072 DEFS=-DHAVE_CONFIG_H
34073
34074 ac_libobjs=
34075 ac_ltlibobjs=
34076 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34077   # 1. Remove the extension, and $U if already installed.
34078   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34079   ac_i=`echo "$ac_i" | sed "$ac_script"`
34080   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34081   #    will be set to the directory where LIBOBJS objects are built.
34082   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34083   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34084 done
34085 LIBOBJS=$ac_libobjs
34086
34087 LTLIBOBJS=$ac_ltlibobjs
34088
34089
34090 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34091   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
34092 Usually this means the macro was only invoked conditionally." >&5
34093 echo "$as_me: error: conditional \"AMDEP\" was never defined.
34094 Usually this means the macro was only invoked conditionally." >&2;}
34095    { (exit 1); exit 1; }; }
34096 fi
34097 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34098   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
34099 Usually this means the macro was only invoked conditionally." >&5
34100 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
34101 Usually this means the macro was only invoked conditionally." >&2;}
34102    { (exit 1); exit 1; }; }
34103 fi
34104 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34105   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
34106 Usually this means the macro was only invoked conditionally." >&5
34107 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
34108 Usually this means the macro was only invoked conditionally." >&2;}
34109    { (exit 1); exit 1; }; }
34110 fi
34111 if test -z "${ENABLE_FORTRAN_TRUE}" && test -z "${ENABLE_FORTRAN_FALSE}"; then
34112   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FORTRAN\" was never defined.
34113 Usually this means the macro was only invoked conditionally." >&5
34114 echo "$as_me: error: conditional \"ENABLE_FORTRAN\" was never defined.
34115 Usually this means the macro was only invoked conditionally." >&2;}
34116    { (exit 1); exit 1; }; }
34117 fi
34118 if test -z "${HAS_XMLTO_TRUE}" && test -z "${HAS_XMLTO_FALSE}"; then
34119   { { echo "$as_me:$LINENO: error: conditional \"HAS_XMLTO\" was never defined.
34120 Usually this means the macro was only invoked conditionally." >&5
34121 echo "$as_me: error: conditional \"HAS_XMLTO\" was never defined.
34122 Usually this means the macro was only invoked conditionally." >&2;}
34123    { (exit 1); exit 1; }; }
34124 fi
34125 if test -z "${OMNITHREAD_POSIX_TRUE}" && test -z "${OMNITHREAD_POSIX_FALSE}"; then
34126   { { echo "$as_me:$LINENO: error: conditional \"OMNITHREAD_POSIX\" was never defined.
34127 Usually this means the macro was only invoked conditionally." >&5
34128 echo "$as_me: error: conditional \"OMNITHREAD_POSIX\" was never defined.
34129 Usually this means the macro was only invoked conditionally." >&2;}
34130    { (exit 1); exit 1; }; }
34131 fi
34132 if test -z "${OMNITHREAD_NT_TRUE}" && test -z "${OMNITHREAD_NT_FALSE}"; then
34133   { { echo "$as_me:$LINENO: error: conditional \"OMNITHREAD_NT\" was never defined.
34134 Usually this means the macro was only invoked conditionally." >&5
34135 echo "$as_me: error: conditional \"OMNITHREAD_NT\" was never defined.
34136 Usually this means the macro was only invoked conditionally." >&2;}
34137    { (exit 1); exit 1; }; }
34138 fi
34139 if test -z "${HAVE_CREATEFILEMAPPING_TRUE}" && test -z "${HAVE_CREATEFILEMAPPING_FALSE}"; then
34140   { { echo "$as_me:$LINENO: error: conditional \"HAVE_CREATEFILEMAPPING\" was never defined.
34141 Usually this means the macro was only invoked conditionally." >&5
34142 echo "$as_me: error: conditional \"HAVE_CREATEFILEMAPPING\" was never defined.
34143 Usually this means the macro was only invoked conditionally." >&2;}
34144    { (exit 1); exit 1; }; }
34145 fi
34146 if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
34147   { { echo "$as_me:$LINENO: error: conditional \"DOC\" was never defined.
34148 Usually this means the macro was only invoked conditionally." >&5
34149 echo "$as_me: error: conditional \"DOC\" was never defined.
34150 Usually this means the macro was only invoked conditionally." >&2;}
34151    { (exit 1); exit 1; }; }
34152 fi
34153 if test -z "${MD_CPU_x86_TRUE}" && test -z "${MD_CPU_x86_FALSE}"; then
34154   { { echo "$as_me:$LINENO: error: conditional \"MD_CPU_x86\" was never defined.
34155 Usually this means the macro was only invoked conditionally." >&5
34156 echo "$as_me: error: conditional \"MD_CPU_x86\" was never defined.
34157 Usually this means the macro was only invoked conditionally." >&2;}
34158    { (exit 1); exit 1; }; }
34159 fi
34160 if test -z "${MD_SUBCPU_x86_64_TRUE}" && test -z "${MD_SUBCPU_x86_64_FALSE}"; then
34161   { { echo "$as_me:$LINENO: error: conditional \"MD_SUBCPU_x86_64\" was never defined.
34162 Usually this means the macro was only invoked conditionally." >&5
34163 echo "$as_me: error: conditional \"MD_SUBCPU_x86_64\" was never defined.
34164 Usually this means the macro was only invoked conditionally." >&2;}
34165    { (exit 1); exit 1; }; }
34166 fi
34167 if test -z "${MD_CPU_generic_TRUE}" && test -z "${MD_CPU_generic_FALSE}"; then
34168   { { echo "$as_me:$LINENO: error: conditional \"MD_CPU_generic\" was never defined.
34169 Usually this means the macro was only invoked conditionally." >&5
34170 echo "$as_me: error: conditional \"MD_CPU_generic\" was never defined.
34171 Usually this means the macro was only invoked conditionally." >&2;}
34172    { (exit 1); exit 1; }; }
34173 fi
34174 if test -z "${FUSB_TECH_darwin_TRUE}" && test -z "${FUSB_TECH_darwin_FALSE}"; then
34175   { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_darwin\" was never defined.
34176 Usually this means the macro was only invoked conditionally." >&5
34177 echo "$as_me: error: conditional \"FUSB_TECH_darwin\" was never defined.
34178 Usually this means the macro was only invoked conditionally." >&2;}
34179    { (exit 1); exit 1; }; }
34180 fi
34181 if test -z "${FUSB_TECH_win32_TRUE}" && test -z "${FUSB_TECH_win32_FALSE}"; then
34182   { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_win32\" was never defined.
34183 Usually this means the macro was only invoked conditionally." >&5
34184 echo "$as_me: error: conditional \"FUSB_TECH_win32\" was never defined.
34185 Usually this means the macro was only invoked conditionally." >&2;}
34186    { (exit 1); exit 1; }; }
34187 fi
34188 if test -z "${FUSB_TECH_generic_TRUE}" && test -z "${FUSB_TECH_generic_FALSE}"; then
34189   { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_generic\" was never defined.
34190 Usually this means the macro was only invoked conditionally." >&5
34191 echo "$as_me: error: conditional \"FUSB_TECH_generic\" was never defined.
34192 Usually this means the macro was only invoked conditionally." >&2;}
34193    { (exit 1); exit 1; }; }
34194 fi
34195 if test -z "${FUSB_TECH_linux_TRUE}" && test -z "${FUSB_TECH_linux_FALSE}"; then
34196   { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_linux\" was never defined.
34197 Usually this means the macro was only invoked conditionally." >&5
34198 echo "$as_me: error: conditional \"FUSB_TECH_linux\" was never defined.
34199 Usually this means the macro was only invoked conditionally." >&2;}
34200    { (exit 1); exit 1; }; }
34201 fi
34202 if test -z "${FUSB_TECH_ra_wb_TRUE}" && test -z "${FUSB_TECH_ra_wb_FALSE}"; then
34203   { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_ra_wb\" was never defined.
34204 Usually this means the macro was only invoked conditionally." >&5
34205 echo "$as_me: error: conditional \"FUSB_TECH_ra_wb\" was never defined.
34206 Usually this means the macro was only invoked conditionally." >&2;}
34207    { (exit 1); exit 1; }; }
34208 fi
34209
34210 : ${CONFIG_STATUS=./config.status}
34211 ac_clean_files_save=$ac_clean_files
34212 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34213 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34214 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34215 cat >$CONFIG_STATUS <<_ACEOF
34216 #! $SHELL
34217 # Generated by $as_me.
34218 # Run this file to recreate the current configuration.
34219 # Compiler output produced by configure, useful for debugging
34220 # configure, is in config.log if it exists.
34221
34222 debug=false
34223 ac_cs_recheck=false
34224 ac_cs_silent=false
34225 SHELL=\${CONFIG_SHELL-$SHELL}
34226 _ACEOF
34227
34228 cat >>$CONFIG_STATUS <<\_ACEOF
34229 ## --------------------- ##
34230 ## M4sh Initialization.  ##
34231 ## --------------------- ##
34232
34233 # Be Bourne compatible
34234 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34235   emulate sh
34236   NULLCMD=:
34237   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34238   # is contrary to our usage.  Disable this feature.
34239   alias -g '${1+"$@"}'='"$@"'
34240   setopt NO_GLOB_SUBST
34241 else
34242   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34243 fi
34244 BIN_SH=xpg4; export BIN_SH # for Tru64
34245 DUALCASE=1; export DUALCASE # for MKS sh
34246
34247
34248 # PATH needs CR
34249 # Avoid depending upon Character Ranges.
34250 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34251 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34252 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34253 as_cr_digits='0123456789'
34254 as_cr_alnum=$as_cr_Letters$as_cr_digits
34255
34256 # The user is always right.
34257 if test "${PATH_SEPARATOR+set}" != set; then
34258   echo "#! /bin/sh" >conf$$.sh
34259   echo  "exit 0"   >>conf$$.sh
34260   chmod +x conf$$.sh
34261   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34262     PATH_SEPARATOR=';'
34263   else
34264     PATH_SEPARATOR=:
34265   fi
34266   rm -f conf$$.sh
34267 fi
34268
34269 # Support unset when possible.
34270 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34271   as_unset=unset
34272 else
34273   as_unset=false
34274 fi
34275
34276
34277 # IFS
34278 # We need space, tab and new line, in precisely that order.  Quoting is
34279 # there to prevent editors from complaining about space-tab.
34280 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34281 # splitting by setting IFS to empty value.)
34282 as_nl='
34283 '
34284 IFS=" ""        $as_nl"
34285
34286 # Find who we are.  Look in the path if we contain no directory separator.
34287 case $0 in
34288   *[\\/]* ) as_myself=$0 ;;
34289   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34290 for as_dir in $PATH
34291 do
34292   IFS=$as_save_IFS
34293   test -z "$as_dir" && as_dir=.
34294   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34295 done
34296 IFS=$as_save_IFS
34297
34298      ;;
34299 esac
34300 # We did not find ourselves, most probably we were run as `sh COMMAND'
34301 # in which case we are not to be found in the path.
34302 if test "x$as_myself" = x; then
34303   as_myself=$0
34304 fi
34305 if test ! -f "$as_myself"; then
34306   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34307   { (exit 1); exit 1; }
34308 fi
34309
34310 # Work around bugs in pre-3.0 UWIN ksh.
34311 for as_var in ENV MAIL MAILPATH
34312 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34313 done
34314 PS1='$ '
34315 PS2='> '
34316 PS4='+ '
34317
34318 # NLS nuisances.
34319 for as_var in \
34320   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34321   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34322   LC_TELEPHONE LC_TIME
34323 do
34324   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34325     eval $as_var=C; export $as_var
34326   else
34327     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34328   fi
34329 done
34330
34331 # Required to use basename.
34332 if expr a : '\(a\)' >/dev/null 2>&1 &&
34333    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34334   as_expr=expr
34335 else
34336   as_expr=false
34337 fi
34338
34339 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34340   as_basename=basename
34341 else
34342   as_basename=false
34343 fi
34344
34345
34346 # Name of the executable.
34347 as_me=`$as_basename -- "$0" ||
34348 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34349          X"$0" : 'X\(//\)$' \| \
34350          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34351 echo X/"$0" |
34352     sed '/^.*\/\([^/][^/]*\)\/*$/{
34353             s//\1/
34354             q
34355           }
34356           /^X\/\(\/\/\)$/{
34357             s//\1/
34358             q
34359           }
34360           /^X\/\(\/\).*/{
34361             s//\1/
34362             q
34363           }
34364           s/.*/./; q'`
34365
34366 # CDPATH.
34367 $as_unset CDPATH
34368
34369
34370
34371   as_lineno_1=$LINENO
34372   as_lineno_2=$LINENO
34373   test "x$as_lineno_1" != "x$as_lineno_2" &&
34374   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34375
34376   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34377   # uniformly replaced by the line number.  The first 'sed' inserts a
34378   # line-number line after each line using $LINENO; the second 'sed'
34379   # does the real work.  The second script uses 'N' to pair each
34380   # line-number line with the line containing $LINENO, and appends
34381   # trailing '-' during substitution so that $LINENO is not a special
34382   # case at line end.
34383   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34384   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34385   # E. McMahon (1931-1989) for sed's syntax.  :-)
34386   sed -n '
34387     p
34388     /[$]LINENO/=
34389   ' <$as_myself |
34390     sed '
34391       s/[$]LINENO.*/&-/
34392       t lineno
34393       b
34394       :lineno
34395       N
34396       :loop
34397       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34398       t loop
34399       s/-\n.*//
34400     ' >$as_me.lineno &&
34401   chmod +x "$as_me.lineno" ||
34402     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34403    { (exit 1); exit 1; }; }
34404
34405   # Don't try to exec as it changes $[0], causing all sort of problems
34406   # (the dirname of $[0] is not the place where we might find the
34407   # original and so on.  Autoconf is especially sensitive to this).
34408   . "./$as_me.lineno"
34409   # Exit status is that of the last command.
34410   exit
34411 }
34412
34413
34414 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34415   as_dirname=dirname
34416 else
34417   as_dirname=false
34418 fi
34419
34420 ECHO_C= ECHO_N= ECHO_T=
34421 case `echo -n x` in
34422 -n*)
34423   case `echo 'x\c'` in
34424   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34425   *)   ECHO_C='\c';;
34426   esac;;
34427 *)
34428   ECHO_N='-n';;
34429 esac
34430
34431 if expr a : '\(a\)' >/dev/null 2>&1 &&
34432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34433   as_expr=expr
34434 else
34435   as_expr=false
34436 fi
34437
34438 rm -f conf$$ conf$$.exe conf$$.file
34439 if test -d conf$$.dir; then
34440   rm -f conf$$.dir/conf$$.file
34441 else
34442   rm -f conf$$.dir
34443   mkdir conf$$.dir
34444 fi
34445 echo >conf$$.file
34446 if ln -s conf$$.file conf$$ 2>/dev/null; then
34447   as_ln_s='ln -s'
34448   # ... but there are two gotchas:
34449   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34450   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34451   # In both cases, we have to default to `cp -p'.
34452   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34453     as_ln_s='cp -p'
34454 elif ln conf$$.file conf$$ 2>/dev/null; then
34455   as_ln_s=ln
34456 else
34457   as_ln_s='cp -p'
34458 fi
34459 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34460 rmdir conf$$.dir 2>/dev/null
34461
34462 if mkdir -p . 2>/dev/null; then
34463   as_mkdir_p=:
34464 else
34465   test -d ./-p && rmdir ./-p
34466   as_mkdir_p=false
34467 fi
34468
34469 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34470 # systems may use methods other than mode bits to determine executability.
34471 cat >conf$$.file <<_ASEOF
34472 #! /bin/sh
34473 exit 0
34474 _ASEOF
34475 chmod +x conf$$.file
34476 if test -x conf$$.file >/dev/null 2>&1; then
34477   as_executable_p="test -x"
34478 else
34479   as_executable_p=:
34480 fi
34481 rm -f conf$$.file
34482
34483 # Sed expression to map a string onto a valid CPP name.
34484 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34485
34486 # Sed expression to map a string onto a valid variable name.
34487 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34488
34489
34490 exec 6>&1
34491
34492 # Save the log message, to keep $[0] and so on meaningful, and to
34493 # report actual input values of CONFIG_FILES etc. instead of their
34494 # values after options handling.
34495 ac_log="
34496 This file was extended by $as_me, which was
34497 generated by GNU Autoconf 2.60.  Invocation command line was
34498
34499   CONFIG_FILES    = $CONFIG_FILES
34500   CONFIG_HEADERS  = $CONFIG_HEADERS
34501   CONFIG_LINKS    = $CONFIG_LINKS
34502   CONFIG_COMMANDS = $CONFIG_COMMANDS
34503   $ $0 $@
34504
34505 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34506 "
34507
34508 _ACEOF
34509
34510 cat >>$CONFIG_STATUS <<_ACEOF
34511 # Files that config.status was made for.
34512 config_files="$ac_config_files"
34513 config_headers="$ac_config_headers"
34514 config_commands="$ac_config_commands"
34515
34516 _ACEOF
34517
34518 cat >>$CONFIG_STATUS <<\_ACEOF
34519 ac_cs_usage="\
34520 \`$as_me' instantiates files from templates according to the
34521 current configuration.
34522
34523 Usage: $0 [OPTIONS] [FILE]...
34524
34525   -h, --help       print this help, then exit
34526   -V, --version    print version number, then exit
34527   -q, --quiet      do not print progress messages
34528   -d, --debug      don't remove temporary files
34529       --recheck    update $as_me by reconfiguring in the same conditions
34530   --file=FILE[:TEMPLATE]
34531                    instantiate the configuration file FILE
34532   --header=FILE[:TEMPLATE]
34533                    instantiate the configuration header FILE
34534
34535 Configuration files:
34536 $config_files
34537
34538 Configuration headers:
34539 $config_headers
34540
34541 Configuration commands:
34542 $config_commands
34543
34544 Report bugs to <bug-autoconf@gnu.org>."
34545
34546 _ACEOF
34547 cat >>$CONFIG_STATUS <<_ACEOF
34548 ac_cs_version="\\
34549 config.status
34550 configured by $0, generated by GNU Autoconf 2.60,
34551   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34552
34553 Copyright (C) 2006 Free Software Foundation, Inc.
34554 This config.status script is free software; the Free Software Foundation
34555 gives unlimited permission to copy, distribute and modify it."
34556
34557 ac_pwd='$ac_pwd'
34558 srcdir='$srcdir'
34559 INSTALL='$INSTALL'
34560 _ACEOF
34561
34562 cat >>$CONFIG_STATUS <<\_ACEOF
34563 # If no file are specified by the user, then we need to provide default
34564 # value.  By we need to know if files were specified by the user.
34565 ac_need_defaults=:
34566 while test $# != 0
34567 do
34568   case $1 in
34569   --*=*)
34570     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34571     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34572     ac_shift=:
34573     ;;
34574   *)
34575     ac_option=$1
34576     ac_optarg=$2
34577     ac_shift=shift
34578     ;;
34579   esac
34580
34581   case $ac_option in
34582   # Handling of the options.
34583   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34584     ac_cs_recheck=: ;;
34585   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34586     echo "$ac_cs_version"; exit ;;
34587   --debug | --debu | --deb | --de | --d | -d )
34588     debug=: ;;
34589   --file | --fil | --fi | --f )
34590     $ac_shift
34591     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34592     ac_need_defaults=false;;
34593   --header | --heade | --head | --hea )
34594     $ac_shift
34595     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34596     ac_need_defaults=false;;
34597   --he | --h)
34598     # Conflict between --help and --header
34599     { echo "$as_me: error: ambiguous option: $1
34600 Try \`$0 --help' for more information." >&2
34601    { (exit 1); exit 1; }; };;
34602   --help | --hel | -h )
34603     echo "$ac_cs_usage"; exit ;;
34604   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34605   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34606     ac_cs_silent=: ;;
34607
34608   # This is an error.
34609   -*) { echo "$as_me: error: unrecognized option: $1
34610 Try \`$0 --help' for more information." >&2
34611    { (exit 1); exit 1; }; } ;;
34612
34613   *) ac_config_targets="$ac_config_targets $1"
34614      ac_need_defaults=false ;;
34615
34616   esac
34617   shift
34618 done
34619
34620 ac_configure_extra_args=
34621
34622 if $ac_cs_silent; then
34623   exec 6>/dev/null
34624   ac_configure_extra_args="$ac_configure_extra_args --silent"
34625 fi
34626
34627 _ACEOF
34628 cat >>$CONFIG_STATUS <<_ACEOF
34629 if \$ac_cs_recheck; then
34630   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34631   CONFIG_SHELL=$SHELL
34632   export CONFIG_SHELL
34633   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34634 fi
34635
34636 _ACEOF
34637 cat >>$CONFIG_STATUS <<\_ACEOF
34638 exec 5>>config.log
34639 {
34640   echo
34641   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34642 ## Running $as_me. ##
34643 _ASBOX
34644   echo "$ac_log"
34645 } >&5
34646
34647 _ACEOF
34648 cat >>$CONFIG_STATUS <<_ACEOF
34649 #
34650 # INIT-COMMANDS
34651 #
34652 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34653
34654 _ACEOF
34655
34656 cat >>$CONFIG_STATUS <<\_ACEOF
34657
34658 # Handling of arguments.
34659 for ac_config_target in $ac_config_targets
34660 do
34661   case $ac_config_target in
34662     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
34663     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34664     "gnuradio-core/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/Makefile" ;;
34665     "gnuradio-core/gnuradio-core.pc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/gnuradio-core.pc" ;;
34666     "gnuradio-core/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/Doxyfile" ;;
34667     "gnuradio-core/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/Makefile" ;;
34668     "gnuradio-core/doc/other/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/other/Makefile" ;;
34669     "gnuradio-core/doc/xml/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/xml/Makefile" ;;
34670     "gnuradio-core/src/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/Makefile" ;;
34671     "gnuradio-core/src/gen_interpolator_taps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/gen_interpolator_taps/Makefile" ;;
34672     "gnuradio-core/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/Makefile" ;;
34673     "gnuradio-core/src/lib/filter/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/filter/Makefile" ;;
34674     "gnuradio-core/src/lib/g72x/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/g72x/Makefile" ;;
34675     "gnuradio-core/src/lib/general/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/Makefile" ;;
34676     "gnuradio-core/src/lib/general/gr_prefix.cc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/gr_prefix.cc" ;;
34677     "gnuradio-core/src/lib/io/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/io/Makefile" ;;
34678     "gnuradio-core/src/lib/missing/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/missing/Makefile" ;;
34679     "gnuradio-core/src/lib/omnithread/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/omnithread/Makefile" ;;
34680     "gnuradio-core/src/lib/reed-solomon/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/reed-solomon/Makefile" ;;
34681     "gnuradio-core/src/lib/runtime/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/runtime/Makefile" ;;
34682     "gnuradio-core/src/lib/swig/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/swig/Makefile" ;;
34683     "gnuradio-core/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/Makefile" ;;
34684     "gnuradio-core/src/python/bin/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/bin/Makefile" ;;
34685     "gnuradio-core/src/python/gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/Makefile" ;;
34686     "gnuradio-core/src/python/gnuradio/blks/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blks/Makefile" ;;
34687     "gnuradio-core/src/python/gnuradio/blksimpl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blksimpl/Makefile" ;;
34688     "gnuradio-core/src/python/gnuradio/gr/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/Makefile" ;;
34689     "gnuradio-core/src/python/gnuradio/gr/run_tests") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/run_tests" ;;
34690     "gnuradio-core/src/python/gnuradio/gru/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gru/Makefile" ;;
34691     "gnuradio-core/src/python/gnuradio/gruimpl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gruimpl/Makefile" ;;
34692     "gnuradio-core/src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/tests/Makefile" ;;
34693     "gnuradio-core/src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/utils/Makefile" ;;
34694     "run_tests_core") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_core" ;;
34695     "swig_deps") CONFIG_COMMANDS="$CONFIG_COMMANDS swig_deps" ;;
34696     "gnuradio-examples/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/Makefile" ;;
34697     "gnuradio-examples/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/Makefile" ;;
34698     "gnuradio-examples/python/apps/hf_explorer/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_explorer/Makefile" ;;
34699     "gnuradio-examples/python/apps/hf_radio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_radio/Makefile" ;;
34700     "gnuradio-examples/python/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/Makefile" ;;
34701     "gnuradio-examples/python/audio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/audio/Makefile" ;;
34702     "gnuradio-examples/python/channel-coding/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/channel-coding/Makefile" ;;
34703     "gnuradio-examples/python/channel-coding/fsm_files/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/channel-coding/fsm_files/Makefile" ;;
34704     "gnuradio-examples/python/digital/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital/Makefile" ;;
34705     "gnuradio-examples/python/digital_voice/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital_voice/Makefile" ;;
34706     "gnuradio-examples/python/multi-antenna/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi-antenna/Makefile" ;;
34707     "gnuradio-examples/python/multi_usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi_usrp/Makefile" ;;
34708     "gnuradio-examples/python/networking/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/networking/Makefile" ;;
34709     "gnuradio-examples/python/usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/usrp/Makefile" ;;
34710     "usrp/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/Makefile" ;;
34711     "usrp/usrp.pc") CONFIG_FILES="$CONFIG_FILES usrp/usrp.pc" ;;
34712     "usrp/usrp.iss") CONFIG_FILES="$CONFIG_FILES usrp/usrp.iss" ;;
34713     "usrp/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Doxyfile" ;;
34714     "usrp/doc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Makefile" ;;
34715     "usrp/doc/other/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/other/Makefile" ;;
34716     "usrp/host/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/Makefile" ;;
34717     "usrp/host/misc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/misc/Makefile" ;;
34718     "usrp/host/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/Makefile" ;;
34719     "usrp/host/lib/std_paths.h") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/std_paths.h" ;;
34720     "usrp/host/swig/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/swig/Makefile" ;;
34721     "usrp/host/apps/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/apps/Makefile" ;;
34722     "usrp/firmware/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/Makefile" ;;
34723     "usrp/firmware/include/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/include/Makefile" ;;
34724     "usrp/firmware/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/lib/Makefile" ;;
34725     "usrp/firmware/src/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/Makefile" ;;
34726     "usrp/firmware/src/common/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/common/Makefile" ;;
34727     "usrp/firmware/src/usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/usrp2/Makefile" ;;
34728     "usrp/fpga/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/Makefile" ;;
34729     "usrp/fpga/rbf/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/rbf/Makefile" ;;
34730     "gr-usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/Makefile" ;;
34731     "gr-usrp/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/Makefile" ;;
34732     "gr-usrp/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/run_tests" ;;
34733     "run_tests_usrp") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_usrp" ;;
34734     "gr-audio-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/Makefile" ;;
34735     "gr-audio-alsa/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/Makefile" ;;
34736     "gr-audio-alsa/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/run_tests" ;;
34737     "run_tests_alsa") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_alsa" ;;
34738     "gr-audio-jack/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/Makefile" ;;
34739     "gr-audio-jack/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/Makefile" ;;
34740     "gr-audio-jack/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/run_tests" ;;
34741     "run_tests_jack") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_jack" ;;
34742     "gr-audio-oss/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/Makefile" ;;
34743     "gr-audio-oss/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/Makefile" ;;
34744     "gr-audio-oss/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/run_tests" ;;
34745     "run_tests_oss") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_oss" ;;
34746     "gr-audio-osx/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/Makefile" ;;
34747     "gr-audio-osx/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/Makefile" ;;
34748     "gr-audio-osx/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/run_tests" ;;
34749     "run_tests_osx") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_osx" ;;
34750     "gr-audio-portaudio/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/Makefile" ;;
34751     "gr-audio-portaudio/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/Makefile" ;;
34752     "gr-audio-portaudio/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/run_tests" ;;
34753     "run_tests_portaudio") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_portaudio" ;;
34754     "gr-audio-windows/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/Makefile" ;;
34755     "gr-audio-windows/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/Makefile" ;;
34756     "gr-audio-windows/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/run_tests" ;;
34757     "run_tests_audio_windows") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_audio_windows" ;;
34758     "gr-gsm-fr-vocoder/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/Makefile" ;;
34759     "gr-gsm-fr-vocoder/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/Makefile" ;;
34760     "gr-gsm-fr-vocoder/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/Makefile" ;;
34761     "gr-gsm-fr-vocoder/src/lib/gsm/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/gsm/Makefile" ;;
34762     "gr-gsm-fr-vocoder/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/Makefile" ;;
34763     "gr-gsm-fr-vocoder/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/run_tests" ;;
34764     "run_tests_gsm") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gsm" ;;
34765     "gr-radio-astronomy/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/Makefile" ;;
34766     "gr-radio-astronomy/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/Makefile" ;;
34767     "gr-radio-astronomy/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/lib/Makefile" ;;
34768     "gr-radio-astronomy/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/Makefile" ;;
34769     "gr-radio-astronomy/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/run_tests" ;;
34770     "run_tests_astronomy") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_astronomy" ;;
34771     "gr-trellis/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/Makefile" ;;
34772     "gr-trellis/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/doc/Makefile" ;;
34773     "gr-trellis/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/Makefile" ;;
34774     "gr-trellis/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/lib/Makefile" ;;
34775     "gr-trellis/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/Makefile" ;;
34776     "gr-trellis/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/run_tests" ;;
34777     "run_tests_gr_trellis") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gr_trellis" ;;
34778     "gr-video-sdl/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/Makefile" ;;
34779     "gr-video-sdl/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/Makefile" ;;
34780     "gr-video-sdl/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/run_tests" ;;
34781     "run_tests_sdl") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_sdl" ;;
34782     "gr-wxgui/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/Makefile" ;;
34783     "gr-wxgui/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/Makefile" ;;
34784     "gr-wxgui/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/python/Makefile" ;;
34785     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34786     "run_tests.sh") CONFIG_FILES="$CONFIG_FILES run_tests.sh" ;;
34787     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
34788     "run_tests_build") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_build" ;;
34789
34790   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34791 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34792    { (exit 1); exit 1; }; };;
34793   esac
34794 done
34795
34796
34797 # If the user did not use the arguments to specify the items to instantiate,
34798 # then the envvar interface is used.  Set only those that are not.
34799 # We use the long form for the default assignment because of an extremely
34800 # bizarre bug on SunOS 4.1.3.
34801 if $ac_need_defaults; then
34802   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34803   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34804   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34805 fi
34806
34807 # Have a temporary directory for convenience.  Make it in the build tree
34808 # simply because there is no reason against having it here, and in addition,
34809 # creating and moving files from /tmp can sometimes cause problems.
34810 # Hook for its removal unless debugging.
34811 # Note that there is a small window in which the directory will not be cleaned:
34812 # after its creation but before its name has been assigned to `$tmp'.
34813 $debug ||
34814 {
34815   tmp=
34816   trap 'exit_status=$?
34817   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34818 ' 0
34819   trap '{ (exit 1); exit 1; }' 1 2 13 15
34820 }
34821 # Create a (secure) tmp directory for tmp files.
34822
34823 {
34824   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34825   test -n "$tmp" && test -d "$tmp"
34826 }  ||
34827 {
34828   tmp=./conf$$-$RANDOM
34829   (umask 077 && mkdir "$tmp")
34830 } ||
34831 {
34832    echo "$me: cannot create a temporary directory in ." >&2
34833    { (exit 1); exit 1; }
34834 }
34835
34836 #
34837 # Set up the sed scripts for CONFIG_FILES section.
34838 #
34839
34840 # No need to generate the scripts if there are no CONFIG_FILES.
34841 # This happens for instance when ./config.status config.h
34842 if test -n "$CONFIG_FILES"; then
34843
34844 _ACEOF
34845
34846
34847
34848 ac_delim='%!_!# '
34849 for ac_last_try in false false false false false :; do
34850   cat >conf$$subs.sed <<_ACEOF
34851 SHELL!$SHELL$ac_delim
34852 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34853 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34854 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34855 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34856 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34857 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34858 exec_prefix!$exec_prefix$ac_delim
34859 prefix!$prefix$ac_delim
34860 program_transform_name!$program_transform_name$ac_delim
34861 bindir!$bindir$ac_delim
34862 sbindir!$sbindir$ac_delim
34863 libexecdir!$libexecdir$ac_delim
34864 datarootdir!$datarootdir$ac_delim
34865 datadir!$datadir$ac_delim
34866 sysconfdir!$sysconfdir$ac_delim
34867 sharedstatedir!$sharedstatedir$ac_delim
34868 localstatedir!$localstatedir$ac_delim
34869 includedir!$includedir$ac_delim
34870 oldincludedir!$oldincludedir$ac_delim
34871 docdir!$docdir$ac_delim
34872 infodir!$infodir$ac_delim
34873 htmldir!$htmldir$ac_delim
34874 dvidir!$dvidir$ac_delim
34875 pdfdir!$pdfdir$ac_delim
34876 psdir!$psdir$ac_delim
34877 libdir!$libdir$ac_delim
34878 localedir!$localedir$ac_delim
34879 mandir!$mandir$ac_delim
34880 DEFS!$DEFS$ac_delim
34881 ECHO_C!$ECHO_C$ac_delim
34882 ECHO_N!$ECHO_N$ac_delim
34883 ECHO_T!$ECHO_T$ac_delim
34884 LIBS!$LIBS$ac_delim
34885 build_alias!$build_alias$ac_delim
34886 host_alias!$host_alias$ac_delim
34887 target_alias!$target_alias$ac_delim
34888 build!$build$ac_delim
34889 build_cpu!$build_cpu$ac_delim
34890 build_vendor!$build_vendor$ac_delim
34891 build_os!$build_os$ac_delim
34892 host!$host$ac_delim
34893 host_cpu!$host_cpu$ac_delim
34894 host_vendor!$host_vendor$ac_delim
34895 host_os!$host_os$ac_delim
34896 target!$target$ac_delim
34897 target_cpu!$target_cpu$ac_delim
34898 target_vendor!$target_vendor$ac_delim
34899 target_os!$target_os$ac_delim
34900 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34901 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34902 INSTALL_DATA!$INSTALL_DATA$ac_delim
34903 CYGPATH_W!$CYGPATH_W$ac_delim
34904 PACKAGE!$PACKAGE$ac_delim
34905 VERSION!$VERSION$ac_delim
34906 ACLOCAL!$ACLOCAL$ac_delim
34907 AUTOCONF!$AUTOCONF$ac_delim
34908 AUTOMAKE!$AUTOMAKE$ac_delim
34909 AUTOHEADER!$AUTOHEADER$ac_delim
34910 MAKEINFO!$MAKEINFO$ac_delim
34911 install_sh!$install_sh$ac_delim
34912 STRIP!$STRIP$ac_delim
34913 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
34914 mkdir_p!$mkdir_p$ac_delim
34915 AWK!$AWK$ac_delim
34916 SET_MAKE!$SET_MAKE$ac_delim
34917 am__leading_dot!$am__leading_dot$ac_delim
34918 AMTAR!$AMTAR$ac_delim
34919 am__tar!$am__tar$ac_delim
34920 am__untar!$am__untar$ac_delim
34921 CC!$CC$ac_delim
34922 CFLAGS!$CFLAGS$ac_delim
34923 LDFLAGS!$LDFLAGS$ac_delim
34924 CPPFLAGS!$CPPFLAGS$ac_delim
34925 ac_ct_CC!$ac_ct_CC$ac_delim
34926 EXEEXT!$EXEEXT$ac_delim
34927 OBJEXT!$OBJEXT$ac_delim
34928 DEPDIR!$DEPDIR$ac_delim
34929 am__include!$am__include$ac_delim
34930 am__quote!$am__quote$ac_delim
34931 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
34932 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
34933 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
34934 CCDEPMODE!$CCDEPMODE$ac_delim
34935 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
34936 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
34937 CPP!$CPP$ac_delim
34938 GREP!$GREP$ac_delim
34939 EGREP!$EGREP$ac_delim
34940 CXX!$CXX$ac_delim
34941 CXXFLAGS!$CXXFLAGS$ac_delim
34942 ac_ct_CXX!$ac_ct_CXX$ac_delim
34943 CXXDEPMODE!$CXXDEPMODE$ac_delim
34944 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
34945 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
34946 CXXCPP!$CXXCPP$ac_delim
34947 CCAS!$CCAS$ac_delim
34948 _ACEOF
34949
34950   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34951     break
34952   elif $ac_last_try; then
34953     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34954 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34955    { (exit 1); exit 1; }; }
34956   else
34957     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34958   fi
34959 done
34960
34961 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34962 if test -n "$ac_eof"; then
34963   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34964   ac_eof=`expr $ac_eof + 1`
34965 fi
34966
34967 cat >>$CONFIG_STATUS <<_ACEOF
34968 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34969 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34970 _ACEOF
34971 sed '
34972 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34973 s/^/s,@/; s/!/@,|#_!!_#|/
34974 :n
34975 t n
34976 s/'"$ac_delim"'$/,g/; t
34977 s/$/\\/; p
34978 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34979 ' >>$CONFIG_STATUS <conf$$subs.sed
34980 rm -f conf$$subs.sed
34981 cat >>$CONFIG_STATUS <<_ACEOF
34982 CEOF$ac_eof
34983 _ACEOF
34984
34985
34986 ac_delim='%!_!# '
34987 for ac_last_try in false false false false false :; do
34988   cat >conf$$subs.sed <<_ACEOF
34989 CCASFLAGS!$CCASFLAGS$ac_delim
34990 LN_S!$LN_S$ac_delim
34991 RM_PROG!$RM_PROG$ac_delim
34992 ECHO!$ECHO$ac_delim
34993 AR!$AR$ac_delim
34994 RANLIB!$RANLIB$ac_delim
34995 DLLTOOL!$DLLTOOL$ac_delim
34996 AS!$AS$ac_delim
34997 OBJDUMP!$OBJDUMP$ac_delim
34998 F77!$F77$ac_delim
34999 FFLAGS!$FFLAGS$ac_delim
35000 ac_ct_F77!$ac_ct_F77$ac_delim
35001 LIBTOOL!$LIBTOOL$ac_delim
35002 ENABLE_FORTRAN_TRUE!$ENABLE_FORTRAN_TRUE$ac_delim
35003 ENABLE_FORTRAN_FALSE!$ENABLE_FORTRAN_FALSE$ac_delim
35004 FLIBS!$FLIBS$ac_delim
35005 NO_UNDEFINED!$NO_UNDEFINED$ac_delim
35006 SWIG!$SWIG$ac_delim
35007 PYTHON!$PYTHON$ac_delim
35008 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
35009 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
35010 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
35011 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
35012 pythondir!$pythondir$ac_delim
35013 pkgpythondir!$pkgpythondir$ac_delim
35014 pyexecdir!$pyexecdir$ac_delim
35015 pkgpyexecdir!$pkgpyexecdir$ac_delim
35016 PYTHON_CPPFLAGS!$PYTHON_CPPFLAGS$ac_delim
35017 PYTHON_LDFLAGS!$PYTHON_LDFLAGS$ac_delim
35018 SWIG_PYTHON_LIB!$SWIG_PYTHON_LIB$ac_delim
35019 SWIG_PYTHON_OPT!$SWIG_PYTHON_OPT$ac_delim
35020 SWIG_PYTHON_CPPFLAGS!$SWIG_PYTHON_CPPFLAGS$ac_delim
35021 XMLTO!$XMLTO$ac_delim
35022 HAS_XMLTO_TRUE!$HAS_XMLTO_TRUE$ac_delim
35023 HAS_XMLTO_FALSE!$HAS_XMLTO_FALSE$ac_delim
35024 PTHREAD_CC!$PTHREAD_CC$ac_delim
35025 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
35026 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
35027 OMNITHREAD_POSIX_TRUE!$OMNITHREAD_POSIX_TRUE$ac_delim
35028 OMNITHREAD_POSIX_FALSE!$OMNITHREAD_POSIX_FALSE$ac_delim
35029 OMNITHREAD_NT_TRUE!$OMNITHREAD_NT_TRUE$ac_delim
35030 OMNITHREAD_NT_FALSE!$OMNITHREAD_NT_FALSE$ac_delim
35031 CXX_FOR_BUILD!$CXX_FOR_BUILD$ac_delim
35032 IPC_LIBS!$IPC_LIBS$ac_delim
35033 ALLOCA!$ALLOCA$ac_delim
35034 SHM_OPEN_LIBS!$SHM_OPEN_LIBS$ac_delim
35035 LIBGNURADIO_CORE_EXTRA_LDFLAGS!$LIBGNURADIO_CORE_EXTRA_LDFLAGS$ac_delim
35036 HAVE_CREATEFILEMAPPING_TRUE!$HAVE_CREATEFILEMAPPING_TRUE$ac_delim
35037 HAVE_CREATEFILEMAPPING_FALSE!$HAVE_CREATEFILEMAPPING_FALSE$ac_delim
35038 LIBOBJS!$LIBOBJS$ac_delim
35039 HAVE_DOT!$HAVE_DOT$ac_delim
35040 PKG_CONFIG!$PKG_CONFIG$ac_delim
35041 FFTW3F_CFLAGS!$FFTW3F_CFLAGS$ac_delim
35042 FFTW3F_LIBS!$FFTW3F_LIBS$ac_delim
35043 FFTW3F_INCLUDEDIR!$FFTW3F_INCLUDEDIR$ac_delim
35044 DOXYGEN!$DOXYGEN$ac_delim
35045 DOT!$DOT$ac_delim
35046 DOC_TRUE!$DOC_TRUE$ac_delim
35047 DOC_FALSE!$DOC_FALSE$ac_delim
35048 enable_dot!$enable_dot$ac_delim
35049 enable_html_docs!$enable_html_docs$ac_delim
35050 enable_latex_docs!$enable_latex_docs$ac_delim
35051 generate_docs!$generate_docs$ac_delim
35052 MD_CPU!$MD_CPU$ac_delim
35053 MD_SUBCPU!$MD_SUBCPU$ac_delim
35054 MD_CPU_x86_TRUE!$MD_CPU_x86_TRUE$ac_delim
35055 MD_CPU_x86_FALSE!$MD_CPU_x86_FALSE$ac_delim
35056 MD_SUBCPU_x86_64_TRUE!$MD_SUBCPU_x86_64_TRUE$ac_delim
35057 MD_SUBCPU_x86_64_FALSE!$MD_SUBCPU_x86_64_FALSE$ac_delim
35058 MD_CPU_generic_TRUE!$MD_CPU_generic_TRUE$ac_delim
35059 MD_CPU_generic_FALSE!$MD_CPU_generic_FALSE$ac_delim
35060 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
35061 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
35062 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
35063 CPPUNIT_INCLUDES!$CPPUNIT_INCLUDES$ac_delim
35064 BOOST_CFLAGS!$BOOST_CFLAGS$ac_delim
35065 DEFINES!$DEFINES$ac_delim
35066 USB_LIBS!$USB_LIBS$ac_delim
35067 FUSB_TECH!$FUSB_TECH$ac_delim
35068 FUSB_TECH_darwin_TRUE!$FUSB_TECH_darwin_TRUE$ac_delim
35069 FUSB_TECH_darwin_FALSE!$FUSB_TECH_darwin_FALSE$ac_delim
35070 FUSB_TECH_win32_TRUE!$FUSB_TECH_win32_TRUE$ac_delim
35071 FUSB_TECH_win32_FALSE!$FUSB_TECH_win32_FALSE$ac_delim
35072 FUSB_TECH_generic_TRUE!$FUSB_TECH_generic_TRUE$ac_delim
35073 FUSB_TECH_generic_FALSE!$FUSB_TECH_generic_FALSE$ac_delim
35074 FUSB_TECH_linux_TRUE!$FUSB_TECH_linux_TRUE$ac_delim
35075 FUSB_TECH_linux_FALSE!$FUSB_TECH_linux_FALSE$ac_delim
35076 FUSB_TECH_ra_wb_TRUE!$FUSB_TECH_ra_wb_TRUE$ac_delim
35077 FUSB_TECH_ra_wb_FALSE!$FUSB_TECH_ra_wb_FALSE$ac_delim
35078 XCC!$XCC$ac_delim
35079 XAS!$XAS$ac_delim
35080 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
35081 ALSA_LIBS!$ALSA_LIBS$ac_delim
35082 ALSA_INCLUDEDIR!$ALSA_INCLUDEDIR$ac_delim
35083 JACK_CFLAGS!$JACK_CFLAGS$ac_delim
35084 JACK_LIBS!$JACK_LIBS$ac_delim
35085 JACK_INCLUDEDIR!$JACK_INCLUDEDIR$ac_delim
35086 _ACEOF
35087
35088   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35089     break
35090   elif $ac_last_try; then
35091     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35092 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35093    { (exit 1); exit 1; }; }
35094   else
35095     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35096   fi
35097 done
35098
35099 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35100 if test -n "$ac_eof"; then
35101   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35102   ac_eof=`expr $ac_eof + 1`
35103 fi
35104
35105 cat >>$CONFIG_STATUS <<_ACEOF
35106 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35108 _ACEOF
35109 sed '
35110 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35111 s/^/s,@/; s/!/@,|#_!!_#|/
35112 :n
35113 t n
35114 s/'"$ac_delim"'$/,g/; t
35115 s/$/\\/; p
35116 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35117 ' >>$CONFIG_STATUS <conf$$subs.sed
35118 rm -f conf$$subs.sed
35119 cat >>$CONFIG_STATUS <<_ACEOF
35120 CEOF$ac_eof
35121 _ACEOF
35122
35123
35124 ac_delim='%!_!# '
35125 for ac_last_try in false false false false false :; do
35126   cat >conf$$subs.sed <<_ACEOF
35127 OSS_LIBS!$OSS_LIBS$ac_delim
35128 PORTAUDIO_CFLAGS!$PORTAUDIO_CFLAGS$ac_delim
35129 PORTAUDIO_LIBS!$PORTAUDIO_LIBS$ac_delim
35130 PORTAUDIO_INCLUDEDIR!$PORTAUDIO_INCLUDEDIR$ac_delim
35131 WINAUDIO_LIBS!$WINAUDIO_LIBS$ac_delim
35132 SDL_CONFIG!$SDL_CONFIG$ac_delim
35133 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
35134 SDL_LIBS!$SDL_LIBS$ac_delim
35135 build_dirs!$build_dirs$ac_delim
35136 skipped_dirs!$skipped_dirs$ac_delim
35137 LTLIBOBJS!$LTLIBOBJS$ac_delim
35138 _ACEOF
35139
35140   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
35141     break
35142   elif $ac_last_try; then
35143     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35144 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35145    { (exit 1); exit 1; }; }
35146   else
35147     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35148   fi
35149 done
35150
35151 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35152 if test -n "$ac_eof"; then
35153   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35154   ac_eof=`expr $ac_eof + 1`
35155 fi
35156
35157 cat >>$CONFIG_STATUS <<_ACEOF
35158 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35160 _ACEOF
35161 sed '
35162 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35163 s/^/s,@/; s/!/@,|#_!!_#|/
35164 :n
35165 t n
35166 s/'"$ac_delim"'$/,g/; t
35167 s/$/\\/; p
35168 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35169 ' >>$CONFIG_STATUS <conf$$subs.sed
35170 rm -f conf$$subs.sed
35171 cat >>$CONFIG_STATUS <<_ACEOF
35172 :end
35173 s/|#_!!_#|//g
35174 CEOF$ac_eof
35175 _ACEOF
35176
35177
35178 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35179 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35180 # trailing colons and then remove the whole line if VPATH becomes empty
35181 # (actually we leave an empty line to preserve line numbers).
35182 if test "x$srcdir" = x.; then
35183   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35184 s/:*\$(srcdir):*/:/
35185 s/:*\${srcdir}:*/:/
35186 s/:*@srcdir@:*/:/
35187 s/^\([^=]*=[     ]*\):*/\1/
35188 s/:*$//
35189 s/^[^=]*=[       ]*$//
35190 }'
35191 fi
35192
35193 cat >>$CONFIG_STATUS <<\_ACEOF
35194 fi # test -n "$CONFIG_FILES"
35195
35196
35197 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35198 do
35199   case $ac_tag in
35200   :[FHLC]) ac_mode=$ac_tag; continue;;
35201   esac
35202   case $ac_mode$ac_tag in
35203   :[FHL]*:*);;
35204   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35205 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35206    { (exit 1); exit 1; }; };;
35207   :[FH]-) ac_tag=-:-;;
35208   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35209   esac
35210   ac_save_IFS=$IFS
35211   IFS=:
35212   set x $ac_tag
35213   IFS=$ac_save_IFS
35214   shift
35215   ac_file=$1
35216   shift
35217
35218   case $ac_mode in
35219   :L) ac_source=$1;;
35220   :[FH])
35221     ac_file_inputs=
35222     for ac_f
35223     do
35224       case $ac_f in
35225       -) ac_f="$tmp/stdin";;
35226       *) # Look for the file first in the build tree, then in the source tree
35227          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35228          # because $ac_f cannot contain `:'.
35229          test -f "$ac_f" ||
35230            case $ac_f in
35231            [\\/$]*) false;;
35232            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35233            esac ||
35234            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35235 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35236    { (exit 1); exit 1; }; };;
35237       esac
35238       ac_file_inputs="$ac_file_inputs $ac_f"
35239     done
35240
35241     # Let's still pretend it is `configure' which instantiates (i.e., don't
35242     # use $as_me), people would be surprised to read:
35243     #    /* config.h.  Generated by config.status.  */
35244     configure_input="Generated from "`IFS=:
35245           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35246     if test x"$ac_file" != x-; then
35247       configure_input="$ac_file.  $configure_input"
35248       { echo "$as_me:$LINENO: creating $ac_file" >&5
35249 echo "$as_me: creating $ac_file" >&6;}
35250     fi
35251
35252     case $ac_tag in
35253     *:-:* | *:-) cat >"$tmp/stdin";;
35254     esac
35255     ;;
35256   esac
35257
35258   ac_dir=`$as_dirname -- "$ac_file" ||
35259 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35260          X"$ac_file" : 'X\(//\)[^/]' \| \
35261          X"$ac_file" : 'X\(//\)$' \| \
35262          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35263 echo X"$ac_file" |
35264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35265             s//\1/
35266             q
35267           }
35268           /^X\(\/\/\)[^/].*/{
35269             s//\1/
35270             q
35271           }
35272           /^X\(\/\/\)$/{
35273             s//\1/
35274             q
35275           }
35276           /^X\(\/\).*/{
35277             s//\1/
35278             q
35279           }
35280           s/.*/./; q'`
35281   { as_dir="$ac_dir"
35282   case $as_dir in #(
35283   -*) as_dir=./$as_dir;;
35284   esac
35285   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35286     as_dirs=
35287     while :; do
35288       case $as_dir in #(
35289       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35290       *) as_qdir=$as_dir;;
35291       esac
35292       as_dirs="'$as_qdir' $as_dirs"
35293       as_dir=`$as_dirname -- "$as_dir" ||
35294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35295          X"$as_dir" : 'X\(//\)[^/]' \| \
35296          X"$as_dir" : 'X\(//\)$' \| \
35297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35298 echo X"$as_dir" |
35299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35300             s//\1/
35301             q
35302           }
35303           /^X\(\/\/\)[^/].*/{
35304             s//\1/
35305             q
35306           }
35307           /^X\(\/\/\)$/{
35308             s//\1/
35309             q
35310           }
35311           /^X\(\/\).*/{
35312             s//\1/
35313             q
35314           }
35315           s/.*/./; q'`
35316       test -d "$as_dir" && break
35317     done
35318     test -z "$as_dirs" || eval "mkdir $as_dirs"
35319   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35320 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35321    { (exit 1); exit 1; }; }; }
35322   ac_builddir=.
35323
35324 case "$ac_dir" in
35325 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35326 *)
35327   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35328   # A ".." for each directory in $ac_dir_suffix.
35329   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35330   case $ac_top_builddir_sub in
35331   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35332   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35333   esac ;;
35334 esac
35335 ac_abs_top_builddir=$ac_pwd
35336 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35337 # for backward compatibility:
35338 ac_top_builddir=$ac_top_build_prefix
35339
35340 case $srcdir in
35341   .)  # We are building in place.
35342     ac_srcdir=.
35343     ac_top_srcdir=$ac_top_builddir_sub
35344     ac_abs_top_srcdir=$ac_pwd ;;
35345   [\\/]* | ?:[\\/]* )  # Absolute name.
35346     ac_srcdir=$srcdir$ac_dir_suffix;
35347     ac_top_srcdir=$srcdir
35348     ac_abs_top_srcdir=$srcdir ;;
35349   *) # Relative name.
35350     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35351     ac_top_srcdir=$ac_top_build_prefix$srcdir
35352     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35353 esac
35354 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35355
35356
35357   case $ac_mode in
35358   :F)
35359   #
35360   # CONFIG_FILE
35361   #
35362
35363   case $INSTALL in
35364   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35365   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35366   esac
35367 _ACEOF
35368
35369 cat >>$CONFIG_STATUS <<\_ACEOF
35370 # If the template does not know about datarootdir, expand it.
35371 # FIXME: This hack should be removed a few years after 2.60.
35372 ac_datarootdir_hack=; ac_datarootdir_seen=
35373
35374 case `sed -n '/datarootdir/ {
35375   p
35376   q
35377 }
35378 /@datadir@/p
35379 /@docdir@/p
35380 /@infodir@/p
35381 /@localedir@/p
35382 /@mandir@/p
35383 ' $ac_file_inputs` in
35384 *datarootdir*) ac_datarootdir_seen=yes;;
35385 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35386   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35387 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35388 _ACEOF
35389 cat >>$CONFIG_STATUS <<_ACEOF
35390   ac_datarootdir_hack='
35391   s&@datadir@&$datadir&g
35392   s&@docdir@&$docdir&g
35393   s&@infodir@&$infodir&g
35394   s&@localedir@&$localedir&g
35395   s&@mandir@&$mandir&g
35396     s&\\\${datarootdir}&$datarootdir&g' ;;
35397 esac
35398 _ACEOF
35399
35400 # Neutralize VPATH when `$srcdir' = `.'.
35401 # Shell code in configure.ac might set extrasub.
35402 # FIXME: do we really want to maintain this feature?
35403 cat >>$CONFIG_STATUS <<_ACEOF
35404   sed "$ac_vpsub
35405 $extrasub
35406 _ACEOF
35407 cat >>$CONFIG_STATUS <<\_ACEOF
35408 :t
35409 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35410 s&@configure_input@&$configure_input&;t t
35411 s&@top_builddir@&$ac_top_builddir_sub&;t t
35412 s&@srcdir@&$ac_srcdir&;t t
35413 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35414 s&@top_srcdir@&$ac_top_srcdir&;t t
35415 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35416 s&@builddir@&$ac_builddir&;t t
35417 s&@abs_builddir@&$ac_abs_builddir&;t t
35418 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35419 s&@INSTALL@&$ac_INSTALL&;t t
35420 $ac_datarootdir_hack
35421 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35422
35423 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35424   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35425   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35426   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35427 which seems to be undefined.  Please make sure it is defined." >&5
35428 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35429 which seems to be undefined.  Please make sure it is defined." >&2;}
35430
35431   rm -f "$tmp/stdin"
35432   case $ac_file in
35433   -) cat "$tmp/out"; rm -f "$tmp/out";;
35434   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35435   esac
35436  ;;
35437   :H)
35438   #
35439   # CONFIG_HEADER
35440   #
35441 _ACEOF
35442
35443 # Transform confdefs.h into a sed script `conftest.defines', that
35444 # substitutes the proper values into config.h.in to produce config.h.
35445 rm -f conftest.defines conftest.tail
35446 # First, append a space to every undef/define line, to ease matching.
35447 echo 's/$/ /' >conftest.defines
35448 # Then, protect against being on the right side of a sed subst, or in
35449 # an unquoted here document, in config.status.  If some macros were
35450 # called several times there might be several #defines for the same
35451 # symbol, which is useless.  But do not sort them, since the last
35452 # AC_DEFINE must be honored.
35453 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35454 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35455 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35456 # PARAMS is the parameter list in the macro definition--in most cases, it's
35457 # just an empty string.
35458 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35459 ac_dB='\\)[      (].*,\\1define\\2'
35460 ac_dC=' '
35461 ac_dD=' ,'
35462
35463 uniq confdefs.h |
35464   sed -n '
35465         t rset
35466         :rset
35467         s/^[     ]*#[    ]*define[       ][      ]*//
35468         t ok
35469         d
35470         :ok
35471         s/[\\&,]/\\&/g
35472         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35473         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35474   ' >>conftest.defines
35475
35476 # Remove the space that was appended to ease matching.
35477 # Then replace #undef with comments.  This is necessary, for
35478 # example, in the case of _POSIX_SOURCE, which is predefined and required
35479 # on some systems where configure will not decide to define it.
35480 # (The regexp can be short, since the line contains either #define or #undef.)
35481 echo 's/ $//
35482 s,^[     #]*u.*,/* & */,' >>conftest.defines
35483
35484 # Break up conftest.defines:
35485 ac_max_sed_lines=50
35486
35487 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35488 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35489 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35490 # et cetera.
35491 ac_in='$ac_file_inputs'
35492 ac_out='"$tmp/out1"'
35493 ac_nxt='"$tmp/out2"'
35494
35495 while :
35496 do
35497   # Write a here document:
35498     cat >>$CONFIG_STATUS <<_ACEOF
35499     # First, check the format of the line:
35500     cat >"\$tmp/defines.sed" <<\\CEOF
35501 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35502 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35503 b
35504 :def
35505 _ACEOF
35506   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35507   echo 'CEOF
35508     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35509   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35510   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35511   grep . conftest.tail >/dev/null || break
35512   rm -f conftest.defines
35513   mv conftest.tail conftest.defines
35514 done
35515 rm -f conftest.defines conftest.tail
35516
35517 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35518 cat >>$CONFIG_STATUS <<\_ACEOF
35519   if test x"$ac_file" != x-; then
35520     echo "/* $configure_input  */" >"$tmp/config.h"
35521     cat "$ac_result" >>"$tmp/config.h"
35522     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35523       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35524 echo "$as_me: $ac_file is unchanged" >&6;}
35525     else
35526       rm -f $ac_file
35527       mv "$tmp/config.h" $ac_file
35528     fi
35529   else
35530     echo "/* $configure_input  */"
35531     cat "$ac_result"
35532   fi
35533   rm -f "$tmp/out12"
35534 # Compute $ac_file's index in $config_headers.
35535 _am_stamp_count=1
35536 for _am_header in $config_headers :; do
35537   case $_am_header in
35538     $ac_file | $ac_file:* )
35539       break ;;
35540     * )
35541       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35542   esac
35543 done
35544 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
35545 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35546          X$ac_file : 'X\(//\)[^/]' \| \
35547          X$ac_file : 'X\(//\)$' \| \
35548          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
35549 echo X$ac_file |
35550     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35551             s//\1/
35552             q
35553           }
35554           /^X\(\/\/\)[^/].*/{
35555             s//\1/
35556             q
35557           }
35558           /^X\(\/\/\)$/{
35559             s//\1/
35560             q
35561           }
35562           /^X\(\/\).*/{
35563             s//\1/
35564             q
35565           }
35566           s/.*/./; q'`/stamp-h$_am_stamp_count
35567  ;;
35568
35569   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35570 echo "$as_me: executing $ac_file commands" >&6;}
35571  ;;
35572   esac
35573
35574
35575   case $ac_file$ac_mode in
35576     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
35577   # Strip MF so we end up with the name of the file.
35578   mf=`echo "$mf" | sed -e 's/:.*$//'`
35579   # Check whether this is an Automake generated Makefile or not.
35580   # We used to match only the files named `Makefile.in', but
35581   # some people rename them; so instead we look at the file content.
35582   # Grep'ing the first line is not enough: some people post-process
35583   # each Makefile.in and add a new line on top of each file to say so.
35584   # So let's grep whole file.
35585   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
35586     dirpart=`$as_dirname -- "$mf" ||
35587 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35588          X"$mf" : 'X\(//\)[^/]' \| \
35589          X"$mf" : 'X\(//\)$' \| \
35590          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35591 echo X"$mf" |
35592     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35593             s//\1/
35594             q
35595           }
35596           /^X\(\/\/\)[^/].*/{
35597             s//\1/
35598             q
35599           }
35600           /^X\(\/\/\)$/{
35601             s//\1/
35602             q
35603           }
35604           /^X\(\/\).*/{
35605             s//\1/
35606             q
35607           }
35608           s/.*/./; q'`
35609   else
35610     continue
35611   fi
35612   # Extract the definition of DEPDIR, am__include, and am__quote
35613   # from the Makefile without running `make'.
35614   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35615   test -z "$DEPDIR" && continue
35616   am__include=`sed -n 's/^am__include = //p' < "$mf"`
35617   test -z "am__include" && continue
35618   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35619   # When using ansi2knr, U may be empty or an underscore; expand it
35620   U=`sed -n 's/^U = //p' < "$mf"`
35621   # Find all dependency output files, they are included files with
35622   # $(DEPDIR) in their names.  We invoke sed twice because it is the
35623   # simplest approach to changing $(DEPDIR) to its actual value in the
35624   # expansion.
35625   for file in `sed -n "
35626     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35627        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35628     # Make sure the directory exists.
35629     test -f "$dirpart/$file" && continue
35630     fdir=`$as_dirname -- "$file" ||
35631 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35632          X"$file" : 'X\(//\)[^/]' \| \
35633          X"$file" : 'X\(//\)$' \| \
35634          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35635 echo X"$file" |
35636     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35637             s//\1/
35638             q
35639           }
35640           /^X\(\/\/\)[^/].*/{
35641             s//\1/
35642             q
35643           }
35644           /^X\(\/\/\)$/{
35645             s//\1/
35646             q
35647           }
35648           /^X\(\/\).*/{
35649             s//\1/
35650             q
35651           }
35652           s/.*/./; q'`
35653     { as_dir=$dirpart/$fdir
35654   case $as_dir in #(
35655   -*) as_dir=./$as_dir;;
35656   esac
35657   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35658     as_dirs=
35659     while :; do
35660       case $as_dir in #(
35661       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35662       *) as_qdir=$as_dir;;
35663       esac
35664       as_dirs="'$as_qdir' $as_dirs"
35665       as_dir=`$as_dirname -- "$as_dir" ||
35666 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35667          X"$as_dir" : 'X\(//\)[^/]' \| \
35668          X"$as_dir" : 'X\(//\)$' \| \
35669          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35670 echo X"$as_dir" |
35671     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35672             s//\1/
35673             q
35674           }
35675           /^X\(\/\/\)[^/].*/{
35676             s//\1/
35677             q
35678           }
35679           /^X\(\/\/\)$/{
35680             s//\1/
35681             q
35682           }
35683           /^X\(\/\).*/{
35684             s//\1/
35685             q
35686           }
35687           s/.*/./; q'`
35688       test -d "$as_dir" && break
35689     done
35690     test -z "$as_dirs" || eval "mkdir $as_dirs"
35691   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35692 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35693    { (exit 1); exit 1; }; }; }
35694     # echo "creating $dirpart/$file"
35695     echo '# dummy' > "$dirpart/$file"
35696   done
35697 done
35698  ;;
35699     "run_tests_core":C) chmod +x gnuradio-core/src/python/gnuradio/gr/run_tests ;;
35700     "swig_deps":C) touch gnuradio-core/src/lib/swig/gnuradio_swig_python.d ;;
35701     "run_tests_usrp":C) chmod +x gr-usrp/src/run_tests ;;
35702     "run_tests_alsa":C) chmod +x gr-audio-alsa/src/run_tests ;;
35703     "run_tests_jack":C) chmod +x gr-audio-jack/src/run_tests ;;
35704     "run_tests_oss":C) chmod +x gr-audio-oss/src/run_tests ;;
35705     "run_tests_osx":C) chmod +x gr-audio-osx/src/run_tests ;;
35706     "run_tests_portaudio":C) chmod +x gr-audio-portaudio/src/run_tests ;;
35707     "run_tests_audio_windows":C) chmod +x gr-audio-windows/src/run_tests ;;
35708     "run_tests_gsm":C) chmod +x gr-gsm-fr-vocoder/src/python/run_tests ;;
35709     "run_tests_astronomy":C) chmod +x gr-radio-astronomy/src/python/run_tests ;;
35710     "run_tests_gr_trellis":C) chmod +x gr-trellis/src/python/run_tests ;;
35711     "run_tests_sdl":C) chmod +x gr-video-sdl/src/run_tests ;;
35712     "run_tests_build":C) chmod +x run_tests.sh ;;
35713
35714   esac
35715 done # for ac_tag
35716
35717
35718 { (exit 0); exit 0; }
35719 _ACEOF
35720 chmod +x $CONFIG_STATUS
35721 ac_clean_files=$ac_clean_files_save
35722
35723
35724 # configure is writing to config.log, and then calls config.status.
35725 # config.status does its own redirection, appending to config.log.
35726 # Unfortunately, on DOS this fails, as config.log is still kept open
35727 # by configure, so config.status won't be able to write to it; its
35728 # output is simply discarded.  So we exec the FD to /dev/null,
35729 # effectively closing config.log, so it can be properly (re)opened and
35730 # appended to by config.status.  When coming back to configure, we
35731 # need to make the FD available again.
35732 if test "$no_create" != yes; then
35733   ac_cs_success=:
35734   ac_config_status_args=
35735   test "$silent" = yes &&
35736     ac_config_status_args="$ac_config_status_args --quiet"
35737   exec 5>/dev/null
35738   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35739   exec 5>>config.log
35740   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35741   # would make configure fail if this is the last instruction.
35742   $ac_cs_success || { (exit 1); exit 1; }
35743 fi
35744
35745
35746 echo
35747 echo "*********************************************************************"
35748 echo The following GNU Radio components have been successfully configured:
35749 echo
35750 for dir in $build_dirs
35751 do
35752     echo $dir
35753 done
35754 echo
35755 echo You my now run the 'make' command to build these components.
35756 echo
35757 if test "$skipped_dirs" != ""; then
35758     echo "*********************************************************************"
35759     echo The following components were skipped either because you asked not
35760     echo to build them or they didn\'t pass configuration checks:
35761     echo
35762     for dir in $skipped_dirs
35763     do
35764         echo $dir
35765     done
35766     echo
35767     echo These components will not be built.
35768     echo
35769 fi